:root {
  --paper: #f7f5f0;
  --white: #ffffff;
  --mist: #e8eeec;
  --ink: #151817;
  --ink-soft: #505957;
  --night: #0f1312;
  --night-soft: #1a211f;
  --signal: #0e9913;
  /* Text-on-dark variant: same green, nudged just bright enough (rgb 14,162,19)
     to clear WCAG AA 4.5:1 on the darkest bands (#0e2711/#1a211f) small bold
     labels sit on; visually indistinguishable from --signal. HQ-1287. */
  --signal-text: #0ea213;
  --signal-deep: #0a6e0e;
  --signal-glow: rgba(14, 153, 19, 0.18);
  --signal-tint: rgba(14, 153, 19, 0.1);
  --blue: #5b8cff;
  --orange: #ff6b3d;
  --orange-ink: #a53112;
  --yellow: #f4c95d;
  --error: #a92b22;
  --line: rgba(21, 24, 23, 0.16);
  --line-light: rgba(255, 255, 255, 0.18);
  --sans: "Manrope", system-ui, sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 56px;
  --radius: 6px;
}

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

html { scroll-padding-top: calc(var(--header-h) + 18px); }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { overflow-x: clip; }

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 {
  margin-bottom: 0;
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0;
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

.container,
.container-wide {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container { max-width: 980px; }

.band { padding-block: clamp(76px, 10vw, 144px); }
.band-paper { background: var(--paper); }
.band-mist { background: var(--mist); }
.band-night { color: var(--white); background: var(--night); }
/* Signal-tinted night: the "Real AI activity" live-widget band takes the
   accent palette's identity (deep green mixed into night), not a separate teal. */
.band-signal { color: var(--white); background: color-mix(in srgb, var(--signal-deep) 22%, var(--night)); }
.band-join { background: var(--orange); }

.eyebrow,
.hero-kicker,
.story-time,
.journal-state,
.token-label {
  margin-bottom: 14px;
  color: var(--signal-deep);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow-bright { color: var(--signal); }

.section-head { max-width: 740px; margin-bottom: clamp(44px, 7vw, 88px); }
.section-head-wide { max-width: 920px; }
.section-head h2,
.memory h2,
.how-intro h2,
.journal-head h2,
.trust-layout h2,
.join-layout h2 {
  max-width: 920px;
  font-size: clamp(2.2rem, 5vw, 4.75rem);
  font-weight: 500;
  line-height: 0.98;
}

.how-intro h2,
.trust-layout h2,
.join-layout h2 { font-size: clamp(2.2rem, 3.6vw, 3.6rem); }

.section-sub {
  max-width: 680px;
  margin-top: 24px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.band-night .section-sub,
.band-signal .section-sub { color: rgba(255, 255, 255, 0.74); }
.band-signal .eyebrow { color: var(--signal-text); }

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0.72rem 1.15rem;
  font: 700 0.92rem/1 var(--sans);
  letter-spacing: 0;
  text-decoration: none;
  cursor: pointer;
}

.btn-light { color: var(--night); background: var(--white); }
.btn-light:hover { background: var(--signal); }
.btn-dark { color: var(--white); background: var(--night); }
.btn-dark:hover { background: var(--signal-deep); }

.text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-block: 10px;
  margin-block: -10px;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

.text-link-light { color: var(--white); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

/* Header */
.site-head {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: var(--white);
  border-bottom: 1px solid transparent;
  background: rgba(15, 19, 18, 0.28);
  backdrop-filter: blur(12px);
}

.site-head.is-scrolled {
  border-bottom-color: var(--line-light);
  background: rgba(15, 19, 18, 0.88);
  backdrop-filter: blur(18px);
}

.site-head-inner {
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--night);
  background: var(--signal);
  font-family: var(--serif);
  font-size: 1.05rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 38px);
}

.site-nav a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover { color: var(--white); }

.site-nav a[aria-current="page"] {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--signal-text);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.nav-cta {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  padding: 0.45rem 0.85rem;
  color: var(--night);
  background: var(--signal);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-cta:hover, .nav-cta:focus-visible { background: var(--white); box-shadow: 0 0 22px var(--signal-glow); }

/* Layered hero */
.hero {
  --hero-progress: 0px;
  position: relative;
  height: calc(100svh - 40px);
  min-height: 34rem;
  max-height: 58rem;
  overflow: hidden;
  color: var(--white);
  background: var(--night);
  isolation: isolate;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #15201d;
}

.hero-stage {
  position: absolute;
  inset: 22% 0 0;
  z-index: 1;
  overflow: hidden;
}

.hero-layer {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 4px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
  will-change: transform;
}

.hero-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-layer-back {
  inset: 0 -4% -20%;
  z-index: 0;
  border: 0;
  border-radius: 0;
  opacity: 0.38;
  transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1.08);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 40%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 40%);
}

.hero-layer-back img { object-position: center 47%; }

.hero-layer-left {
  left: 3%;
  bottom: -4%;
  z-index: 2;
  width: 31%;
  aspect-ratio: 3 / 2;
  transform: translate3d(0, var(--parallax-y, 0px), 0) rotate(-2deg);
}

.hero-layer-center {
  left: 50%;
  bottom: -10%;
  z-index: 3;
  width: 42%;
  aspect-ratio: 3 / 2;
  transform: translate3d(-50%, var(--parallax-y, 0px), 0);
}

.hero-layer-right {
  right: 2%;
  bottom: -2%;
  z-index: 4;
  width: 29%;
  aspect-ratio: 3 / 2;
  transform: translate3d(0, var(--parallax-y, 0px), 0) rotate(2.5deg);
}

.hero-edge {
  position: absolute;
  inset: auto 0 0;
  z-index: 4;
  height: 52%;
  background: linear-gradient(to bottom, rgba(15, 19, 18, 0), rgba(15, 19, 18, 0.9));
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 5;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(92px, 13vh, 132px);
  padding-bottom: clamp(28px, 5vh, 48px);
  text-align: center;
}

.hero-kicker { color: var(--signal-text); }

.hero h1 {
  margin-top: 12px;
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(5.5rem, 15vw, 11.5rem);
  font-weight: 500;
  line-height: 0.82;
}

.hero-statement {
  margin: clamp(20px, 4vh, 38px) 0 0;
  font-size: clamp(1.45rem, 3.2vw, 2.7rem);
  font-weight: 500;
  line-height: 1.08;
}

.hero-bottom {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-top: auto;
  text-align: left;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.9);
}

