/* =========================================================
   SALUTE FACE ($saluteface) — The Agent That Published Itself
   ========================================================= */

:root {
  --blue: #0B5CFF;
  --blue-bright: #2F7BFF;
  --blue-deep: #0836C4;
  --blue-night: #071A55;
  --night-2: #0A2370;
  --yellow: #FFD83D;
  --yellow-deep: #FFC21A;
  --orange: #FF9C20;
  --white: #FFFFFF;
  --ink: #101C43;
  --ink-soft: #4A5682;
  --surface: #F3F6FF;
  --line: #DCE4FF;
  --cyan: #65E5FF;

  --font-display: "Segoe UI Black", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;

  --nav-h: 76px;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --sheet-r: clamp(28px, 4vw, 56px);
  --radius: 22px;

  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --shadow-blue: 0 24px 60px -24px rgba(11, 92, 255, .45);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) - 8px); -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--blue-night);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

.mono { font-family: var(--font-mono); letter-spacing: 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 10px 16px; border-radius: 10px;
  background: var(--yellow); color: var(--ink); font-weight: 700;
  transform: translateY(-160%); transition: transform .2s;
}
.skip-link:focus { transform: none; }

/* ---------- Type helpers ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: .92;
  letter-spacing: -.035em;
  text-transform: uppercase;
}
.text-yellow { color: var(--yellow); }
.text-blue { color: var(--blue); }
.outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--blue);
}

.kicker {
  display: inline-flex; align-items: center; gap: .7em;
  margin-bottom: 1.25rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue);
}
.kicker .mono {
  padding: .3em .6em; border-radius: 6px;
  background: var(--blue); color: var(--white);
  font-size: .72rem; letter-spacing: .04em;
}
.kicker--light { color: var(--cyan); }
.kicker--light .mono { background: var(--yellow); color: var(--ink); }
.kicker--ink { color: var(--ink); }
.kicker--ink .mono { background: var(--ink); color: var(--yellow); }

.section-head { margin-bottom: clamp(48px, 7vw, 88px); }
.section-head--center { text-align: center; }
.section-note { margin-top: 1.25rem; font-size: .85rem; color: rgba(255, 255, 255, .55); }

.pill {
  display: inline-flex; align-items: center; gap: .45em;
  padding: .28em .75em; border-radius: 999px;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap;
}
.pill--pre { background: rgba(255, 216, 61, .16); color: var(--yellow); border: 1px solid rgba(255, 216, 61, .45); }
.pill--pre::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--yellow); --btn-fg: var(--ink);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .8em 1.4em;
  border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 800; letter-spacing: -.005em; line-height: 1.1;
  white-space: nowrap;
  isolation: isolate; overflow: hidden;
  transition: transform .35s var(--ease-spring), box-shadow .35s var(--ease-out), background-color .25s, color .25s;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease-out);
}
.btn:hover { transform: translateY(-3px); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.97); transition-duration: .1s; }
.btn__arrow { display: inline-block; transition: transform .35s var(--ease-spring); }
.btn:hover .btn__arrow { transform: translate(2px, -2px); }

.btn--yellow { box-shadow: 0 10px 30px -10px rgba(255, 196, 26, .8), inset 0 -3px 0 rgba(255, 156, 32, .55); }
.btn--yellow:hover { box-shadow: 0 18px 40px -12px rgba(255, 196, 26, .95), inset 0 -3px 0 rgba(255, 156, 32, .55); }
.btn--blue { --btn-bg: var(--blue); --btn-fg: var(--white); box-shadow: var(--shadow-blue), inset 0 -3px 0 rgba(7, 26, 85, .35); }
.btn--ghost {
  --btn-bg: rgba(255, 255, 255, .08); --btn-fg: var(--white);
  border: 1.5px solid rgba(255, 255, 255, .5);
}
.btn--ghost:hover { --btn-bg: var(--white); --btn-fg: var(--blue); border-color: var(--white); }
.btn--ghost:hover .btn__arrow { transform: translateY(3px); }
.btn--sm { min-height: 42px; padding: .6em 1.15em; font-size: .92rem; }
.btn--lg { min-height: 56px; padding: .95em 1.7em; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* =========================================================
   NAVIGATION
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color .4s var(--ease-out), box-shadow .4s, backdrop-filter .4s;
}
.nav__inner {
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  transition: height .4s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(7, 26, 85, .74);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08), 0 18px 40px -24px rgba(0, 0, 0, .5);
}
.nav.is-scrolled .nav__inner { height: 62px; }

.nav__brand { display: inline-flex; align-items: center; gap: .7rem; justify-self: start; color: var(--white); }
.nav__logo {
  width: 40px; height: 40px; border-radius: 12px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .35);
  transition: transform .45s var(--ease-spring);
}
.nav__brand:hover .nav__logo { transform: rotate(-8deg) scale(1.06); }
.nav__name { font-family: var(--font-display); font-weight: 900; font-size: 1.15rem; letter-spacing: -.02em; }

.nav__links {
  display: flex; gap: .3rem;
  padding: .3rem; border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
}
.nav__links a {
  position: relative;
  padding: .5rem 1.05rem; border-radius: 999px;
  font-size: .92rem; font-weight: 650; color: rgba(255, 255, 255, .86);
  transition: background-color .25s, color .25s;
}
.nav__links a:hover, .nav__links a.is-active { background: var(--white); color: var(--blue); }
.nav__buy { justify-self: end; }

.nav__toggle {
  display: none; justify-self: end;
  width: 48px; height: 48px; border-radius: 14px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
  position: relative;
}
.nav__toggle span {
  position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--white);
  transition: transform .35s var(--ease-out), opacity .2s;
}
.nav__toggle span:nth-child(1) { top: 16px; }
.nav__toggle span:nth-child(2) { top: 23px; }
.nav__toggle span:nth-child(3) { top: 30px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  margin: 0 12px; padding: 14px;
  border-radius: 24px;
  background: rgba(7, 26, 85, .96);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
  transform-origin: top center;
  animation: menuIn .35s var(--ease-out);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: grid; margin-bottom: 12px; }
.mobile-menu nav a {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 14px; border-radius: 14px;
  font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; letter-spacing: -.02em; color: var(--white);
  transition: background-color .2s;
}
.mobile-menu nav a:hover, .mobile-menu nav a:focus-visible { background: rgba(255, 255, 255, .08); }
.mobile-menu nav a .mono { font-size: .75rem; font-weight: 500; color: var(--yellow); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-10px) scale(.98); } }

/* =========================================================
   SHEETS — stacked publication pages
   ========================================================= */
