:root {
  color-scheme: light dark;
  --bg: #f7f9fb;
  --bg-elevated: #eef4f3;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --text: #101318;
  --muted: #5d6675;
  --border: rgba(16, 19, 24, 0.14);
  --border-strong: rgba(16, 19, 24, 0.24);
  --accent: #008c83;
  --accent-hover: #006f68;
  --accent-2: #ff5a36;
  --accent-3: #6957ff;
  --accent-4: #f0bd23;
  --accent-muted: rgba(0, 140, 131, 0.14);
  --danger: #ba1a1a;
  --radius: 8px;
  --shadow: 0 22px 65px rgba(16, 19, 24, 0.14);
  --shadow-soft: 0 12px 35px rgba(16, 19, 24, 0.09);
  --font-display: "Space Grotesk", "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-family: var(--font-body);
}

[data-theme="dark"] {
  --bg: #101113;
  --bg-elevated: #161a1d;
  --surface: rgba(22, 24, 28, 0.76);
  --surface-strong: #191d22;
  --text: #f4f5f1;
  --muted: #a9b0b8;
  --border: rgba(244, 245, 241, 0.14);
  --border-strong: rgba(244, 245, 241, 0.28);
  --accent: #23d6bf;
  --accent-hover: #63ead9;
  --accent-2: #ff7a4f;
  --accent-3: #a398ff;
  --accent-4: #f4cf45;
  --accent-muted: rgba(35, 214, 191, 0.17);
  --danger: #ffb4ab;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
  --shadow-soft: 0 15px 42px rgba(0, 0, 0, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(135deg, rgba(0, 140, 131, 0.1), transparent 28rem),
    linear-gradient(315deg, rgba(255, 90, 54, 0.11), transparent 26rem),
    linear-gradient(180deg, var(--bg), var(--bg-elevated));
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(16, 19, 24, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 19, 24, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 78%);
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  pointer-events: none;
}

[data-theme="dark"] body::before {
  background-image:
    linear-gradient(rgba(244, 245, 241, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 245, 241, 0.055) 1px, transparent 1px);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

[hidden] {
  display: none !important;
}

.ambient-grid {
  position: fixed;
  inset: auto -12rem -14rem auto;
  z-index: 0;
  width: 42rem;
  height: 42rem;
  opacity: 0.42;
  pointer-events: none;
  background:
    conic-gradient(from 45deg, transparent 0 25%, var(--accent-3) 0 37%, transparent 0 63%, var(--accent-2) 0 72%, transparent 0),
    repeating-linear-gradient(45deg, transparent 0 18px, rgba(16, 19, 24, 0.08) 18px 19px);
  clip-path: polygon(50% 0, 100% 33%, 82% 100%, 18% 100%, 0 33%);
  animation: slow-rotate 38s linear infinite;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.55rem 0.8rem;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  z-index: 100;
}

.shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem clamp(1rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-strong) 74%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
}

.brand:hover {
  color: inherit;
}

.brand-mark {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background:
    linear-gradient(135deg, var(--accent), var(--accent-3) 62%, var(--accent-2));
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(0, 140, 131, 0.28);
  overflow: hidden;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  transform: rotate(45deg);
}

.brand-mark span {
  position: relative;
  z-index: 1;
  font-size: 0.86rem;
}

.brand-name {
  white-space: nowrap;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-strong) 74%, transparent);
  color: var(--text);
  padding: 0.62rem 0.95rem;
  border-radius: var(--radius);
  font: 700 0.93rem/1 var(--font-body);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.btn:hover {
  color: var(--text);
  text-decoration: none;
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  border-color: transparent;
  color: #ffffff;
  background:
    linear-gradient(135deg, var(--accent), var(--accent-3));
  box-shadow: 0 14px 34px rgba(0, 140, 131, 0.28);
}

.btn-primary:hover {
  color: #ffffff;
  background:
    linear-gradient(135deg, var(--accent-hover), var(--accent-3));
}

.btn-ghost {
  background: color-mix(in srgb, var(--surface) 52%, transparent);
}