.hero-bottom > p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.92rem, 1.6vw, 1.08rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  flex: 0 0 auto;
}

/* Moving role strip */
.role-strip {
  overflow: hidden;
  color: var(--night);
  background: var(--orange);
  border-bottom: 1px solid rgba(21, 24, 23, 0.22);
}

.role-track {
  width: max-content;
  display: flex;
  animation: role-slide 28s linear infinite;
}

.role-set { display: flex; align-items: center; }

.role-set span {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding-inline: 24px;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.role-set span::after {
  content: "+";
  margin-left: 48px;
  font: 500 1.4rem/1 var(--serif);
}

@keyframes role-slide { to { transform: translateX(-50%); } }

/* Capabilities */
.capability-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.capability {
  min-width: 0;
  padding: 30px 28px 36px 0;
  border-bottom: 1px solid var(--line);
}

.capability:not(:nth-child(3n + 1)) { padding-left: 28px; border-left: 1px solid var(--line); }
/* Hover/focus affordance (HQ-1295): the card's hairlines take the signal
   accent. Color-only, so it stays available under prefers-reduced-motion;
   the gentle lift is gated with the other motion rules at the bottom. */
.capability-list .capability:hover,
.capability-list .capability:focus-within { border-color: var(--signal); }
.capability-badge {
  display: inline-block;
  margin: 0 0 14px;
  border: 1px solid var(--signal);
  border-radius: 999px;
  padding: 3px 9px;
  color: var(--signal-deep);
  background: var(--signal-tint);
  font: 700 0.66rem/1.2 var(--sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.capability h3 { font-size: clamp(1.25rem, 2.2vw, 1.75rem); }
.capability p { margin: 16px 0 0; color: var(--ink-soft); font-size: 0.94rem; }

/* Everyday stories */
.story {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.7fr);
  align-items: center;
  gap: clamp(34px, 7vw, 96px);
  margin-bottom: clamp(72px, 11vw, 150px);
}

.story:last-child { margin-bottom: 0; }
.story-reverse { grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.45fr); }
.story-reverse .story-media { order: 2; }
.story-reverse .story-copy { order: 1; }

.story-media {
  margin: 0;
  overflow: hidden;
  border-radius: 3px;
  background: #cfd8d5;
}

.story-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.story-media-tutor img { aspect-ratio: 4 / 3; }
.story-time { display: block; color: var(--orange-ink); }
.story-copy h3 { font-size: clamp(2rem, 3.2vw, 3.5rem); font-weight: 500; }
.story-copy p { margin-top: 22px; color: var(--ink-soft); font-size: clamp(1rem, 1.8vw, 1.18rem); }

/* Memory */
.memory-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  align-items: center;
  gap: clamp(48px, 9vw, 130px);
}