.sheet {
  position: relative; z-index: 1;
  margin-top: calc(-1 * var(--sheet-r));
  border-radius: var(--sheet-r) var(--sheet-r) 0 0;
  padding: calc(var(--sheet-r) + clamp(72px, 10vw, 140px)) 0 calc(var(--sheet-r) + clamp(72px, 9vw, 130px));
}
.sheet--light { background: var(--surface); }
.sheet--white { background: var(--white); }
.sheet--night { background: var(--blue-night); color: var(--white); }
.sheet--deep { background: linear-gradient(180deg, var(--blue-deep) 0%, var(--night-2) 100%); color: var(--white); }
.sheet--yellow { background: var(--yellow); }
.sheet--brand { background: var(--blue); color: var(--white); }
.sheet::before {
  /* the "page edge" highlight that makes sections read as stacked documents */
  content: ""; position: absolute; top: 0; left: var(--sheet-r); right: var(--sheet-r); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent);
  pointer-events: none;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; z-index: 0;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--nav-h) + clamp(24px, 4vw, 56px)) 0 calc(var(--sheet-r) + 130px);
  color: var(--white);
  background:
    radial-gradient(70% 70% at 74% 42%, var(--blue-bright) 0%, rgba(47, 123, 255, 0) 70%),
    linear-gradient(165deg, #0B5CFF 0%, #0A4CF0 45%, var(--blue-deep) 100%);
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__grid {
  position: absolute; inset: -10% 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .09) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(80% 70% at 60% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(80% 70% at 60% 45%, #000 20%, transparent 75%);
}
.hero__glow { position: absolute; border-radius: 50%; }
.hero__glow--a {
  width: 60vw; height: 60vw; right: -18vw; top: -12vw;
  background: radial-gradient(circle, rgba(101, 229, 255, .28), transparent 62%);
}
.hero__glow--b {
  width: 50vw; height: 50vw; left: -20vw; bottom: -26vw;
  background: radial-gradient(circle, rgba(255, 216, 61, .16), transparent 62%);
}

.hero__inner {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center; gap: clamp(16px, 3vw, 48px);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .7em;
  padding: .5em 1em .5em .8em; border-radius: 999px;
  background: rgba(7, 26, 85, .35); border: 1px solid rgba(255, 255, 255, .22);
  font-family: var(--font-mono); font-size: .76rem; font-weight: 600; letter-spacing: .12em;
}
.eyebrow__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(255, 216, 61, .25);
}

.hero__title {
  margin: 1.4rem 0 1.5rem;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.7rem, 7vw, 6.6rem);
  line-height: .9; letter-spacing: -.045em;
  text-transform: uppercase;
}
.hero__title .line { display: block; overflow: hidden; padding: .04em 0 .06em; margin-bottom: -.06em; }
.hero__title .line__in { display: block; }
.hero__title em { font-style: normal; }
.hl-yellow { color: var(--yellow); }
.hl-mark { position: relative; display: inline-block; color: var(--white); }
.hl-mark::after {
  content: ""; position: absolute; left: 0; right: .25em; bottom: .02em; height: .14em; z-index: -1;
  border-radius: 4px; background: var(--yellow);
  transform-origin: left; transform: scaleX(1);
}
.hero__title .line:last-child { position: relative; z-index: 0; }

