/* ==========================================================================
   Intellopia — Site styles v2 (two-mode, three-color)
   Static one-page brochure. No framework, no build step.
   Load order: tokens.css THEN styles.css
   ========================================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--body-text);
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
}

::selection { background: var(--accent); color: var(--on-accent); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 104px 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
  display: block; margin-bottom: 18px;
}

h1, h2, h3 { color: var(--heading); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 16px; max-width: 20ch; }
.lede { color: var(--muted); max-width: 52ch; font-size: 17px; }

/* --------------------------------------------------------------------------
   Inverted band — flips a whole section to the opposite palette.
   Dark page -> cream band. Light page -> deep-blue band.
   -------------------------------------------------------------------------- */
.band {
  background: var(--band-bg);
  border-top: 1px solid var(--band-line);
  border-bottom: 1px solid var(--band-line);
}
.band h1, .band h2, .band h3 { color: var(--band-heading); }
.band, .band p { color: var(--band-body); }
.band .eyebrow, .band .lede { color: var(--band-muted); }
.band a { color: var(--band-accent); }

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  width: min(var(--max), calc(100% - 32px)); z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--nav-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 10px 12px 10px 22px;
  transition: background-color .3s ease;
}

.brand { display: flex; align-items: center; }
.brand:hover { text-decoration: none; }
/* Wordmark: one export per theme, identical dimensions -> no layout shift on toggle */
.wordmark { display: none; height: 26px; width: auto; }
.wordmark-dark { display: block; }
[data-theme="light"] .wordmark-dark { display: none; }
[data-theme="light"] .wordmark-light { display: block; }

.nav-links { display: flex; gap: 26px; align-items: center; font-size: 14.5px; }
.nav-links a { color: var(--body-text); }
.nav-links a:hover { color: var(--heading); text-decoration: none; }

.nav-right { display: flex; align-items: center; gap: 10px; }

/* Theme toggle — quiet utility control. The single visible icon = the mode you switch TO. */
.theme-toggle {
  background: none; border: 1px solid var(--line); cursor: pointer;
  border-radius: var(--radius-pill); padding: 9px 11px;
  color: var(--heading); display: inline-flex; align-items: center;
  transition: border-color .2s ease;
}
.theme-toggle:hover { border-color: var(--accent); }   /* coral only on hover / :focus-visible */

/* Two icons stacked; crossfade + rotate so exactly one is visible per theme */
.tt-icon { position: relative; display: inline-flex; width: 17px; height: 17px; }
.tt-icon .ic {
  position: absolute; inset: 0; width: 17px; height: 17px; display: block;
  transition: opacity .15s ease, transform .15s ease;   /* killed under prefers-reduced-motion */
}
.ic-sun  { opacity: 1; transform: rotate(0deg); }       /* dark mode -> show sun (switch to light) */
.ic-moon { opacity: 0; transform: rotate(-90deg); }
[data-theme="light"] .ic-sun  { opacity: 0; transform: rotate(90deg); }
[data-theme="light"] .ic-moon { opacity: 1; transform: rotate(0deg); }  /* light -> show moon */

/* Mobile-only theme row; hidden until shown inside the open menu (responsive block) */
.theme-toggle-row { display: none; }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 8px; color: var(--heading);
}
/* Hamburger <-> X in one button, animated via transforms (no SVG swap) */
.ham { position: relative; display: block; width: 24px; height: 24px; }
.ham span {
  position: absolute; left: 4px; right: 4px; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.ham span:nth-child(1) { top: 6px; }
.ham span:nth-child(2) { top: 11px; }
.ham span:nth-child(3) { top: 16px; }
/* Open: top rotates down to the centre, middle fades, bottom rotates up */
.nav.open .ham span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav.open .ham span:nth-child(2) { opacity: 0; }
.nav.open .ham span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: var(--on-accent);
  font-family: var(--font-ui); font-weight: 600; font-size: 15px;
  border: none; border-radius: var(--radius-pill);
  padding: 12px 24px; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px var(--accent-glow); text-decoration: none; }
.btn .arr { transition: transform .18s ease; }
.btn:hover .arr { transform: translateX(3px); }