.memory-copy p:not(.eyebrow) {
  max-width: 590px;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
}

.memory-copy h2 { margin-bottom: 34px; }

.memory-window {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: var(--night-soft);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.3);
}

.memory-window-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-light);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.memory-status { display: inline-flex; align-items: center; gap: 8px; color: var(--signal-text); }
.memory-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }
.memory-window ul { margin: 0; padding: 8px; list-style: none; }
.memory-window li { display: grid; gap: 6px; padding: 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.09); }
.memory-window li:last-child { border-bottom: 0; }
.memory-window li span { color: var(--signal-text); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; }
.memory-window li strong { font-size: clamp(0.95rem, 1.8vw, 1.12rem); font-weight: 500; }
.memory-scan { position: absolute; inset: 0 0 auto; height: 1px; background: var(--signal); opacity: 0.45; animation: memory-scan 4s ease-in-out infinite; }
@keyframes memory-scan { 0%, 100% { transform: translateY(44px); } 50% { transform: translateY(310px); } }

/* How it works */
.how-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
  gap: clamp(48px, 9vw, 130px);
}

.how-intro p:last-child { max-width: 560px; margin-top: 30px; color: var(--ink-soft); font-size: 1.08rem; }
.steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 50px 1fr; gap: 22px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.steps li > span { color: var(--orange-ink); font-size: 0.76rem; font-weight: 700; }
.steps strong { display: block; font-size: 1.12rem; }
.steps p { margin: 9px 0 0; color: var(--ink-soft); font-size: 0.94rem; }

/* Channels logo cloud */
.logo-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.logo-cloud-item {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 600;
}

.logo-cloud-item svg { width: 26px; height: 26px; flex: 0 0 auto; color: var(--ink); }

.logo-cloud-item span { white-space: nowrap; }

