/* Layout: one long scroll; full-bleed pinned "scenes" (Meet, Build, Anatomy) between free-flowing sections,
   like a machine waking up section by section. Single dark identity, taken from the Avaani concept sheet. */
:root {
  --void: #07020a;       /* page ground, black with a magenta bias */
  --ink: #12060f;        /* raised panels */
  --pink: #ff1a8c;       /* neon pink: light lines, logo, action */
  --pink-soft: rgba(255, 26, 140, .18);
  --bone: #f4eef0;       /* off-white text and shell */
  --rose: #e8b8a7;       /* rose gold accents */
  --muted: #a8949e;      /* secondary text */
  --line: rgba(244, 238, 240, .12);

  --f-display: "Michroma", "Eurostile", "Arial Black", system-ui, sans-serif;
  --f-body: "Sora", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --step--1: .78rem;
  --step-0: 1rem;
  --step-1: 1.2rem;
  --step-2: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem);
  --step-3: clamp(2rem, 1.2rem + 3.4vw, 3.8rem);
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--void); }
body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font: 300 var(--step-0)/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
em { font-style: normal; color: var(--pink); }
.mono { font-family: var(--f-mono); font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
::selection { background: var(--pink); color: var(--void); }

.kicker { color: var(--pink); margin: 0 0 1rem; }
.h2 {
  font: 400 var(--step-3)/1.08 var(--f-display);
  letter-spacing: -.01em;
  margin: 0;
  text-wrap: balance;
}
.lede { color: var(--muted); font-size: var(--step-1); max-width: 34em; }

/* ---------- reveal on scroll (only hides when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); filter: blur(6px);
  transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s), filter .9s var(--ease) var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- boot screen ---------- */
.boot { position: fixed; inset: 0; z-index: 100; background: var(--void); display: grid; place-items: center;
  transition: opacity .7s var(--ease), visibility .7s; }
.boot.done { opacity: 0; visibility: hidden; }
.no-js .boot { display: none; }
.boot-inner { width: min(360px, 80vw); display: grid; gap: 18px; }
.boot-mark { width: 72px; height: 53px; color: var(--pink); filter: drop-shadow(0 0 14px var(--pink)); animation: pulse 1.6s ease-in-out infinite; }
.boot-log { font: 400 .72rem/1.8 var(--f-mono); color: var(--muted); min-height: 7.2em; letter-spacing: .06em; }
.boot-log b { color: var(--bone); font-weight: 400; }
.boot-bar { height: 2px; background: var(--line); overflow: hidden; }
.boot-bar span { display: block; height: 100%; width: 0; background: var(--pink); box-shadow: 0 0 12px var(--pink); }
.boot-pct { color: var(--bone); text-align: right; }
@keyframes pulse { 50% { opacity: .55; } }

/* ---------- cursor glow ---------- */
.cursor-glow { position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 26, 140, .13), transparent 62%); pointer-events: none; z-index: 1;
  transform: translate3d(-999px, -999px, 0); mix-blend-mode: screen; }
@media (hover: none) { .cursor-glow { display: none; } }

/* ---------- top bar ---------- */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) var(--gutter) 18px;
  background: linear-gradient(var(--void), rgba(7, 2, 10, 0)); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-mark { width: 38px; height: 28px; color: var(--pink); filter: drop-shadow(0 0 8px rgba(255, 26, 140, .7)); }
.brand-word { width: 92px; height: 13px; color: var(--pink); }
.topnav { display: flex; gap: clamp(12px, 2.4vw, 32px); align-items: center; }
.topnav a { font: 400 var(--step--1) var(--f-mono); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--muted); transition: color .3s; }
.topnav a:hover, .topnav a.active { color: var(--bone); }
.topnav .topnav-cta { color: var(--bone); border: 1px solid var(--pink); padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 12px var(--pink-soft); }
@media (max-width: 720px) { .topnav a:not(.topnav-cta) { display: none; } .brand-word { display: none; } }

