/* ============================================================
   Chimcare Strategic Roadmap

   THE COLOR LAW — keep this intact.
     INK   #17110F  headings, deadlines, content emphasis
     TEXT  #57504A  body copy
     MUTED #6B625B  micro-cap labels (nothing lighter is used for real text)
     MAROON #6E1423 THE PLAN — elapsed time, progress fills, links, accents
     RED   #DD2E44  TIME AND TARGET ONLY — the today needle, the three goal
                    numerals, the deadline flags, the "we are here" dot, focus
     RED-TEXT #B02437 small red text only (contrast)
     CREAM #FAF6F2  exactly two fields: the ops band and the NOW column

   THREE HAIRLINE TIERS, assigned by ROLE (never by background):
     --hair    ornament          --rule   structure          --graphic  meaning

   Structure is carried by hairlines, type and air. No shadows, no radii,
   no filled pills. Emphasis promotes a rule's COLOR, never its thickness:
   the only marks wider than 1px are progress fills (2px), the NOW top rule
   (2px) and dots.
   ============================================================ */

@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/be-vietnam-pro-400.woff2') format('woff2'); }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/be-vietnam-pro-500.woff2') format('woff2'); }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/be-vietnam-pro-600.woff2') format('woff2'); }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/be-vietnam-pro-700.woff2') format('woff2'); }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/be-vietnam-pro-800.woff2') format('woff2'); }

:root {
  --white: #FFFFFF;
  --ink: #17110F;
  --text: #57504A;
  --muted: #6B625B;
  --maroon: #6E1423;
  --red: #DD2E44;
  --red-text: #B02437;
  --cream: #FAF6F2;
  --footer: #200609;

  --hair: #ECE5DF;
  --rule: #D8CEC6;
  --graphic: #96897E;

  --font: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --container: 1180px;
  --pad: clamp(20px, 5vw, 40px);
  --section: clamp(80px, 11vw, 148px);
  --gut: clamp(64px, 7vw, 100px);
  --ease-out: cubic-bezier(.22, .61, .36, 1);

  --f-micro: .6875rem;
  --f-body: 1.0625rem;
  --f-lede: clamp(1.125rem, 1.05rem + .5vw, 1.375rem);
  --f-date: clamp(1.0625rem, .95rem + .5vw, 1.25rem);
  --f-h3: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
  --f-h2: clamp(1.7rem, 1.3rem + 1.7vw, 2.6rem);
  --f-h1: clamp(2.05rem, 5.4vw, 3.75rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: var(--f-body);
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--maroon); }
ul, ol { list-style: none; }
button { font: inherit; }
h1, h2 { color: var(--ink); font-weight: 600; line-height: 1.1; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
::selection { background: var(--maroon); color: var(--white); }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--section); }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; }
.icon-sm { width: 17px; height: 17px; }
.icon-xs { width: 13px; height: 13px; }

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 200;
  background: var(--maroon); color: var(--white);
  padding: 12px 18px; font-weight: 700; text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* micro-caps — the one place uppercase survives besides the H1 */