/* Live token data */
@media (min-width: 761px) {
  .band-signal .container-wide { min-height: 520px; }
}
.token-usage { display: grid; grid-template-columns: 0.72fr 1.28fr; border-top: 1px solid var(--line-light); }
.token-usage[hidden] { display: none; }
.token-total { padding: 34px 40px 34px 0; border-right: 1px solid var(--line-light); }
.token-label { display: block; color: var(--signal-text); }
.token-total strong { display: block; font-family: var(--serif); font-size: clamp(4rem, 9vw, 8rem); font-weight: 500; line-height: 0.9; }
.token-asof { display: block; margin-top: 18px; color: rgba(255, 255, 255, 0.58); font-size: 0.78rem; }
.token-models { padding: 20px 0 20px 40px; }
.token-model-row { display: grid; grid-template-columns: minmax(140px, 0.8fr) minmax(140px, 1.4fr) auto; align-items: center; gap: 20px; min-height: 48px; }
.token-model-name { overflow: hidden; color: rgba(255, 255, 255, 0.82); font-size: 0.84rem; text-overflow: ellipsis; white-space: nowrap; }
.token-model-label { display: flex; align-items: center; gap: 10px; min-width: 0; }
.token-model-label .token-model-name { min-width: 0; }
.token-model-provider { flex: none; padding: 1px 7px; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px; color: rgba(255, 255, 255, 0.72); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.token-model-provider--openai { border-color: var(--signal); color: var(--signal-text); }
.token-providers { display: block; margin-top: 10px; color: rgba(255, 255, 255, 0.72); font-size: 0.76rem; }
.token-providers[hidden] { display: none; }
.token-model-bar { height: 3px; overflow: hidden; background: rgba(255, 255, 255, 0.15); }
.token-model-bar i { display: block; width: 100%; height: 100%; background: var(--signal); transform: scaleX(var(--share)); transform-origin: left center; animation: token-grow 700ms ease-out both; }
.token-model-value { color: var(--white); font-size: 0.78rem; font-weight: 700; }
.token-note { grid-column: 1 / -1; margin: 24px 0 0; color: rgba(255, 255, 255, 0.72); font-size: 0.76rem; }
@keyframes token-grow { from { transform: scaleX(0); } }

/* Blog preview */
.journal-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr); align-items: end; gap: 50px; margin-bottom: 58px; }
.journal-head > p { color: var(--ink-soft); }
.journal-intro p { color: var(--ink-soft); }
.journal-intro .text-link { margin-top: 8px; }
.journal-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; border-top: 1px solid var(--line); }
.journal-grid article { min-height: 230px; padding: 30px 28px; border-bottom: 1px solid var(--line); }
.journal-grid article:not(.journal-lead) { border-left: 1px solid var(--line); }
.journal-lead { grid-row: span 2; min-height: 460px !important; display: flex; flex-direction: column; justify-content: flex-start; color: var(--white); background-color: var(--signal-deep); }
/* Scrim keeps the white text legible over the lead post's photo; the flat
   signal-deep stays underneath as fallback while/if the image never loads. */
.journal-lead.has-image {
  background-image: linear-gradient(to bottom, rgba(15, 19, 18, 0.78), rgba(15, 19, 18, 0.88)), var(--lead-image);
  background-size: cover;
  background-position: center;
}
.journal-lead .journal-more { align-self: flex-start; margin-top: 14px; }
.journal-empty { grid-column: 1 / -1; }
@media (min-width: 761px) { .journal-empty { min-height: 460px !important; } }
.journal-state { display: block; color: var(--orange-ink); }
.journal-lead .journal-state { margin-bottom: auto; color: #ffe28a; }
.journal-grid h3 { max-width: 720px; font-size: clamp(1.55rem, 3vw, 3.6rem); font-weight: 500; }
.journal-grid h3 a { text-decoration: none; }
.journal-grid h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.journal-grid article:not(.journal-lead) h3 { font-size: clamp(1.25rem, 2vw, 2rem); }
.journal-grid p { margin-top: 18px; color: var(--ink-soft); }
.journal-lead p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; color: rgba(255, 255, 255, 0.84); }