/* ---------- progress rail ---------- */
.rail { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; gap: 14px; }
.rail-track { width: 1px; background: var(--line); position: relative; }
.rail-fill { position: absolute; inset: 0 0 auto 0; height: 0; background: var(--pink); box-shadow: 0 0 8px var(--pink); }
.rail-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.rail-list a { display: block; font: 400 .62rem var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  text-decoration: none; opacity: .45; transition: opacity .3s, color .3s; }
.rail-list a.active { opacity: 1; color: var(--pink); }
@media (max-width: 1499px) { .rail { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 999px;
  font: 400 var(--step--1) var(--f-mono); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s, background .3s, color .3s; border: 1px solid var(--pink); }
.btn-solid { background: var(--pink); color: var(--void); box-shadow: 0 0 28px rgba(255, 26, 140, .45); }
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 0 44px rgba(255, 26, 140, .7); }
.btn-ghost { background: transparent; color: var(--bone); }
.btn-ghost:hover { background: var(--pink-soft); }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100svh; padding: 110px var(--gutter) 70px; display: grid; align-items: center; overflow: hidden; }
.neural { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .85; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(transparent, var(--void)); z-index: 1; pointer-events: none; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 64px); align-items: center; max-width: 1360px; width: 100%; margin: 0 auto; }
.hero-copy { min-width: 0; }
.eyebrow { color: var(--rose); margin: 0 0 28px; }
.eyebrow i { color: var(--pink); font-style: normal; padding: 0 .5em; }
.hero-title { margin: 0; line-height: 0; }
.hero-word { width: min(100%, 620px); aspect-ratio: 124 / 18; height: auto; color: var(--bone);
  filter: drop-shadow(0 0 18px rgba(255, 26, 140, .55)); overflow: visible; }
.hero-sub { font-size: var(--step-2); line-height: 1.35; font-weight: 300; max-width: 22em; margin: 36px 0 32px; text-wrap: balance; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-readout { display: grid; grid-template-columns: repeat(4, auto); gap: 8px 32px; margin: 48px 0 0; padding-top: 22px; border-top: 1px solid var(--line); justify-content: start; }
.hero-readout dt { color: var(--muted); font-size: .64rem; }
.hero-readout dd { margin: 4px 0 0; color: var(--bone); font-variant-numeric: tabular-nums; }
.live { display: flex; align-items: center; gap: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 10px var(--pink); animation: pulse 1.4s infinite; display: inline-block; }
@media (max-width: 560px) { .hero-readout { grid-template-columns: repeat(2, auto); } }

.hero-figure { position: relative; margin: 0; justify-self: center; width: min(100%, 470px); }
.hero-figure img { position: relative; z-index: 1; width: 100%; height: auto;
  -webkit-mask-image: radial-gradient(ellipse 50% 52% at 50% 46%, #000 72%, transparent 100%); mask-image: radial-gradient(ellipse 50% 52% at 50% 46%, #000 72%, transparent 100%);
  transition: transform .2s linear; }
.halo { position: absolute; inset: 8% -20% 10%; background: radial-gradient(closest-side, rgba(255, 26, 140, .38), transparent); filter: blur(30px); animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .55; transform: scale(.94); } }
.scanline { position: absolute; z-index: 2; left: 0; right: 0; height: 2px; top: 0; background: linear-gradient(90deg, transparent, var(--pink), transparent);
  box-shadow: 0 0 18px var(--pink); opacity: .7; animation: scan 4.5s var(--ease) infinite; }
@keyframes scan { 0% { top: 4%; opacity: 0; } 10% { opacity: .8; } 85% { opacity: .8; } 100% { top: 84%; opacity: 0; } }

.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; text-decoration: none; color: var(--muted); font-size: .62rem; }
.scroll-cue i { width: 1px; height: 38px; background: linear-gradient(var(--pink), transparent); animation: drip 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { width: min(78%, 360px); order: -1; margin-bottom: -40px; }
  .hero { padding-top: 90px; }
}

/* ---------- MANIFESTO ---------- */
.manifesto { padding: clamp(100px, 18vh, 200px) var(--gutter); max-width: 1200px; margin: 0 auto; }
.manifesto-text { font: 400 clamp(1.6rem, 1rem + 2.8vw, 3.3rem)/1.3 var(--f-body); letter-spacing: -.01em; margin: 0; text-wrap: pretty; }
.manifesto-text .w { color: rgba(244, 238, 240, .16); transition: color .4s, text-shadow .4s; }
.manifesto-text .w.lit { color: var(--bone); }
.manifesto-text .w.hot { color: var(--pink); text-shadow: 0 0 18px rgba(255, 26, 140, .5); }

/* ---------- pinned scenes ---------- */
.pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); padding: 96px var(--gutter) 40px; }

