/* ==========================================================================
   AI-MEDIA TECHNOLOGIES LLC — Design system
   ========================================================================== */

:root {
  /* Surfaces */
  --bg: #0a0b0d;
  --surface-1: #0f1113;
  --surface-2: #14171a;
  --surface-3: #1a1e22;

  /* Lines */
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --line-control: rgba(255, 255, 255, 0.34); /* >= 3:1 for control boundaries */

  /* Text */
  --text: #eceef0;
  --text-2: #a7acb3;
  --text-3: #858a93;

  /* Accent — single, used for primary action + key status only */
  --accent: #ff6b3d;
  --accent-ink: #120804;
  --accent-soft: rgba(255, 107, 61, 0.12);

  /* Semantic (desaturated) */
  --ok: #7fb894;
  --warn: #d4b46a;

  /* Type */
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Scale ~1.25 */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  --fs-2xl: clamp(1.875rem, 1.4rem + 1.8vw, 2.625rem);
  --fs-3xl: clamp(2.375rem, 1.6rem + 3.2vw, 4rem);
  --fs-4xl: clamp(2.75rem, 1.6rem + 5vw, 5.5rem);

  /* Spacing */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 144px;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --dur: 150ms;
  --dur-reveal: 800ms;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --nav-h: 68px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: var(--s-4); top: -60px; z-index: 100;
  background: var(--text); color: var(--bg); padding: var(--s-2) var(--s-4);
  border-radius: var(--r-sm); font-size: var(--fs-sm); font-weight: 500;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--s-4); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Background texture ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 100%);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-bd: var(--line-control);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 44px; padding: 0 var(--s-5);
  border-radius: var(--r-md);
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: var(--fs-sm); font-weight: 500; letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.btn:active { transform: scale(0.98); }
.btn--primary { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); --btn-bd: var(--accent); }
.btn--ghost { --btn-bg: rgba(255,255,255,0.02); }
.btn[aria-disabled="true"], .btn:disabled { opacity: 0.4; pointer-events: none; }

@media (hover: hover) {
  .btn--primary:hover { --btn-bg: #ff7d55; --btn-bd: #ff7d55; }
  .btn--ghost:hover { --btn-bg: rgba(255,255,255,0.06); --btn-bd: rgba(255,255,255,0.5); }
  .btn:hover svg { transform: translateX(2px); }
}

.link {
  color: var(--text);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size var(--dur) var(--ease), color var(--dur) var(--ease);
}
@media (hover: hover) { .link:hover { background-size: 100% 1px; } }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-2);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.section-index { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-3); letter-spacing: 0.06em; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background-color 300ms var(--ease), border-color 300ms var(--ease), backdrop-filter 300ms var(--ease);
}
.nav.is-scrolled, .nav.is-open {
  background: rgba(10, 11, 13, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-6); }
.brand { display: inline-flex; align-items: center; gap: var(--s-3); font-weight: 600; letter-spacing: -0.01em; min-height: 44px; }
.brand__mark { width: 26px; height: 26px; color: var(--text); }
.brand__name { font-size: var(--fs-sm); }
.brand__name span { color: var(--text-3); font-weight: 400; }

.nav__links { display: flex; align-items: center; gap: var(--s-1); }
.nav__links a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--s-3);
  font-size: var(--fs-sm); color: var(--text-2); border-radius: var(--r-sm);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav__links a.is-active { color: var(--text); }
@media (hover: hover) { .nav__links a:hover { color: var(--text); background: rgba(255,255,255,0.04); } }
.nav__cta { display: flex; align-items: center; gap: var(--s-3); }
.nav__toggle {
  display: none; width: 44px; height: 44px; border-radius: var(--r-md);
  border: 1px solid var(--line-2); align-items: center; justify-content: center;
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.nav__toggle:active { transform: scale(0.96); }
.nav__toggle span { position: relative; width: 16px; height: 1.5px; background: var(--text); transition: background-color var(--dur) var(--ease); }
.nav__toggle span::before, .nav__toggle span::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--text);
  transition: transform 250ms var(--ease);
}
.nav__toggle span::before { transform: translateY(-5px); }
.nav__toggle span::after { transform: translateY(5px); }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: rotate(45deg); }
.nav.is-open .nav__toggle span::after { transform: rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 49;
  background: rgba(10, 11, 13, 0.96);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: var(--s-6) var(--gutter);
  opacity: 0; visibility: hidden;
  transition: opacity 250ms var(--ease), visibility 250ms var(--ease);
}
.mobile-menu a {
  display: flex; align-items: center; justify-content: space-between; min-height: 56px;
  font-size: var(--fs-xl); letter-spacing: -0.02em; border-bottom: 1px solid var(--line);
}
.mobile-menu a .mono { font-size: var(--fs-xs); color: var(--text-3); }
.mobile-menu .btn { margin-top: var(--s-6); width: 100%; justify-content: center; min-height: 52px; font-size: var(--fs-base); letter-spacing: 0; border-bottom: 1px solid var(--accent); }
.nav.is-open + .mobile-menu { opacity: 1; visibility: visible; }

