/* drivan.com design system. Tokens first; every color below comes from them.
   Contrast (WCAG AA) is checked per surface: see README "Tokens". */

@font-face { font-family: "Geist"; src: url("/assets/fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }

:root {
  /* surfaces */
  --ink: #0a0c0f;          /* primary dark surface */
  --ink-2: #11151a;        /* raised dark surface */
  --ink-3: #1a2027;        /* cards on dark */
  --bone: #efece5;         /* warm light surface */
  --paper: #f8f6f1;        /* lightest surface */
  /* text */
  --on-dark: #eef0ec;      /* 17.6:1 on ink */
  --on-dark-2: #a7afb6;    /* 8.6:1 on ink, 7.9:1 on ink-3 */
  --on-light: #0f1317;     /* 16.9:1 on bone */
  --on-light-2: #4b535b;   /* 7.1:1 on bone */
  /* the one accent: nerve-root chartreuse, lifted from his spine model */
  --signal: #d4ff3a;       /* fill or text on dark only (15.8:1 on ink) */
  --signal-ink: #3f5c00;   /* accent text on light (6.6:1 on bone) */
  --line-dark: rgba(238, 240, 236, 0.14);
  --line-light: rgba(15, 19, 23, 0.14);

  /* type */
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  --step-2: clamp(1.35rem, 1.15rem + 0.9vw, 1.85rem);
  --step-3: clamp(1.9rem, 1.4rem + 2.2vw, 3.1rem);
  --step-4: clamp(2.4rem, 1.6rem + 3.6vw, 4.6rem);
  --step-5: clamp(3.4rem, 1.6rem + 7.4vw, 8.5rem);

  /* space + shape */
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --sec-y: clamp(4.5rem, 3rem + 7vw, 9rem);
  --r: 14px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--ink); color: var(--on-dark); font: 400 var(--step-0)/1.6 var(--sans); font-feature-settings: "ss01"; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
:where(ul[role="list"], ol) { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
.sec--bone :focus-visible, .sec--paper :focus-visible { outline-color: var(--signal-ink); }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); font-feature-settings: "zero", "tnum"; letter-spacing: 0; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; }
.muted { color: var(--on-dark-2); }
.small { font-size: var(--step--1); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--signal); color: var(--ink); padding: 10px 14px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* headings */
.h1 { font-size: var(--step-4); line-height: 1; letter-spacing: -0.035em; font-weight: 600; text-wrap: balance; }
.h2 { font-size: var(--step-3); line-height: 1.04; letter-spacing: -0.03em; font-weight: 600; text-wrap: balance; max-width: 18ch; }
.h3 { font-size: var(--step-1); line-height: 1.25; letter-spacing: -0.01em; font-weight: 600; }
.lede { font-size: var(--step-1); line-height: 1.5; max-width: 56ch; color: var(--on-dark-2); }
.eyebrow { font-size: var(--step--1); color: var(--signal); }
.idx { font-size: var(--step--1); color: var(--signal); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 1.1rem; }
.idx::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* buttons + links */
.btn { --bg: transparent; --fg: var(--on-dark); --bd: var(--line-dark);
  display: inline-flex; align-items: center; gap: .6em; min-height: 48px; padding: 0 1.25rem; border-radius: 999px; border: 1px solid var(--bd); background: var(--bg); color: var(--fg);
  font: 600 0.975rem/1 var(--sans); text-decoration: none; white-space: nowrap; transition: transform .2s var(--ease), background-color .2s, border-color .2s, color .2s; }
.btn .mono { font-weight: 500; font-size: .92em; opacity: .85; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--signal { --bg: var(--signal); --fg: var(--ink); --bd: var(--signal); }
.btn--signal:hover { --bg: #e2ff73; --bd: #e2ff73; }
.btn--ghost:hover { --bd: var(--on-dark); }
.btn--ink { --bg: var(--on-light); --fg: var(--paper); --bd: var(--on-light); }
.btn--ink:hover { --bg: #25303a; }
.btn--sm { min-height: 40px; padding: 0 1rem; font-size: .9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: var(--signal); transition: text-decoration-thickness .15s; }
.link:hover { text-decoration-thickness: 2px; }
.sec--bone .link, .sec--paper .link { text-decoration-color: var(--signal-ink); }

/* header */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(10, 12, 15, .92); border-bottom: 1px solid var(--line-dark); }
@supports (backdrop-filter: blur(1px)) { .hdr { background: rgba(10, 12, 15, .78); backdrop-filter: saturate(140%) blur(14px); } }
.hdr__in { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.02em; font-size: 1.05rem; margin-right: auto; }
.brand__mark { width: 12px; height: 20px; fill: var(--signal); }
.nav ul { display: flex; gap: 4px; list-style: none; padding: 0; }
.nav a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--on-dark-2); font-size: .95rem; transition: color .15s, background-color .15s; }
.nav a:hover, .nav a[aria-current] { color: var(--on-dark); background: var(--ink-3); }
.menu { display: none; }
@media (max-width: 899px) {
  .nav, .hdr__cta { display: none; }
  .menu { display: block; }
  .menu summary { list-style: none; width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; cursor: pointer; border-radius: 10px; border: 1px solid var(--line-dark); }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary span { width: 18px; height: 1.5px; background: var(--on-dark); transition: transform .2s var(--ease); }
  .menu[open] summary span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu[open] summary span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .menu__panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); border-bottom: 1px solid var(--line-dark); padding: 8px var(--gutter) 24px; }
  .menu__panel ul { list-style: none; padding: 0; margin-bottom: 16px; }
  .menu__panel li a { display: block; padding: 14px 0; font-size: 1.25rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line-dark); }
}