.btn-ghost { background: transparent; color: var(--heading); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); box-shadow: none; color: var(--heading); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100svh; display: flex; align-items: center;
  padding: 140px 0 80px; position: relative; overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; width: 100%; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 700; margin-bottom: 22px; max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .sub { font-size: 18px; color: var(--muted); max-width: 44ch; margin-bottom: 36px; }
.hero .sub strong { color: var(--body-text); font-weight: 500; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* Rotating hero typewriter caret. The host is zero width AND zero height so it
   can never force a line wrap or grow a line box: the visible bar is drawn by an
   absolutely-positioned ::after. This keeps layout shift at exactly zero while
   the text types and deletes. Sized in em, so it scales with h1 vs sub. */
.type-caret { position: relative; display: inline-block; width: 0; height: 0; line-height: 0; }
.type-caret::after {
  content: ""; position: absolute; left: 1px; bottom: -0.12em;
  width: 2px; height: 1em; border-radius: 1px; background: var(--accent);
  animation: caret-blink 1.05s steps(1, end) infinite;
}
@keyframes caret-blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .type-caret::after { animation: none; }
}

.hero-glow-a, .hero-glow-b { position: absolute; pointer-events: none; border-radius: 50%; }
.hero-glow-a {
  right: -12%; top: 12%; width: 780px; height: 780px;
  background: radial-gradient(closest-side, var(--glow-a), transparent 70%);
}
.hero-glow-b {
  left: -14%; bottom: -20%; width: 640px; height: 640px;
  background: radial-gradient(closest-side, var(--glow-b), transparent 70%);
}

/* The coil — official 3D render (one per theme) orbiting the coral ring.
   The ring is split into a BACK arc (top half, behind the coil) and a FRONT
   arc (bottom half, in front), so the coil reads as travelling through it. */
.coil-stage { position: relative; display: flex; justify-content: center; }
.coil-orbit {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 380px; max-width: 100%; height: auto;
  pointer-events: none;
}
.coil-orbit-back  { z-index: 0; }   /* top half of the ring, behind the coil */
.coil-orbit-front { z-index: 2; }   /* bottom half of the ring, in front of the coil */
.coil-orbit path { stroke: var(--accent); }
.coil-img {
  position: relative; z-index: 1;
  width: 380px; max-width: 100%; height: auto;   /* aspect fixed by width/height attrs -> no CLS */
  filter: drop-shadow(0 30px 60px var(--coil-shadow));
  animation: coilOrbit 20s linear infinite;      /* ambient orbital drift, not a spinner */
  will-change: transform;
}
/* Show one render per theme; both share dimensions -> zero layout shift on toggle */
.coil-img { display: none; }
.coil-dark { display: block; }
[data-theme="light"] .coil-dark { display: none; }
[data-theme="light"] .coil-light { display: block; }

/* Coil centre rides a small ellipse (36x22px — the ring's ~49:30 proportions),
   staying upright (no rotation = earth orbiting, not tumbling). Synchronised
   scale adds depth: 0.96 at the far top of the orbit, 1.04 at the near bottom.
   Transform-only, so the motion composites without any layout work. */
@keyframes coilOrbit {
  0%   { transform: translate(0px, -22px)       scale(0.960); }
  5%   { transform: translate(11.1px, -20.9px)  scale(0.962); }
  10%  { transform: translate(21.2px, -17.8px)  scale(0.968); }
  15%  { transform: translate(29.1px, -12.9px)  scale(0.976); }
  20%  { transform: translate(34.2px, -6.8px)   scale(0.988); }
  25%  { transform: translate(36px, 0px)        scale(1.000); }
  30%  { transform: translate(34.2px, 6.8px)    scale(1.012); }
  35%  { transform: translate(29.1px, 12.9px)   scale(1.024); }
  40%  { transform: translate(21.2px, 17.8px)   scale(1.032); }
  45%  { transform: translate(11.1px, 20.9px)   scale(1.038); }
  50%  { transform: translate(0px, 22px)        scale(1.040); }
  55%  { transform: translate(-11.1px, 20.9px)  scale(1.038); }
  60%  { transform: translate(-21.2px, 17.8px)  scale(1.032); }
  65%  { transform: translate(-29.1px, 12.9px)  scale(1.024); }
  70%  { transform: translate(-34.2px, 6.8px)   scale(1.012); }
  75%  { transform: translate(-36px, 0px)       scale(1.000); }
  80%  { transform: translate(-34.2px, -6.8px)  scale(0.988); }
  85%  { transform: translate(-29.1px, -12.9px) scale(0.976); }
  90%  { transform: translate(-21.2px, -17.8px) scale(0.968); }
  95%  { transform: translate(-11.1px, -20.9px) scale(0.962); }
  100% { transform: translate(0px, -22px)       scale(0.960); }
}

