/* Homepage: a question first, then a calm run of cards and short sections.
   Visual language (public.css): the OpenAI.com style system rebuilt with
   our own type and content. White ground, neutral grays, one sans at a
   medium weight, pill controls and soft 16-24px card radii, light hover
   states and no decorative animation. Every size, space, radius and curve
   resolves to public.css tokens. Chrome lives in chrome.css. */
html { scroll-padding-top: var(--space-800); scroll-behavior: smooth; }
body.home-refresh {
  --ink: var(--site-color-ink);
  --copy: var(--site-color-copy);
  --muted: var(--site-color-muted);
  --quiet: var(--site-color-quiet);
  --line: var(--site-color-line);
  --line-strong: var(--site-color-line-strong);
  --paper: var(--site-color-paper);
  --surface: var(--site-color-surface);
  --surface-strong: var(--site-color-surface-strong);
  --subtle: var(--site-color-subtle);
  --raised: var(--site-color-raised);
  --fill: var(--site-color-fill);
  --fill-hover: var(--site-color-fill-hover);
  --pad: var(--site-gutter);
  --shell: var(--site-width);
  --section-gap: var(--space-900);
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: var(--type-body-3);
  font-family: var(--site-font);
  -webkit-font-smoothing: antialiased;
}
.home-refresh *, .home-refresh *::before, .home-refresh *::after { box-sizing: border-box; }
.home-refresh :where(h1, h2, h3, p, figure, dl, dd) { margin: 0; }
.home-refresh :where(img, svg) { display: block; max-width: 100%; }
:where(body.home-refresh) a { color: inherit; text-decoration: none; }
:where(body.home-refresh) button { border: 0; padding: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.home-refresh :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.home-refresh .ask-input:focus { outline: none; }
.home-shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--pad); }
.home-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.home-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.home-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.home-skip { position: fixed; z-index: 500; top: var(--space-100); left: var(--space-100); transform: translateY(-160%); border-radius: var(--radius-full); background: var(--ink); padding: var(--space-75) var(--space-200); color: #000000; font: var(--type-button-sm); transition: transform var(--site-motion-move); }
.home-skip:focus { transform: none; }

/* Buttons: small pills. Primary is black, secondary is a 4% gray fill. A
   transparent ::after keeps a 44px hit area around the 36-40px pill. */
.home-button,
.home-text-link { position: relative; display: inline-flex; height: 40px; align-items: center; justify-content: center; gap: var(--space-50); border-radius: var(--radius-full); padding-inline: var(--space-200) var(--space-200); font: var(--type-button-sm); white-space: nowrap; transition: background-color var(--site-motion-color), color var(--site-motion-color), transform var(--site-motion-move); }
.home-button::after,
.home-text-link::after { content: ''; position: absolute; inset: -2px; }
.home-button { background: var(--site-color-btn-primary, #ececec); color: #000; }
.home-refresh .home-button { color: #000; }
.home-button:hover { background: var(--site-color-btn-primary-hover, #ffffff); }
.home-text-link { background: var(--fill); color: var(--ink); }
.home-text-link:hover { background: var(--fill-hover); }
.home-button:active, .home-text-link:active { transform: scale(.98); }
.home-button .home-icon, .home-text-link .home-icon { width: 14px; height: 14px; transition: transform var(--site-motion-move); }
.home-button:hover .home-icon { transform: translate(1px, -1px); }

/* Hero foundation; the full-bleed NASA image treatment follows the base rules. */
.home-hero { position: relative; padding-block: clamp(80px, 13vh, 144px) var(--space-800); text-align: center; }
.home-hero-inner { position: relative; width: min(100%, 768px); margin-inline: auto; }
.home-hero h1 { max-width: 720px; margin: 0 auto var(--space-200); color: var(--ink); font: 500 var(--fs-40)/1.15 var(--site-font); letter-spacing: -.025em; text-wrap: balance; }
:lang(zh) .home-hero h1 { letter-spacing: -0.02em; line-height: 1.25; }
.home-hero-lede { max-width: 560px; margin: 0 auto var(--space-500); color: var(--muted); font: var(--type-body-7); text-wrap: balance; }
.hero-ask { width: 100%; }
.ask-box {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-3xl);
  background: var(--raised);
  padding: var(--space-200) var(--space-200) var(--space-200) var(--space-300);
  box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.7);
  text-align: left;
  transition: border-color var(--site-motion-color), box-shadow var(--site-motion-color);
}
.ask-box:hover {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 6px 30px -4px rgba(0, 0, 0, 0.8);
}
.ask-box:focus-within {
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45), 0 8px 36px -8px rgba(0, 0, 0, 0.9);
}
.ask-input { display: block; width: 100%; height: 72px; min-height: 72px; resize: none; border: 0; outline: 0; background: transparent; padding: 4px 48px var(--space-300) 0; color: var(--ink); font: var(--type-body-3); font-family: var(--site-font); }
.ask-placeholder { position: absolute; top: calc(var(--space-200) + 4px); left: var(--space-300); max-width: calc(100% - 96px); color: var(--quiet); font: var(--type-body-3); pointer-events: none; }
.ask-input:not(:placeholder-shown) + .ask-placeholder { display: none; }
/* Inset 12 inside the 24px radius: a 36px circle (inner radius = full). */
.home-refresh .ask-send { position: absolute; right: var(--space-100); bottom: var(--space-100); display: grid; width: 36px; height: 36px; place-items: center; border-radius: var(--radius-full); background: var(--fill); color: var(--quiet); transition: background-color var(--site-motion-color), color var(--site-motion-color), transform var(--site-motion-move); }
.home-refresh .ask-send::after { content: ''; position: absolute; inset: -4px; border-radius: inherit; }
.ask-send .home-icon { width: 18px; height: 18px; stroke-width: 1.8; }
.home-refresh .has-value .ask-send { background: var(--ink); color: #000; }
.home-refresh .ask-send:hover { background: var(--fill-hover); color: var(--ink); }
.home-refresh .has-value .ask-send:hover { background: var(--site-color-ink-hover); color: #000; }
.home-refresh .ask-send:active { transform: scale(.94); }
.ask-handoff { margin-top: var(--space-100); color: var(--muted); font: var(--type-caption-5); }
.ask-suggestions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-75); margin-top: var(--space-300); }
.home-refresh .ask-chip { display: inline-flex; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: var(--radius-full); padding-inline: 14px; background: var(--raised); color: var(--muted); font: var(--type-button-sm); text-align: center; transition: background-color var(--site-motion-color), color var(--site-motion-color), border-color var(--site-motion-color), transform var(--site-motion-move); }
.home-refresh .ask-chip:hover { background: var(--fill); color: var(--ink); }
.home-refresh .ask-chip:active { transform: scale(.98); }
/* Starters need the script. locale.js marks the root in <head>, so they are
   there from the first paint instead of appearing when site.js runs at the
   end of the body and pushing the page down. */
:root:not([data-site-js]) [data-ask-chip] { display: none; }

/* Featured cards: a wide product preview and a square plate, each a soft
   gray card with its caption set underneath. */
.home-feature { scroll-margin-top: var(--space-300); }
.feature-layout { display: grid; grid-template-columns: minmax(0, 2.35fr) minmax(0, 1fr); align-items: start; gap: var(--space-300); }
.feature-main { display: block; min-width: 0; }
/* Card 24 with a 12px inset: the inner sheet takes 24 − 12 = 12. */
.feature-media { overflow: hidden; border-radius: var(--radius-3xl); background: var(--surface); padding: var(--space-100); transition: background-color var(--site-motion-color); }
.feature-main:hover .feature-media { background: var(--surface-strong); }
.demo-frame, .demo-app { border-radius: var(--radius-lg); }
.demo-app { overflow: hidden; background: var(--raised); }
.demo-chat-head { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: var(--space-100); padding: var(--space-100) var(--space-300); border-bottom: 1px solid var(--line); }
.demo-thread-title { font: var(--type-caption-4); }
.demo-preview-label { display: inline-flex; align-items: center; height: 24px; padding-inline: 10px; border-radius: var(--radius-full); background: var(--fill); color: var(--muted); font: var(--type-caption-5); }
/* Recall card: say it first, turn the card, then rate the try. The two
   faces share one grid cell, so turning never changes the height; without
   the script both faces read in order and the controls stay out. */
.rc-body { display: grid; gap: var(--space-300); padding: var(--space-400); }
.rc-card { display: grid; perspective: 1400px; }
.rc-face { grid-area: auto; display: flex; min-width: 0; flex-direction: column; gap: var(--space-75); border-radius: 18px; background: var(--subtle); box-shadow: inset 0 0 0 1px var(--site-hairline); padding: var(--space-300); }
.rc-face + .rc-face { margin-top: var(--space-100); }
.rc-label { display: flex; align-items: center; gap: var(--space-75); color: var(--quiet); font: 500 var(--fs-13)/1.4 var(--site-font); }
.rc-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--ink); }
.rc-dot--open { background: transparent; box-shadow: inset 0 0 0 1.25px var(--ink); }
.rc-prompt { color: var(--ink); font: var(--type-heading-5); letter-spacing: -.01em; text-wrap: pretty; }
:lang(zh) .rc-prompt { letter-spacing: 0; }
.rc-hint { margin-top: auto; padding-top: var(--space-100); color: var(--muted); font: var(--type-caption-5); }
.rc-answer { color: var(--copy); font: var(--type-body-3); text-wrap: pretty; }
.rc-term { color: var(--ink); font-weight: 500; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.rc-actions, .rc-spacing { display: none; }
[data-site-js] .rc-card { grid-template-areas: 'face'; }
[data-site-js] .rc-face { grid-area: face; margin: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform 700ms cubic-bezier(.22,1,.36,1), visibility 0s 350ms; }
[data-site-js] .rc-back { transform: rotateY(180deg); visibility: hidden; }
[data-site-js] .rc-card.is-flipped .rc-front { transform: rotateY(-180deg); visibility: hidden; }
[data-site-js] .rc-card.is-flipped .rc-back { transform: rotateY(0deg); visibility: visible; }
[data-site-js] .rc-actions { display: grid; grid-template-areas: 'act'; justify-items: start; }
[data-site-js] .rc-spacing { display: grid; gap: var(--space-100); }
.rc-actions > * { grid-area: act; transition: opacity 300ms cubic-bezier(.22,1,.36,1), transform 400ms cubic-bezier(.22,1,.36,1), visibility 0s; }
.rc-actions > [aria-hidden="true"] { visibility: hidden; opacity: 0; transform: translateY(4px); transition-delay: 0s, 0s, 300ms; }
.rc-rate { display: flex; flex-wrap: wrap; gap: var(--space-75); }
.rc-flip, .rc-grade { display: inline-flex; height: 36px; align-items: center; border-radius: var(--radius-full); padding-inline: var(--space-200); font: var(--type-button-sm); transition: background-color var(--site-motion-color), color var(--site-motion-color), box-shadow var(--site-motion-color), transform 160ms cubic-bezier(.22,1,.36,1); }
.rc-flip { background: var(--site-color-btn-primary, #ececec); color: #000; }
.rc-flip:hover { background: var(--site-color-btn-primary-hover, #ffffff); color: #000; }
.rc-grade { background: var(--raised); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.rc-grade:hover { background: var(--subtle); }
.rc-grade[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--ink); }
.rc-flip:active, .rc-grade:active { transform: scale(.97); }
/* A hairline from today to much later; the black point is when the idea
   comes back. Its position is a transform of a full-width layer, so the
   move never lays anything out again. */
.rc-track { position: relative; height: 11px; margin-inline: 5px; }
.rc-track::before, .rc-track::after { content: ''; position: absolute; left: 0; right: 0; top: 5px; height: 1px; background: var(--line-strong); }
.rc-track::after { background: var(--ink); transform: scaleX(calc(var(--rc-at, 0) / 3)); transform-origin: left; transition: transform 700ms cubic-bezier(.22,1,.36,1); }
.rc-tick { position: absolute; top: 2px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line-strong); }
.rc-tick[data-at="0"] { left: 0; }
.rc-tick[data-at="1"] { left: 33.333%; }
.rc-tick[data-at="2"] { left: 66.667%; }
.rc-tick[data-at="3"] { left: 100%; }
.rc-mark { position: absolute; inset: 0; transform: translateX(calc(var(--rc-at, 0) * 33.333%)); transition: transform 700ms cubic-bezier(.22,1,.36,1); }
.rc-mark::after { content: ''; position: absolute; left: -5.5px; top: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px var(--raised); }
.rc-scale { position: relative; height: 1.4em; color: var(--quiet); font: 500 var(--fs-12)/1.4 var(--site-font); }
.rc-scale span { position: absolute; top: 0; white-space: nowrap; transform: translateX(-50%); transition: color 300ms cubic-bezier(.22,1,.36,1); }
.rc-scale span:nth-child(1) { left: 0; transform: none; }
.rc-scale span:nth-child(2) { left: 33.333%; }
.rc-scale span:nth-child(3) { left: 66.667%; }
.rc-scale span:nth-child(4) { left: 100%; transform: translateX(-100%); }
.rc-scale span.is-on { color: var(--ink); }
.rc-note { color: var(--muted); font: var(--type-caption-5); }
.demo-map { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-75) var(--space-300); align-items: center; border-top: 1px solid var(--line); padding: var(--space-200) var(--space-400); }
.demo-map-head { color: var(--muted); font: var(--type-caption-4); }
.demo-map-canvas { grid-column: 2; grid-row: 1 / 3; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-75) var(--space-300); }
.demo-node { position: relative; display: inline-flex; align-items: center; height: 32px; padding-inline: 14px; border-radius: var(--radius-full); background: var(--raised); box-shadow: inset 0 0 0 1px var(--line-strong); font: var(--type-caption-1); }
/* The kept connection: the second idea is filled and a short rule joins them. */
.demo-node--b { background: var(--ink); color: #000; box-shadow: none; }
.demo-node--b::before { content: ''; position: absolute; top: 50%; right: 100%; width: var(--space-300); height: 1px; background: var(--line-strong); }
.demo-map-foot { max-width: 380px; color: var(--muted); font: var(--type-caption-5); }
.feature-caption { padding: var(--space-200) var(--space-50) 0; }
.feature-meta { display: flex; flex-wrap: wrap; gap: var(--space-50) var(--space-200); color: var(--muted); font: var(--type-caption-5); }
.feature-meta > :first-child { color: var(--ink); font-weight: 500; }
.hero-plate { display: flex; min-width: 0; flex-direction: column; align-self: start; }
.plate-media { display: block; overflow: hidden; aspect-ratio: 1; border-radius: var(--radius-3xl); background: var(--surface); }
.hero-art { width: 100%; height: auto; aspect-ratio: 1; }
.plate-caption { display: grid; gap: var(--space-50); padding: var(--space-200) var(--space-50) 0; font: var(--type-heading-5); letter-spacing: -.01em; }
.plate-caption > span:last-child { order: -1; }
.plate-index { color: var(--muted); font: var(--type-caption-5); letter-spacing: 0; }
.hero-plate:hover .plate-caption > span:last-child, .feature-meta a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.feature-intro { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-300) var(--space-700); margin-top: var(--space-800); }
.feature-intro h2 { font: var(--type-heading-3); letter-spacing: -.015em; text-wrap: balance; }
:lang(zh) .feature-intro h2 { letter-spacing: 0; line-height: 1.35; }
.feature-intro-copy { min-width: 0; max-width: 560px; padding-top: var(--space-50); }
.feature-description { color: var(--copy); font: var(--type-body-3); text-wrap: pretty; }
.feature-description--lead { color: var(--copy); font: var(--type-body-7); }
.feature-description + .feature-description { margin-top: var(--space-100); }
.hero-actions { margin-top: var(--space-300); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-75); }

/* A short statement between sections: plain medium text, no ornament. */

/* Section rhythm: a small heading with a pill link beside it, no rules. */
.home-stories, .home-research, .home-teams, .home-news, .home-faq { margin-top: var(--section-gap); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-300); margin-bottom: var(--space-300); }
.section-head h2 { font: var(--type-heading-4); letter-spacing: -.01em; text-wrap: balance; }
:lang(zh) .section-head h2 { letter-spacing: 0; }
.section-link { position: relative; display: inline-flex; height: 36px; flex: none; align-items: center; gap: var(--space-50); padding-inline: 14px 12px; border-radius: var(--radius-full); background: var(--fill); color: var(--ink); font: var(--type-button-sm); transition: background-color var(--site-motion-color), transform var(--site-motion-move); }
.section-link::before { content: ''; position: absolute; inset: -4px -2px; }
.section-link::after {
  content: '';
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.8 8h10.2M9 4.1 12.9 8 9 11.9'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.8 8h10.2M9 4.1 12.9 8 9 11.9'/%3E%3C/svg%3E") center / contain no-repeat;
}
.section-link:hover { background: var(--fill-hover); }
.section-link:active { transform: scale(.98); }

/* How it works: an image card beside a title, copy and three step rows. */
.story-layout, .learning-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: var(--space-700); }
.story-visual { min-width: 0; }
.story-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-3xl);
  aspect-ratio: 16 / 9;
  background: #02040a;
  box-shadow: 0 16px 44px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--line);
  transition: box-shadow 400ms var(--site-ease);
}
.story-media::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12);
}
.story-visual:hover .story-media {
  box-shadow: 0 24px 56px -12px rgba(0, 0, 0, 0.85), 0 0 0 1px var(--line-strong);
}
.story-visual img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.story-visual figcaption { margin-top: var(--space-100); padding-inline: var(--space-50); color: var(--muted); font: var(--type-caption-5); }
.home-editorial-title { max-width: 560px; font: var(--type-heading-3); letter-spacing: -.015em; text-wrap: balance; }
:lang(zh) .home-editorial-title { letter-spacing: 0; line-height: 1.35; }
.home-editorial-copy { max-width: 520px; margin-top: var(--space-200); color: var(--copy); font: var(--type-body-7); text-wrap: pretty; }
.story-steps { display: grid; gap: var(--space-50); margin-top: var(--space-400); }
.story-step { display: grid; grid-template-columns: 32px minmax(0, 1fr) 16px; align-items: center; gap: var(--space-100); min-height: 56px; padding: var(--space-100) var(--space-200) var(--space-100) var(--space-100); border-radius: var(--radius-xl); background: var(--subtle); transition: background-color var(--site-motion-color), transform var(--site-motion-move); }
.story-step:hover { background: var(--surface); }
.story-step:active { transform: scale(.99); }
.story-step > span:first-child { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-full); background: var(--raised); box-shadow: 0 0 0 1px var(--line); color: var(--muted); font: var(--type-caption-4); font-variant-numeric: tabular-nums; }
.story-step > span:last-child { color: var(--quiet); }
.story-step .home-icon { width: 16px; height: 16px; }
.story-step h3 { font: var(--type-title-3); }
.story-step:hover > span:last-child { color: var(--ink); }