/* sections */
.sec { padding-block: var(--sec-y); position: relative; }
.sec--ink { background: var(--ink); }
.sec--ink2 { background: var(--ink-2); }
.sec--bone, .sec--paper { color: var(--on-light); }
.sec--bone { background: var(--bone); }
.sec--paper { background: var(--paper); }
.sec--bone .lede, .sec--paper .lede, .sec--bone .muted, .sec--paper .muted { color: var(--on-light-2); }
.sec--bone .idx, .sec--paper .idx { color: var(--signal-ink); }
.sec__head { display: grid; gap: 1.1rem; margin-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.sec__head .idx { margin-bottom: 0; }
.sec__head--row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }
.sec__head--row > div { display: grid; gap: 1.1rem; }
.sec__links { display: flex; gap: 24px; }
.sec__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); }

/* hero */
.hero { position: relative; background: var(--ink); overflow: hidden; isolation: isolate; }
.hero__img img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.hero__img::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.hero__scale { position: absolute; right: var(--gutter); top: 88px; width: 20px; height: min(60vh, 480px); stroke: rgba(238, 240, 236, .35); stroke-width: 1; z-index: 2; }
.hero__scan { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transform: translateY(-100%); }
.hero__scan::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--signal) 30%, var(--signal) 70%, transparent); box-shadow: 0 0 18px 2px rgba(212, 255, 58, .35); }
.hero__in { position: relative; z-index: 3; margin-top: -32vw; padding-bottom: 2rem; }
.hero__in::before { content: ""; position: absolute; inset: -30vw 0 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 12, 15, 0) 0%, rgba(10, 12, 15, .85) 32%, var(--ink) 52%); }
.eyebrow { margin-bottom: 1rem; }
.hero__h1 { font-weight: 600; letter-spacing: -0.045em; line-height: .92; }
.hero__name { display: block; font-size: var(--step-5); max-width: 5em; }
.hero__rest { display: block; margin-top: .9rem; font-size: var(--step-2); line-height: 1.15; letter-spacing: -0.02em; font-weight: 500; color: var(--on-dark); max-width: 24ch; }
.hero__rest em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--signal); font-size: 1.12em; letter-spacing: 0; }
.hero__lede { margin: 1.4rem 0 2rem; max-width: 52ch; color: var(--on-dark-2); }
.readouts { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line-dark); margin-bottom: 0; position: relative; z-index: 3; }
.readout { padding: 1.1rem 0 1.4rem; border-bottom: 1px solid var(--line-dark); }
.readout:nth-child(odd) { padding-right: 12px; border-right: 1px solid var(--line-dark); }
.readout:nth-child(even) { padding-left: 16px; }
.readout dt { font-size: var(--step-2); color: var(--signal); font-weight: 500; letter-spacing: -0.02em; }
.readout dd { margin-top: .25rem; font-size: var(--step--1); line-height: 1.4; color: var(--on-dark-2); }

