/* Observatory: neural dynamics, a research terrain, and room to read. */
:root {
  color-scheme: dark;
  --background: #101312;
  --surface: #171c19;
  --surface-soft: #131815;
  --text: #f0f0e7;
  --muted: #b0b9ae;
  --quiet: #8e9b90;
  --accent: #d0e4b0;
  --accent-ink: #192316;
  --warm: #c6ad91;
  --line: rgba(225, 234, 219, .17);
  --fine-line: rgba(225, 234, 219, .09);
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --page-gutter: clamp(22px, 4.8vw, 76px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}


::selection { background: var(--accent); color: var(--accent-ink); }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 500; }
button[hidden], [hidden] { display: none !important; }
.wrap { width: min(1440px, calc(100% - var(--page-gutter) * 2)); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 100;
  inset: 12px auto auto 12px;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--accent-ink);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }
.draft-banner {
  padding: 8px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--fine-line);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  letter-spacing: .025em;
}
.draft-banner span { padding-inline: 8px; color: var(--accent); }

/* Standalone project preview dialog. */

/* Navigation stays ordinary and available, including on small screens. */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 112px; }
.brand { display: inline-flex; align-items: center; gap: 15px; min-height: 44px; }
.brand-mark { display: inline-flex; font-size: 35px; line-height: 1; font-weight: 500; letter-spacing: -.15em; }
.brand-mark span { color: var(--accent); }
.brand-domain { font-size: 14px; letter-spacing: .015em; }
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 32px; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 14px; transition: color 160ms; }
.site-header nav a:hover { color: var(--accent); }
.site-header nav .nav-contact { gap: 18px; color: var(--text); }
.nav-contact span { color: var(--accent); }

/* The observatory: type and one substantial object, without a frame of cards. */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(28px, 4vw, 76px);
  row-gap: 40px;
  padding-top: 50px;
}
.hero-copy { position: relative; z-index: 1; padding-bottom: 24px; }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--muted); font-family: var(--mono); font-size: 12px; line-height: 1.7; letter-spacing: .095em; text-transform: uppercase; }
.small-cross { color: var(--accent); font-family: var(--sans); font-size: 22px; font-weight: 300; line-height: 1; }
.hero h1 {
  margin-top: 34px;
  font-size: clamp(78px, 8.2vw, 132px);
  font-weight: 400;
  letter-spacing: -.075em;
  line-height: .96;
}
.hero h1 em { font-family: var(--sans); font-size: .72em; font-weight: 400; font-style: normal; letter-spacing: -.065em; white-space: nowrap; }
.hero-intro { max-width: 40ch; margin-top: 34px; color: var(--muted); font-size: clamp(17px, 1.35vw, 20px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 15px 28px; margin-top: 35px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 50px; padding: 12px 19px; background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); font-size: 14px; line-height: 1.4; transition: background-color 160ms, color 160ms; }
.button:hover { background: var(--text); border-color: var(--text); }
.button span { font-size: 21px; line-height: 1; }
.text-link { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; color: var(--text); font-size: 14px; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 7px; transition: color 160ms, text-decoration-color 160ms; }
.text-link:hover { color: var(--accent); text-decoration-color: var(--accent); }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; margin-top: 42px; color: var(--quiet); font-size: 12px; line-height: 1.6; }
.meta-rule { width: 28px; height: 1px; background: var(--line); }
.hero-figure { position: relative; min-width: 0; color: var(--accent); }
.figure-topline { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0 0 13px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; letter-spacing: .055em; color: var(--quiet); }
.figure-mode { margin-left: auto; }
.figure-cross { margin-left: 20px; font-family: var(--sans); font-size: 23px; font-weight: 300; line-height: .6; color: var(--accent); }
.figure-stage { position: relative; width: 100%; aspect-ratio: 1.1; isolation: isolate; }
.figure-stage canvas, .figure-fallback { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.figure-stage canvas { z-index: 1; }
.figure-fallback { z-index: 0; padding: 5%; }
.figure-stage.canvas-ready .figure-fallback { visibility: hidden; }
.hero-figure figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--quiet); font-family: var(--mono); font-size: 12px; line-height: 1.5; }
.hero-figure figcaption > span { display: inline-flex; align-items: center; gap: 8px; }
.figure-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.motion-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 8px 0 8px 12px; border: 0; background: transparent; color: var(--muted); font-family: var(--mono); font-size: 12px; }
.motion-button:hover { color: var(--accent); }
.motion-button span { font-family: var(--sans); font-size: 13px; }
.hero-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); color: var(--quiet); font-family: var(--mono); font-size: 12px; letter-spacing: .035em; }
.hero-bottom > a { display: inline-flex; align-items: center; gap: 35px; min-height: 44px; color: var(--muted); }
.hero-bottom > a:hover { color: var(--accent); }
.hero-bottom > a span { color: var(--accent); font-size: 16px; }