@media (max-width: 900px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: inline-flex; }
  .mobile-menu { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--nav-h) + var(--s-8)) 0 var(--s-9);
  overflow: hidden; isolation: isolate;
}
.hero__canvas {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.35) 28%, #000 55%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.35) 28%, #000 55%);
}
.hero__fade { position: absolute; inset: auto 0 0 0; height: 200px; z-index: -1; background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; }
.hero__content { max-width: 760px; }
.hero h1 {
  margin-top: var(--s-5);
  font-size: var(--fs-4xl); line-height: 0.98; letter-spacing: -0.045em; font-weight: 500;
}
.hero h1 em { font-style: normal; color: var(--text-3); }
.hero__lead { margin-top: var(--s-6); max-width: 560px; font-size: var(--fs-md); color: var(--text-2); line-height: 1.65; }
.hero__actions { margin-top: var(--s-7); display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero__meta {
  margin-top: var(--s-9); display: grid; grid-template-columns: repeat(3, minmax(0, auto)); gap: var(--s-7);
  justify-content: start;
}
.hero__meta dt { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-3); letter-spacing: 0.06em; text-transform: uppercase; }
.hero__meta dd { margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--text); }

.split-line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.split-line > span { display: inline-block; }
.js .hero .split-line > span { transform: translateY(105%); transition: transform 1100ms var(--ease); }
.js .hero.is-ready .split-line > span { transform: none; }
.js .hero.is-ready .split-line:nth-child(2) > span { transition-delay: 90ms; }
.js .hero.is-ready .split-line:nth-child(3) > span { transition-delay: 180ms; }

@media (max-width: 900px) {
  .hero { align-items: flex-end; padding-top: calc(var(--nav-h) + clamp(220px, 34svh, 340px)); padding-bottom: var(--s-8); }
  .hero__canvas {
    mask-image: linear-gradient(to bottom, #000 0%, #000 var(--canvas-fade, 40%), transparent calc(var(--canvas-fade, 40%) + 12%));
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 var(--canvas-fade, 40%), transparent calc(var(--canvas-fade, 40%) + 12%));
  }
  .hero__meta { grid-template-columns: 1fr 1fr; gap: var(--s-5); margin-top: var(--s-8); }
}

/* ---------- Ticker ---------- */
.ticker { border-block: 1px solid var(--line); overflow: hidden; padding: var(--s-5) 0; }
.ticker__track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker__group { display: flex; align-items: center; gap: var(--s-7); padding-right: var(--s-7); }
.ticker__item { display: inline-flex; align-items: center; gap: var(--s-7); white-space: nowrap; font-size: var(--fs-md); color: var(--text-2); letter-spacing: -0.01em; }
.ticker__item::after { content: ""; width: 5px; height: 5px; border: 1px solid var(--text-3); transform: rotate(45deg); }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (hover: hover) { .ticker:hover .ticker__track { animation-play-state: paused; } }