.hero__lead {
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.6;
  color: rgba(255, 255, 255, .88);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

.hero__meta {
  display: flex; flex-wrap: wrap; gap: clamp(18px, 3vw, 40px);
  margin-top: 2.4rem; padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.hero__meta dt { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.hero__meta dd { margin-top: .3rem; font-weight: 700; }

/* Stage + mascot */
.hero__stage {
  --mx: 0; --my: 0;
  position: relative;
  width: 100%; max-width: 640px; aspect-ratio: 1;
  justify-self: end;
}
.hero__halo {
  position: absolute; inset: 4%; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(101, 229, 255, .55) 0%, rgba(101, 229, 255, .18) 38%, rgba(11, 92, 255, 0) 66%);
  animation: haloPulse 6s ease-in-out infinite;
}
.hero__orbit { position: absolute; border-radius: 50%; pointer-events: none; }
.hero__orbit--1 { inset: 0; border: 1.5px dashed rgba(255, 255, 255, .26); animation: spin 80s linear infinite; }
.hero__orbit--2 { inset: 12%; border: 1px solid rgba(101, 229, 255, .35); animation: spin 32s linear infinite reverse; }
.hero__orbit--2::before, .hero__orbit--1::before {
  content: ""; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%;
  background: var(--yellow); box-shadow: 0 0 0 5px rgba(255, 216, 61, .22);
}
.hero__orbit--1::before { top: auto; bottom: 14%; left: 4%; width: 8px; height: 8px; background: var(--cyan); box-shadow: 0 0 0 4px rgba(101, 229, 255, .25); }

.hero__mascot-wrap {
  position: absolute; inset: 5% 3% 7% 3%;
  display: grid; place-items: center;
  translate: calc(var(--mx) * 16px) calc(var(--my) * 12px);
  transition: translate .6s var(--ease-out);
}
.hero__mascot {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 40px 50px rgba(7, 26, 85, .45));
  animation: float 6.5s ease-in-out infinite;
  will-change: transform;
}

.chip {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .65rem .95rem; border-radius: 14px;
  font-size: .82rem; font-weight: 700; white-space: nowrap;
  translate: calc(var(--mx) * -10px) calc(var(--my) * -8px);
  transition: translate .6s var(--ease-out);
}
.chip--status {
  top: 9%; left: -4%;
  background: rgba(7, 26, 85, .62); border: 1px solid rgba(255, 255, 255, .2); color: var(--white);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  animation: chipFloat 7s ease-in-out infinite;
}
.chip--status .mono { font-size: .72rem; letter-spacing: .08em; }
.chip__pulse {
  position: relative; width: 9px; height: 9px; border-radius: 50%; background: #3BF0A0;
}
.chip__pulse::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #3BF0A0;
  animation: ping 2.2s var(--ease-out) infinite;
}
.chip--published {
  right: -3%; bottom: 20%;
  background: var(--white); color: var(--ink);
  box-shadow: 0 20px 40px -16px rgba(7, 26, 85, .55);
  animation: chipFloat 8s ease-in-out -2s infinite;
}
.chip__doc {
  display: grid; gap: 3px; width: 26px; height: 32px; padding: 6px 5px; border-radius: 5px;
  background: var(--surface); border: 1px solid var(--line);
}
.chip__doc i { display: block; height: 3px; border-radius: 2px; background: var(--blue); opacity: .55; }
.chip__doc i:first-child { opacity: 1; width: 70%; }
.tick {
  display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: .25rem; border-radius: 50%;
  background: #18C77A; color: var(--white); font-size: .72rem;
}
.chip--term {
  left: 2%; bottom: 6%;
  background: #06123D; color: #CFE0FF; border: 1px solid rgba(101, 229, 255, .3);
  font-size: .8rem;
  animation: chipFloat 9s ease-in-out -4s infinite;
}
.chip--term .term-type { color: var(--yellow); }
.caret {
  display: inline-block; width: .55em; height: 1em; margin-left: 3px; vertical-align: -2px;
  background: var(--cyan); animation: blink 1s steps(1) infinite;
}

/* Ticker band */
.ticker {
  position: absolute; left: -5%; right: -5%; bottom: calc(var(--sheet-r) + 22px); z-index: 2;
  padding: .85rem 0;
  background: var(--yellow); color: var(--ink);
  transform: rotate(-1.6deg);
  box-shadow: 0 14px 30px -12px rgba(7, 26, 85, .5);
  overflow: hidden;
}
.ticker__track {
  display: flex; align-items: center; gap: 1.6rem; width: max-content;
  font-family: var(--font-display); font-weight: 900; font-size: clamp(.95rem, 1.4vw, 1.2rem); letter-spacing: -.01em;
  animation: marquee 38s linear infinite;
}
.ticker__track b { font-weight: 400; }

/* Hero entrance sequence */
.js [data-enter] { opacity: 0; }
.js .hero__title .line__in { opacity: 1; transform: translateY(108%); }
.js .hl-mark::after { transform: scaleX(0); }
.js [data-enter="mascot"] { scale: .72; }
.js .chip[data-enter] { scale: .85; }

.is-ready [data-enter="1"] { animation: fadeUp .7s var(--ease-out) .1s forwards; }
.is-ready .hero__title .line__in[data-enter="2"] { animation: lineUp .9s var(--ease-out) .25s forwards; }
.is-ready .hero__title .line__in[data-enter="3"] { animation: lineUp .9s var(--ease-out) .36s forwards; }
.is-ready .hero__title .line__in[data-enter="4"] { animation: lineUp .9s var(--ease-out) .47s forwards; }
.is-ready .hl-mark::after { animation: markIn .7s var(--ease-out) 1.15s forwards; }
.is-ready [data-enter="5"] { animation: fadeUp .8s var(--ease-out) .75s forwards; }
.is-ready [data-enter="6"] { animation: fadeUp .8s var(--ease-out) .92s forwards; }
.is-ready [data-enter="7"] { animation: fadeUp .8s var(--ease-out) 1.06s forwards; }
.is-ready [data-enter="mascot"] { animation: mascotIn 1.3s var(--ease-spring) .55s forwards; }
/* Chips run two animations: entrance, then float */
.is-ready .chip--status[data-enter] { animation: popIn .6s var(--ease-spring) 1.35s forwards, chipFloat 7s ease-in-out 2s infinite; }
.is-ready .chip--published[data-enter] { animation: popIn .6s var(--ease-spring) 1.55s forwards, chipFloat 8s ease-in-out 2.2s infinite; }
.is-ready .chip--term[data-enter] { animation: popIn .6s var(--ease-spring) 1.75s forwards, chipFloat 9s ease-in-out 2.4s infinite; }

/* =========================================================
   STORY
   ========================================================= */
.story__head { max-width: 1000px; }
.story__title { font-size: clamp(2.6rem, 7.4vw, 6.6rem); color: var(--ink); }
.story__title .outline { -webkit-text-stroke-width: clamp(1.5px, .25vw, 2.5px); }

.story__body {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  margin-top: clamp(40px, 6vw, 80px);
}
.story__lead {
  font-size: clamp(1.3rem, 2.2vw, 1.85rem); line-height: 1.42; font-weight: 500; letter-spacing: -.01em;
  color: var(--ink);
}
.story__lead::first-letter {
  float: left; margin: .06em .12em 0 0;
  font-family: var(--font-display); font-weight: 900; font-size: 3.6em; line-height: .8;
  color: var(--blue);
}