@media (prefers-reduced-motion: reduce) {
  .coil-img { animation: none; }   /* static at resting centre; both arcs still visible */
  * { transition: none !important; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   Impuse (rendered as inverted band)
   -------------------------------------------------------------------------- */
/* Impuse logo, one export per theme. REVERSAL: this section is an inverted band,
   so its background is the OPPOSITE of the page. In DARK theme the band is cream,
   so it shows the INK logo (impuse-on-cream); in LIGHT theme the band is ink, so
   it shows the CREAM logo (impuse-on-ink). This is the reverse of the rest of the
   site. Both exports share the display height -> no layout shift on toggle. */
.impuse-logo { display: none; height: 38px; width: auto; max-width: 100%; margin-bottom: 20px; }
.impuse-on-cream { display: block; }              /* dark theme: cream band */
[data-theme="light"] .impuse-on-cream { display: none; }
[data-theme="light"] .impuse-on-ink { display: block; }  /* light theme: ink band */

.pods { margin-top: 48px; display: grid; gap: 20px; }
.pod {
  background: var(--band-surface);
  border: 1px solid var(--band-line);
  border-radius: var(--radius-card);
  padding: 26px 26px;
}
.pod h3 { font-size: 19px; margin-bottom: 4px; }

/* Flagship: wide feature card, main (2/3) + meta column (1/3) */
.pod-flag { display: grid; grid-template-columns: 2fr 1fr; gap: 36px; padding: 34px 34px; }
.pod-flag h3 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 10px; }
.flag-meta { display: grid; align-content: start; }
.flag-cta { margin-top: 22px; }
.band .btn { color: var(--on-accent); }   /* keep filled-CTA text; override .band a link colour */

/* The other four — 2x2 docket grid */
.pod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Docket metadata rows: mono label + value, divider above each */
.meta-row {
  display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: baseline;
  padding: 11px 0; border-top: 1px solid var(--band-line);
}
.meta-k {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  color: var(--band-muted);
}
.meta-v { color: var(--band-body); font-size: 14.5px; line-height: 1.5; }

/* Status chip — band border + muted text ONLY (never coral: not a status colour) */
.status-chip {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em;
  color: var(--band-muted);
  border: 1px solid var(--band-line); border-radius: var(--radius-pill);
  padding: 4px 12px;
}

/* Read-more expander — native <details>, animated open, chevron rotates */
.pod-more { margin-top: 14px; }
.pod-more summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--band-body); padding: 6px 0;
  transition: color .2s ease;
}
.pod-more summary::-webkit-details-marker { display: none; }
.pod-more summary::marker { content: ""; }
.pod-more summary:hover { color: var(--band-accent); }   /* link-like: coral on hover/focus only */
.pod-more .chev { width: 14px; height: 14px; transition: transform .25s ease; }
.pod-more[open] summary .chev { transform: rotate(180deg); }
.pod-detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.pod-more[open] .pod-detail { grid-template-rows: 1fr; }
.pod-detail-in { overflow: hidden; min-height: 0; }
.pod-detail-in p { color: var(--band-body); font-size: 14.5px; line-height: 1.6; padding-top: 12px; }
.pod-detail-in ul { list-style: none; padding: 12px 0 0; display: grid; gap: 10px; }
.pod-detail-in li {
  color: var(--band-body); font-size: 14.5px; line-height: 1.55;
  position: relative; padding-left: 20px;
}
.pod-detail-in li::before {
  content: ""; position: absolute; left: 3px; top: .6em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--band-muted);
}

.pod-close { margin-top: 6px; color: var(--band-muted); font-size: 15px; max-width: 62ch; }

/* ALSO FROM IMPUSE — Impuse Assist: a separate offer, introduced by its own divider
   + label and rendered as one wide feature card (not part of the docket pod grid). */