/* MEET */
.meet { height: 340vh; position: relative; }
.meet .pin { grid-template-rows: auto 1fr; gap: 16px; }
.meet-head, .build-head, .anatomy-head { max-width: 1360px; width: 100%; margin: 0 auto; }
.meet-stage { position: relative; display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: clamp(20px, 5vw, 80px); align-items: center; max-width: 1360px; width: 100%; margin: 0 auto; min-height: 0; }
.meet-figs { position: relative; height: 100%; min-height: 0; display: grid; place-items: center; }
.view { position: absolute; height: 100%; max-height: 72svh; width: auto; object-fit: contain; opacity: 0; transform: scale(.94) rotateY(18deg); filter: blur(8px);
  transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease);
  -webkit-mask-image: radial-gradient(ellipse 50% 54% at 50% 48%, #000 70%, transparent 100%); mask-image: radial-gradient(ellipse 50% 54% at 50% 48%, #000 70%, transparent 100%); }
.view.is-on { opacity: 1; transform: none; filter: drop-shadow(0 0 40px rgba(255, 26, 140, .25)); }
.floor { position: absolute; bottom: 4%; width: 60%; height: 40px; background: radial-gradient(closest-side, rgba(255, 26, 140, .55), transparent); filter: blur(10px); }
.meet-notes { list-style: none; margin: 0; padding: 0; display: grid; }
.note { grid-area: 1 / 1; opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); pointer-events: none; }
.note.is-on { opacity: 1; transform: none; pointer-events: auto; }
.note-tag { color: var(--pink); }
.note h3 { font: 400 var(--step-2)/1.2 var(--f-display); margin: 14px 0; }
.note p { color: var(--muted); margin: 0; }
.meet-dial { position: absolute; left: 0; bottom: 0; display: flex; gap: 18px; }
.dial-tick { color: var(--muted); opacity: .5; transition: .4s; padding-top: 10px; border-top: 1px solid var(--line); }
.dial-tick.is-on { opacity: 1; color: var(--bone); border-color: var(--pink); }
@media (max-width: 760px) {
  .meet-stage { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .view { max-height: 46svh; }
  .meet-dial { display: none; }
}

/* MIND */
.mind { padding: clamp(100px, 16vh, 180px) var(--gutter); position: relative; }
.mind::before { content: ""; position: absolute; inset: 10% 0 auto; height: 70%; background: radial-gradient(60% 50% at 70% 50%, rgba(255, 26, 140, .1), transparent); pointer-events: none; }
.mind-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); max-width: 1360px; margin: 0 auto; align-items: start; position: relative; }
.mind-copy { min-width: 0; }
.mind .lede { margin: 28px 0 40px; }
.caps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.caps li { border-top: 1px solid var(--line); padding-top: 16px; }
.cap-k { color: var(--pink); }
.caps p { margin: 8px 0 0; color: var(--muted); font-size: .95rem; }
.console { position: sticky; top: 110px; min-width: 0; border: 1px solid rgba(255, 26, 140, .35); border-radius: 14px; background: linear-gradient(160deg, var(--ink), var(--void));
  box-shadow: 0 0 60px rgba(255, 26, 140, .12), inset 0 0 30px rgba(255, 26, 140, .05); overflow: hidden; }
.console-bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .66rem; }
.console-tag { margin-left: auto; color: var(--rose); border: 1px solid rgba(232, 184, 167, .4); border-radius: 999px; padding: 2px 8px; }
.console-body { margin: 0; padding: 20px 18px 24px; min-height: 380px; white-space: pre-wrap; text-transform: none; letter-spacing: .02em; font-size: .8rem; line-height: 1.85; color: var(--bone); overflow-x: auto; }
.console-body .c-k { color: var(--pink); }
.console-body .c-m { color: var(--muted); }
.console-body .c-r { color: var(--rose); }
.console-body .caret { display: inline-block; width: .55em; height: 1em; background: var(--pink); vertical-align: -2px; animation: pulse .9s steps(1) infinite; }
@media (max-width: 900px) { .mind-grid { grid-template-columns: 1fr; } .console { position: relative; top: 0; } }
@media (max-width: 520px) { .caps { grid-template-columns: 1fr; } }

/* BUILD */
.build { height: 300vh; position: relative; }
.build .pin { grid-template-rows: auto 1fr auto; gap: 18px; }
.blueprint { position: relative; justify-self: center; align-self: center; height: 100%; max-height: 62svh; aspect-ratio: 1536 / 1024; max-width: 100%;
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #000;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 32px 32px; }
.bp-base { position: absolute; left: 0; top: 0; height: 100%; width: auto; opacity: .35; mix-blend-mode: screen; }
.bp-full { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: screen; clip-path: inset(0 calc(100% - var(--p, 0) * 100%) 0 0); }
.bp-line { position: absolute; top: 0; bottom: 0; left: calc(var(--p, 0) * 100%); width: 2px; background: var(--pink); box-shadow: 0 0 22px 2px var(--pink); }
.bp-line span { position: absolute; top: 10px; left: 8px; font-size: .62rem; color: var(--pink); background: rgba(7, 2, 10, .8); padding: 2px 6px; }
.specs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin: 0 auto; max-width: 1360px; width: 100%; }
.spec { border-top: 1px solid var(--line); padding-top: 10px; min-width: 0; }
.spec dt { color: var(--muted); font-size: .62rem; }
.spec dd { margin: 4px 0 0; display: flex; align-items: baseline; gap: 6px; }
.spec b { font: 400 clamp(1.3rem, .9rem + 1.6vw, 2.3rem) var(--f-display); font-variant-numeric: tabular-nums; color: var(--bone); }
.spec small { font: 400 .7rem var(--f-mono); color: var(--pink); letter-spacing: .1em; }
@media (max-width: 760px) { .specs { grid-template-columns: repeat(3, 1fr); } .spec:nth-child(n+4) { display: none; } .blueprint { height: auto; width: 100%; } }