/* ---------- Sections ---------- */
.section { position: relative; padding: var(--s-10) 0; }
.section--tight { padding: var(--s-9) 0; }
.section__head { display: grid; grid-template-columns: 1fr; gap: var(--s-5); max-width: 760px; margin-bottom: var(--s-8); }
.section__head h2 { font-size: var(--fs-3xl); line-height: 1.04; letter-spacing: -0.035em; font-weight: 500; }
.section__head p { font-size: var(--fs-md); color: var(--text-2); max-width: 600px; }
.section__head--split {
  max-width: none; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: var(--s-8);
}
@media (max-width: 900px) { .section__head--split { grid-template-columns: 1fr; gap: var(--s-5); } }
.muted { color: var(--text-3); }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.pillar { padding: var(--s-7) var(--s-7) var(--s-7) 0; }
.pillar + .pillar { padding-left: var(--s-7); padding-right: 0; border-left: 1px solid var(--line); }
.pillar__letter {
  font-size: clamp(5rem, 3rem + 8vw, 10rem); line-height: 0.85; font-weight: 500; letter-spacing: -0.06em;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.22);
}
.pillar h3 { margin-top: var(--s-6); font-size: var(--fs-xl); letter-spacing: -0.02em; font-weight: 500; }
.pillar p { margin-top: var(--s-3); color: var(--text-2); max-width: 460px; }
.pillar ul { margin-top: var(--s-5); display: grid; gap: var(--s-2); }
.pillar li { display: flex; gap: var(--s-3); font-size: var(--fs-sm); color: var(--text-2); }
.pillar li::before { content: "—"; color: var(--text-3); }
.pillars__join {
  grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: var(--s-6);
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap;
}
.pillars__join p { font-size: var(--fs-lg); letter-spacing: -0.015em; max-width: 720px; }
@media (max-width: 800px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: var(--s-7) 0; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--line); }
}

/* ---------- Console (performance intelligence) ---------- */
.console {
  border: 1px solid var(--line-2); border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
  overflow: hidden;
}
.console__bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-3) var(--s-5); border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-3);
}
.console__bar .live { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--text-2); }
.console__bar .live i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.console__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.console__main { padding: var(--s-5); border-right: 1px solid var(--line); }
.console__side { padding: var(--s-5); display: flex; flex-direction: column; min-height: 0; }

.channels { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.channels th {
  text-align: right; font-weight: 400; font-family: var(--font-mono); font-size: var(--fs-xs);
  color: var(--text-3); letter-spacing: 0.04em; text-transform: uppercase; padding: 0 0 var(--s-3);
}
.channels th:first-child, .channels td:first-child { text-align: left; }
.channels td { text-align: right; padding: var(--s-3) 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.channels td:first-child { display: flex; align-items: center; gap: var(--s-3); }
.swatch { width: 10px; height: 2px; border-radius: 1px; }
.delta { font-family: var(--font-mono); font-size: var(--fs-xs); }
.delta.up { color: var(--ok); }
.delta.down { color: var(--warn); }

.chart { margin-top: var(--s-6); }
.chart__legend { display: flex; flex-wrap: wrap; gap: var(--s-5); font-size: var(--fs-xs); color: var(--text-2); margin-bottom: var(--s-3); }
.chart__legend span { display: inline-flex; align-items: center; gap: var(--s-2); }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .gridline { stroke: rgba(255,255,255,0.06); stroke-width: 1; }
.chart .axis { fill: var(--text-3); font-family: var(--font-mono); font-size: 10px; }
.chart .series { fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.js .chart .series { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.js .chart.is-in .series { stroke-dashoffset: 0; transition: stroke-dashoffset 2200ms var(--ease); }
.js .chart.is-in .series:nth-of-type(2) { transition-delay: 150ms; }
.js .chart.is-in .series:nth-of-type(3) { transition-delay: 300ms; }
.js .chart.is-in .series:nth-of-type(4) { transition-delay: 450ms; }
.chart .area { opacity: 0; transition: opacity 1200ms var(--ease) 900ms; }
.chart.is-in .area, html:not(.js) .chart .area { opacity: 1; }

.feed__title { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-3); letter-spacing: 0.04em; text-transform: uppercase; }
.feed { margin-top: var(--s-4); display: flex; flex-direction: column; gap: 0; overflow: hidden; height: 360px; position: relative; }
.feed::after { content: ""; position: absolute; inset: auto 0 0 0; height: 80px; background: linear-gradient(to bottom, transparent, var(--surface-1)); pointer-events: none; }
.feed__item {
  padding: var(--s-3) 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: auto 1fr; gap: var(--s-1) var(--s-3); font-size: var(--fs-sm);
  animation: feedIn 600ms var(--ease) both;
}
.feed__item time { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-3); padding-top: 2px; }
.feed__item b { font-weight: 500; }
.feed__item p { grid-column: 2; color: var(--text-2); font-size: var(--fs-sm); line-height: 1.5; }
.feed__tag { font-family: var(--font-mono); font-size: 11px; color: var(--text-2); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 0 6px; margin-right: var(--s-2); }
.feed__item.is-key .feed__tag { color: var(--accent); border-color: rgba(255,107,61,0.4); }
@keyframes feedIn { from { opacity: 0; transform: translateY(-8px); } }
.console__note { margin-top: var(--s-4); font-size: var(--fs-xs); color: var(--text-3); }

@media (max-width: 960px) {
  .console__grid { grid-template-columns: 1fr; }
  .console__main { border-right: 0; border-bottom: 1px solid var(--line); }
  .feed { height: 280px; }
}
@media (max-width: 560px) {
  .channels .hide-sm { display: none; }
  .console__main, .console__side { padding: var(--s-4); }
}

/* ---------- Capabilities row (under console) ---------- */
.caps { margin-top: var(--s-8); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-7); }
.caps h3 { font-size: var(--fs-md); font-weight: 500; letter-spacing: -0.01em; }
.caps p { margin-top: var(--s-2); color: var(--text-2); font-size: var(--fs-sm); }
.caps .section-index { display: block; margin-bottom: var(--s-4); padding-bottom: var(--s-4); border-bottom: 1px solid var(--line); }
@media (max-width: 800px) { .caps { grid-template-columns: 1fr; gap: var(--s-6); } }

/* ---------- Creative at scale ---------- */
.creative { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr); gap: var(--s-7); align-items: stretch; }
.master {
  position: relative; border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface-1); display: flex; flex-direction: column; min-height: 460px;
}
.master__label { display: flex; justify-content: space-between; padding: var(--s-4) var(--s-5); font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-3); border-bottom: 1px solid var(--line); }
.master__art {
  position: relative; flex: 1; overflow: hidden;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 20px 20px; background-position: center;
}
.master__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.master__meta { padding: var(--s-4) var(--s-5); border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); font-size: var(--fs-xs); }
.master__meta span { display: block; color: var(--text-3); font-family: var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; }
.master__meta strong { font-weight: 500; font-size: var(--fs-sm); }