.kicker, .topbar-label, .ctl-when, .ms-window-caption, .ms-status-label,
.seq-range, .footer-meta, .ops-group-label, .hero-subtitle {
  font-size: var(--f-micro); font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.kicker { margin-bottom: 16px; }
.section-title { font-size: var(--f-h2); letter-spacing: -.02em; max-width: 20ch; margin-bottom: 18px; }
.section-intro { max-width: 52ch; }

.hide-mobile { display: none; }
.only-mobile { display: inline; }
@media (min-width: 640px) {
  .hide-mobile { display: inline; }
  .only-mobile { display: none; }
}

/* ---------- Topbar ---------- */
.topbar { border-bottom: 1px solid var(--rule); background: var(--white); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; padding-block: 20px; gap: 16px; }
.brand-logo { width: clamp(116px, 15vw, 150px); height: auto; }

/* ---------- Cover ---------- */
.cover { padding-block: clamp(44px, 6vw, 80px) clamp(52px, 7vw, 96px); }
.cover-head { text-align: left; }
.hero-title {
  font-size: var(--f-h1); font-weight: 500; line-height: 1.05;
  letter-spacing: .03em; text-transform: uppercase; max-width: 13ch;
}
.hero-subtitle { margin-top: 20px; }
.hero-lede {
  margin-top: 22px; max-width: 46ch;
  font-size: var(--f-lede); line-height: 1.5; font-weight: 400; color: var(--ink);
}

/* ---------- Cover instrument ---------- */
.ctl { position: relative; margin-top: clamp(56px, 8vw, 104px); display: flex; flex-direction: column; }
.ctl-axis { display: none; }

/* Mobile-first: the instrument is vertical */
/* --dot-c is the painted centre of a stop's dot, in px from the stop's top edge.
   Single source of truth: CSS positions the dots from it, app.js reads it to place
   the elapsed segment. Border width is part of the painted circle (content-box). */
.ctl-stops { position: relative; padding-left: 30px; display: flex; flex-direction: column; gap: 26px; --dot-c: 12; }
.ctl-stops::before { /* the rail */
  content: ""; position: absolute; left: 7px; top: 0; bottom: 0;
  width: 1px; background: var(--graphic);
}
.ctl-stops::after { /* elapsed time, calibrated to the real dot positions by app.js */
  content: ""; position: absolute; left: 6.5px; top: 0;
  width: 2px; height: var(--tl-y, 0px); background: var(--maroon);
  transition: height 1400ms var(--ease-out);
}
.ctl-stop { position: relative; }
.ctl-stop::after { /* dot */
  content: ""; position: absolute; left: -27.5px; top: calc(var(--dot-c) * 1px - 5px);
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--white); border: 1.5px solid var(--red); box-sizing: content-box;
  transition: transform .25s var(--ease-out), background-color .25s ease;
}
.ctl-stop--start::after { border-color: var(--graphic); width: 5px; height: 5px; left: -26.5px; top: calc(var(--dot-c) * 1px - 4px); }
.ctl-card { display: block; text-decoration: none; color: inherit; position: relative; padding: 4px 0; }
.ctl-card::before { content: ""; position: absolute; inset: -10px -12px; }
.ctl-top { display: flex; align-items: baseline; gap: 10px; }
.ctl-num { font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--red); }
.ctl-name {
  display: block; margin-top: 8px; font-size: var(--f-h3); font-weight: 600; color: var(--ink);
  line-height: 1.25;
  text-decoration: underline; text-decoration-thickness: 1px;
  text-decoration-color: rgba(110, 20, 35, .35); text-underline-offset: 5px;
  transition: color .2s ease, text-decoration-color .2s ease;
}
.ctl-card:hover .ctl-name, .ctl-card:focus-visible .ctl-name { color: var(--maroon); text-decoration-color: var(--maroon); }
.ctl-date { display: block; margin-top: 6px; font-size: .875rem; font-weight: 600; color: var(--ink); }
.ctl-startnote { font-size: .8125rem; color: var(--text); }
.ctl-progressrow { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.ctl-bar { position: relative; width: 96px; height: 1px; background: var(--graphic); flex: 0 0 auto; }
@media (min-width: 1100px) { .ctl-bar { width: 72px; } .ctl-ptext { font-size: 10px; letter-spacing: .04em; } }
.ctl-fill { position: absolute; left: 0; top: -.5px; height: 2px; width: var(--p, 0%); background: var(--maroon); }
.ctl-fill::after { /* terminal dot — without it a ~5% fill is an unreadable smudge */
  content: ""; position: absolute; right: -2px; top: 50%; margin-top: -2px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--maroon);
}
.ctl-ptext { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--maroon); }