.story__notes { position: relative; display: grid; gap: 1.6rem; padding-left: 2.6rem; }
.story__notes::before {
  content: ""; position: absolute; left: .85rem; top: .6rem; bottom: .6rem; width: 2px;
  background: repeating-linear-gradient(var(--blue) 0 6px, transparent 6px 12px);
  opacity: .5;
}
.note { position: relative; }
.note__idx {
  position: absolute; left: -2.6rem; top: 0;
  display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%;
  background: var(--white); border: 2px solid var(--blue); color: var(--blue);
  font-size: .7rem; font-weight: 700;
}
.note h3 { font-size: 1.1rem; font-weight: 800; letter-spacing: -.01em; margin-bottom: .25rem; }
.note p { color: var(--ink-soft); font-size: 1rem; }

.story__figure { margin-top: clamp(56px, 8vw, 110px); }
.story__figure-frame {
  position: relative;
  padding: clamp(8px, 1vw, 14px); border-radius: calc(var(--radius) + 10px);
  background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(11, 92, 255, .45);
}
.story__figure-frame img { width: 100%; border-radius: var(--radius); aspect-ratio: 2172 / 724; object-fit: cover; }
.story__figure figcaption { margin-top: 1rem; font-size: .8rem; color: var(--ink-soft); }

.quote {
  position: relative;
  margin-top: clamp(64px, 9vw, 120px);
  padding: clamp(40px, 6vw, 80px) clamp(28px, 6vw, 88px);
  padding-right: clamp(28px, 24vw, 340px);
  border-radius: calc(var(--radius) + 12px);
  background:
    radial-gradient(60% 120% at 100% 100%, rgba(101, 229, 255, .35), transparent 60%),
    var(--blue);
  color: var(--white);
  overflow: hidden;
}
.quote::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%);
  mask-image: linear-gradient(90deg, transparent, #000 70%);
}
.quote__mark {
  position: absolute; top: -.18em; left: .1em;
  font-family: Georgia, "Times New Roman", serif; font-size: clamp(9rem, 18vw, 16rem); line-height: 1;
  color: var(--yellow); opacity: .95;
}
.quote p {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2rem, 5.2vw, 4.6rem); line-height: .95; letter-spacing: -.04em;
}
.quote p span { color: var(--yellow); }
.quote footer { position: relative; z-index: 1; margin-top: 1.5rem; font-size: .82rem; color: rgba(255, 255, 255, .7); }
.quote__face {
  position: absolute; z-index: 1; right: clamp(-40px, -2vw, -10px); bottom: clamp(-70px, -5vw, -30px);
  width: clamp(200px, 26vw, 380px);
  filter: drop-shadow(0 30px 40px rgba(7, 26, 85, .4));
  transition: transform .8s var(--ease-spring);
}
.quote:hover .quote__face { transform: translateY(-14px); }

/* =========================================================
   TIMELINE
   ========================================================= */