.also { margin-top: 46px; border-top: 1px solid var(--band-line); padding-top: 30px; }
.also-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--band-muted); margin-bottom: 20px;
}
.assist-card {
  background: var(--band-surface); border: 1px solid var(--band-line);
  border-radius: var(--radius-card); padding: 36px;
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; align-items: start;
}
.assist-kicker {
  display: block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--band-muted); margin-bottom: 12px;
}
.assist-title { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 12px; }
.assist-lede { color: var(--band-body); font-size: 16.5px; line-height: 1.55; max-width: 34ch; }
.assist-body { color: var(--band-body); font-size: 15.5px; line-height: 1.7; max-width: 58ch; }
.assist-body + .assist-body { margin-top: 14px; }
.assist-cta { margin-top: 22px; }

.trust { margin-top: 44px; display: flex; gap: 12px; flex-wrap: wrap; }
.trust span {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--band-body);
  border: 1px solid var(--band-line); border-radius: var(--radius-pill);
  padding: 8px 16px;
}

/* --------------------------------------------------------------------------
   How we work
   -------------------------------------------------------------------------- */
.beats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; counter-reset: beat; }
.beat { border-top: 1px solid var(--line); padding-top: 22px; }
.beat::before {
  counter-increment: beat; content: "0" counter(beat);
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  display: block; margin-bottom: 12px; letter-spacing: .14em;
}
.beat h3 { font-size: 18px; margin-bottom: 8px; }
.beat p { color: var(--muted); font-size: 15px; }

/* Expandable beats (How we work) — native <details>, matches the pod pattern.
   Scoped to .beat-exp / .beat-summary so the plain About-page beats are untouched. */
.beat-summary {
  list-style: none; cursor: pointer; position: relative;
  display: block; padding-right: 28px;
}
.beat-summary::-webkit-details-marker { display: none; }
.beat-summary::marker { content: ""; }
.beat-lead { display: block; color: var(--muted); font-size: 15px; }
/* + affordance -> rotates to × on open; accent only on hover/focus, muted at rest */
.beat-plus {
  position: absolute; top: 3px; right: 0; width: 16px; height: 16px;
  color: var(--muted); transition: color .2s ease, transform .25s ease;
}
.beat-plus::before, .beat-plus::after { content: ""; position: absolute; background: currentColor; }
.beat-plus::before { left: 0; top: 50%; width: 100%; height: 2px; transform: translateY(-50%); }
.beat-plus::after { top: 0; left: 50%; width: 2px; height: 100%; transform: translateX(-50%); }
.beat-exp[open] .beat-plus { transform: rotate(45deg); }
.beat-summary:hover .beat-plus,
.beat-summary:focus-visible .beat-plus { color: var(--accent); }
/* animated detail */
.beat-detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.beat-exp[open] .beat-detail { grid-template-rows: 1fr; }
.beat-detail-in { overflow: hidden; min-height: 0; }
.beat-detail-in p { color: var(--muted); font-size: 15px; line-height: 1.65; padding-top: 14px; max-width: 44ch; }
.beat-detail-in p + p { margin-top: 12px; padding-top: 0; }

/* --------------------------------------------------------------------------
   Portfolio
   -------------------------------------------------------------------------- */
.pf-group { margin-top: 44px; }
.pf-group:first-of-type { margin-top: 48px; }
/* Group label — mono, styled like the pod docket metadata rows */
.group-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--line); padding-top: 14px;
}
.cards { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 30px 28px;
  display: flex; flex-direction: column; gap: 10px;
}
.card .name { color: var(--heading); font-weight: 600; font-size: 22px; }
/* Card name is the company logo — one export per theme (ink on light, cream on dark).
   Same display height both themes -> no layout shift when toggling. */
.card-logo { display: none; height: 30px; width: auto; align-self: flex-start; }
.card-logo-dark { display: block; }
[data-theme="light"] .card-logo-dark { display: none; }
[data-theme="light"] .card-logo-light { display: block; }
.card-tag {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em;
  color: var(--muted); margin-top: -4px;
}
.card p { color: var(--muted); font-size: 15px; line-height: 1.6; margin-bottom: 6px; }
.card a { font-size: 14.5px; font-weight: 500; align-self: flex-start; }
/* Quiet card (THRAFF): outline only -> visibly secondary to Doestep */
.card-quiet { background: transparent; }
/* THRAFF notify: a small ghost button (no coral fill), quieter than Doestep's coral link */
.card .thraff-notify { margin-top: 4px; font-size: 13px; font-weight: 500; padding: 9px 16px; }