@media (min-width: 700px) {
  .hero { min-height: min(100svh, 940px); display: flex; flex-direction: column; justify-content: flex-end; }
  .hero__img { position: absolute; inset: 0; z-index: -1; }
  .hero__img img { height: 100%; aspect-ratio: auto; object-position: 62% 30%; }
  .hero__img::after { background: linear-gradient(90deg, rgba(10, 12, 15, .96) 0%, rgba(10, 12, 15, .78) 34%, rgba(10, 12, 15, .1) 64%, rgba(10, 12, 15, 0) 100%), linear-gradient(0deg, var(--ink) 0%, rgba(10, 12, 15, 0) 34%); }
  .hero__in { margin-top: 0; padding-top: 18vh; padding-bottom: 3rem; }
  .hero__in::before { display: none; }
  .readouts { grid-template-columns: repeat(4, 1fr); border-bottom: 0; }
  .readout { border-bottom: 0; padding: 1.4rem 20px 2.2rem; border-right: 1px solid var(--line-dark); }
  .readout:nth-child(odd), .readout:nth-child(even) { padding-left: 20px; padding-right: 20px; }
  .readout:first-child { padding-left: 0; }
  .readout:last-child { border-right: 0; }
}

/* philosophy */
.philo { display: grid; gap: 3rem; }
.motto { font-size: var(--step-4); line-height: 1; color: var(--on-light); margin-bottom: 1.4rem; letter-spacing: -0.01em; }
.philo__text .h2 { margin-bottom: 1.2rem; }
.pull { margin-top: 2rem; padding-left: 1.25rem; border-left: 2px solid var(--signal-ink); }
.pull blockquote p { font-size: var(--step-2); line-height: 1.3; letter-spacing: -0.015em; font-weight: 500; }
.pull figcaption { margin-top: .6rem; font-size: var(--step--1); color: var(--on-light-2); }
.pull--sm blockquote p { font-size: var(--step-1); }
.sec--ink .pull, .sec--ink2 .pull { border-color: var(--signal); }
.sec--ink .pull figcaption { color: var(--on-dark-2); }
.xray { position: relative; aspect-ratio: 2000 / 1800; max-width: 620px; justify-self: center; width: 100%; }
.xray picture { position: absolute; right: 0; top: 0; width: 79%; -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent); mask-image: linear-gradient(180deg, #000 82%, transparent); }
.xray__img { width: 100%; }
.xray__marks { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mark line, .disc { fill: none; stroke: var(--signal-ink); stroke-width: 3; vector-effect: non-scaling-stroke; }
.mark text { font: 500 66px var(--mono); fill: var(--on-light-2); }
.mark--hot text { fill: var(--on-light); font-weight: 600; }
.disc { fill: none; stroke: var(--signal-ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
.mark--hot line { stroke-width: 4; }
.principles { display: grid; gap: 0; border-top: 1px solid var(--line-light); }
.principle { display: grid; gap: .5rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line-light); }
.principle__n { font-size: var(--step--1); color: var(--signal-ink); }
.principle p { color: var(--on-light-2); max-width: 46ch; }
@media (min-width: 960px) {
  .philo { grid-template-columns: 1.05fr .95fr; column-gap: clamp(2rem, 5vw, 6rem); align-items: center; }
  .principles { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-light); margin-top: 1rem; }
  .principle { border-bottom: 0; padding: 2rem 2rem 0 0; }
  .principle + .principle { border-left: 1px solid var(--line-light); padding-left: 2rem; }
}

/* speaking */
.speak { display: grid; gap: 2rem; }
.speak figure img { border-radius: var(--r); width: 100%; }
.log__h { font-size: var(--step--1); color: var(--signal); margin-bottom: .75rem; }
.log li { display: grid; grid-template-columns: 5.6em 1fr; column-gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--line-dark); }
.log li:last-child { border-bottom: 1px solid var(--line-dark); }
.log__date { grid-row: span 2; font-size: var(--step--1); color: var(--on-dark-2); padding-top: .2rem; }
.log__title { font-weight: 600; line-height: 1.3; }
.log__meta { font-size: var(--step--1); color: var(--on-dark-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin-bottom: 1.6rem; }
.chips li { padding: 8px 14px; border: 1px solid var(--line-dark); border-radius: 999px; font-size: .925rem; color: var(--on-dark); }
@media (min-width: 960px) {
  .speak { grid-template-columns: 1.2fr 1fr; grid-template-areas: "img log" "topics log"; gap: 2.5rem 4rem; align-items: start; }
  .speak__img { grid-area: img; }
  .speak__log { grid-area: log; }
  .speak__topics { grid-area: topics; }
  .log li { grid-template-columns: 7.5em 1fr; }
}

/* ideas reel */
.reel { display: grid; grid-auto-flow: column; grid-auto-columns: min(68vw, 260px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 1rem; scroll-padding-inline: var(--gutter); list-style: none; margin: 0; scrollbar-width: thin; scrollbar-color: var(--ink-3) transparent; }
@media (min-width: 1240px) { .reel { padding-inline: calc((100vw - var(--max)) / 2); scroll-padding-inline: calc((100vw - var(--max)) / 2); grid-auto-columns: 1fr; grid-auto-flow: initial; grid-template-columns: repeat(6, 1fr); overflow: visible; } }
.reel__item { scroll-snap-align: start; }
.lite { position: relative; aspect-ratio: 9 / 16; border-radius: var(--r); overflow: hidden; background: var(--ink-3); }
.lite img, .lite iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.lite img { transition: transform .6s var(--ease), filter .4s; filter: saturate(.9); }
.lite:hover img { transform: scale(1.04); filter: saturate(1.05); }
.lite__play { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 8px; padding: 14px; border: 0; background: linear-gradient(180deg, rgba(10, 12, 15, 0) 55%, rgba(10, 12, 15, .75)); color: var(--on-dark); cursor: pointer; font-size: var(--step--1); }
.lite__play svg { width: 34px; height: 34px; padding: 9px; border-radius: 999px; background: var(--signal); fill: var(--ink); transition: transform .2s var(--ease); }
.lite__play span { padding-bottom: 8px; }
.lite:hover .lite__play svg { transform: scale(1.08); }
.reel__title { margin-top: .9rem; font-weight: 600; line-height: 1.3; }
.reel__quote { margin-top: .4rem; font-size: 1.15rem; line-height: 1.3; color: var(--on-dark-2); }

/* technology */
.tech { display: grid; gap: 3rem; }
.tech__intro { display: grid; gap: 1.2rem; align-content: start; }
.tech__intro .idx { margin-bottom: 0; }
.tech__intro .pull { margin-top: .4rem; }
.tech__intro > p:not(.idx) { color: var(--on-light-2); max-width: 46ch; }
.tech__img img { border-radius: var(--r); width: 100%; }
.tech__lists { display: grid; gap: 2.5rem; align-content: start; }
.spec__h { font-size: var(--step--1); color: var(--signal-ink); margin-bottom: .5rem; }
.spec ul { list-style: none; padding: 0; border-top: 1px solid var(--line-light); }
.spec li a { display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line-light); text-decoration: none; transition: padding .25s var(--ease), background-color .2s; }
.spec__name { font-weight: 600; font-size: var(--step-1); letter-spacing: -0.01em; }
.spec__note { grid-column: 1; color: var(--on-light-2); font-size: .95rem; }
.spec__arrow { grid-column: 2; grid-row: 1 / span 2; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .25s var(--ease); }
.spec li a:hover { padding-left: .5rem; }
.spec li a:hover .spec__arrow { transform: translateX(4px); }
.spec li a:hover .spec__name { text-decoration: underline; text-decoration-color: var(--signal-ink); text-underline-offset: 4px; }
@media (min-width: 960px) {
  .tech { grid-template-columns: .9fr 1.1fr; column-gap: clamp(2rem, 6vw, 7rem); }
  .tech__lists { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
}

/* proof */
.quotes { display: grid; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--r); overflow: hidden; }
.quote { background: var(--ink); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.quote blockquote p { font-size: var(--step-1); line-height: 1.45; letter-spacing: -0.005em; }
.quote blockquote p::before { content: "\201C"; display: block; font: italic 400 3.4rem/0.7 var(--serif); color: var(--signal); margin-bottom: .6rem; }
.quote figcaption { display: grid; gap: .2rem; font-size: .95rem; }
.quote figcaption .mono { font-size: var(--step--1); }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, 1fr); } }

