/* Font families (--sans, --serif, --font-ui) come from css/type.css (HQ-1892). */
: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;
  --yellow: #f4c95d;
  --error: #a92b22;
  --line: rgba(21, 24, 23, 0.16);
  --line-light: rgba(255, 255, 255, 0.18);
  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 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(--white); border-top: 1px solid var(--line); }

.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: css/nav.css (HQ-1868). */

/* 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;
}

/* 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); }
/* The Beta badge sits on the title line, right of the title (HQ-1892): inside the h3 but after
   its button, so it is not part of the button's accessible name and adds no card height. */
.capability h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.capability-badge {
  display: inline-block;
  flex: none;
  margin: 0;
  border: 1px solid var(--cap-badge-line, var(--signal));
  border-radius: 999px;
  padding: 3px 9px;
  color: var(--cap-accent, var(--signal-deep));
  background: var(--cap-badge-fill, var(--signal-tint));
  font: 700 0.66rem/1.2 var(--sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 240ms ease, border-color 240ms ease, background-color 240ms ease;
}
.capability h3 { color: var(--cap-title, var(--ink)); font-size: clamp(1.25rem, 2.2vw, 1.75rem); transition: color 240ms ease; }
.capability p { margin: 16px 0 0; color: var(--ink-soft); font-size: 0.94rem; }

/* Card examples (HQ-1883, js/site.js): the title is the card's one button and its ::after
   stretches over the whole card, so a click anywhere opens the example dialog. On hover or
   keyboard focus an opaque white surface (::before) with a soft drop rises behind the card,
   above its neighbours, and the other cards go quiet (below); the zoom itself is gated with the other
   motion rules at the bottom. Zoom and bleed are sized per layout so the lifted surface stays
   inside the neighbours' padding: it never covers part of a neighbour's text. */
.capability { position: relative; isolation: isolate; --cap-zoom: 1.06; --cap-bleed: -10px; }
.capability::before {
  content: "";
  position: absolute;
  inset: -6px var(--cap-bleed);
  z-index: -1;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line), 0 28px 50px -24px rgba(15, 19, 18, 0.5);
  opacity: 0;
  pointer-events: none;
}
.capability:hover,
.capability:has(.capability-open:focus-visible) { z-index: 2; }
.capability:hover::before,
.capability:has(.capability-open:focus-visible)::before { opacity: 1; }
.capability-open { margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; line-height: inherit; text-align: left; cursor: pointer; }
.capability-open::after { content: ""; position: absolute; inset: 0; }
/* The other cards go quiet without losing contrast (WCAG AA, .kiro/steering/product.md): no
   opacity, which would fade their text below 4.5:1. Titles soften to --ink-soft and the green
   accents turn grey, so every word stays >= 4.5:1 on the paper while the lifted card alone
   keeps its ink and green. */
@media (hover: hover) {
  .capability-list:has(.capability:hover) .capability:not(:hover) { --cap-title: var(--ink-soft); --cap-accent: var(--ink-soft); --cap-badge-line: var(--line); --cap-badge-fill: transparent; }
}
.capability-list:has(.capability-open:focus-visible) .capability:not(:has(.capability-open:focus-visible)) { --cap-title: var(--ink-soft); --cap-accent: var(--ink-soft); --cap-badge-line: var(--line); --cap-badge-fill: transparent; }

/* The example dialog: one native modal shared by all nine cards. */
html.dialog-open { overflow: hidden; }
.capability-dialog {
  width: min(520px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 16px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line), 0 40px 90px -30px rgba(15, 19, 18, 0.6);
}
.capability-dialog::backdrop { background: rgba(15, 19, 18, 0.55); }
.capability-dialog-body { position: relative; padding: 30px clamp(22px, 5vw, 34px) 28px; }
.capability-dialog .eyebrow { margin-bottom: 10px; }
/* Fixed rem steps (smaller in the 760px block below), no viewport-width font scaling. */
.capability-dialog h2 { margin-right: 44px; font-size: 2.3rem; font-weight: 500; line-height: 1.02; text-wrap: balance; }
.capability-dialog-example p { margin: 20px 0 0; padding-left: 16px; border-left: 3px solid var(--signal); font-size: 1.15rem; line-height: 1.55; }
.capability-dialog-sign { margin: 14px 0 0 19px; color: var(--ink-soft); font-size: 0.84rem; font-weight: 700; }
.capability-dialog-sign::before { content: "\2014\00a0"; }
.capability-dialog-date { font-weight: 500; }
.capability-dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--t-r-btn, 10px);
  color: var(--ink);
  background: var(--white);
  font: 500 1.6rem/1 var(--sans);
  cursor: pointer;
}
.capability-dialog-close:hover { border-color: var(--ink); }

/* 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; }
.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(--signal-deep); 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;
}

/* Brand marks keep their own colours (fills in the markup); the Apple mark is monochrome ink. */
.logo-cloud-item svg { width: 26px; height: 26px; flex: 0 0 auto; color: var(--ink); }

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

/* Gmail is the one live link (mailto): the anchor fills the pill, so the whole pill is the
   target and the focus ring follows its shape. The others are plain labels. */