/* Research: three equal cards, image on top, title and meta underneath. */
.home-research-layout { min-width: 0; }
.home-research-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-300); margin: 0; padding: 0; list-style: none; }
.home-research-list li { min-width: 0; }
.home-research-note { display: block; }
.home-research-media { display: block; overflow: hidden; border-radius: var(--radius-xl); aspect-ratio: 16 / 9; margin-bottom: var(--space-200); background: var(--surface); }
.home-research-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-research-note > div { display: flex; flex-direction: column-reverse; gap: var(--space-75); padding-inline: var(--space-50); }
.home-research-meta { display: flex; flex-wrap: wrap; gap: var(--space-50) var(--space-200); color: var(--muted); font: var(--type-caption-5); }
.home-research-meta span { color: var(--ink); font-weight: 500; }
.home-research-note h3 { font: var(--type-heading-5); letter-spacing: -.01em; text-wrap: balance; }
.news-item:hover h3, .home-research-note:hover h3 { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.learning-uses { display: grid; gap: var(--space-50); margin: var(--space-300) 0 var(--space-300); padding: 0; list-style: none; color: var(--copy); font: var(--type-body-6); font-size: var(--fs-15); }
.learning-uses li { display: flex; align-items: center; gap: var(--space-100); min-height: 48px; padding: var(--space-100) var(--space-200); border-radius: var(--radius-xl); background: var(--subtle); }
.learning-uses li::before { content: ''; flex: none; width: 16px; height: 16px; background: var(--ink); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 8.5 3 3 6-7'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 8.5 3 3 6-7'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Further reading: six small rounded cards. */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-100); }
.news-item { display: flex; min-width: 0; min-height: 128px; border-radius: var(--radius-2xl); background: var(--subtle); padding: var(--space-300); transition: background-color var(--site-motion-color), transform var(--site-motion-move); }
.news-item:hover { background: var(--surface); }
.news-item:active { transform: scale(.99); }
.news-body { display: flex; min-width: 0; flex-direction: column; justify-content: space-between; gap: var(--space-200); }
.news-body h3 { font: var(--type-title-3); text-wrap: balance; }
.news-meta { color: var(--muted); font: var(--type-caption-5); }