/* story */
.story { display: grid; gap: 2.5rem; }
.story__img img { border-radius: var(--r); width: 100%; filter: grayscale(.15); }
.story__text { display: grid; gap: 1.1rem; align-content: start; }
.story__text .idx { margin-bottom: 0; }
.story__text > p:not(.idx) { color: var(--on-light-2); max-width: 60ch; }
.story__text .pull { margin-top: .6rem; }
.creds__list { list-style: none; padding: 0; border-top: 1px solid var(--line-light); margin-bottom: 1.4rem; }
.creds__list li { display: grid; grid-template-columns: 3.5rem 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line-light); font-size: .975rem; }
.creds__list .mono { color: var(--signal-ink); font-size: var(--step--1); padding-top: .15rem; }
.creds__list a { text-decoration-color: var(--signal-ink); text-underline-offset: 4px; }
.creds__links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 1.8rem; }
@media (min-width: 960px) {
  .story { grid-template-columns: .8fr 1.2fr; column-gap: clamp(2rem, 6vw, 6rem); row-gap: 4rem; }
  .story__img { position: sticky; top: 96px; align-self: start; }
  .creds { grid-column: 2; }
}

/* visit */
.visit__grid { display: grid; gap: 16px; }
.card { display: grid; gap: .9rem; align-content: start; justify-items: start; padding: clamp(1.5rem, 1rem + 2vw, 2.25rem); border-radius: var(--r); background: var(--ink-3); border: 1px solid var(--line-dark); }
.card p { color: var(--on-dark-2); }
.card .btn { margin-top: .4rem; }
.card--alt { background: transparent; border-style: dashed; }
@media (min-width: 900px) { .visit__grid { grid-template-columns: repeat(3, 1fr); } }