.btn-wide {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.56;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

main {
  flex: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 2.75rem);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.home-hero {
  padding: clamp(3rem, 7vw, 6.25rem) 0 clamp(2.5rem, 5vw, 4.5rem);
}

.hero-copy {
  position: relative;
  z-index: 1;
  animation: rise-in 0.7s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.eyebrow span {
  width: 0.8rem;
  height: 0.8rem;
  background: var(--accent-2);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.hero h1,
.studio-head h1,
.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 9ch;
  font-size: 5.7rem;
  line-height: 0.92;
}

.lede {
  max-width: 58ch;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.45rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 36rem;
  margin: 2rem 0 0;
}

.hero-stats div {
  position: relative;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  overflow: hidden;
}

.hero-stats div::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 46px;
  height: 4px;
  background: var(--accent-4);
}

.hero-stats dt {
  margin: 0;
  color: var(--text);
  font: 700 1.85rem/1 var(--font-display);
}

.hero-stats dd {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-visual {
  position: relative;
  min-height: 440px;
  animation: rise-in 0.75s 0.1s ease both;
}

.geo-stage {
  position: relative;
  min-height: 440px;
  height: min(58vw, 560px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(115deg, rgba(105, 87, 255, 0.14), transparent 42%),
    linear-gradient(25deg, rgba(255, 90, 54, 0.16), transparent 44%),
    color-mix(in srgb, var(--surface-strong) 78%, transparent);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.geo-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 19, 24, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 19, 24, 0.07) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: linear-gradient(145deg, black, transparent 78%);
  mask-image: linear-gradient(145deg, black, transparent 78%);
}

[data-theme="dark"] .geo-stage::before {
  background-image:
    linear-gradient(rgba(244, 245, 241, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 245, 241, 0.08) 1px, transparent 1px);
}

.geo-shape,
.studio-head-art span {
  position: absolute;
  display: block;
}

.geo-triangle {
  width: 145px;
  height: 145px;
  left: 8%;
  top: 11%;
  background: var(--accent-4);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  animation: float-y 7s ease-in-out infinite;
}

.geo-diamond {
  width: 88px;
  height: 88px;
  right: 11%;
  top: 14%;
  background: var(--accent-2);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  animation: drift-x 8s ease-in-out infinite;
}

.geo-ring {
  width: 190px;
  height: 190px;
  right: 8%;
  bottom: 8%;
  border: 28px solid var(--accent);
  border-radius: 50%;
  opacity: 0.82;
  animation: slow-rotate 24s linear infinite;
}

.geo-bar {
  width: 230px;
  height: 52px;
  left: 7%;
  bottom: 13%;
  background:
    repeating-linear-gradient(90deg, var(--accent-3) 0 18px, transparent 18px 28px);
  transform: rotate(-16deg);
  animation: slide-bars 9s ease-in-out infinite;
}

.signal-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(78%, 390px);
  padding: 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface-strong) 86%, transparent);
  box-shadow: 0 18px 45px rgba(16, 19, 24, 0.18);
  transform: translate(-50%, -50%) rotate(-2deg);
}

.panel-dots {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.panel-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-2);
}

.panel-dots span:nth-child(2) {
  background: var(--accent-4);
}

.panel-dots span:nth-child(3) {
  background: var(--accent);
}

.signal-header,
.output-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.signal-header span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.signal-header strong {
  padding: 0.28rem 0.5rem;
  color: #ffffff;
  background: var(--accent);
  border-radius: var(--radius);
  font-size: 0.75rem;
}

.signal-stack {
  display: grid;
  gap: 0.6rem;
  margin: 1.2rem 0;
}

.signal-stack span {
  width: var(--w);
  height: 0.75rem;
  background:
    linear-gradient(90deg, var(--accent-3), var(--accent));
  border-radius: 999px;
  animation: pulse-line 2.8s ease-in-out infinite;
}

.signal-stack span:nth-child(2) {
  animation-delay: 0.25s;
}