/* FAQ: the heading on the left, a two-column list on the right. */
.home-faq-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--space-300) var(--space-700); }
.home-faq-head h2 { font: var(--type-heading-4); letter-spacing: -.01em; }
:lang(zh) .home-faq-head h2 { letter-spacing: 0; }
.home-faq-head p { margin-top: var(--space-75); color: var(--muted); font: var(--type-body-6); }
.home-faq-head .section-link { margin-top: var(--space-200); }
.home-faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-400) var(--space-500); }
.home-faq-item { min-width: 0; }
.home-faq-item h3 { font: var(--type-title-3); text-wrap: balance; }
.home-faq-item p { margin-top: var(--space-75); color: var(--muted); font: var(--type-body-6); font-size: var(--fs-15); line-height: 1.5rem; text-wrap: pretty; }

/* Final call to action: a gray rounded panel with two pills. */
.home-cta { margin-block: var(--section-gap) 0; }
.home-cta-inner { display: grid; justify-items: center; gap: var(--space-200); border-radius: var(--radius-3xl); background: var(--surface); border: 1px solid var(--line); padding: var(--space-800) var(--space-300); text-align: center; }
.home-cta-inner h2 { max-width: 720px; font: var(--type-heading-3); letter-spacing: -.015em; text-wrap: balance; }
:lang(zh) .home-cta-inner h2 { letter-spacing: 0; line-height: 1.35; }
.home-cta-inner p { max-width: 560px; color: var(--muted); font: var(--type-body-7); text-wrap: balance; }
.home-cta-inner .home-text-link { background: var(--raised); }
.home-cta-inner .home-text-link:hover { background: var(--subtle); }
.home-cta-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-75); margin-top: var(--space-100); }