/* --------------------------------------------------------------------------
   News — editorial timeline (index-style rows, not cards)
   -------------------------------------------------------------------------- */
.news-list { max-width: 760px; margin-top: 40px; }
.news-row {
  position: relative;
  display: grid; grid-template-columns: 116px 1fr; gap: 24px; align-items: baseline;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: inherit; text-decoration: none;
}
.news-date {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.news-body { padding-right: 28px; }   /* keep text clear of the hover arrow */
.news-title { display: block; color: var(--heading); font-size: 18.5px; font-weight: 600; line-height: 1.3; transition: color .2s ease; }
.news-sub { display: block; color: var(--muted); font-size: 15px; line-height: 1.5; margin-top: 6px; }
.news-arrow {
  position: absolute; right: 2px; top: 50%;
  color: var(--accent); font-size: 18px; line-height: 1;
  opacity: 0; transform: translate(-6px, -50%);
  transition: opacity .2s ease, transform .2s ease;
}
/* Hover/focus only on linked rows (<a>); rows without a link stay inert */
a.news-row:hover, a.news-row:focus-visible { text-decoration: none; }
a.news-row:hover .news-title,
a.news-row:focus-visible .news-title { color: var(--accent); }
a.news-row:hover .news-arrow,
a.news-row:focus-visible .news-arrow { opacity: 1; transform: translate(0, -50%); }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-form { max-width: 520px; margin-top: 28px; }

form { display: flex; flex-direction: column; gap: 14px; }
label {
  font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
input, textarea {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-ctrl);
  color: var(--body-text);
  font-family: var(--font-ui); font-size: 15px;
  padding: 13px 16px; width: 100%;
}
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
textarea { min-height: 120px; resize: vertical; }
.mail-alt { font-size: 14px; color: var(--muted); margin-top: 6px; }
.form-status { font-size: 14px; margin-top: 4px; color: var(--body-text); }

/* --------------------------------------------------------------------------
   About page — page hero, story, how-it-works (band), FAQ, closing CTA
   -------------------------------------------------------------------------- */
.page-hero { padding: 150px 0 32px; }
.page-hero h1 {
  font-size: clamp(34px, 5vw, 56px); font-weight: 700;
  margin: 16px 0 20px; max-width: 18ch;
}
.page-hero .sub { font-size: 18px; color: var(--muted); max-width: 54ch; }

/* Story — heading left, prose right */
.story-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; margin-top: 8px; align-items: start; }
.story-grid h2 { margin-bottom: 0; }
.story-grid .prose p { color: var(--body-text); font-size: 17px; line-height: 1.7; max-width: 62ch; }
.story-grid .prose p + p { margin-top: 18px; }
.story-grid .prose p:last-child { color: var(--muted); font-size: 15.5px; }

/* Four-across numbered steps (reuses .beats) */
.beats-4 { grid-template-columns: repeat(4, 1fr); }
/* Beats inside the inverted band -> band tokens */
.band .beat { border-color: var(--band-line); }
.band .beat::before { color: var(--band-muted); }
.band .beat p { color: var(--band-muted); }