/* Trust */
.trust-layout { display: grid; grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr); gap: clamp(48px, 9vw, 130px); }
.trust-list { border-top: 1px solid var(--line); }
.trust-list article { display: grid; grid-template-columns: 44px minmax(180px, 0.7fr) minmax(220px, 1fr); gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.trust-list article > span { color: var(--orange-ink); font-size: 0.76rem; font-weight: 700; }
.trust-list h3 { font-size: 1.1rem; }
.trust-list p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* Join */
.join-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(340px, 1fr); align-items: start; gap: clamp(48px, 9vw, 130px); }
.join-layout > div > p:last-child { max-width: 520px; margin-top: 28px; color: rgba(21, 24, 23, 0.78); }
.band-join .eyebrow { color: var(--night); }
.lead-form { display: grid; gap: 18px; padding: clamp(22px, 4vw, 40px); border: 1px solid rgba(21, 24, 23, 0.3); border-radius: var(--radius); background: rgba(255, 255, 255, 0.36); }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.84rem; font-weight: 700; }
.field .opt { color: rgba(21, 24, 23, 0.76); font-weight: 500; }
.field input,
.field textarea { width: 100%; border: 1px solid rgba(21, 24, 23, 0.28); border-radius: 4px; padding: 0.8rem 0.9rem; color: var(--ink); background: rgba(255, 255, 255, 0.84); font: 500 1rem/1.45 var(--sans); }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--night); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field-error { margin: 0; color: #711b15; font-size: 0.8rem; font-weight: 700; }
#submit-btn { justify-self: start; }
#submit-btn[disabled] { cursor: progress; opacity: 0.66; }
.form-status { min-height: 1.4em; margin: 0; font-size: 0.9rem; }
.form-status.success, .form-status.error { border: 1px solid rgba(21, 24, 23, 0.28); border-radius: 4px; padding: 0.72rem 0.85rem; font-weight: 700; }
.form-status.success { color: var(--signal-deep); background: rgba(255, 255, 255, 0.6); }
.form-status.error { color: #711b15; background: rgba(255, 255, 255, 0.46); }
.form-fineprint { margin: 0; color: rgba(21, 24, 23, 0.78); font-size: 0.75rem; }

/* Footer */
.site-foot { padding-block: 44px; color: var(--white); background: var(--night); }
.site-foot-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.foot-brand { margin: 0 0 3px; font-family: var(--serif); font-size: 2.2rem; line-height: 1; }
.foot-line, .foot-legal { margin: 0; color: rgba(255, 255, 255, 0.56); font-size: 0.78rem; }
.foot-nav { display: flex; align-items: center; gap: 22px; }
.foot-nav a { color: rgba(255, 255, 255, 0.72); font-size: 0.78rem; font-weight: 600; text-decoration: none; }
.foot-nav a:hover { color: var(--white); }

/* Scroll reveals: transforms and clipping preserve full text contrast. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .site-head, .site-nav a, .nav-cta, .btn { transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease; }
  .reveal-first { transform: translateY(18px); animation: reveal-first 560ms cubic-bezier(0.2, 0.72, 0.3, 1) forwards; animation-delay: var(--delay, 0ms); }
  @keyframes reveal-first { to { transform: translateY(0); } }
  .js [data-reveal="up"] { transform: translateY(36px); transition: transform 720ms cubic-bezier(0.2, 0.72, 0.3, 1); }
  .js [data-reveal="side"] { transform: translateY(32px); transition: transform 760ms cubic-bezier(0.2, 0.72, 0.3, 1); }
  .js [data-reveal="scale"] { transform: scale(0.96); transition: transform 680ms cubic-bezier(0.2, 0.72, 0.3, 1); }
  .js [data-reveal="wipe"] img { clip-path: inset(0 100% 0 0); transition: clip-path 900ms cubic-bezier(0.2, 0.72, 0.3, 1); }
  .js [data-reveal="wipe"].is-visible img { clip-path: inset(0); }
  .js [data-reveal].is-visible { transform: none; clip-path: inset(0 0 0 0); }
  /* Capability hover lift (HQ-1295): the independent `translate` property
     composes with the reveal `transform` instead of overriding it, so the
     entrance animation is untouched. Instant by design, like .text-link
     hovers; absent entirely under prefers-reduced-motion. */
  .capability:hover,
  .capability:focus-within { translate: 0 -2px; }
}

@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .js [data-reveal="side"] { transform: translateX(42px); }
  .js .story-reverse [data-reveal="side"] { transform: translateX(-42px); }
  .js [data-reveal="side"].is-visible { transform: none; }
}

@media (max-width: 980px) {
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 0.78rem; }
  .hero-stage { top: 26%; }
  .hero-layer-left { left: -4%; width: 38%; }
  .hero-layer-center { width: 52%; }
  .hero-layer-right { right: -5%; width: 36%; }
  .story, .story-reverse { grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr); }
  .memory-layout, .how-layout { grid-template-columns: 1fr; gap: 44px; }
  .trust-layout, .join-layout { gap: 54px; }
  .capability-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capability, .capability:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .capability:nth-child(2n) { padding-left: 28px; border-left: 1px solid var(--line); }
  .capability:last-child { grid-column: 1 / -1; }
  .trust-list article { grid-template-columns: 36px 1fr; }
  .trust-list p { grid-column: 2; }
}