.timeline { overflow: hidden; }
.timeline__bg {
  position: absolute; inset: -10% 0; pointer-events: none;
  background-image: radial-gradient(rgba(101, 229, 255, .18) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(60% 50% at 50% 50%, #000, transparent);
  mask-image: radial-gradient(60% 50% at 50% 50%, #000, transparent);
}
.timeline .container { position: relative; }
.timeline__title { font-size: clamp(2.6rem, 7vw, 6.2rem); }

.tl {
  --p: 0;
  position: relative;
  max-width: 1040px; margin: 0 auto;
  display: grid; gap: clamp(28px, 4vw, 48px);
  padding: 12px 0;
}
.tl::before, .tl::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; border-radius: 2px;
}
.tl::before { background: rgba(255, 255, 255, .12); }
.tl::after {
  background: linear-gradient(var(--cyan), var(--yellow));
  transform-origin: top; transform: scaleY(var(--p));
  box-shadow: 0 0 18px rgba(101, 229, 255, .6);
}

.tl__item {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(56px, 8vw, 110px);
  align-items: center;
}
.tl__node {
  position: absolute; z-index: 2; left: 50%; top: 50%;
  display: grid; place-items: center;
  width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%;
  background: var(--blue-night); border: 2px solid rgba(255, 255, 255, .25);
  font-size: .82rem; font-weight: 700; color: rgba(255, 255, 255, .6);
  transition: background-color .5s, border-color .5s, color .5s, transform .6s var(--ease-spring), box-shadow .5s;
}
.tl__card {
  position: relative;
  padding: clamp(22px, 2.6vw, 32px);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .12);
  transition: transform .8s var(--ease-out), opacity .8s var(--ease-out), border-color .3s, background-color .3s;
}
.tl__card:hover { border-color: rgba(101, 229, 255, .5); }
.tl__item:nth-child(odd) .tl__card { grid-column: 1; text-align: right; }
.tl__item:nth-child(even) .tl__card { grid-column: 2; }
.tl__step { font-size: .74rem; letter-spacing: .1em; color: var(--cyan); margin-bottom: .6rem; }
.tl__step span { color: rgba(255, 255, 255, .5); }
.tl__card h3 {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase; letter-spacing: -.02em;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.05; margin-bottom: .55rem;
}
.tl__card p:last-of-type { color: rgba(255, 255, 255, .74); }
.tl__card--final { background: linear-gradient(135deg, rgba(255, 216, 61, .16), rgba(255, 255, 255, .04)); border-color: rgba(255, 216, 61, .4); }
.tl__salute { position: absolute; top: -18px; left: -14px; font-size: 2rem; transform: rotate(-12deg); }

.js .tl__item:nth-child(odd) .tl__card { opacity: 0; transform: translateX(-40px); }
.js .tl__item:nth-child(even) .tl__card { opacity: 0; transform: translateX(40px); }
.js .tl__item.is-in .tl__card { opacity: 1; transform: none; }
.tl__item.is-in .tl__node {
  background: var(--yellow); border-color: var(--yellow); color: var(--ink);
  transform: scale(1.08);
  box-shadow: 0 0 0 8px rgba(255, 216, 61, .15);
}

/* =========================================================
   CONTRIBUTIONS
   ========================================================= */
.contrib {
  background-color: var(--white);
  background-image: radial-gradient(rgba(11, 92, 255, .12) 1px, transparent 1px);
  background-size: 26px 26px;
}
.contrib__head {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr);
  gap: clamp(24px, 5vw, 80px); align-items: end;
}
.contrib__title { font-size: clamp(2.4rem, 6vw, 5.4rem); }
.contrib__aside { color: var(--ink-soft); font-size: 1.05rem; padding-bottom: .5rem; }
.contrib__label {
  display: flex; align-items: center; gap: 1rem;
  margin: clamp(48px, 6vw, 72px) 0 1.6rem;
  font-size: .78rem; letter-spacing: .14em; color: var(--blue);
}
.contrib__label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.artifacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); }
.artifact {
  --accent: var(--blue);
  position: relative;
  padding: 0 0 1.6rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(16, 28, 67, .04), 0 20px 40px -32px rgba(16, 28, 67, .35);
  transition: transform .5s var(--ease-spring), box-shadow .5s var(--ease-out), border-color .3s;
  outline-offset: 4px;
}
.artifact::before {
  /* the sheet underneath — the published "stack" */
  content: ""; position: absolute; inset: 8px -6px -8px 6px; z-index: -1;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: transform .5s var(--ease-spring);
}
.artifact:hover, .artifact:focus-visible {
  transform: translateY(-10px) rotate(-1deg);
  border-color: var(--accent);
  box-shadow: 0 34px 60px -30px color-mix(in srgb, var(--accent) 70%, transparent);
}
.artifact:hover::before, .artifact:focus-visible::before { transform: translate(6px, 6px) rotate(2deg); }
.artifact--model { --accent: #12B5E5; }
.artifact--flow { --accent: var(--orange); }
.artifact--paper { --accent: var(--ink); }

.artifact__bar {
  display: flex; justify-content: space-between;
  padding: .8rem 1.1rem;
  border-bottom: 1px dashed var(--line);
  font-size: .72rem; letter-spacing: .08em; color: var(--ink-soft);
}
.artifact__bar span:first-child { color: var(--accent); font-weight: 700; }
.artifact h3 {
  padding: 0 1.3rem; margin-top: 1.3rem;
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase; letter-spacing: -.02em;
  font-size: clamp(1.4rem, 2vw, 1.75rem);
}
.artifact p { padding: 0 1.3rem; margin-top: .35rem; color: var(--ink-soft); }

.artifact__viz {
  height: 128px; margin: 1.1rem 1.1rem 0; border-radius: 14px;
  background: var(--surface);
  overflow: hidden; position: relative;
}
/* dataset rows */
.viz-table { display: grid; grid-template-columns: 1.4fr 1fr .8fr; gap: 8px 10px; padding: 18px; align-content: center; }
.viz-table i { height: 10px; border-radius: 4px; background: color-mix(in srgb, var(--accent) 25%, white); transition: background-color .4s, transform .4s var(--ease-out); }
.viz-table i:nth-child(-n+3) { background: var(--accent); }
.artifact:hover .viz-table i:nth-child(n+4):nth-child(odd) { background: color-mix(in srgb, var(--accent) 55%, white); }
.artifact:hover .viz-table i { transform: scaleX(.85); transform-origin: left; }
.artifact:hover .viz-table i:nth-child(3n+2) { transform: scaleX(1); }

/* model layers */
.viz-layers {
  display: flex; justify-content: space-around; align-items: center; padding: 0 18px;
  background-image:
    linear-gradient(20deg, transparent 49%, color-mix(in srgb, var(--accent) 35%, transparent) 50%, transparent 51%),
    linear-gradient(-20deg, transparent 49%, color-mix(in srgb, var(--accent) 35%, transparent) 50%, transparent 51%);
  background-color: var(--surface);
}
.viz-layers span { display: grid; gap: 10px; }
.viz-layers i {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--accent);
  transition: background-color .3s, transform .4s var(--ease-spring);
}
.artifact:hover .viz-layers i { background: var(--accent); }
.artifact:hover .viz-layers span:nth-child(2) i { transform: scale(1.2); transition-delay: .08s; }
.artifact:hover .viz-layers span:nth-child(3) i { transition-delay: .16s; }

/* workflow steps */
.viz-flow { display: flex; align-items: center; justify-content: center; gap: 0; padding: 0 14px; }
.viz-flow i {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px;
  background: var(--white); border: 3px solid var(--accent);
  transition: background-color .3s, transform .4s var(--ease-spring);
}
.viz-flow b { position: relative; flex: 1; height: 3px; margin: 0 6px; background: color-mix(in srgb, var(--accent) 45%, transparent); }
.viz-flow b::after {
  content: ""; position: absolute; right: -2px; top: -4px;
  border-left: 7px solid color-mix(in srgb, var(--accent) 70%, transparent);
  border-top: 5.5px solid transparent; border-bottom: 5.5px solid transparent;
}
.artifact:hover .viz-flow i { background: var(--accent); transform: rotate(45deg) scale(.85); }
.artifact:hover .viz-flow i:nth-of-type(2) { transition-delay: .1s; }
.artifact:hover .viz-flow i:nth-of-type(3) { transition-delay: .2s; }