/* Research reads as a sequence of studies, not a dashboard. */
.section { margin-top: clamp(90px, 10vw, 160px); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 54px; }
.section-heading h2, .about-copy h2 { margin-top: 19px; font-size: clamp(45px, 4.7vw, 72px); line-height: 1.08; letter-spacing: -.055em; }
h2 em { color: var(--accent); font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.05em; }
.section-deck { max-width: 34ch; padding-bottom: 6px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.section-deck span { color: var(--quiet); }
.section-heading.compact { align-items: flex-end; margin-bottom: 40px; }
.section-heading.compact h2 { font-size: clamp(40px, 4vw, 60px); }
.project-drawing { width: 100%; height: auto; overflow: visible; }
.example-tag { display: inline-block; padding: 3px 6px; border: 1px solid var(--line); color: var(--quiet); font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .02em; line-height: 1.4; text-transform: none; white-space: nowrap; }
.publications { margin: 0; padding: 0; list-style: none; }
.publication { display: grid; grid-template-columns: 95px minmax(0, 1fr); gap: 25px; padding: 34px 0; border-top: 1px solid var(--line); }
.publication:last-child { border-bottom: 1px solid var(--line); }
.publication-year { padding-top: 4px; color: var(--quiet); font-family: var(--mono); font-size: 12px; }
.publication h3 { max-width: 60ch; font-size: clamp(21px, 2vw, 28px); line-height: 1.35; letter-spacing: -.025em; }
.publication p { max-width: 75ch; margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.publication .publication-venue { margin-top: 4px; color: var(--quiet); }
.publication-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 13px; }
.publication-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-size: 13px; }
.publication-links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.empty-publications { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 35px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.empty-mark { color: var(--accent); font-family: var(--mono); font-size: 32px; font-weight: 300; }
.empty-publications h3 { font-size: 23px; letter-spacing: -.025em; }
.empty-publications p { max-width: 65ch; margin-top: 8px; color: var(--muted); font-size: 14px; }
.notes-list { border-top: 1px solid var(--line); }
.note-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 44px; align-items: center; gap: 28px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.note-kind { color: var(--quiet); font-family: var(--mono); font-size: 12px; line-height: 1.6; letter-spacing: .04em; }
.note-kind small { display: block; margin-top: 5px; font-size: 12px; }
.note-row h3 { font-size: clamp(22px, 2.3vw, 31px); line-height: 1.3; letter-spacing: -.035em; }
.note-row p { max-width: 70ch; margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.note-arrow { justify-self: end; color: var(--accent); font-size: 27px; font-weight: 300; transition: transform 180ms; }
.note-row:hover h3 { color: var(--accent); }
.note-row:hover .note-arrow { transform: translate(3px, -3px); }

/* A personal page has room for a person as well as their publications. */
.about-section { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(40px, 8vw, 130px); padding-block: 30px 20px; }
.about-label { padding-top: 6px; }
.about-question { max-width: 22ch; margin-top: 27px; color: var(--accent); font-family: var(--serif); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.4; letter-spacing: -.02em; }
.about-copy h2 { margin-top: 0; }
.about-copy > p { max-width: 56ch; margin-top: 29px; color: var(--muted); font-size: 17px; line-height: 1.8; }
.about-copy .content-note { margin-top: 16px; padding-left: 18px; border-left: 1px solid var(--line); color: var(--quiet); font-size: 13px; }
.about-links { display: flex; flex-wrap: wrap; gap: 12px 27px; margin-top: 25px; }
.contact-section { margin-top: clamp(76px, 8vw, 120px); padding-top: clamp(40px, 4vw, 60px); padding-bottom: clamp(48px, 5vw, 75px); border-top: 1px solid var(--line); }
.contact-section h2 { margin-top: 29px; font-size: clamp(38px, 4.7vw, 64px); font-weight: 400; line-height: 1.08; letter-spacing: -.06em; }
.contact-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 25px 40px; margin-top: 44px; }
.contact-profiles { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 27px; }
.contact-link { display: inline-flex; align-items: center; gap: 30px; min-height: 44px; font-size: clamp(18px, 2vw, 28px); letter-spacing: -.02em; overflow-wrap: anywhere; }
.contact-link span { color: var(--accent); }
.contact-link:hover { color: var(--accent); }
.contact-placeholder { color: var(--quiet); font-size: 15px; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 28px; padding-block: 26px 32px; border-top: 1px solid var(--line); color: var(--quiet); font-size: 12px; }
.site-footer > a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer > a:hover { color: var(--accent); }
.site-footer p span { padding-inline: 7px; }

/* Project and note pages keep the same type and spacing. */
.article { padding-top: 48px; padding-bottom: 100px; }
.article-back { color: var(--muted); }
.article-header { max-width: 1050px; margin-top: 58px; }
.article-header h1 { margin-top: 24px; font-size: clamp(42px, 6vw, 84px); font-weight: 400; line-height: 1.08; letter-spacing: -.055em; }
.article-summary { max-width: 65ch; margin-top: 28px; color: var(--muted); font-size: clamp(17px, 1.6vw, 21px); line-height: 1.7; }
.article-figure { max-width: 1050px; margin-block: 55px; padding: 28px 5% 22px; background: var(--surface-soft); color: var(--accent); }
.article-figure .project-drawing { max-height: 500px; }
.article-figure figcaption { margin-top: 16px; color: var(--quiet); font-family: var(--mono); font-size: 12px; }
.prose { max-width: 76ch; margin-top: 46px; color: var(--muted); font-size: 17px; line-height: 1.85; }
.prose h2, .prose h3 { margin-top: 44px; margin-bottom: 15px; color: var(--text); line-height: 1.25; letter-spacing: -.03em; }
.prose h2 { font-size: 32px; }
.prose h3 { font-size: 24px; }
.prose p, .prose ul, .prose ol, .prose blockquote { margin-top: 19px; margin-bottom: 19px; }
.prose li { margin-block: 6px; }
.prose strong { color: var(--text); font-weight: 500; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.prose blockquote { margin-inline: 0; padding-left: 24px; border-left: 2px solid var(--accent); }
.prose code { padding: 2px 5px; background: var(--surface); color: var(--text); font-family: var(--mono); font-size: .85em; }
.prose pre { padding: 22px; overflow: auto; border: 1px solid var(--line); background: var(--surface); line-height: 1.6; }
.prose pre code { padding: 0; }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 14px; }
.prose td, .prose th { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { color: var(--text); font-weight: 500; }
.prose hr { margin-block: 40px; border: 0; border-top: 1px solid var(--line); }

@media (min-width: 1600px) {
  .hero { padding-top: 70px; }
  .hero-copy { padding-bottom: 50px; }
}

@media (max-width: 1050px) {
  :root { --page-gutter: 36px; }
  .site-header { min-height: 96px; }
  .site-header nav { gap: 10px 22px; }
  .hero { column-gap: 28px; padding-top: 30px; }
  .hero h1 { font-size: clamp(70px, 9vw, 100px); }
  .hero h1 em { font-size: .65em; }
  .hero-intro { font-size: 16px; }
  .hero-actions { gap: 8px 20px; margin-top: 25px; }
  .hero-meta { margin-top: 28px; }
  .note-row { grid-template-columns: 110px minmax(0, 1fr) 30px; }
  .about-section { gap: 60px; }
}

@media (max-width: 760px) {
  :root { --page-gutter: 26px; }
  .site-header { flex-wrap: wrap; gap: 5px 20px; padding-block: 15px 9px; }
  .brand { min-height: 48px; }
  .site-header nav { gap: 0 23px; }
  .site-header nav a { font-size: 13px; }
  .hero{ grid-template-columns: minmax(0, 1fr); gap: 38px; padding-top: 44px; }
  .hero-copy { padding-bottom: 0; }
  .hero h1{ margin-top: 25px; font-size: clamp(80px, 14vw, 114px); }
  .hero h1 em { font-size: .74em; }
  .hero-intro { max-width: 48ch; margin-top: 27px; font-size: 17px; }
  .hero-actions { margin-top: 27px; }
  .hero-meta { margin-top: 25px; }
  .hero-figure { width: 100%; max-width: 580px; margin: 0 auto; }
  .figure-stage { aspect-ratio: 1.2; }
  .hero-bottom { gap: 18px; padding: 10px 0 17px; }
  .hero-bottom > a { gap: 15px; }
  .section { margin-top: 88px; }
  .section-heading { gap: 25px; margin-bottom: 35px; }
  .section-heading h2, .about-copy h2 { font-size: clamp(42px, 7.2vw, 56px); }
  .section-deck { max-width: 25ch; font-size: 13px; }
  .publication { grid-template-columns: 58px minmax(0, 1fr); gap: 15px; padding-block: 27px; }
  .publication h3 { font-size: 22px; }
  .empty-publications { grid-template-columns: 45px minmax(0, 1fr); gap: 18px; }
  .empty-publications > .example-tag { grid-column: 2; justify-self: start; }
  .empty-mark { font-size: 24px; }
  .note-row { grid-template-columns: 90px minmax(0, 1fr) 26px; gap: 18px; padding-block: 24px; }
  .note-row h3 { font-size: 24px; }
  .note-row p { font-size: 13px; }
  .about-section { grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); gap: 35px; padding-block: 0; }
  .about-label .eyebrow { max-width: 16ch; }
  .about-copy > p { font-size: 15px; }
  .contact-section { margin-top: 90px; padding-block: 55px 60px; }
  .contact-section h2 { font-size: clamp(42px, 7.4vw, 60px); }
  .contact-bottom { margin-top: 32px; gap: 20px; }
  .site-footer { gap: 6px 24px; padding-block: 19px 25px; }
  .site-footer p { flex-basis: 100%; order: 3; font-size: 12px; }
  .article { padding-top: 30px; padding-bottom: 65px; }
  .article-header { margin-top: 38px; }
  .article-header h1 { font-size: 48px; }
  .article-figure { margin-block: 35px; padding: 15px 3% 18px; }
  .prose { font-size: 16px; }
}

@media (max-width: 480px) {
  :root { --page-gutter: 22px; }
  .draft-banner { padding: 8px 16px; font-size: 12px; }
  .site-header { gap: 4px; }
  .brand { gap: 13px; }
  .brand-mark { font-size: 32px; }
  .brand-domain { font-size: 13px; }
  .site-header nav { width: 100%; justify-content: space-between; gap: 4px 8px; }
  .site-header nav a { font-size: 12px; }
  .site-header nav .nav-contact { gap: 7px; }
  .hero{ padding-top: 34px; gap: 35px; }
  .eyebrow { font-size: 12px; letter-spacing: .075em; }
  .hero h1{ font-size: clamp(71px, 20.7vw, 96px); line-height: .98; }
  .hero h1 em { font-size: .71em; }
  .hero-intro { font-size: 16px; line-height: 1.65; }
  .hero-actions { gap: 10px 20px; }
  .button { min-height: 48px; padding: 11px 15px; gap: 23px; font-size: 12px; }
  .text-link { gap: 9px; font-size: 12px; }
  .hero-meta { gap: 9px; font-size: 12px; }
  .meta-rule { width: 18px; }
  .figure-stage { aspect-ratio: 1.06; }
  .figure-topline { font-size: 12px; }
  .figure-cross { margin-left: 5px; }
  .hero-figure figcaption { font-size: 12px; }
  .motion-button { font-size: 12px; gap: 8px; padding-left: 0; }
  .hero-bottom { font-size: 12px; }
  .hero-bottom > a { gap: 10px; }
  .section { margin-top: 76px; }
  .section-heading, .section-heading.compact { flex-wrap: wrap; align-items: flex-start; gap: 22px; margin-bottom: 29px; }
  .section-heading h2, .about-copy h2 { margin-top: 15px; font-size: 43px; }
  .section-heading.compact h2 { font-size: 38px; }
  .section-deck { max-width: 35ch; padding-bottom: 0; font-size: 13px; }
  .publication { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .publication h3 { font-size: 22px; }
  .publication p { font-size: 13px; }
  .publication-links { gap: 5px 25px; margin-top: 8px; }
  .note-row { grid-template-columns: minmax(0, 1fr) 24px; gap: 9px 12px; }
  .note-kind { grid-column: 1 / -1; font-size: 12px; }
  .note-kind small { display: inline; margin-left: 10px; }
  .note-row h3 { font-size: 24px; }
  .note-row p { font-size: 13px; }
  .about-section { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .about-label { display: block; }
  .about-question { max-width: 30ch; margin-top: 17px; font-size: 26px; }
  .about-label .eyebrow { max-width: none; }
  .about-copy h2 { margin-top: 0; }
  .about-copy > p { margin-top: 24px; font-size: 15px; }
  .about-copy .content-note { font-size: 12px; }
  .contact-section { margin-top: 76px; padding-block: 43px 48px; }
  .contact-section h2 { font-size: clamp(37px, 10.7vw, 48px); line-height: 1.13; }
  .contact-section h2 br { display: none; }
  .contact-bottom { display: block; }
  .contact-profiles { margin-top: 13px; }
  .contact-link { gap: 14px; font-size: 18px; }
  .contact-placeholder { font-size: 13px; }
  .article-header h1 { font-size: 42px; }
  .article-summary { font-size: 16px; }
  .article-figure figcaption { font-size: 12px; }
  .prose { font-size: 15px; }
  .prose h2 { font-size: 28px; }
  .prose h3 { font-size: 22px; }
  .atlas-node { gap: 5px; padding-right: 0; padding-left: 18px; font-size: 12px; }
  .atlas-node span { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .note-row:hover .note-arrow { transform: none; }
}

/* Observatory: a continuous signal-to-state-space study. */
.hero { align-items: start; row-gap: 30px; }
.hero-copy { grid-column: 1; grid-row: 1; padding-top: 8px; }
.hero-figure { grid-column: 2; grid-row: 1 / span 2; align-self: start; position: sticky; top: 24px; }
.figure-stage { height: clamp(340px, 46vh, 490px); aspect-ratio: auto; margin-top: 14px; margin-bottom: 12px; }
.figure-fallback { padding: 0; object-fit: contain; }
.figure-state { position: absolute; inset: auto 0 -3px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--quiet); font-family: var(--mono); font-size: 12px; line-height: 1.4; }
.figure-state-label { color: var(--muted); }
.figure-state-number { color: var(--accent); white-space: nowrap; }
.journey-controls { display: grid; grid-template-columns: 1fr 1.2fr 1.1fr; gap: 5px; padding-top: 12px; border-top: 1px solid var(--fine-line); }
.journey-controls button { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 9px 8px; color: var(--muted); font-family: var(--sans); font-size: 12px; background: transparent; border: 1px solid var(--line); border-radius: 2px; transition: background-color 160ms, color 160ms; }
.journey-controls button span { color: var(--quiet); font-family: var(--mono); font-size: 12px; }
.journey-controls button:hover { color: var(--accent); border-color: var(--accent); }
.journey-controls button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.journey-controls button[aria-pressed="true"] span { color: inherit; opacity: .65; }
.figure-description { min-height: 3.4em; margin-top: 13px; margin-bottom: 8px; max-width: 62ch; color: var(--muted); font-size: 13px; line-height: 1.65; }
.stimulation-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; margin-bottom: 13px; }
.stimulate-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 35px; min-height: 44px; padding: 10px 14px; border: 1px solid var(--warm); background: transparent; color: #e2b277; font-size: 12px; }
.stimulate-button:hover:not(:disabled) { background: rgba(226,178,119,.08); }
.stimulate-button:disabled { color: var(--quiet); border-color: var(--line); }
.reset-button { min-height: 44px; padding: 10px 8px; background: transparent; color: var(--muted); border: 0; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.reset-button:hover { color: var(--text); }
.stimulus-status { flex-basis: 100%; min-height: 2.8em; max-width: 60ch; color: var(--quiet); font-size: 12px; line-height: 1.5; }
.figure-methods { margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.figure-methods summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding-block: 8px; cursor: pointer; list-style: none; }
.figure-methods summary::-webkit-details-marker { display: none; }
.figure-methods summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.figure-methods summary:hover { color: var(--accent); }
.figure-methods summary span { color: var(--accent); font-size: 18px; }
.figure-methods[open] summary span { transform: rotate(45deg); }
.figure-methods > div { max-height: 240px; overflow-y: auto; padding: 8px 16px 15px; border-left: 1px solid var(--line); }
.figure-methods p + p { margin-top: 12px; }
.figure-methods a { display: inline-block; min-height: 38px; padding-block: 9px; margin-right: 14px; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.figure-parameters { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.journey-copy { grid-column: 1; grid-row: 2; padding-top: 18px; }
.journey-step { display: flex; flex-direction: column; justify-content: center; min-height: 24vh; padding: 24px 30px 24px 0; border-top: 1px solid var(--fine-line); }
.journey-step h2 { margin-top: 12px; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.12; letter-spacing: -.045em; }
.journey-step > p:not(.eyebrow) { max-width: 42ch; margin-top: 14px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.journey-step .eyebrow { color: var(--quiet); }
.journey-step.is-current .eyebrow { color: var(--accent); }
.hero-bottom { grid-row: 3; }
body[data-motion="paused"] *, body[data-motion="paused"] *::before, body[data-motion="paused"] *::after { scroll-behavior: auto !important; }

@media (min-width: 901px) and (min-height: 811px) {
  .hero-figure[data-stage="2"] .figure-stage { height: clamp(300px, calc(100dvh - 500px), 440px); }
  .hero-figure:has(.figure-methods[open]) { max-height: calc(100dvh - 48px); overflow-y: auto; padding-right: 10px; scrollbar-width: thin; }
  .hero-figure:has(.figure-methods[open]) .figure-methods > div { max-height: none; overflow: visible; }
}

@media (min-width: 901px) and (max-height: 810px) {
  .hero-figure { top: 12px; }
  .figure-stage { height: 310px; }
  .figure-description { margin-top: 9px; min-height: 3.4em; font-size: 12px; }
  .stimulation-controls { margin-bottom: 8px; gap: 4px 14px; }
  .stimulus-status { font-size: 12px; }
}
@media (min-width: 901px) and (max-height: 810px) {
  .hero-figure { position: static; grid-row: 1; }
  .journey-copy { display: none; }
  .hero-bottom { grid-row: 2; }
}
@media (max-width: 1050px) and (min-width: 901px) {
  .journey-controls button { font-size: 12px; gap: 6px; padding-inline: 5px; }
  .journey-step { padding-right: 14px; }
  .journey-step h2 { font-size: 30px; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); row-gap: 45px; }
  .hero-copy { grid-column: 1; grid-row: 1; max-width: 650px; }
  .hero-figure { grid-column: 1; grid-row: 2; position: static; width: 100%; max-width: 650px; margin: 0 auto; }
  .journey-copy { display: none; }
  .hero-bottom { grid-row: 3; }
  .figure-stage { height: auto; aspect-ratio: 1.14; max-height: 480px; }
  .figure-description { min-height: 3.4em; }
  .hero h1 { font-size: clamp(80px, 13vw, 116px); }
}
@media (max-width: 480px) {
  .hero { row-gap: 34px; }
  .hero h1 { font-size: clamp(68px, 20vw, 96px); }
  .hero .eyebrow { font-size: 12px; gap: 8px; letter-spacing: 0; line-height: 1.65; }
  .figure-stage { aspect-ratio: .98; margin-top: 9px; }
  .figure-state { font-size: 12px; }
  .journey-controls { gap: 4px; }
  .journey-controls button { font-size: 12px; gap: 5px; padding-inline: 6px; }
  .journey-controls button span { font-size: 12px; }
  .figure-description { font-size: 12px; min-height: 4.8em; }
  .stimulate-button { font-size: 12px; min-height: 46px; }
  .stimulation-controls { gap: 8px 12px; }
  .figure-methods { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .journey-controls button, .figure-methods summary span { transition: none; }
}