/* FAQ — same <details> pattern as the pod cards, on regular (non-band) tokens */
.faq { max-width: 720px; margin-top: 40px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0;
  color: var(--heading); font-size: 17px; font-weight: 500;
  transition: color .2s ease;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::marker { content: ""; }
.faq-q:hover { color: var(--accent); }
.faq-q .chev { width: 16px; height: 16px; flex-shrink: 0; color: var(--muted); transition: transform .25s ease; }
.faq-item[open] .faq-q .chev { transform: rotate(180deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-item[open] .faq-a { grid-template-rows: 1fr; }
.faq-a-in { overflow: hidden; min-height: 0; }
.faq-a-in p { color: var(--muted); font-size: 15.5px; line-height: 1.65; padding: 0 0 22px; max-width: 64ch; }

/* Closing CTA */
.about-cta .lede { margin: 14px 0 28px; }

/* --------------------------------------------------------------------------
   News index: "All notes" row + Article pages
   -------------------------------------------------------------------------- */
/* Row-styled link at the bottom of the homepage news teaser */
.news-more { grid-template-columns: 1fr; }
.news-more .news-title { display: inline-flex; align-items: center; gap: 8px; }
.news-more .news-more-arr { transition: transform .2s ease; }
a.news-more:hover .news-title,
a.news-more:focus-visible .news-title { color: var(--accent); }
a.news-more:hover .news-more-arr { transform: translateX(3px); }

/* Article page */
.article { padding: 140px 0 80px; }
.article-wrap { max-width: 680px; margin: 0 auto; padding: 0 24px; }
.article-back {
  display: inline-block; margin-bottom: 34px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .04em; color: var(--muted);
  transition: color .2s ease;
}
.article-back:hover { color: var(--accent); text-decoration: none; }
.article-date {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
}
.article-title { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.12; margin-bottom: 30px; max-width: 22ch; }
.article-body p { color: var(--body-text); font-size: 17px; line-height: 1.8; }
.article-body p + p { margin-top: 20px; }
.article-divider { border: none; border-top: 1px solid var(--line); margin: 48px 0 30px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer { border-top: 1px solid var(--line); padding: 56px 0 0; color: var(--faint); }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr 1fr 1.4fr; gap: 40px; }
.footer-h {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { font-size: 14.5px; }
.footer-email { display: inline-block; margin-bottom: 18px; font-size: 14.5px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 14px; }
/* Social icons: muted -> accent (token colours, not platform brand colours) */
.footer-social a { color: var(--muted); display: inline-flex; transition: color .2s ease; }
.footer-social a:hover, .footer-social a:focus-visible { color: var(--accent); }
.footer-social svg { width: 18px; height: 18px; display: block; fill: currentColor; }
.footer-bar {
  border-top: 1px solid var(--line); margin-top: 48px;
  padding: 22px 0; font-size: 13px; color: var(--faint);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  section { padding: 76px 0; }

  .hero-grid { grid-template-columns: 1fr; }
  .coil-stage { order: -1; margin-bottom: 8px; }
  .coil-img, .coil-orbit { width: min(300px, 70%); }

  .pod-grid, .beats, .beats-4, .cards { grid-template-columns: 1fr; }
  .pod-flag { grid-template-columns: 1fr; gap: 24px; padding: 28px 24px; }
  .assist-card { grid-template-columns: 1fr; gap: 24px; padding: 28px 24px; }
  .story-grid { grid-template-columns: 1fr; gap: 20px; }
  .page-hero { padding: 128px 0 24px; }
  .impuse-logo { height: 30px; }
  .card-logo { height: 24px; }
  .article { padding: 120px 0 56px; }

  /* News: date stacks above the title */
  .news-row { grid-template-columns: 1fr; gap: 6px; }

  /* Footer: four columns stack to two */
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 34px 24px; }

  .nav { flex-wrap: wrap; }
  .nav-links {
    display: none;
    width: 100%; flex-direction: column; align-items: flex-start;
    gap: 4px; padding: 12px 10px 6px;
    border-top: 1px solid var(--line); margin-top: 10px;
    order: 5;
  }
  .nav-links a { padding: 10px 8px; width: 100%; border-radius: 8px; }
  .nav.open { border-radius: 22px; }
  .nav.open .nav-links { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }

  /* Theme control moves out of the pill bar and into the menu as its last row */
  .theme-toggle { display: none; }
  .theme-toggle-row {
    display: flex; align-items: center; gap: 12px;
    width: 100%; padding: 12px 8px 6px;
    margin-top: 4px; border-top: 1px solid var(--line);
    background: none; border-left: none; border-right: none; border-bottom: none;
    cursor: pointer; color: var(--body-text);
    font-family: var(--font-ui); font-size: 14.5px; text-align: left;
  }
  .theme-toggle-row:hover { color: var(--heading); }
  .theme-toggle-row .tt-label { display: inline; }
}

@media (max-width: 480px) {
  .footer-cols { grid-template-columns: 1fr; gap: 32px; }
}