.build-more { padding: clamp(60px, 10vh, 120px) var(--gutter); }
.bm-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(24px, 5vw, 72px); max-width: 1360px; margin: 0 auto; align-items: center; }
.actuator { margin: 0; min-width: 0; }
.actuator img { width: 100%; height: auto; mix-blend-mode: screen; }
.actuator figcaption { color: var(--muted); margin-top: 14px; font-size: .64rem; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; }
.facts li { display: grid; grid-template-columns: 8.5em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.facts li span { color: var(--pink); font-size: .64rem; padding-top: 4px; }
@media (max-width: 860px) { .bm-grid { grid-template-columns: 1fr; } }

/* ANATOMY */
.anatomy { height: 420vh; position: relative; }
.anatomy .pin { grid-template-rows: auto 1fr auto; gap: 18px; }
.strip-wrap { min-height: 0; min-width: 0; display: flex; align-items: center; }
.strip { list-style: none; margin: 0; padding: 0 var(--gutter); display: flex; gap: clamp(16px, 2.5vw, 32px); will-change: transform; }
.part { flex: 0 0 auto; width: clamp(280px, 34vw, 460px); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.part-img { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #000; aspect-ratio: 1; display: grid; place-items: center; }
.part-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: screen; }
.part-img.photo img { object-fit: cover; mix-blend-mode: normal; }
.part-img:only-of-type { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
.part h3 { grid-column: 1 / -1; font: 400 var(--step-2) var(--f-display); margin: 12px 0 0; }
.part-list { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .66rem; line-height: 1.9; letter-spacing: .1em; }
.strip-progress { color: var(--muted); max-width: 1360px; width: 100%; margin: 0 auto; }
.strip-progress span { color: var(--pink); }

/* PALETTE */
.palette { padding: clamp(100px, 16vh, 180px) var(--gutter); max-width: 1360px; margin: 0 auto; }
.swatches { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sw { display: grid; gap: 6px; }
.sw .chip { aspect-ratio: 1; border-radius: 50%; background: var(--c); width: min(100%, 160px); margin-bottom: 12px;
  box-shadow: 0 0 0 1px var(--line), 0 0 40px color-mix(in srgb, var(--c) 45%, transparent); }
.sw b { font: 400 var(--step-1) var(--f-display); }
.sw .mono { color: var(--muted); font-size: .64rem; }
@media (max-width: 700px) { .swatches { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; } }

/* JOIN */
.join { position: relative; text-align: center; padding: clamp(120px, 20vh, 220px) var(--gutter); display: grid; justify-items: center; overflow: hidden; }
.join-glow { position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; max-width: 160vw; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(255, 26, 140, .22), transparent); pointer-events: none; }
.join-mark { width: 84px; height: 62px; color: var(--pink); filter: drop-shadow(0 0 18px var(--pink)); position: relative; }
.join-title { font: 400 var(--step-3)/1.15 var(--f-display); margin: 36px 0 18px; text-wrap: balance; position: relative; }
.join .lede { position: relative; margin: 0 0 36px; }
.join-form { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: min(100%, 560px); }
.join-form input { flex: 1 1 240px; min-width: 0; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: rgba(244, 238, 240, .04);
  color: var(--bone); font: 300 1rem var(--f-body); }
.join-form input:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-soft); }
.join-msg { flex-basis: 100%; min-height: 1.6em; margin: 6px 0 0; color: var(--rose); font-size: .66rem; }

/* FOOTER */
.footer { border-top: 1px solid var(--line); padding: 36px var(--gutter) calc(36px + env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: space-between; color: var(--muted); }
.footer p { margin: 0; font-size: .62rem; }
.footer-brand { display: flex; align-items: center; gap: 14px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
.footer-link { color: var(--bone); text-decoration: none; border-bottom: 1px solid var(--pink); transition: color .3s; }
.footer-link:hover { color: var(--pink); }