.variants { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.variant { background: var(--bg); padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-3); min-height: 150px; position: relative; transition: background-color 400ms var(--ease); }
.variant__top { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.variant__frame { display: flex; align-items: flex-end; height: 44px; }
.variant__frame i { display: block; border: 1px solid var(--line-control); border-radius: 3px; background: rgba(255,255,255,0.03); transition: width 500ms var(--ease), height 500ms var(--ease); }
.variant__hook { font-size: var(--fs-sm); line-height: 1.35; letter-spacing: -0.005em; transition: opacity 300ms var(--ease), transform 300ms var(--ease); }
.variant__aud { margin-top: auto; font-size: var(--fs-xs); color: var(--text-2); transition: opacity 300ms var(--ease); }
.variant.is-swapping .variant__hook, .variant.is-swapping .variant__aud { opacity: 0; transform: translateY(4px); }
.variant.is-flash { background: var(--surface-2); }
.variant.is-flash .variant__top b { color: var(--accent); }
.variant__top b { font-weight: 400; transition: color 400ms var(--ease); }

.creative__counter { margin-top: var(--s-5); display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; font-size: var(--fs-sm); color: var(--text-2); }
.creative__counter strong { font-size: var(--fs-2xl); font-weight: 500; letter-spacing: -0.03em; color: var(--text); font-variant-numeric: tabular-nums; }

@media (max-width: 1000px) {
  .creative { grid-template-columns: 1fr; }
  .master { min-height: 340px; }
}
@media (max-width: 640px) { .variants { grid-template-columns: repeat(2, minmax(0, 1fr)); } .variant:nth-child(n+7) { display: none; } }

/* ---------- Process ---------- */
.process { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6); padding-top: var(--s-6); }
.process__rail { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line-2); }
.process__rail i { position: absolute; inset: 0; background: var(--text); transform-origin: left; transform: scaleX(var(--p, 0)); }
.step { position: relative; }
.step::before {
  content: ""; position: absolute; top: calc(-1 * var(--s-6) - 4px); left: 0; width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line-control); transition: background-color 300ms var(--ease), border-color 300ms var(--ease);
}
.step.is-on::before { background: var(--accent); border-color: var(--accent); }
.step .section-index { display: block; margin-bottom: var(--s-4); }
.step h3 { font-size: var(--fs-lg); font-weight: 500; letter-spacing: -0.02em; }
.step p { margin-top: var(--s-3); color: var(--text-2); font-size: var(--fs-sm); }
.step dl { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line); font-size: var(--fs-xs); }
.step dt { font-family: var(--font-mono); color: var(--text-3); letter-spacing: 0.04em; text-transform: uppercase; }
.step dd { margin-top: var(--s-1); color: var(--text-2); }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr; gap: var(--s-7); padding-top: 0; padding-left: var(--s-6); }
  .process__rail { top: 0; bottom: 0; left: 4px; right: auto; width: 1px; height: auto; }
  .process__rail i { transform-origin: top; transform: scaleY(var(--p, 0)); }
  .step::before { top: 6px; left: calc(-1 * var(--s-6)); }
}