/* Very wide screens: the container stops at 1440px of content (public.css)
   and the hero gets a little more air instead of larger type. */
@media (min-width: 1920px) {
  .home-hero { padding-block: 168px var(--space-900); }
}
@media (max-width: 1280px) {
  .demo-map { display: block; }
  .demo-map-canvas { margin-top: var(--space-100); }
  .demo-map-foot { max-width: none; margin-top: var(--space-75); }
  .story-layout, .learning-layout { gap: var(--space-500); }
}
@media (max-width: 1080px) {
  .feature-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .feature-intro { column-gap: var(--space-500); }
  .home-faq-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  body.home-refresh { --section-gap: var(--space-700); }
  .home-hero { padding-block: var(--space-500) var(--space-600); }
  .home-hero h1 { margin-bottom: var(--space-100); font-size: var(--fs-32); }
  .home-hero-lede { margin-bottom: var(--space-300); font: var(--type-body-6); font-size: var(--fs-15); }
  .ask-box { padding: var(--space-100) var(--space-100) var(--space-100) var(--space-200); border-radius: var(--radius-3xl); }
  .ask-input { height: 64px; min-height: 64px; padding: 6px 44px var(--space-200) 0; }
  .ask-placeholder { top: calc(var(--space-100) + 6px); left: var(--space-200); max-width: calc(100% - 72px); }
  .home-refresh .ask-send { right: var(--space-75); bottom: var(--space-75); }
  .ask-suggestions { margin-top: var(--space-200); gap: 6px; }
  .home-refresh .ask-chip { height: 36px; padding-inline: 12px; font: var(--type-button-xsm); }
  .feature-layout { grid-template-columns: minmax(0, 1fr); }
  .feature-media { border-radius: var(--radius-2xl); padding: var(--space-75); }
  .demo-chat-head { padding-inline: var(--space-200); }
  .demo-map { padding: var(--space-200); }
  .demo-node--b::before { display: none; }
  .hero-plate { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--space-200); }
  .plate-media { border-radius: var(--radius-2xl); }
  .plate-caption { padding: 0; font: var(--type-heading-6); }
  .feature-intro { display: block; margin-top: var(--space-500); }
  .feature-intro-copy { margin-top: var(--space-200); padding-top: 0; }
  .section-head { gap: var(--space-200); margin-bottom: var(--space-200); }
  .section-head h2 { flex: 1; min-width: 0; font: var(--type-heading-5); }
  .section-head .section-link { height: 32px; padding-inline: 12px 10px; font: var(--type-button-xsm); }
  .news-grid { grid-template-columns: minmax(0, 1fr); }
  .news-item { min-height: 0; padding: var(--space-200) var(--space-200); }
  .story-layout, .learning-layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-300); }
  .story-media { border-radius: var(--radius-2xl); }
  .home-editorial-copy { font: var(--type-body-3); }
  .home-research-list { grid-template-columns: minmax(0, 1fr); gap: var(--space-200); }
  .home-research-note { display: grid; grid-template-columns: 128px minmax(0, 1fr); align-items: center; gap: var(--space-200); }
  .home-research-media { margin-bottom: 0; border-radius: var(--radius-lg); }
  .home-research-note > div { padding-inline: 0; }
  .home-research-note h3 { font: var(--type-title-3); }
  .learning-layout .story-visual { grid-row: 1; }
  .home-faq-list { grid-template-columns: minmax(0, 1fr); gap: var(--space-300); }
  .home-cta-inner { padding: var(--space-600) var(--space-300); border-radius: var(--radius-2xl); }
}
@media (max-width: 380px) {
  .home-hero h1 { font-size: var(--fs-32); }
  .hero-plate { grid-template-columns: minmax(0, 1fr); }
  .home-research-note { grid-template-columns: 104px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ask-box, .home-refresh .ask-send, .home-refresh .ask-chip, .feature-media, .news-item, .story-step, .section-link, .home-skip, .home-button, .home-text-link, .home-button .home-icon {
    transition: none !important;
    animation: none !important;
  }
  .news-item:active, .story-step:active, .home-refresh .ask-chip:active, .home-refresh .ask-send:active, .home-button:active, .home-text-link:active, .section-link:active, .home-button:hover .home-icon { transform: none; }
}

/* The hero is its own stacking context: the dot field sits behind its words. */
.home-hero { isolation: isolate; }
/* The question box: white sheet, hairline, contact shadow and a wide soft
   ambient shadow; focus deepens the ring, never a colour. */
.ask-box { border: 1px solid var(--line-strong); box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.7); transition: box-shadow 300ms var(--site-ease), border-color 300ms var(--site-ease); }
.ask-box:hover { border-color: rgba(255, 255, 255, 0.28); box-shadow: 0 6px 30px -4px rgba(0, 0, 0, 0.8); }
.ask-box:focus-within { border-color: rgba(255, 255, 255, 0.45); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45), 0 8px 36px -8px rgba(0, 0, 0, 0.9); }
/* Typewriter caret for the rotating example question (home-question.js). */
.ask-placeholder.is-typing::after { content: ''; display: inline-block; width: 1.5px; height: 1.1em; margin-left: 2px; vertical-align: -.18em; border-radius: 1px; background: var(--muted); animation: home-caret 1s steps(1, end) infinite; }
@keyframes home-caret { 50% { opacity: 0; } }
.home-refresh .ask-chip { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }
/* Feature cards: a hairline and soft depth on the preview sheet. */
.demo-app { box-shadow: var(--site-shadow-1); }
.feature-media, .plate-media { box-shadow: inset 0 0 0 1px var(--line); }
.news-item { position: relative; box-shadow: inset 0 0 0 1px var(--line); transition: background-color 300ms var(--site-ease), transform 500ms var(--site-ease); }
.news-item::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: var(--site-shadow-2); opacity: 0; pointer-events: none; transition: opacity 300ms var(--site-ease); }
@media (hover: hover) and (pointer: fine) {
  .news-item:hover { transform: translateY(-2px); background: var(--surface-strong); }
  .news-item:hover::after { opacity: 1; }
}
.home-cta-inner { box-shadow: inset 0 0 0 1px var(--line); }
@media (prefers-reduced-motion: reduce) {
  .ask-placeholder.is-typing::after { animation: none; display: none; }
  .news-item, .news-item::after, .ask-box { transition: none; }
  .news-item:hover { transform: none; }
}