/* inner pages */
.phero { padding: clamp(3.5rem, 2rem + 6vw, 7rem) 0 clamp(2.5rem, 2rem + 3vw, 4rem); border-bottom: 1px solid var(--line-dark); }
.phero__in { display: grid; gap: 1.2rem; }
.phero__in .h1 { max-width: 20ch; }
.phero__img img { border-radius: var(--r); margin-top: 1.5rem; width: 100%; }
.prose { max-width: calc(68ch + 2 * var(--gutter)); }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: var(--step-2); letter-spacing: -0.02em; line-height: 1.15; margin-top: 2.6rem; }
.prose h3 { font-size: var(--step-1); margin-top: 1.8rem; }
.prose p, .prose li { color: var(--on-light-2); }
.prose a { color: var(--on-light); text-decoration-color: var(--signal-ink); text-underline-offset: 4px; }
.prose ul { padding-left: 1.2rem; }
.cta-band__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band .h2 { max-width: 20ch; }

/* footer */
.ftr { background: var(--ink); border-top: 1px solid var(--line-dark); padding: 4rem 0 2rem; font-size: .95rem; }
.ftr a { text-decoration: none; color: var(--on-dark-2); transition: color .15s; }
.ftr a:hover { color: var(--on-dark); }
.ftr .muted a { text-decoration: underline; text-underline-offset: 3px; }
.ftr__top { display: grid; gap: 2.5rem; }
.ftr__name { font-size: var(--step-2); font-weight: 600; letter-spacing: -0.02em; }
.ftr__name .mono { font-size: .6em; color: var(--on-dark-2); font-weight: 400; }
.ftr__tag { font-size: 1.5rem; color: var(--signal); margin: .2rem 0 1rem; }
.ftr__id .muted { max-width: 40ch; }
.ftr__h { font-weight: 600; margin-bottom: .8rem; }
.ftr__col ul { list-style: none; padding: 0; display: grid; gap: .5rem; }
.ftr__locs { display: grid; gap: .6rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); }
.ftr__locs .mono { color: var(--on-dark); }
.ftr__base { display: grid; gap: .6rem; margin-top: 1.5rem; font-size: var(--step--1); }
@media (min-width: 900px) {
  .ftr__top { grid-template-columns: 1.6fr repeat(3, 1fr); }
  .ftr__base { grid-template-columns: 1fr auto; }
}