/* research paper */
.viz-paper {
  display: grid; align-content: start; gap: 7px;
  padding: 16px 22px; margin-left: 2.4rem; margin-right: 2.4rem; margin-bottom: -18px;
  background: var(--white); border: 1px solid var(--line); border-bottom: 0;
  border-radius: 10px 10px 0 0;
  transform: translateY(14px);
  transition: transform .5s var(--ease-spring);
}
.artifact--paper .artifact__viz.viz-paper { height: 146px; }
.viz-paper i { height: 6px; border-radius: 3px; background: #E3E8F7; }
.viz-paper i.t { height: 11px; width: 75%; background: var(--ink); margin-bottom: 4px; }
.viz-paper i.s { width: 60%; }
.artifact:hover .viz-paper { transform: translateY(0); }
.artifact--paper .artifact__viz { background: transparent; }
.artifact--paper .viz-paper { box-shadow: 0 -10px 30px -18px rgba(16, 28, 67, .4); }

/* =========================================================
   MEET THE FACE
   ========================================================= */
.face { overflow: hidden; color: var(--ink); }
.face__word {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display); font-weight: 900; font-size: clamp(9rem, 30vw, 30rem); letter-spacing: -.06em; line-height: 1;
  color: transparent; -webkit-text-stroke: 2px rgba(255, 156, 32, .55);
  white-space: nowrap; pointer-events: none; user-select: none;
}
.face__inner {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px); align-items: center;
}
.face__visual { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: center; }
.face__disc {
  position: absolute; inset: 12%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--blue-bright), var(--blue) 55%, var(--blue-deep));
  box-shadow: 0 50px 80px -40px rgba(8, 54, 196, .8), inset 0 -20px 40px rgba(7, 26, 85, .35);
}
.face__ring {
  position: absolute; inset: 1%; border-radius: 50%;
  animation: spin 40s linear infinite;
}
.face__ring span {
  position: absolute; left: 50%; top: 0; height: 50%; width: 1.2em; margin-left: -.6em;
  transform-origin: 50% 100%;
  text-align: center;
  font-family: var(--font-mono); font-weight: 700; font-size: clamp(.72rem, 1.3vw, .98rem);
  color: var(--ink);
}
.face__mascot {
  position: absolute; left: 50%; top: 50%; width: 78%;
  transform: translate(-48%, -52%);
  filter: drop-shadow(0 30px 30px rgba(16, 28, 67, .35));
  transition: transform .7s var(--ease-spring);
}
.face__visual:hover .face__mascot { transform: translate(-48%, -56%) scale(1.04); }
.face__dot { position: absolute; border-radius: 50%; }
.face__dot--a { width: 22%; aspect-ratio: 1; right: -2%; top: 6%; background: var(--ink); }
.face__dot--b { width: 9%; aspect-ratio: 1; left: 2%; bottom: 10%; background: var(--white); box-shadow: 0 0 0 10px rgba(255, 255, 255, .35); }
.face__dot--a::after {
  content: "🫡"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: clamp(1.6rem, 4vw, 3rem);
}

.face__title { font-size: clamp(2.8rem, 7vw, 6.4rem); }
.face__offset { display: inline-block; margin-left: .9em; }
.face__offset--2 { margin-left: .3em; color: var(--blue); }
.face__lead { margin-top: 1.6rem; max-width: 30rem; font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 600; }
.face__tags { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
.face__tags li {
  padding: .6rem 1.1rem; border-radius: 999px;
  border: 2px solid var(--ink); background: var(--white);
  font-weight: 800; font-size: .95rem;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .3s var(--ease-spring), box-shadow .3s;
}
.face__tags li:nth-child(2) { background: var(--ink); color: var(--yellow); }
.face__tags li:nth-child(3) { background: var(--blue); color: var(--white); }
.face__tags li:hover { transform: translate(-2px, -2px) rotate(-2deg); box-shadow: 6px 6px 0 var(--ink); }

/* =========================================================
   HOW TO JOIN
   ========================================================= */
.join__title { font-size: clamp(2.8rem, 7.6vw, 6.6rem); }

.steps {
  position: relative;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px);
  counter-reset: step;
}
.steps::before {
  content: ""; position: absolute; top: 38px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--blue) 0 10px, transparent 10px 18px);
  opacity: .35;
}
.step { position: relative; text-align: center; padding: 0 clamp(4px, 1.4vw, 20px); }
.step__num {
  position: relative;
  display: inline-grid; place-items: center;
  width: 78px; height: 78px; margin-bottom: 1.4rem; border-radius: 50%;
  background: var(--white); border: 2px solid var(--blue); color: var(--blue);
  font-family: var(--font-display); font-weight: 900; font-size: 1.6rem; letter-spacing: -.03em;
  box-shadow: 0 0 0 8px var(--surface);
  transition: background-color .35s, color .35s, transform .45s var(--ease-spring);
}
.step:hover .step__num { background: var(--blue); color: var(--yellow); transform: rotate(-8deg) scale(1.06); }
.step h3 {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase; letter-spacing: -.02em;
  font-size: clamp(1.25rem, 2vw, 1.6rem); margin-bottom: .5rem;
}
.step p { color: var(--ink-soft); max-width: 22rem; margin: 0 auto; }

.join__action {
  display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center; gap: 1.2rem;
  margin-top: clamp(56px, 7vw, 88px);
}
.join__buy { align-self: center; }

