/* yao — marketing site, Hero screen only.
   Ported from the s0 section of docs/design/site/yao Site.dc.html (Claude
   Design, violet preset). Every colour, size and easing value here is copied
   from that canvas. Rules that only served the five unbuilt screens are gone;
   the canvas keeps them if they are ever needed. */

:root {
  /* From the canvas's #yao-scroller style attribute. The four it also defines
     — --panel, --canvas, --raised, --line — served the workbench and card
     chrome on the other screens, so they are not carried over. */
  --brand: oklch(0.66 0.19 305);
  --brand-text: oklch(0.80 0.13 305);
  --fg2: oklch(0.760 0.008 285);
  --fg3: oklch(0.600 0.010 285);

  /* Named for reuse; the canvas repeats these literals throughout. */
  --bg: oklch(0.115 0.005 285);
  --fg: oklch(0.960 0.003 285);
  --on-brand: oklch(0.99 0 0);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --ease: cubic-bezier(0.2, 0, 0, 1);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-text); text-decoration: none; }
a:hover { color: oklch(0.88 0.10 305); }

@keyframes drift    { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-8px) } }
/* Packets running down the lanes of the mark and out through the descender. */
@keyframes lane     { from { stroke-dashoffset: 70 } to { stroke-dashoffset: 0 } }
@keyframes stemflow { from { stroke-dashoffset: 48 } to { stroke-dashoffset: 0 } }

/* ─── Scroll root ────────────────────────────────────────────────────────
   Kept from the canvas: site.js observes it as the IntersectionObserver root
   and reads its scrollTop for parallax. It is position:relative with NO
   transform — adding one would make the fixed header scroll with the page.
   The canvas's scroll-snap is dropped: with one screen there is nothing to
   snap between. */
#yao-scroller {
  height: 100vh;
  overflow-y: auto;
  background: var(--bg);
  position: relative;
}

/* ─── Header ────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px; padding: 20px 30px;
  pointer-events: none; backdrop-filter: blur(6px);
  mask-image: linear-gradient(180deg, #000 55%, transparent);
}
.brand-word { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -0.03em; }
.header-links {
  margin-left: auto; display: flex; gap: 20px;
  font-size: 12.5px; letter-spacing: 0.02em; color: var(--fg2); pointer-events: auto;
}
.header-links a { color: var(--fg2); }

/* ─── The mark ──────────────────────────────────────────────────────────── */
.mark { flex: none; }
.mark--hero {
  width: clamp(72px, 9vh, 116px); height: clamp(72px, 9vh, 116px);
  position: relative; z-index: 2; animation: drift 8s ease-in-out infinite; overflow: visible;
}
.packets { filter: drop-shadow(0 0 6px oklch(0.72 0.16 305 / 0.75)); }
.lane-a { animation: lane 2.6s linear infinite; }
.lane-b { animation: lane 2.6s linear infinite; animation-delay: -1.3s; }
.stem-a { animation: stemflow 1.3s linear infinite; }
.sparks { opacity: 0.55; }
.lane-c { animation: lane 5.2s linear infinite; }
.lane-d { animation: lane 5.2s linear infinite; animation-delay: -2.6s; }
.stem-b { animation: stemflow 2.6s linear infinite; }

/* ─── Section ───────────────────────────────────────────────────────────── */
.section {
  min-height: 100vh; box-sizing: border-box;
  position: relative; overflow: hidden;
}
.section--stack { display: flex; flex-direction: column; justify-content: center; align-items: center; }
.s-hero {
  gap: clamp(18px, 2.6vh, 34px);
  padding: clamp(84px, 11vh, 120px) clamp(34px, 9vw, 140px) clamp(56px, 7vh, 96px);
}

/* Parallax plate. Positive data-par lags behind the scroll. */
.plate { position: absolute; left: 0; right: 0; z-index: 0; will-change: transform; }
.plate--hero { top: -16%; height: 132%; filter: saturate(0.78) contrast(1.04); }
.plate video { width: 100%; height: 100%; object-fit: cover; display: block; }
.plate canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; pointer-events: none;
}

.scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.scrim--hero {
  transition: opacity 900ms var(--ease);
  background: linear-gradient(180deg,
    oklch(0.115 0.005 285 / 0.82) 0%,
    oklch(0.115 0.005 285 / 0.72) 34%,
    oklch(0.115 0.005 285 / 0.90) 76%,
    oklch(0.115 0.005 285) 100%);
}
.scrim--glow { background: radial-gradient(60% 45% at 50% 42%, oklch(0.66 0.19 305 / 0.18), transparent 70%); }

/* ─── Type ──────────────────────────────────────────────────────────────── */
.s-head {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  position: relative; z-index: 2;
}
.s-head--hero { gap: 18px; max-width: 900px; }

.eyebrow {
  margin: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--brand-text);
}
.hero-title {
  margin: 0; font-family: var(--font-display);
  font-size: clamp(38px, 5.4vw, 80px); line-height: 1.0; font-weight: 500;
  letter-spacing: -0.04em; text-align: center; text-wrap: balance;
}
.lede { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--fg2); text-wrap: pretty; }
.hero-lede { max-width: 600px; font-size: 16.5px; text-align: center; }

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.cta-row { display: flex; align-items: center; gap: 12px; position: relative; z-index: 2; }

.btn {
  display: inline-flex; align-items: center; border-radius: 999px;
  height: 46px; font-size: 14px; font-weight: 600;
}
.btn--primary {
  padding: 0 24px; background: var(--brand); color: var(--on-brand);
  box-shadow: 0 8px 30px oklch(0.66 0.19 305 / 0.35);
}
.btn--primary:hover { color: var(--on-brand); }
.btn--ghost {
  padding: 0 22px; border: 1px solid rgb(255 255 255 / 0.18);
  background: rgb(255 255 255 / 0.04); backdrop-filter: blur(8px);
  color: var(--fg); font-weight: 500;
}
.btn--ghost:hover { color: var(--fg); }

.meta-mono {
  display: flex; align-items: center; gap: 10px; font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: 0.02em; color: var(--fg3);
  position: relative; z-index: 2;
}
.meta-sep { color: rgb(255 255 255 / 0.18); }

/* ─── Reduced motion ────────────────────────────────────────────────────────
   Not in the design — see the departure note in docs/design/site/README.md.
   site.js already skips parallax and the reveal transitions; this stills the
   ambient CSS loops so nothing moves on its own. */
@media (prefers-reduced-motion: reduce) {
  .mark--hero, .packets path, .sparks path { animation: none !important; }
}