/* spine rail: a section index drawn as vertebrae, desktop only */
.rail { display: none; }
@media (min-width: 1380px) {
  .rail { display: block; position: fixed; left: 22px; top: 50%; transform: translateY(-50%); z-index: 40; }
  .rail ol { display: grid; gap: 6px; position: relative; }
  .rail ol::before { content: ""; position: absolute; left: 13px; top: 10px; bottom: 10px; width: 1px; background: var(--line-dark); }
  .rail a { position: relative; display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 4px 0; }
  .rail b { font: 500 11px/1 var(--mono); width: 28px; height: 18px; display: grid; place-items: center; border-radius: 6px; background: var(--ink-2); border: 1px solid var(--line-dark); color: var(--on-dark-2); transition: background-color .25s, color .25s, border-color .25s, width .25s var(--ease); }
  .rail span { font-size: 12px; color: var(--on-dark); background: var(--ink); border: 1px solid var(--line-dark); padding: 3px 8px; border-radius: 6px; opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s var(--ease); pointer-events: none; }
  .rail a:hover span, .rail a:focus-visible span { opacity: 1; transform: none; }
  .rail a[aria-current] b { background: var(--signal); color: var(--ink); border-color: var(--signal); width: 34px; }
  .rail__fill { position: absolute; left: 13px; top: 10px; width: 1px; height: calc((100% - 20px) * var(--p, 0)); background: var(--signal); pointer-events: none; }
}

/* motion: reveals + the hero scan. Nothing moves for reduced-motion users. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .mark line, .js .disc { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s var(--ease); transition-delay: calc(300ms + var(--i) * 120ms); }
  .js .mark text { opacity: 0; transition: opacity .6s; transition-delay: calc(500ms + var(--i) * 120ms); }
  .js .xray.is-in .mark line, .js .xray.is-in .disc { stroke-dashoffset: 0; }
  .js .xray.is-in .mark text { opacity: 1; }
  .hero__scan { animation: scan 9s var(--ease) 0.6s infinite; }
  .disc { animation: pulse 2.8s ease-in-out 2.4s infinite; transform-origin: 232px 944px; transform-box: view-box; }
  .hero__rest, .hero__lede, .hero .actions, .eyebrow { animation: rise 1s var(--ease) both; }
  .hero__rest { animation-delay: .12s; } .hero__lede { animation-delay: .22s; } .hero .actions { animation-delay: .32s; }
}
@keyframes scan { 0% { transform: translateY(-100%); opacity: 0; } 6% { opacity: .9; } 48% { opacity: .9; } 55% { transform: translateY(0); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: .45; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