/* Today marker — a caption above the rail on mobile (no collision, no floating) */
.ctl-today { order: -1; position: relative; display: flex; align-items: center; gap: 9px; margin-bottom: 22px; }
.ctl-today::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); flex: 0 0 auto; }
.ctl-today::after {
  content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin-top: -3.5px;
  border-radius: 50%; background: rgba(221, 46, 68, .18);
  animation: breathe 3.2s ease-out infinite; will-change: transform, opacity;
}
.ctl-today-label { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--red-text); white-space: nowrap; }
@keyframes breathe {
  from { transform: scale(1); opacity: .5; }
  to { transform: scale(2.6); opacity: 0; }
}

/* Desktop: the instrument rotates to horizontal.
   1100px is derived: last card centre 87.6%, half-width 108px, must clear the
   container edge and the start caption at every width above the breakpoint. */
@media (min-width: 1100px) {
  .ctl { display: block; }
  .ctl-axis { display: block; position: relative; height: 52px; }
  .ctl-month { position: absolute; left: var(--x); top: 0; transform: translateX(-50%); font-size: var(--f-micro); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
  .ctl-track { position: absolute; left: 0; right: 0; top: 40px; height: 1px; background: var(--graphic); }
  .ctl-tick { position: absolute; left: var(--x); top: 40px; width: 1px; height: 6px; background: var(--rule); }
  .ctl-progress { position: absolute; left: 0; top: 39.5px; height: 2px; width: var(--tl-pct, 0%); background: var(--maroon); transition: width 1400ms var(--ease-out); }
  /* each goal's stretch of time: a distinct darker segment on the lighter axis,
     inset so the three stages read as consecutive, with its deadline flag at the end */
  .ctl-span {
    position: absolute; top: 40px; left: calc(var(--from) + 4px);
    width: calc(var(--to) - var(--from) - 8px); height: 1px; background: var(--text);
  }
  .ctl-span::before { content: ""; position: absolute; right: 0; top: -13px; width: 1px; height: 13px; background: var(--red); }
  .ctl-span::after { content: ""; position: absolute; right: -2px; top: -16px; width: 5px; height: 5px; border-radius: 50%; background: var(--red); }

  .ctl-stops { display: block; padding-left: 0; }
  .ctl-stops::before, .ctl-stops::after { display: none; }
  .ctl-stop { position: absolute; left: var(--x); top: 40px; transform: translateX(-50%); width: min(228px, 20.5vw); }
  .ctl-stop::after { display: none; }
  .ctl-stop::before { /* 1px riser tying the card to its stretch of the axis */
    content: ""; position: absolute; left: 50%; top: -22px; width: 1px; height: 22px; background: var(--hair);
  }
  .ctl-card { padding-top: 4px; }
  .ctl-stop--start { position: absolute; left: 0; top: 40px; transform: none; width: min(112px, 10.2vw); }
  .ctl-stop--start::before { display: none; }
  .ctl-today {
    order: 0; position: absolute; left: var(--x); top: 20px; transform: translateX(-50%);
    display: block; width: 1px; height: 20px; margin: 0; background: var(--red);
  }
  .ctl-today::before { content: ""; position: absolute; left: 50%; top: 20px; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: var(--red); }
  .ctl-today::after { left: 50%; top: 20px; margin: -3.5px; }
  .ctl-today-label { position: absolute; left: 50%; top: 30px; transform: translateX(-50%); font-size: 10px; letter-spacing: .12em; }
  /* the axis owns the stop stack's height */
  .ctl-stops { min-height: 230px; }
}

/* The instrument responds where you can actually see it.
   Hover only, deliberately: hover is momentary, but focus is a sustained state, and
   dimming the siblings would hold their small text below the 4.5:1 contrast floor for
   as long as focus rested elsewhere. Focus is signalled positively, by the focus ring. */
@supports selector(:has(*)) {
  @media (hover: hover) {
    .ctl:has(.ctl-stop:hover) .ctl-stop:not(:hover) { opacity: .45; }
  }
  .ctl-stop:has(.ctl-card:hover)::after,
  .ctl-stop:has(.ctl-card:focus-visible)::after { background: var(--red); }
}
.ctl-stop { transition: opacity .25s ease; }

/* ---------- Sticky rail ---------- */
.phase-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
html[data-scrolled] .phase-nav { border-bottom-color: var(--rule); }
.phase-nav::before { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--graphic); opacity: .5; }
.phase-nav::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: var(--tl-pct, 0%); background: var(--maroon); transition: width 1400ms var(--ease-out); }
/* no overflow here: overflow-x would force overflow-y:auto and clip the focus ring */
.phase-nav-inner { display: flex; justify-content: space-between; gap: 8px; height: 46px; align-items: center; }
.pn-link {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 2px; text-decoration: none; white-space: nowrap; color: var(--text);
  font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  transition: color .2s ease;
}
.pn-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform .22s var(--ease-out);
}
.pn-link:hover { color: var(--ink); }
.pn-link.is-active { color: var(--ink); }
.pn-link.is-active::after { transform: scaleX(1); }
.pn-num { font-size: 10.5px; font-weight: 600; color: var(--muted); transition: color .2s ease; }
.pn-link.is-active .pn-num { color: var(--red); }
.pn-name { display: none; }
@media (min-width: 760px) {
  .pn-name { display: inline; }
  .pn-month { display: none; }
}
@media (max-width: 419px) {
  .pn-link { gap: 4px; font-size: 10px; letter-spacing: .06em; }
  .phase-nav-inner { height: 44px; }
}