.logo-cloud-item:has(> .logo-cloud-link) { padding: 0; }
.logo-cloud-link {
  display: inline-flex;
  align-items: center;
  gap: inherit;
  min-height: inherit;
  padding: 12px 20px;
  border-radius: inherit;
  color: inherit;
  text-decoration: none;
}
.logo-cloud-item:has(> .logo-cloud-link:hover) { border-color: var(--ink-soft); }
.logo-cloud-link:hover span { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* 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 */
/* Overflow clip (not hidden: no scroll container) keeps the title crash's flying letters
   (HQ-1893, js/site.js) inside the band, so they never widen the page or spill into the band above. */
.journal { overflow: clip; }
.journal-head { margin-bottom: clamp(36px, 5vw, 58px); }
.journal-head h2 { font-weight: 600; text-wrap: balance; }
/* The link's inline box rises ~0.21em above the tight title line, so its focus ring hugs it
   (1px offset) and the eyebrow sits a touch further off on wide screens, where the title is big. */
.journal-head .eyebrow { margin-bottom: clamp(14px, 1.6vw, 24px); }
.journal-title-link { text-decoration: none; }
.journal-title-link:focus-visible { outline-offset: 1px; }
.journal-title-link:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
/* While the crash is armed or playing, the link holds two aria-hidden copies: the final title's
   words in flow (they set the height, so nothing below moves) and the old title's letters laid
   absolutely over them. Inline-block words never break mid-word; inline blocks do not inherit
   the link's underline, so hover sets it on them directly. */
.journal-head h2.is-crashing .journal-title-link { position: relative; display: block; }
.tc-word { display: inline-block; white-space: nowrap; }
.tc-new .tc-word { transform-origin: 50% 100%; }
.tc-old { position: absolute; inset: 0 0 auto; font-weight: 500; }
.tc-char { display: inline-block; transform-origin: 50% 60%; }
.is-armed .tc-new .tc-word { opacity: 0; }
.journal-title-link:hover .tc-new .tc-word,
.journal-title-link:hover .tc-char { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.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; }
.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(--signal-deep); 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); }

.lead-form { display: grid; gap: 18px; padding: clamp(22px, 4vw, 40px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.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; }
/* A footer link never breaks inside itself: on a narrow screen the nav wraps whole links. */
.foot-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.foot-nav a { color: rgba(255, 255, 255, 0.72); font-size: 0.78rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.foot-nav a:hover { color: var(--white); }
/* Mid widths: when the three blocks do not fit side by side, the legal line
   moves to a row of its own under the brand and the nav. */
@media (min-width: 761px) and (max-width: 1279px) {
  .site-foot-inner { flex-wrap: wrap; row-gap: 18px; }
}
/* Wide screens: one row. The brand block and the nav keep their natural
   width; only the legal line gives way, onto a balanced, right-aligned
   second line when the brand line is the longer one. */
@media (min-width: 1280px) {
  .site-foot-inner > div, .foot-nav { flex: none; }
  .foot-legal { min-width: 0; text-align: right; text-wrap: balance; }
}

/* Scroll reveals: transforms and clipping preserve full text contrast. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .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 zoom (HQ-1295, HQ-1883): the independent `translate` and `scale`
     properties compose with the reveal `transform` instead of overriding it, so
     the entrance animation is untouched. Hover (pointer devices) and keyboard
     focus lift and zoom the card on a spring; absent entirely under
     prefers-reduced-motion. */
  .capability { transition: translate 450ms cubic-bezier(0.34, 1.56, 0.64, 1), scale 450ms cubic-bezier(0.34, 1.56, 0.64, 1); }
  .capability::before { transition: opacity 240ms ease; }
  .js .capability[data-reveal] { transition: transform 720ms cubic-bezier(0.2, 0.72, 0.3, 1), translate 450ms cubic-bezier(0.34, 1.56, 0.64, 1), scale 450ms cubic-bezier(0.34, 1.56, 0.64, 1); }
  /* The revealed state's clip-path would cut the raised surface to the card's box. */
  .js .capability[data-reveal].is-visible { clip-path: none; }
  /* ...and the blog title crash's flying letters (HQ-1893) to the head's box; the band clips them. */
  .js .journal-head[data-reveal].is-visible { clip-path: none; }
  .capability:has(.capability-open:focus-visible) { translate: 0 -6px; scale: var(--cap-zoom); }
  .capability-dialog[open] { animation: dialog-in 320ms cubic-bezier(0.22, 1, 0.36, 1); }
  /* Channel pills (HQ-1892): a 2px lift and a slight mark zoom on a spring, every item. */
  .logo-cloud-item { transition: translate 200ms cubic-bezier(0.34, 1.56, 0.64, 1), border-color 200ms ease; }
  .logo-cloud-item svg { transition: scale 200ms cubic-bezier(0.34, 1.56, 0.64, 1); }
  .capability-dialog[open]::backdrop { animation: dialog-fade 240ms ease-out; }
  @keyframes dialog-in { from { transform: translateY(18px) scale(0.97); } }
  @keyframes dialog-fade { from { opacity: 0; } }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .capability:hover { translate: 0 -6px; scale: var(--cap-zoom); }
  .logo-cloud-item:hover { translate: 0 -2px; }
  .logo-cloud-item:hover svg { scale: 1.06; }
}

@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) {
  .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; }
  .capability { --cap-zoom: 1.08; }
  .trust-list article { grid-template-columns: 36px 1fr; }
  .trust-list p { grid-column: 2; }
}

@media (max-width: 760px) {

  .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)); }

  .capability-list { grid-template-columns: 1fr; }
  .capability, .capability:not(:nth-child(3n + 1)), .capability:nth-child(2n) { padding: 24px 0 28px; border-left: 0; }
  /* One full-width column: a gentler zoom and bleed that stay inside the side gutter, so
     6–8px of page shows on each side of the raised surface (390px: 20px gutter − 3.5px zoom
     − 10.2px bleed). */
  .capability { --cap-zoom: 1.02; --cap-bleed: -10px; }
  .capability-dialog h2 { font-size: 1.7rem; }
  .capability-dialog-example p { font-size: 1.02rem; }

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

  .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-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) {
  .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; }
  .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)); }
}