/* The question chain: the page's one idea made operable. A learner's first
   answer, then one question at a time, each leading to the next; the wrong
   first answer is struck through in place and what stays is a small map.
   Every step is laid out from the start (future steps are only hidden), so
   advancing never moves the page. Without the script all steps and the map
   show, and the controls stay hidden. */
.home-chain { margin-top: var(--section-gap); }
.qc-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-700); align-items: start; }
.qc-intro { position: sticky; top: calc(var(--site-header-height) + var(--space-600)); padding-top: var(--space-300); }
.qc-intro h2 { font: var(--type-heading-2); letter-spacing: -.02em; }
:lang(zh) .qc-intro h2 { letter-spacing: 0; }
.qc-lede { max-width: 440px; margin-top: var(--space-200); color: var(--muted); font: var(--type-body-3); }
.qc-lines { display: grid; gap: var(--space-50); margin-top: var(--space-600); font: var(--type-heading-4); letter-spacing: -.01em; }
:lang(zh) .qc-lines { letter-spacing: 0; line-height: 1.5; }
.qc-line { color: var(--ink); text-wrap: balance; transition: color 300ms cubic-bezier(.22,1,.36,1); }
[data-qc-ready] .qc-line { color: var(--line-strong); }
[data-qc-ready] .qc-line.is-past { color: var(--quiet); }
[data-qc-ready] .qc-line.is-on { color: var(--ink); }
.qc-controls { display: none; align-items: center; gap: var(--space-200); margin-top: var(--space-500); }
[data-qc-ready] .qc-controls { display: flex; }
.qc-next .home-icon { transition: transform 300ms cubic-bezier(.22,1,.36,1); }
.qc-next:hover .home-icon { transform: translateX(2px); }
.qc-next.is-again .home-icon { transform: rotate(180deg); }
.qc-count { color: var(--quiet); font: 500 var(--fs-13)/1 var(--site-font-mono); font-variant-numeric: tabular-nums; }