.signal-stack span:nth-child(3) {
  animation-delay: 0.5s;
}

.channel-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.channel-map span,
.metric-tile {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.channel-map span {
  padding: 0.65rem;
  color: var(--text);
  font-weight: 800;
}

.metric-tile {
  position: absolute;
  display: grid;
  gap: 0.2rem;
  padding: 0.8rem 0.9rem;
  box-shadow: var(--shadow-soft);
}

.metric-tile span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.metric-tile strong {
  font: 700 1.7rem/1 var(--font-display);
}

.tile-one {
  left: 5%;
  top: auto;
  bottom: 8%;
}

.tile-two {
  right: 4%;
  top: 34%;
}

.section-band,
.process-section {
  padding: clamp(2.6rem, 6vw, 5rem) 0;
}

.section-heading {
  display: grid;
  gap: 0.45rem;
  max-width: 44rem;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 2.45rem;
  line-height: 1.04;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  position: relative;
  min-height: 190px;
  padding: 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface-strong) 88%, transparent), color-mix(in srgb, var(--surface) 66%, transparent));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.card::before {
  content: "";
  position: absolute;
  right: -1.1rem;
  top: -1.1rem;
  width: 5.5rem;
  height: 5.5rem;
  background: var(--accent-muted);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  transition: transform 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.card:hover::before {
  transform: rotate(22deg) scale(1.1);
}

.mode-card:nth-child(2) {
  --accent-muted: rgba(255, 90, 54, 0.16);
}

.mode-card:nth-child(3) {
  --accent-muted: rgba(105, 87, 255, 0.16);
}

.mode-card:nth-child(4) {
  --accent-muted: rgba(240, 189, 35, 0.2);
}

.mode-card:nth-child(5) {
  --accent-muted: rgba(35, 214, 191, 0.16);
}

.mode-card:nth-child(6) {
  --accent-muted: rgba(255, 122, 79, 0.16);
}

.card-index,
.panel-kicker {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.card h3,
.process-step h3,
.panel h2 {
  position: relative;
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.18rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.card h3 {
  margin-top: 2.2rem;
}

.muted {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.process-lane {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, transparent 0 18px, color-mix(in srgb, var(--accent-muted) 55%, transparent) 18px 19px),
    color-mix(in srgb, var(--surface) 72%, transparent);
}

.process-step {
  position: relative;
  min-height: 150px;
  padding: 1rem;
  border-top: 4px solid var(--accent);
  background: color-mix(in srgb, var(--surface-strong) 82%, transparent);
  border-radius: var(--radius);
}

.process-step:nth-child(2) {
  border-color: var(--accent-2);
}

.process-step:nth-child(3) {
  border-color: var(--accent-3);
}

.process-step > span {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  margin-bottom: 0.9rem;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-weight: 900;
  font-size: 0.78rem;
}

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem clamp(1rem, 4vw, 2.5rem);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

/* Studio layout */
.studio-main {
  width: min(1280px, 100%);
}

.studio-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.5rem;
  padding: 1.75rem 0 1.2rem;
}

.studio-head h1 {
  max-width: 18ch;
  font-size: 3rem;
  line-height: 1;
}

.studio-head-art {
  position: relative;
  width: 190px;
  height: 104px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(105, 87, 255, 0.22), transparent),
    color-mix(in srgb, var(--surface-strong) 78%, transparent);
  overflow: hidden;
}

.studio-head-art span:nth-child(1) {
  width: 56px;
  height: 56px;
  left: 16px;
  bottom: 14px;
  background: var(--accent-4);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  animation: float-y 6s ease-in-out infinite;
}

.studio-head-art span:nth-child(2) {
  width: 72px;
  height: 72px;
  right: 20px;
  top: 16px;
  border: 14px solid var(--accent);
  border-radius: 50%;
  animation: slow-rotate 20s linear infinite;
}

.studio-head-art span:nth-child(3) {
  width: 90px;
  height: 18px;
  right: 44px;
  bottom: 16px;
  background: var(--accent-2);
  transform: rotate(-18deg);
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 1.1rem;
  align-items: start;
}

.panel {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-strong) 86%, transparent), color-mix(in srgb, var(--surface) 72%, transparent));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
}