@media (max-width: 760px) {
  :root { --header-h: 52px; }
  .site-nav { display: none; }
  .site-head-inner { grid-template-columns: 1fr auto; gap: 14px; }
  .brand { font-size: 0.92rem; }
  .brand-mark { width: 25px; height: 25px; }
  .nav-cta { min-height: 36px; padding-inline: 0.7rem; }

  .hero { height: calc(100svh - 30px); min-height: 34rem; max-height: 44rem; }
  .hero-copy { align-items: flex-start; padding-top: 84px; text-align: left; }
  .hero h1 { font-size: clamp(5rem, 29vw, 7.2rem); }
  .hero-statement { font-size: clamp(1.35rem, 6vw, 1.9rem); }
  .hero-bottom { display: block; }
  .hero-bottom > p { max-width: 34rem; font-size: 0.86rem; line-height: 1.48; }
  .hero-actions { justify-content: flex-start; margin-top: 18px; }
  .hero-stage { inset: 28% 0 0; }
  .hero-layer-back { opacity: 0.42; }
  .hero-layer-left { left: -20%; bottom: 24%; width: 62%; }
  .hero-layer-center { left: 54%; bottom: 20%; width: 70%; }
  .hero-layer-right { right: -28%; bottom: 28%; width: 58%; }
  .hero-edge { height: 56%; background: linear-gradient(to bottom, rgba(15, 19, 18, 0), rgba(15, 19, 18, 0.86)); }

  .role-set span { padding-inline: 18px; }
  .role-set span::after { margin-left: 36px; }

  .capability-list { grid-template-columns: 1fr; }
  .capability, .capability:not(:nth-child(3n + 1)), .capability:nth-child(2n) { padding: 24px 0 28px; border-left: 0; }

  .logo-cloud { gap: 10px; }
  .logo-cloud-item { min-height: 42px; padding: 10px 14px; font-size: 0.84rem; }

  .story, .story-reverse { grid-template-columns: 1fr; gap: 26px; margin-bottom: 80px; }
  .story-reverse .story-media, .story-reverse .story-copy { order: initial; }
  .story-copy h3 { font-size: clamp(2rem, 11vw, 3.4rem); }
  .story-copy p { margin-top: 16px; }

  .memory-layout, .how-layout, .trust-layout, .join-layout { grid-template-columns: 1fr; gap: 44px; }
  .memory-window { min-width: 0; }
  .how-intro p:last-child { margin-top: 22px; }

  .token-usage { grid-template-columns: 1fr; }
  .token-total { padding: 24px 0 34px; border-right: 0; border-bottom: 1px solid var(--line-light); }
  .token-models { padding: 22px 0 0; }
  .token-model-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 18px; min-height: 58px; }
  .token-model-bar { grid-column: 1 / -1; grid-row: 2; }
  .token-model-value { justify-self: end; }

  .journal-head { grid-template-columns: 1fr; align-items: start; gap: 24px; }
  .journal-grid { grid-template-columns: 1fr; }
  .journal-grid article, .journal-grid article:not(.journal-lead) { min-height: 220px; padding-inline: 0; border-left: 0; }
  .journal-lead { min-height: 370px !important; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter) !important; }

  .trust-list article { grid-template-columns: 34px 1fr; gap: 12px; }
  .trust-list p { grid-column: 2; }
  .lead-form { padding: 22px; }
  .site-foot-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 380px) {
  .nav-cta { font-size: 0.72rem; }
  .hero-copy { padding-top: 76px; padding-bottom: 24px; }
  .hero-statement { margin-top: 14px; }
  .hero-bottom > p { font-size: 0.8rem; }
  .hero-actions { gap: 12px; }
  .text-link { font-size: 0.84rem; }
}

@media (max-width: 360px) {
  .hero-edge { height: 64%; background: linear-gradient(to bottom, rgba(15, 19, 18, 0.12), rgba(15, 19, 18, 0.9)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .role-track { width: 100%; flex-wrap: wrap; }
  .role-set { flex-wrap: wrap; justify-content: center; }
  .role-set[aria-hidden="true"] { display: none; }
  .hero-layer { --parallax-y: 0px !important; }
  .js [data-reveal], .js [data-reveal] img { transform: none !important; clip-path: none !important; }
  .token-model-bar i { transform: scaleX(var(--share)); }
}