.qc-stage { position: relative; margin: 0; padding: var(--space-400) var(--space-500) var(--space-400); border-radius: var(--radius-3xl); background: var(--subtle) var(--site-noise); box-shadow: inset 0 0 0 1px var(--site-hairline); }
.qc-stage-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-200); color: var(--copy); font: 500 var(--fs-13)/1.4 var(--site-font); }
.qc-badge { padding: var(--space-50) var(--space-100); border-radius: var(--radius-full); background: var(--fill); color: var(--muted); font-weight: 500; box-shadow: inset 0 0 0 1px var(--line); }
.qc-list { --qc-progress: 1; position: relative; margin: var(--space-500) 0 0; padding: 0 0 0 var(--space-500); list-style: none; }
.qc-list::before, .qc-list::after { content: ''; position: absolute; left: 7px; top: 10px; bottom: 34px; width: 1px; background: var(--line-strong); }
.qc-list::after { background: var(--ink); transform: scaleY(var(--qc-progress)); transform-origin: top; transition: transform 700ms cubic-bezier(.22,1,.36,1); }
.qc-step { position: relative; padding-bottom: var(--space-400); }
.qc-dot { position: absolute; left: calc(-1 * var(--space-500) + 3px); top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px var(--subtle); transition: transform 400ms cubic-bezier(.22,1,.36,1), box-shadow 400ms cubic-bezier(.22,1,.36,1); z-index: 1; }
.qc-step.is-current .qc-dot { transform: scale(1.25); box-shadow: 0 0 0 4px var(--subtle), 0 0 0 7px var(--line-strong); }
.qc-label { color: var(--quiet); font: 500 var(--fs-13)/1.4 var(--site-font); }
.qc-question { margin-top: var(--space-50); color: var(--ink); font: var(--type-heading-5); letter-spacing: -.01em; text-wrap: pretty; transition: color 300ms cubic-bezier(.22,1,.36,1); }
:lang(zh) .qc-question { letter-spacing: 0; }
.qc-step.is-past .qc-question { color: var(--muted); }
.qc-answer { display: inline-block; max-width: 100%; margin-top: var(--space-100); padding: 10px var(--space-200); border-radius: 18px; background: var(--raised); box-shadow: var(--site-shadow-1); color: var(--copy); font: 400 var(--fs-15)/1.5 var(--site-font); }
.qc-who { margin-right: var(--space-75); color: var(--quiet); font-weight: 500; }
.qc-answer-text { background: linear-gradient(currentColor, currentColor) 0 58% / 0 1.5px no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size 600ms cubic-bezier(.22,1,.36,1), color 300ms cubic-bezier(.22,1,.36,1); }
.qc-answer.is-struck .qc-answer-text { background-size: 100% 1.5px; color: var(--quiet); }
.qc-step :is(.qc-label, .qc-question, .qc-answer, .qc-dot) { transition-property: opacity, transform, color, box-shadow; transition-duration: 500ms; transition-timing-function: cubic-bezier(.22,1,.36,1); }
.qc-step.is-current .qc-label, .qc-step.is-current .qc-question { transition-delay: 220ms; }
.qc-step.is-current .qc-answer { transition-delay: 620ms; }
.qc-step.is-current .qc-dot { transition-delay: 120ms; }
.qc-step.is-future { visibility: hidden; transition: visibility 0s 500ms; }
.qc-step.is-future :is(.qc-label, .qc-question, .qc-answer) { opacity: 0; transform: translateY(8px); transition-delay: 0s; }
.qc-step.is-future .qc-dot { opacity: 0; transform: scale(.4); transition-delay: 0s; }

.qc-map { padding-top: var(--space-200); border-top: 1px solid var(--site-hairline); transition: opacity 500ms cubic-bezier(.22,1,.36,1) 300ms; }
.qc-map-svg { width: 100%; max-width: 560px; height: auto; margin-top: var(--space-100); overflow: visible; }
.qc-edge { stroke: var(--line-strong); stroke-width: 1.25; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 800ms cubic-bezier(.22,1,.36,1); }
.qc-edge-cut { stroke: var(--line-strong); }
.qc-node { transition: opacity 400ms cubic-bezier(.22,1,.36,1); }
.qc-node circle { fill: var(--raised); stroke: var(--ink); stroke-width: 1.5; }
.qc-node-root circle { fill: var(--ink); }
.qc-node-cut circle { stroke: var(--quiet); stroke-width: 1; }
.qc-node text { fill: var(--copy); font: 500 var(--fs-13) var(--site-font); }
.qc-node-cut text { fill: var(--quiet); text-decoration: line-through; }
/* Round 9: the chain is drawn on the hero's dot field. modules.js sizes the
   map so one map unit (16) is a whole number of pixels and moves the field
   so its points sit exactly under the map's nodes. Each step turns one or
   two of those points into nodes and draws the link to them, so "What you
   keep" grows out of the field. Without scripts the field stays off and
   the map is simply complete. */
.qc-stage { isolation: isolate; }
.qc-stage::before { content: ''; position: absolute; z-index: -1; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; background: radial-gradient(circle at center, rgba(255, 255, 255, 0.07) .75px, transparent 1.15px) var(--qc-gx, 0) var(--qc-gy, 0) / var(--qc-g, 18px) var(--qc-g, 18px); }
.qc-stage[data-qc-grid]::before { opacity: 1; }
.qc-node circle { transform-box: fill-box; transform-origin: center; transition: transform 500ms cubic-bezier(.22,1,.36,1), fill 300ms cubic-bezier(.22,1,.36,1), stroke 300ms cubic-bezier(.22,1,.36,1); }
.qc-node text { transition: opacity 400ms cubic-bezier(.22,1,.36,1); }
/* Still a point of the field: the size and gray of its neighbours. */
.qc-node.is-grid circle { fill: rgba(255, 255, 255, 0.12); stroke: transparent; transform: scale(.18); transition-duration: 300ms; }
.qc-node-root.is-grid circle { transform: scale(.15); }
.qc-node-cut.is-grid circle { transform: scale(.225); }
.qc-node.is-grid text { opacity: 0; transition-duration: 200ms; }
.qc-edge.is-grid { stroke-dashoffset: 1; transition-duration: 300ms; }
/* Becoming a node: the link reaches the point first, then it grows. */
.qc-node:not(.is-grid) circle { transition-delay: 450ms; }
.qc-node:not(.is-grid) text { transition-delay: 650ms; }

@media (max-width: 1080px) {
  /* One column: the controls follow the stage, so each new step appears
     just above the button that asked for it. */
  .qc-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .qc-intro { display: contents; }
  .qc-lines { margin-top: var(--space-400); }
  .qc-stage { order: 1; margin-top: var(--space-500); }
  .qc-controls { order: 2; margin-top: var(--space-300); }
}
@media (max-width: 760px) {
  .qc-intro h2 { font: var(--type-heading-3); }
  .qc-lines { font: var(--type-heading-5); }
  .qc-stage { padding: var(--space-300) var(--space-200); border-radius: var(--radius-3xl); }
  .qc-list { margin-top: var(--space-300); padding-left: var(--space-400); }
  .qc-dot { left: calc(-1 * var(--space-400) + 3px); }
  .qc-question { font-size: var(--fs-17); }
  .qc-node text { font-size: var(--fs-18); }
}
@media (prefers-reduced-motion: reduce) {
  .qc-line, .qc-list::after, .qc-step, .qc-step *, .qc-answer-text, .qc-map, .qc-edge, .qc-node, .qc-next .home-icon { transition: none !important; }
}
/* Steps still to come keep a hollow dot on the thread, so the reserved
   space reads as questions waiting, not as an empty card. */
.qc-step.is-future .qc-dot { opacity: 1; transform: scale(.78); background: var(--subtle); box-shadow: 0 0 0 4px var(--subtle), inset 0 0 0 1.5px var(--line-strong); }
.qc-step.is-future { visibility: visible; }
.qc-step.is-future :is(.qc-label, .qc-question, .qc-answer) { visibility: hidden; transition: opacity 300ms cubic-bezier(.22,1,.36,1), transform 300ms cubic-bezier(.22,1,.36,1), visibility 0s 300ms; }
[data-qc-ready] .qc-line { color: rgba(255, 255, 255, 0.38); }
.qc-next.is-again { background: var(--fill); color: var(--ink); box-shadow: none; }
.qc-next.is-again:hover { background: var(--fill-hover); }
.home-chain + .home-feature { margin-top: var(--section-gap); }