/* Contract address */
.ca {
  position: relative;
  flex: 1 1 520px; max-width: 640px;
  padding: 1.3rem 1.4rem 1.2rem;
  border-radius: var(--radius);
  background: var(--blue-night); color: var(--white);
  box-shadow: 0 30px 60px -30px rgba(7, 26, 85, .7);
  overflow: hidden;
}
.ca::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: linear-gradient(var(--yellow), var(--orange));
}
.ca__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; }
.ca__label { font-size: .74rem; letter-spacing: .16em; color: var(--cyan); }
.ca__row {
  display: flex; align-items: center; gap: .8rem;
  margin-top: .9rem; padding: .5rem .5rem .5rem 1rem;
  border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px dashed rgba(255, 255, 255, .22);
}
.ca__value {
  flex: 1; min-width: 0;
  font-family: var(--font-mono); font-size: clamp(1.1rem, 2.4vw, 1.5rem); font-weight: 700; letter-spacing: .02em;
  overflow-wrap: anywhere;
}
.ca__copy {
  flex: 0 0 auto;
  min-width: 104px; min-height: 46px; padding: 0 1.1rem; border-radius: 11px;
  background: var(--yellow); color: var(--ink); font-weight: 800;
  transition: transform .3s var(--ease-spring), background-color .25s;
}
.ca__copy:hover { transform: translateY(-2px); }
.ca__copy.is-copied, .footer__ca-btn.is-copied .ca__copy-text { background: #18C77A; color: var(--white); }
.ca__note { margin-top: .8rem; font-size: .84rem; color: rgba(255, 255, 255, .6); }

/* =========================================================
   CHART
   ========================================================= */
.chart { overflow: hidden; }
.chart::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(50% 40% at 85% 10%, rgba(101, 229, 255, .22), transparent 70%);
}
.chart .container { position: relative; z-index: 1; }
.chart__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.6rem;
  margin-bottom: clamp(32px, 4vw, 52px);
}
.chart__title { font-size: clamp(3rem, 9vw, 8rem); }
.chart__lead { margin-top: 1rem; font-size: 1.15rem; color: rgba(255, 255, 255, .8); }