/* ---------- Agents grid ---------- */
.agents { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.agent {
  position: relative; padding: var(--s-6); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  min-height: 260px; display: flex; flex-direction: column; overflow: hidden; isolation: isolate;
}
.agent::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.05), transparent 70%);
  transition: opacity 300ms var(--ease);
}
@media (hover: hover) { .agent:hover::before { opacity: 1; } }
.agent__head { display: flex; justify-content: space-between; align-items: center; }
.agent__status { display: inline-flex; align-items: center; gap: var(--s-2); font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.agent__status i { width: 5px; height: 5px; border-radius: 50%; background: var(--ok); }
.agent h3 { margin-top: auto; padding-top: var(--s-7); font-size: var(--fs-lg); font-weight: 500; letter-spacing: -0.02em; }
.agent p { margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--text-2); }
.agent__sig { margin-top: var(--s-4); display: flex; flex-wrap: wrap; gap: var(--s-2); }
.agent__sig span { font-family: var(--font-mono); font-size: 11px; color: var(--text-2); padding: 2px 8px; border: 1px solid var(--line-2); border-radius: var(--r-sm); }
@media (max-width: 960px) { .agents { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .agents { grid-template-columns: 1fr; } .agent { min-height: 0; } }

/* ---------- Principles ---------- */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-7); }
.principle { padding-top: var(--s-5); border-top: 1px solid var(--line-2); }
.principle h3 { font-size: var(--fs-md); font-weight: 500; }
.principle p { margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--text-2); }
@media (max-width: 800px) { .principles { grid-template-columns: 1fr; gap: var(--s-6); } }

.statement { padding: var(--s-10) 0; border-top: 1px solid var(--line); }
.statement p {
  font-size: var(--fs-3xl); line-height: 1.1; letter-spacing: -0.035em; font-weight: 500; max-width: 1080px;
}
.statement .w { color: var(--text-3); transition: color 400ms var(--ease); }
.statement .w.is-lit { color: var(--text); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: var(--s-8); align-items: stretch; }
.contact h2 { font-size: var(--fs-3xl); line-height: 1.02; letter-spacing: -0.04em; font-weight: 500; }
.contact__lead { margin-top: var(--s-5); color: var(--text-2); font-size: var(--fs-md); max-width: 460px; }
.contact__list { margin-top: var(--s-7); border-top: 1px solid var(--line); }
.contact__row { display: grid; grid-template-columns: 120px 1fr; gap: var(--s-4); padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.contact__row dt { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-3); letter-spacing: 0.06em; text-transform: uppercase; padding-top: 3px; }
.contact__row dd { font-size: var(--fs-base); }
.contact__row address { font-style: normal; }
.contact__actions { margin-top: var(--s-6); display: flex; flex-wrap: wrap; gap: var(--s-3); }
.copy-btn { position: relative; }
.copy-btn[data-copied="true"] .copy-label::after { content: " — copied"; color: var(--text-2); }