@media (max-width: 760px) {
  .rc-body { gap: var(--space-200); padding: var(--space-300) var(--space-200); }
  .rc-face { padding: var(--space-200); }
  .rc-prompt { font-size: var(--fs-17); }
}
@media (prefers-reduced-motion: reduce) {
  /* The card swaps faces at once instead of turning. */
  [data-site-js] .rc-face, .rc-actions > *, .rc-track::after, .rc-mark, .rc-scale span { transition: none !important; }
  .rc-flip:active, .rc-grade:active { transform: none; }
}

/* Closing question: the thread from the question chain returns as three
   points, the last one still open, above the site's final question. */
.cta-kicker { display: inline-flex; align-items: center; gap: var(--space-100); color: var(--quiet); font: 500 var(--fs-13)/1.4 var(--site-font); }
.cta-thread { position: relative; display: inline-flex; align-items: center; gap: 14px; }
.cta-thread::before { content: ''; position: absolute; left: 3px; right: 3px; top: 50%; height: 1px; background: var(--line-strong); }
.cta-thread i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px var(--surface); }
.cta-thread i:last-child { background: var(--surface); box-shadow: 0 0 0 3px var(--surface), inset 0 0 0 1.25px var(--ink); }

/* Round 10 · A1. The halftone question mark (hero-mark.js).
   Meaning: every question grows out of what you already know. The first
   screen carries a faint, regular field of dots (everything known); the
   question mark is Geist's own "?" (weight 500) sampled on that field: each
   cell's dot grows and darkens with how much of the glyph covers it, so the
   outline stays smooth with small light dots at its edges. Its point is the
   same halftone (Geist's period is square, so it is a square block of dots),
   not a separate solid disc. With motion, scrolling away fades the stroke
   back into the field and gathers the point's block into one black dot, the
   size of a question-chain node, which then starts the chain; the footer's
   "Socrates." ends on the same halftone point.
   The field is CSS on the mark's own box, so it is always aligned with the
   mark's cells: the box is exactly --hm-cols x --hm-rows cells of --hm-s
   pixels, and the field's origin sits a whole number of cells away. The
   inline SVG is the finished mark (no scripts, reduced motion); with motion
   hero-mark.js writes the same cells onto a canvas. Nothing here depends on
   scripts for its size, so nothing shifts. */
.home-hero { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; z-index: 2; overflow: clip; }
.hero-mark { --hm-s: 12px; --hm-cols: 13; --hm-rows: 18; position: relative; order: -1; width: calc(var(--hm-cols) * var(--hm-s)); height: calc(var(--hm-rows) * var(--hm-s)); margin: 0 0 var(--space-100); pointer-events: none; }
/* The field: 1.5px dots, very light, fading out well before any edge.
   Round 10 (performance): the fade is a white veil painted over the dots
   (::after) instead of a mask, and the field only covers the fade's own
   ellipse, not 160 cells each way. A mask on a ~3000px layer had the
   software compositor re-blend it on every scrolled frame; two plain
   backgrounds are rasterised once. Both boxes start a whole number of
   cells from the mark, so the dots stay on the mark's cells. */