/* ---------- Always running (cream field #1) ---------- */
.ops-band { background: var(--cream); --hair: #E3DAD2; --rule: #CFC5BC; }
.ops-groups { margin-top: clamp(32px, 5vw, 52px); display: grid; gap: 36px; }
.ops-group-label { margin-bottom: 14px; color: var(--maroon); }
.ops-chips { display: block; }
.ops-chips li { padding-block: 4px; font-size: .95rem; font-weight: 500; color: var(--ink); break-inside: avoid; }
.ops-chip--test { color: var(--maroon); }
.ops-chip--more { color: var(--muted); font-weight: 400; }
/* two columns from 360px; 320px stays single so the longest labels never wrap */
@media (min-width: 360px) { .ops-chips { columns: 2; column-gap: 24px; } }
@media (min-width: 480px) { .ops-chips { column-gap: 40px; } }
@media (min-width: 760px) {
  .ops-groups { grid-template-columns: 1fr 1fr; gap: 0; }
  .ops-group + .ops-group { border-left: 1px solid var(--hair); padding-left: clamp(32px, 5vw, 72px); }
  .ops-group + .ops-group .ops-chips { columns: 1; }
}

/* ---------- Milestones ---------- */
.milestone { background: var(--white); border-top: 1px solid var(--rule); }
.ms-head { display: grid; gap: 18px; grid-template-areas: "num icon" "copy copy"; grid-template-columns: 1fr auto; align-items: start; }
.ms-plate { grid-area: num; font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 400; color: var(--red); line-height: 1; }
.ms-head-copy { grid-area: copy; }
.ms-icon { grid-area: icon; width: clamp(72px, 8vw, 104px); color: #A89C92; }
.ms-icon-svg { width: 100%; height: auto; }
.ms-icon-svg * { vector-effect: non-scaling-stroke; stroke-width: 1.1; }
.ic-accent { stroke: var(--maroon); }

.ms-title { position: relative; font-size: var(--f-h2); letter-spacing: -.02em; max-width: 20ch; margin-top: 12px; padding-bottom: 22px; }
.ms-title::after { /* the signature gesture: a rule that draws itself */
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background-image: linear-gradient(var(--maroon), var(--maroon));
  background-color: var(--rule); background-repeat: no-repeat; background-size: 100% 1px;
}
.js .ms-head .ms-title::after { background-size: 0 1px; transition: background-size 800ms var(--ease-out); }
.js .ms-head.in-view .ms-title::after { background-size: 100% 1px; }

.ms-deadline {
  display: flex; align-items: center; gap: 10px; margin-top: 20px;
  font-size: var(--f-date); font-weight: 600; color: var(--ink);
}
.ms-deadline .icon { color: var(--red); }
.ms-status { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.ms-status-bar { position: relative; width: 160px; height: 1px; background: var(--graphic); flex: 0 0 auto; }
.ms-status-fill { position: absolute; left: 0; top: -.5px; height: 2px; width: var(--p, 0%); background: var(--maroon); transform-origin: left; }
.ms-status-fill::after { content: ""; position: absolute; right: -2px; top: 50%; margin-top: -2px; width: 4px; height: 4px; border-radius: 50%; background: var(--maroon); }
.ms-status-text { font-size: .8125rem; font-weight: 600; color: var(--maroon); }

/* Execution window — the zoomed instrument, same language as the cover */
.ms-window { margin-top: 32px; padding-block: 10px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ms-window-track { position: relative; flex: 1 1 240px; height: 16px; min-width: 150px; }
.ms-window-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--graphic); }
.ms-window-tick { position: absolute; left: var(--x); top: 50%; width: 1px; height: 6px; background: var(--rule); }
.ms-window-span { position: absolute; left: var(--from); width: calc(var(--to) - var(--from)); top: 50%; margin-top: -1px; height: 2px; background: var(--graphic); }
.ms-window-fill { position: absolute; left: 0; top: 0; height: 2px; width: var(--p, 0%); background: var(--maroon); transform-origin: left; }
.ms-window-fill::after { content: ""; position: absolute; right: -2px; top: 50%; margin-top: -2px; width: 4px; height: 4px; border-radius: 50%; background: var(--maroon); }
.ms-window-flag { position: absolute; left: var(--x); top: 50%; margin-top: -14px; width: 1px; height: 14px; background: var(--red); }
.ms-window-flag::after { content: ""; position: absolute; left: -2px; top: -4px; width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.ms-window-range { font-size: .8125rem; font-weight: 500; color: var(--maroon); white-space: nowrap; }

.ms-lede { margin-top: 36px; max-width: 46ch; font-size: var(--f-lede); line-height: 1.5; color: var(--ink); }
.ms-outcomes { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 32px; }
.ms-outcomes li { position: relative; padding-left: 15px; font-size: 12.5px; font-weight: 600; color: var(--ink); letter-spacing: .01em; }
.ms-outcomes li::before { content: ""; position: absolute; left: 0; top: 6px; width: 5px; height: 5px; border-radius: 50%; border: 1px solid var(--maroon); }
.ms-banner { border-top: 1px solid var(--rule); padding-top: 28px; margin-top: 40px; }
.ms-banner-main { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 600; color: var(--ink); letter-spacing: -.015em; line-height: 1.15; }
.ms-banner-sub { margin-top: 8px; }
.ms-ambition { margin-top: 44px; padding-left: 22px; border-left: 1px solid var(--maroon); max-width: 56ch; }
.ms-ambition .kicker { margin-bottom: 10px; }

/* Deliverables — four affordance cues, no box */
.ms-details { border-top: 1px solid var(--rule); margin-top: 44px; }
.ms-details summary { display: flex; align-items: center; gap: 16px; padding: 18px 0; min-height: 54px; cursor: pointer; list-style: none; }
.ms-details summary::-webkit-details-marker { display: none; }
.ms-details-label {
  font-size: .8125rem; font-weight: 600; color: var(--ink);
  text-decoration: underline; text-decoration-thickness: 1px;
  text-decoration-color: var(--hair); text-underline-offset: 6px;
  transition: text-decoration-color .2s ease;
}
.ms-details summary:hover .ms-details-label, .ms-details summary:focus-visible .ms-details-label { text-decoration-color: var(--maroon); }
.ms-count { margin-left: auto; font-size: 11px; font-weight: 500; color: var(--muted); }
.ms-details summary::after {
  content: ""; width: 8px; height: 8px; flex: 0 0 auto;
  border-right: 1px solid var(--maroon); border-bottom: 1px solid var(--maroon);
  transform: rotate(45deg) translateY(-2px); transition: transform .3s var(--ease-out);
}
.ms-details[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.ms-list { padding: 4px 0 32px; }
.ms-list li { position: relative; padding: 8px 0 8px 24px; break-inside: avoid; }
.ms-list li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 10px; height: 1px; background: var(--graphic); }
@media (min-width: 900px) { .ms-list { columns: 2; column-gap: 56px; } }

/* progressive enhancement only — never applied where it could not be undone */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  details::details-content { block-size: 0; overflow: hidden; transition: block-size 400ms var(--ease-out), content-visibility 400ms allow-discrete; }
  details[open]::details-content { block-size: auto; }
}

/* gutter layout: the section visibly hangs off its numeral */
@media (min-width: 1024px) {
  .milestone .container { position: relative; padding-left: calc(var(--pad) + var(--gut)); }
  .milestone .container::before { content: ""; position: absolute; left: var(--pad); top: calc(var(--gut) + 4px); bottom: 0; width: 1px; background: var(--hair); }
  .ms-head { margin-left: calc(var(--gut) * -1); grid-template-areas: "num copy icon"; grid-template-columns: var(--gut) minmax(0, 1fr) auto; gap: 0 clamp(16px, 2vw, 28px); }
}

/* ---------- Now / Next / Then ---------- */
.seq-grid { margin-top: clamp(26px, 4vw, 44px); display: grid; gap: 0; }
.seq-card { padding: 28px 0 0; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 10px; }
.seq-card--now { background: var(--cream); border-top: 2px solid var(--maroon); padding: 28px clamp(20px, 3vw, 32px); align-self: stretch; }
.seq-here { display: flex; align-items: center; gap: 9px; font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--red-text); }
.seq-here::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--red); animation: breathe 3.2s ease-out infinite; }
.seq-label { font-size: 1.0625rem; font-weight: 600; color: var(--ink); }
.seq-card--now .seq-label { color: var(--maroon); }
.seq-body { font-size: .97rem; max-width: 34ch; flex: 1 1 auto; }
.seq-target { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.seq-target .icon { color: var(--red); }
/* three items go straight from 1 column to 3 — a 2-column stage orphans the third
   and leaves its divider hairline running against nothing */
@media (min-width: 1020px) {
  .seq-grid { grid-template-columns: repeat(3, 1fr); column-gap: 0; }
  .seq-card:not(.seq-card--now) { padding-left: clamp(20px, 3vw, 32px); border-left: 1px solid var(--hair); }
}

/* ---------- Dependency chain ---------- */
.dep-chain { position: relative; margin-top: clamp(30px, 4vw, 48px); display: grid; gap: 40px; }
.dep-chain::before { content: ""; position: absolute; background: var(--graphic); }
.dep-chain::after { content: ""; position: absolute; background: var(--maroon); transform-origin: left; }
.dep-item { position: relative; padding-top: 26px; }
.dep-item::before { content: ""; position: absolute; left: 0; top: 3px; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--maroon); background: var(--white); }
.dep-num { display: block; font-size: 11px; font-weight: 600; letter-spacing: .14em; color: var(--maroon); margin-bottom: 8px; }
.dep-title { font-size: .95rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.dep-item p:not(.dep-title) { font-size: .95rem; max-width: 30ch; }
.dep-note { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: .95rem; color: var(--muted); }
/* vertical chain when stacked */
.dep-chain::before, .dep-chain::after { left: 3.5px; top: 6px; bottom: 6px; width: 1px; }
.dep-chain::after { transform: scaleY(0); transform-origin: top; }
.js .dep-chain.in-view::after { transform: scaleY(1); transition: transform 900ms var(--ease-out); }
@media (min-width: 1020px) {
  .dep-chain { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  /* dot 1 centre to dot 3 centre across a 3-column grid with a 40px gap:
     2·colW + 2·gap, where colW = (100% - 2·gap)/3  →  66.666% + 26.667px */
  .dep-chain::before, .dep-chain::after {
    left: 3.5px; right: auto; top: 6px; bottom: auto;
    width: calc(66.666% + 26.667px); height: 1px;
  }
  .dep-chain::after { transform: scaleX(0); transform-origin: left; }
  .js .dep-chain.in-view::after { transform: scaleX(1); }
}

/* ---------- Outcomes ---------- */
.out-grid { margin-top: clamp(28px, 4vw, 52px); display: grid; gap: clamp(28px, 4vw, 56px); }
.out-tile { position: relative; padding-top: 20px; }
.out-tile::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 1px;
  background: var(--rule); transform-origin: left;
}
.js .out-tile::before { transform: scaleX(0); transition: transform 700ms var(--ease-out); }
.js .out-tile.in-view::before { transform: scaleX(1); }
.js .out-tile:nth-child(2)::before { transition-delay: 120ms; }
.js .out-tile:nth-child(3)::before { transition-delay: 240ms; }
.out-num { display: block; font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 400; color: var(--maroon); line-height: 1; margin-bottom: 12px; }
.out-tile p { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); font-weight: 600; color: var(--ink); letter-spacing: -.01em; line-height: 1.3; }
@media (min-width: 1020px) { .out-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Footer ---------- */
.footer { background: var(--footer); color: #F3E9E2; padding-block: clamp(72px, 10vw, 116px); }
.footer-logo { width: 118px; height: auto; margin-bottom: 32px; opacity: .95; }
.footer-statement { max-width: 44ch; font-size: clamp(1.125rem, 1.9vw, 1.5rem); line-height: 1.45; font-weight: 400; color: #FAF6F2; }
.footer-meta { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(250, 246, 242, .14); color: rgba(250, 246, 242, .5); }

/* ---------- Reveals (JS-gated: app.js adds .js, so a failed script never hides content) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.js [data-reveal].in-view { opacity: 1; transform: none; }
.js .ms-head .ms-status-fill, .js .ms-window .ms-window-fill { transform: scaleX(0); transition: transform 900ms var(--ease-out) 150ms; }
.js .ms-head.in-view .ms-status-fill, .js .ms-window.in-view .ms-window-fill { transform: scaleX(1); }

[id] { scroll-margin-top: 70px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .ms-status-fill, .js .ms-window-fill, .js .dep-chain::after, .js .out-tile::before { transform: none !important; }
  .js .ms-title::after { background-size: 100% 1px !important; }
  details::details-content { transition: none !important; }
}
html.reduce-motion, html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after { animation: none !important; transition: none !important; }
html.reduce-motion details::details-content { transition: none !important; }
html.reduce-motion [data-reveal] { opacity: 1 !important; transform: none !important; }
html.reduce-motion .ms-status-fill, html.reduce-motion .ms-window-fill,
html.reduce-motion .dep-chain::after, html.reduce-motion .out-tile::before { transform: none !important; }
html.reduce-motion .ms-title::after { background-size: 100% 1px !important; }

/* ---------- Print ---------- */
@media print {
  /* the live "now" instruments are dropped: a printed sheet is a snapshot */
  .skip-link, .phase-nav, .ctl-today, .ctl-progress, .ctl-stops::after { display: none !important; }
  details::details-content { block-size: auto !important; overflow: visible !important; content-visibility: visible !important; transition: none !important; }
  :root { --hair: #999; --rule: #999; --graphic: #999; print-color-adjust: exact; }
  .section { padding-block: 28px; }
  .seq-card, .dep-item, .ms-details, .ms-window { break-inside: avoid; }
  .footer { background: none; }
  .footer-logo { display: none; }
  .footer-statement, .footer-meta { color: var(--ink); }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .js .ms-status-fill, .js .ms-window-fill, .js .dep-chain::after, .js .out-tile::before { transform: none !important; }
  .js .ms-title::after { background-size: 100% 1px !important; }
  .ctl-today, .ms-window-flag { background: #000 !important; }
}