.map {
  position: relative; border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden;
  min-height: 460px; background: var(--surface-1);
}
.map iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  filter: grayscale(1) invert(0.92) contrast(0.88) brightness(0.95);
  transition: filter 400ms var(--ease);
}
@media (hover: hover) { .map:hover iframe { filter: grayscale(0.4) invert(0.92) contrast(0.9) brightness(0.98); } }
.map__chip {
  position: absolute; left: var(--s-4); bottom: var(--s-4); z-index: 2;
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-2) var(--s-3) var(--s-2) var(--s-2);
  background: rgba(10,11,13,0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-2); border-radius: var(--r-md); font-size: var(--fs-xs);
  pointer-events: none;
}
.map__chip i { width: 28px; height: 28px; border-radius: var(--r-sm); background: var(--accent); display: grid; place-items: center; }
.map__chip i::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-ink); }
.map__chip strong { display: block; font-weight: 500; font-size: var(--fs-sm); }
.map__chip span { color: var(--text-2); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } .map { min-height: 360px; } }
@media (max-width: 480px) { .contact__row { grid-template-columns: 1fr; gap: var(--s-1); } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: var(--s-8) 0 var(--s-6); }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: var(--s-7); }
.footer__about p { margin-top: var(--s-4); font-size: var(--fs-sm); color: var(--text-2); max-width: 340px; }
.footer h4 { font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 400; color: var(--text-3); letter-spacing: 0.06em; text-transform: uppercase; }
.footer ul { margin-top: var(--s-4); display: grid; gap: var(--s-1); }
.footer li a, .footer li span { display: inline-flex; align-items: center; min-height: 32px; font-size: var(--fs-sm); color: var(--text-2); transition: color var(--dur) var(--ease); }
@media (hover: hover) { .footer li a:hover { color: var(--text); } }
.footer__word {
  margin-top: var(--s-9); font-size: clamp(3rem, 1rem + 11vw, 11rem); line-height: 0.8; letter-spacing: -0.06em; font-weight: 500;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.14); white-space: nowrap; user-select: none;
}
.footer__bottom { margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; font-size: var(--fs-xs); color: var(--text-3); }
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__top { grid-template-columns: 1fr; } }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-reveal) var(--ease), transform var(--dur-reveal) var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Legal pages ---------- */
.legal { padding: calc(var(--nav-h) + var(--s-9)) 0 var(--s-9); }
.legal__head { max-width: 820px; padding-bottom: var(--s-7); border-bottom: 1px solid var(--line); }
.legal__head h1 { margin-top: var(--s-5); font-size: var(--fs-3xl); line-height: 1.02; letter-spacing: -0.04em; font-weight: 500; }
.legal__head p { margin-top: var(--s-5); color: var(--text-2); font-size: var(--fs-md); max-width: 640px; }
.legal__meta { margin-top: var(--s-6); display: flex; flex-wrap: wrap; gap: var(--s-6); font-size: var(--fs-sm); }
.legal__meta span { display: block; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-3); letter-spacing: 0.06em; text-transform: uppercase; }
.legal__body { margin-top: var(--s-8); display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--s-8); }
.toc { position: sticky; top: calc(var(--nav-h) + var(--s-6)); align-self: start; }
.toc h2 { font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 400; color: var(--text-3); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: var(--s-3); }
.toc a {
  display: block; padding: 6px 0 6px var(--s-4); font-size: var(--fs-sm); color: var(--text-3);
  border-left: 1px solid var(--line-2); transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.toc a.is-active { color: var(--text); border-left-color: var(--accent); }
@media (hover: hover) { .toc a:hover { color: var(--text); } }
.prose { max-width: 720px; font-size: var(--fs-base); color: var(--text-2); line-height: 1.75; }
.prose section + section { margin-top: var(--s-8); padding-top: var(--s-7); border-top: 1px solid var(--line); }
.prose h2 { display: flex; gap: var(--s-4); align-items: baseline; font-size: var(--fs-xl); color: var(--text); font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
.prose h2 .mono { font-size: var(--fs-xs); color: var(--text-3); font-weight: 400; }
.prose h3 { margin-top: var(--s-6); font-size: var(--fs-md); color: var(--text); font-weight: 500; }
.prose p, .prose ul { margin-top: var(--s-4); }
.prose ul { display: grid; gap: var(--s-2); }
.prose li { position: relative; padding-left: var(--s-5); }
.prose li::before { content: ""; position: absolute; left: 2px; top: 0.8em; width: 8px; height: 1px; background: var(--text-3); }
.prose strong { color: var(--text); font-weight: 500; }
.prose a { color: var(--text); border-bottom: 1px solid var(--line-control); transition: border-color var(--dur) var(--ease); }
@media (hover: hover) { .prose a:hover { border-bottom-color: var(--text); } }
.prose .caps-text { text-transform: none; font-size: var(--fs-sm); }
@media (max-width: 900px) { .legal__body { grid-template-columns: 1fr; } .toc { display: none; } }

/* ---------- 404 ---------- */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: var(--s-9) var(--gutter); }
.nf h1 { font-size: clamp(6rem, 3rem + 14vw, 14rem); line-height: 0.85; letter-spacing: -0.06em; font-weight: 500; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.3); }
.nf p { margin-top: var(--s-5); color: var(--text-2); }
.nf .btn { margin-top: var(--s-6); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .hero .split-line > span { transform: none; }
  .ticker__track { animation: none; }
  .js .chart .series { stroke-dashoffset: 0; }
}