.chart__window {
  border-radius: calc(var(--radius) + 6px);
  background: #050F33;
  border: 1px solid rgba(101, 229, 255, .28);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .04), 0 50px 100px -40px rgba(0, 0, 0, .7);
  overflow: hidden;
}
.chart__bar {
  display: flex; align-items: center; gap: 1rem;
  padding: .8rem 1.1rem;
  background: rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.chart__dots { display: flex; gap: 6px; }
.chart__dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.chart__dots i:nth-child(1) { background: #FF6B6B; }
.chart__dots i:nth-child(2) { background: var(--yellow); }
.chart__dots i:nth-child(3) { background: #3BF0A0; }
.chart__url {
  flex: 1; min-width: 0;
  padding: .35rem .8rem; border-radius: 8px; background: rgba(255, 255, 255, .06);
  font-size: .78rem; color: rgba(255, 255, 255, .7);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chart__frame { position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 420px; }
.chart__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.chart__note { margin-top: 1.1rem; font-size: .8rem; color: rgba(255, 255, 255, .55); }

/* =========================================================
   COMMUNITY
   ========================================================= */
.community {
  overflow: hidden;
  background:
    radial-gradient(60% 60% at 80% 50%, rgba(101, 229, 255, .35), transparent 70%),
    linear-gradient(160deg, #1166FF, var(--blue) 50%, #0A48E0);
}
.community__bg {
  position: absolute; inset: -10% 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(70% 60% at 30% 50%, #000, transparent);
  mask-image: radial-gradient(70% 60% at 30% 50%, #000, transparent);
}
.community__inner {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(40px, 6vw, 96px); align-items: center;
}
.community__title { font-size: clamp(2.6rem, 6.6vw, 6rem); }
.community__emoji { display: inline-block; text-transform: none; }
.community__lead { margin-top: 1.5rem; max-width: 32rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: rgba(255, 255, 255, .88); }
.community__ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }

.community__visual { position: relative; justify-self: center; width: min(100%, 440px); }
.community__logo {
  width: 100%; border-radius: 28%;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .14), 0 0 0 22px rgba(255, 255, 255, .06), 0 50px 80px -30px rgba(7, 26, 85, .7);
  animation: float 7s ease-in-out infinite;
}
.community__stamp {
  position: absolute; left: -8%; bottom: 4%;
  display: grid; place-items: center;
  width: 38%; aspect-ratio: 1; border-radius: 50%;
  background: var(--yellow); color: var(--ink);
  font-size: clamp(.62rem, 1.1vw, .8rem); font-weight: 800; line-height: 1.5; letter-spacing: .1em; text-align: center;
  box-shadow: 0 0 0 6px var(--blue), 0 20px 40px -10px rgba(7, 26, 85, .6);
  animation: wobble 6s ease-in-out infinite;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer { padding-bottom: 2.4rem; }
.footer.sheet { padding-top: calc(var(--sheet-r) + 64px); }
.footer__top {
  display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center;
  padding-bottom: 2rem; border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer__brand { display: flex; align-items: center; gap: 1rem; }
.footer__brand img { width: 56px; height: 56px; border-radius: 16px; }
.footer__name { font-family: var(--font-display); font-weight: 900; font-size: 1.4rem; letter-spacing: -.02em; }
.footer__sub { font-size: .8rem; color: rgba(255, 255, 255, .6); }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.6rem; }
.footer__nav a { padding: .4rem 0; font-weight: 650; color: rgba(255, 255, 255, .8); background: linear-gradient(var(--yellow), var(--yellow)) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease-out), color .25s; }
.footer__nav a:hover { color: var(--white); background-size: 100% 2px; }
.footer__ca { display: flex; align-items: center; gap: .8rem; }
.footer__ca-label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.footer__ca-btn {
  display: inline-flex; align-items: center; gap: .7rem;
  min-height: 44px; padding: .3rem .4rem .3rem .9rem; border-radius: 12px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  font-size: .9rem;
  transition: border-color .25s;
}
.footer__ca-btn:hover { border-color: var(--yellow); }
.footer__ca-btn .ca__copy-text {
  padding: .3rem .65rem; border-radius: 8px; background: var(--yellow); color: var(--ink);
  font-family: var(--font-body); font-size: .78rem; font-weight: 800;
}
.footer__disclaimer { margin-top: 1.8rem; max-width: 760px; font-size: .88rem; color: rgba(255, 255, 255, .6); }
.footer__legal { margin-top: 1rem; font-size: .76rem; color: rgba(255, 255, 255, .4); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 300;
  padding: .75rem 1.2rem; border-radius: 999px;
  background: var(--ink); color: var(--white); font-weight: 700; font-size: .92rem;
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .5);
  opacity: 0; transform: translate(-50%, 20px); pointer-events: none;
  transition: opacity .3s, transform .4s var(--ease-spring);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast:empty { display: none; }

/* =========================================================
   SCROLL REVEALS
   ========================================================= */
.js .reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 110ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.js .story__figure.reveal { transform: translateY(48px) scale(.96) rotate(-1deg); }
.js .story__figure.reveal.is-in { transform: none; }
.js .face__visual.reveal { transform: scale(.85) rotate(-6deg); transition-timing-function: var(--ease-spring); transition-duration: 1.1s; }
.js .face__visual.reveal.is-in { transform: none; }
/* Artifacts keep their own hover transform once revealed */
.js .artifact.reveal.is-in { transition: opacity .9s var(--ease-out), transform .5s var(--ease-spring), box-shadow .5s var(--ease-out), border-color .3s; }
.js .artifact.reveal.is-in:hover, .js .artifact.reveal.is-in:focus-visible { transform: translateY(-10px) rotate(-1deg); }

/* =========================================================
   KEYFRAMES
   ========================================================= */
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-18px) rotate(-1.5deg); } }
@keyframes chipFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes haloPulse { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes wobble { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(6deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes lineUp { from { transform: translateY(108%); } to { transform: none; } }
@keyframes markIn { to { transform: scaleX(1); } }
@keyframes mascotIn { 0% { opacity: 0; scale: .72; } 60% { opacity: 1; } 100% { opacity: 1; scale: 1; } }
@keyframes popIn { from { opacity: 0; scale: .85; } to { opacity: 1; scale: 1; } }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .artifacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contrib__head { grid-template-columns: 1fr; align-items: start; }
  .footer__top { grid-template-columns: 1fr auto; }
  .footer__nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
}

@media (max-width: 900px) {
  :root { --nav-h: 68px; }
  .nav__links, .nav__buy { display: none; }
  .nav__inner { grid-template-columns: 1fr auto; }
  .nav__toggle { display: block; }
  .nav.is-open { background: rgba(7, 26, 85, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); padding-bottom: 12px; }

  .hero { padding-bottom: calc(var(--sheet-r) + 120px); }
  .hero__inner { grid-template-columns: 1fr; gap: 0; }
  .hero__stage { order: -1; justify-self: center; width: min(86vw, 420px); margin: -8px auto 4px; }
  .hero__title { margin-top: 1.1rem; }
  .chip { font-size: .74rem; padding: .5rem .75rem; }
  .chip--status { left: -2%; top: 4%; }
  .chip--published { right: -2%; bottom: 18%; }
  .chip--term { left: 0; bottom: 2%; }

  .story__body { grid-template-columns: 1fr; }
  .quote { padding-right: clamp(28px, 6vw, 88px); padding-bottom: clamp(170px, 42vw, 260px); }
  .quote__face { width: clamp(180px, 44vw, 280px); right: 4%; bottom: -36px; }

  .tl::before, .tl::after { left: 24px; }
  .tl__item { grid-template-columns: 1fr; gap: 0; padding-left: 68px; }
  .tl__node { left: 24px; top: 28px; margin-top: -24px; }
  .tl__item:nth-child(odd) .tl__card, .tl__item:nth-child(even) .tl__card { grid-column: 1; text-align: left; }
  .js .tl__item:nth-child(odd) .tl__card, .js .tl__item:nth-child(even) .tl__card { transform: translateX(30px); }
  .js .tl__item.is-in .tl__card { transform: none; }
  .tl__salute { left: auto; right: -8px; }

  .face__inner { grid-template-columns: 1fr; }
  .face__visual { max-width: 440px; }
  .face__copy { text-align: left; }

  .steps { grid-template-columns: 1fr; gap: 1.2rem; max-width: 560px; margin: 0 auto; }
  .steps::before { top: 39px; bottom: 39px; left: 39px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(var(--blue) 0 10px, transparent 10px 18px); }
  .step { display: grid; grid-template-columns: 78px 1fr; column-gap: 1.2rem; text-align: left; padding: 0; }
  .step__num { grid-row: span 2; margin-bottom: 0; }
  .step h3 { align-self: end; margin-bottom: .2rem; }
  .step p { margin: 0; }

  .community__inner { grid-template-columns: 1fr; }
  .community__visual { order: -1; width: min(70vw, 340px); }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero__title { font-size: clamp(2.3rem, 11.5vw, 3.6rem); }
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero__meta { gap: 1.2rem 1.8rem; }
  .chip--term { display: none; }
  .artifacts { grid-template-columns: 1fr; }
  .chart__frame { aspect-ratio: auto; height: 520px; min-height: 0; }
  .chart__head .btn { width: 100%; }
  .chart__bar .pill { display: none; }
  .ca__row { flex-wrap: wrap; padding: .8rem; }
  .ca__copy { width: 100%; }
  .join__buy { width: 100%; }
  .community__ctas .btn { flex: 1 1 100%; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__nav { grid-row: auto; }
  .face__offset { margin-left: .5em; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .js [data-enter], .js .reveal, .js .tl__item .tl__card { opacity: 1 !important; transform: none !important; scale: 1 !important; }
  .js .hero__title .line__in { transform: none !important; }
  .js .hl-mark::after { transform: scaleX(1) !important; }
  .ticker__track, .hero__orbit, .face__ring { animation: none !important; }
  .hero__mascot-wrap, .chip { translate: none !important; }
}