.hero-mark { --hm-fx: 24; --hm-fy: 27; }
.hero-mark::before, .hero-mark::after { content: ''; position: absolute; z-index: -1; inset: calc(-1 * var(--hm-fy) * var(--hm-s)) calc(-1 * var(--hm-fx) * var(--hm-s)); pointer-events: none; }
.hero-mark::before { background: radial-gradient(circle at center, rgba(255, 255, 255, 0.12) .75px, transparent 1.15px) 0 0 / var(--hm-s) var(--hm-s); }
.hero-mark::after { background: radial-gradient(closest-side, rgb(0 0 0 / 0) 0%, rgb(0 0 0 / .45) 50%, #000000 100%); }
.hero-mark-svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; }
.hm-fine { display: none; }
.hm-nodes, .hm-point { fill: #ffffff; }
/* Scripts and motion are coming: hold the finished mark back so the canvas
   can write it, but bring it in anyway if the canvas never starts. */
@media (prefers-reduced-motion: no-preference) {
  [data-site-js] .hero-mark-svg { opacity: 0; animation: hero-mark-fallback 300ms var(--site-ease) 2.5s forwards; }
  [data-site-js] .hero-mark.is-live .hero-mark-svg { animation: none; opacity: 0; }
}
@keyframes hero-mark-fallback { to { opacity: 1; } }
/* The canvas lives on <main>, so the point can leave the hero for the
   question chain while the hero itself clips its dot field. */
.home-refresh main { position: relative; }
.hero-mark-canvas { position: absolute; z-index: 3; top: 0; left: 0; display: block; pointer-events: none; }
/* The one black dot the point gathers into (hero-mark.js moves it). */
.hero-mark-dot { position: absolute; z-index: 3; top: 0; left: 0; width: 12px; height: 12px; border-radius: 50%; background: #ffffff; opacity: 0; transform-origin: 50% 50%; pointer-events: none; will-change: transform; }
/* Until the point has arrived, the chain's first node waits for it; the
   point then becomes that node (the canvas stops drawing it). */
.qc-list[data-point-pending] .qc-step[data-qc-step="0"] .qc-dot { visibility: hidden; }
.home-hero-inner { z-index: 1; }
@media (min-width: 761px) and (max-width: 1023px) {
  .home-hero { padding-top: clamp(48px, 7vh, 72px); }
  .hero-mark { --hm-s: 14px; margin-bottom: var(--space-300); }
}
/* Phones: the question entry keeps the first screen (it must be reachable
   at once), so the mark follows the starters, right above the question
   chain it hands its point to. */
@media (max-width: 760px) {
  .hero-mark { order: 1; margin: var(--space-400) 0 0; }
}
/* Desktop: the question on the left, the mark on the right, drawn at the
   finer resolution. */
@media (min-width: 1024px) {
  .home-hero { grid-template-columns: minmax(0, 720px) minmax(0, 1fr); align-items: center; justify-items: stretch; column-gap: clamp(48px, 6vw, 120px); padding-block: clamp(32px, 6vh, 72px) var(--space-700); text-align: left; }
  .home-hero-inner { width: 100%; margin: 0; }
  .home-hero h1, .home-hero-lede { margin-inline: 0; }
  .home-hero .ask-suggestions { justify-content: flex-start; }
  .hero-mark { --hm-s: 16px; --hm-cols: 18; --hm-rows: 25; order: 0; justify-self: center; margin: 0; }
  .hero-mark { --hm-fx: 33; --hm-fy: 5; }
  .hm-fine { display: block; }
  .hm-compact { display: none; }
}
@media (min-width: 1024px) and (max-width: 1180px) {
  .home-hero { grid-template-columns: minmax(0, 600px) minmax(0, 1fr); }
}
@media (min-width: 1680px) { .hero-mark { --hm-s: 18px; } }

/* OpenAI clean dark UI: centered question, charcoal card, pill suggestion chips,
   and a standalone NASA visual card placed sequentially below the interaction surface. */
.home-hero.home-shell,
[data-site-public] .home-hero.home-shell {
  position: relative;
  display: block;
  width: 100%;
  max-width: var(--site-width);
  margin-inline: auto;
  padding-inline: var(--pad);
  padding-block: clamp(64px, 10vh, 108px) var(--space-800);
  background: var(--paper);
  text-align: center;
}
.home-hero-inner {
  position: relative;
  width: min(100%, 768px);
  margin-inline: auto;
  padding: 0;
  text-align: center;
}
.home-hero h1 {
  max-width: 760px;
  margin: 0 auto var(--space-200);
  color: var(--ink);
  font: 500 clamp(var(--fs-40), 5.5vw, var(--fs-64))/1.15 var(--site-font);
  letter-spacing: -.025em;
  text-wrap: balance;
  text-align: center;
}
:lang(zh) .home-hero h1 {
  max-width: 16ch;
  line-height: 1.25;
  letter-spacing: 0;
}
.home-hero-lede {
  max-width: 560px;
  margin: 0 auto var(--space-400);
  color: var(--muted);
  font: var(--type-body-7);
  text-wrap: balance;
  text-align: center;
}
.hero-ask {
  width: min(100%, 680px);
  margin-inline: auto;
}
.home-hero .ask-box {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-3xl);
  background: var(--raised);
  padding: var(--space-200) var(--space-200) var(--space-200) var(--space-300);
  box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.7);
  text-align: left;
  transition: border-color var(--site-motion-color), box-shadow var(--site-motion-color);
}
.home-hero .ask-box:hover {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 6px 30px -4px rgba(0, 0, 0, 0.8);
}
.home-hero .ask-box:focus-within {
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45), 0 8px 36px -8px rgba(0, 0, 0, 0.9);
}
.home-hero .ask-input {
  color: var(--ink);
}
.home-hero .ask-placeholder {
  color: var(--quiet);
}
.home-hero .ask-handoff {
  color: var(--muted);
}
.home-hero .ask-suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-75);
  margin-top: var(--space-300);
}
.home-hero .ask-chip,
.home-hero .ask-chip--link {
  display: inline-flex;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-full);
  padding-inline: 14px;
  background: var(--raised);
  color: var(--copy);
  font: var(--type-button-sm);
  text-align: center;
  transition: background-color var(--site-motion-color), color var(--site-motion-color), border-color var(--site-motion-color), transform var(--site-motion-move);
}
.home-hero .ask-chip:hover,
.home-hero .ask-chip--link:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: var(--fill-hover);
  color: var(--ink);
}
.home-refresh .home-hero .ask-send {
  position: absolute;
  right: var(--space-100);
  bottom: var(--space-100);
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: var(--radius-full);
  background: var(--fill);
  color: var(--quiet);
  transition: background-color var(--site-motion-color), color var(--site-motion-color), transform var(--site-motion-move);
}
.home-refresh .home-hero .ask-send:hover {
  background: var(--fill-hover);
  color: var(--ink);
}
.home-refresh .home-hero .has-value .ask-send {
  background: var(--site-color-btn-primary, #ececec);
  color: #000000;
}
.home-refresh .home-hero .has-value .ask-send:hover {
  background: var(--site-color-btn-primary-hover, #ffffff);
  color: #000000;
}

/* Standalone art card: positioned below the interaction block, not a background */
.home-hero-image {
  position: relative;
  display: block;
  width: 100%;
  max-width: min(100%, 1160px);
  margin: var(--space-700) auto 0;
  border-radius: var(--radius-3xl);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #080808;
  box-shadow: 0 24px 64px -16px rgba(0, 0, 0, 0.85);
}
.home-hero-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 49%;
  filter: none;
}
.home-hero-image figcaption {
  position: absolute;
  right: var(--space-300);
  bottom: var(--space-200);
  max-width: min(440px, 60vw);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.7);
  color: var(--muted);
  font: var(--type-caption-5);
  text-align: right;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.home-refresh .home-button {
  background: var(--site-color-btn-primary, #ececec);
  color: #000000;
}
.home-refresh .home-button:hover {
  background: var(--site-color-btn-primary-hover, #ffffff);
  color: #000000;
}
.home-cta-inner {
  border-radius: var(--radius-3xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.home-cta-inner .home-text-link {
  background: var(--raised);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.home-cta-inner .home-text-link:hover {
  background: var(--surface-strong);
}
.feature-media, .plate-media {
  box-shadow: inset 0 0 0 1px var(--site-hairline);
  background: var(--surface);
}
.demo-app, .rc-face, .demo-node, .story-step > span:first-child {
  box-shadow: inset 0 0 0 1px var(--site-hairline);
}
.news-item:hover {
  background: var(--site-color-surface-strong);
}
@media (max-width: 760px) {
  .home-hero.home-shell {
    padding-block: var(--space-600) var(--space-600);
  }
  .home-hero-inner {
    padding: 0;
  }
  .home-hero h1 {
    max-width: 14ch;
    margin-bottom: var(--space-150);
    font-size: clamp(var(--fs-32), 8.5vw, var(--fs-48));
    letter-spacing: -.025em;
  }
  :lang(zh) .home-hero h1 {
    font-size: clamp(var(--fs-32), 8.5vw, var(--fs-40));
    line-height: 1.25;
  }
  .home-hero-lede {
    margin-bottom: var(--space-300);
    font: var(--type-body-3);
  }
  .home-hero-image {
    margin-top: var(--space-500);
    border-radius: var(--radius-2xl);
  }
  .home-hero-image img {
    object-position: center 49%;
  }
  .home-hero-image figcaption {
    right: var(--site-gutter);
    bottom: 12px;
    left: var(--site-gutter);
    max-width: none;
    font-size: var(--fs-11);
    text-align: left;
  }
}