.panel-heading {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.compact-heading {
  margin-bottom: 0.8rem;
}

.form-grid {
  display: grid;
  gap: 0.95rem;
}

fieldset {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
  margin: 0;
  padding: 1rem 0 0;
  border: 0;
  border-top: 1px solid var(--border);
}

fieldset:first-of-type {
  padding-top: 0;
  border-top: 0;
}

legend {
  padding: 0 0 0.1rem;
  color: var(--accent-3);
  font: 800 0.78rem/1 var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0;
}

label {
  display: grid;
  gap: 0.36rem;
  min-width: 0;
  color: var(--text);
  font-weight: 800;
  font-size: 0.9rem;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.72rem 0.78rem;
  font: inherit;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-strong) 76%, transparent), color-mix(in srgb, var(--surface) 62%, transparent));
  color: var(--text);
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: color-mix(in srgb, var(--accent) 72%, white);
  box-shadow: 0 0 0 4px var(--accent-muted);
  background: var(--surface-strong);
}

::placeholder {
  color: color-mix(in srgb, var(--muted) 72%, transparent);
}

.hint {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.83rem;
}

.row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0.35rem;
  margin-bottom: 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}

.tab {
  min-height: 38px;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: 800 0.88rem/1 var(--font-body);
  transition:
    color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.tab:hover {
  color: var(--text);
}

.tab[aria-selected="true"] {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  box-shadow: 0 10px 24px rgba(0, 140, 131, 0.18);
}

.output {
  position: relative;
  min-height: 320px;
  max-height: min(62vh, 620px);
  overflow: auto;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(16, 19, 24, 0.03), transparent),
    color-mix(in srgb, var(--surface-strong) 78%, transparent);
  white-space: pre-wrap;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

.output:empty::before {
  content: "Awaiting generation";
  color: var(--muted);
}

.save-zone {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.output-badge {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--accent-4);
  font-weight: 900;
}

.banner {
  margin-bottom: 0.9rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  background: color-mix(in srgb, var(--accent-muted) 78%, transparent);
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 700;
}

.banner:empty {
  display: none;
}

.error {
  display: block;
  color: var(--danger);
  font-weight: 800;
  margin: 0 0 0.75rem;
}

.error:empty {
  display: none;
}

.user-chip {
  max-width: 220px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.85rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes rise-in {
  from {
    transform: translateY(18px);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes float-y {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-18px);
  }
}

@keyframes drift-x {
  0%,
  100% {
    transform: translateX(0) rotate(0deg);
  }
  50% {
    transform: translateX(-22px) rotate(18deg);
  }
}

@keyframes slow-rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes slide-bars {
  0%,
  100% {
    transform: translateX(0) rotate(-16deg);
  }
  50% {
    transform: translateX(22px) rotate(-16deg);
  }
}

@keyframes pulse-line {
  0%,
  100% {
    opacity: 0.72;
    transform: scaleX(0.95);
    transform-origin: left;
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1fr);
  }
}

@media (max-width: 980px) {
  .hero h1 {
    font-size: 4rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .feature-grid,
  .process-lane,
  .studio-grid {
    grid-template-columns: 1fr;
  }

  .studio-head {
    grid-template-columns: 1fr;
  }

  .studio-head-art {
    display: none;
  }

  .output {
    max-height: none;
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
  }

  .nav-actions {
    gap: 0.45rem;
  }

  .brand-name {
    max-width: 8rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .btn {
    min-height: 38px;
    padding: 0.55rem 0.7rem;
    font-size: 0.86rem;
  }

  .hero h1 {
    font-size: 3.05rem;
  }

  .studio-head h1 {
    font-size: 2.25rem;
  }

  .hero-stats,
  .row-2,
  .tabs {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .geo-stage {
    min-height: 360px;
  }

  .signal-panel {
    width: 86%;
  }

  .metric-tile {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
