/* imagobi.com — the front room of the app.
   An ice ground with one white working sheet and navy ink: the same room a person
   walks into at app.imagobi.com. One rule runs through the whole page, as it does
   through the product: SQUARE corners = your database reported it; PETAL corners
   (two opposite corners grown) = Imago wrote it. Values follow web/public/themes/
   imago-light.css and imago-dark.css; keep them in step. */

@font-face {
  font-family: 'Readex Pro';
  font-style: normal;
  font-weight: 160 700;
  font-display: swap;
  src: url(../fonts/readex-pro-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Readex Pro';
  font-style: normal;
  font-weight: 160 700;
  font-display: swap;
  src: url(../fonts/readex-pro-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Layout: a 12-column measure (max 1180px) on the ground; the hero's sheet spans it,
   text never runs past ~62 characters. */
:root {
  /* Ground and sheets */
  --ground:  #EEF4FB;   /* ice: the page */
  --sheet:   #FFFFFF;   /* the white working sheet, evidence panels */
  --raised:  #F3F8FD;   /* a person's message, code */
  --line:    #D6E2F0;   /* decorative edges */
  --line-2:  #C9D4EA;   /* control edges */

  /* Ink: the Morpho navy family */
  --ink:     #384064;
  --ink-2:   #5B6485;
  --ink-3:   #8A94B3;   /* rules and disabled only, never running text */

  /* Morpho blues */
  --blue:    #2E60A8;   /* actions, the one series, links */
  --blue-2:  #244E8A;   /* action hover */
  --on-blue: #FFFFFF;
  --sky:     #ACDBFC;   /* the edge of what Imago wrote */

  /* What Imago wrote (pairs with a petal) */
  --ai-bg:   #F3F8FD;
  --ai-line: #ACDBFC;
  --ai-ink:  #2E60A8;

  /* A figure and its evidence, lit together */
  --hl:      #D9ECFC;
  --hl-line: #2E60A8;

  /* Status: never the only signal; a word or an icon rides along */
  --ok:      #1F7A8C;
  --warn:    #8A5A00;

  /* The closing band: the agent's navy wing */
  --band:        #384064;
  --band-ink:    #FFFFFF;
  --band-ink-2:  #D3DAEC;
  --band-cta:    #ACDBFC;
  --band-cta-2:  #CFE7FB;
  --band-cta-ink:#1F2540;

  /* The mark */
  --mark-1: #2E60A8;  --mark-2: #4D8EC1;  --mark-3: #7FB6E3;  --mark-4: #ACDBFC;
  --rev-1:  #4D8EC1;  --rev-2:  #7FB6E3;  --rev-3:  #ACDBFC;  --rev-4:  #FFFFFF;

  --focus:   #2E60A8;

  /* Type: one family, weight does the talking; mono is for SQL and identifiers */
  --font: 'Readex Pro', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Corners: square is the base; a petal grows two opposite corners */
  --r:        6px;
  --petal-sm: 18px 4px 18px 4px;
  --petal:    24px 6px 24px 6px;
  --petal-lg: 32px 6px 32px 6px;
  --r-sheet:  20px;

  --gutter: clamp(16px, 4vw, 40px);
  --measure: 1180px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #1F2540; --sheet: #262D4A; --raised: #2C3352; --line: #3D4670; --line-2: #4A5480;
    --ink: #F3F6FC; --ink-2: #C9D4EA; --ink-3: #8C96BA;
    --blue: #7FB6E3; --blue-2: #ACDBFC; --on-blue: #1F2540; --sky: #4D8EC1;
    --ai-bg: #263056; --ai-line: #4D8EC1; --ai-ink: #ACDBFC;
    --hl: #34507E; --hl-line: #ACDBFC;
    --ok: #5FC3B0; --warn: #F2C46B;
    --band: #384064; --band-ink: #FFFFFF; --band-ink-2: #D3DAEC; --band-cta: #ACDBFC; --band-cta-2: #CFE7FB; --band-cta-ink: #1F2540;
    --mark-1: #4D8EC1; --mark-2: #7FB6E3; --mark-3: #ACDBFC; --mark-4: #FFFFFF;
    --focus: #ACDBFC;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #1F2540; --sheet: #262D4A; --raised: #2C3352; --line: #3D4670; --line-2: #4A5480;
  --ink: #F3F6FC; --ink-2: #C9D4EA; --ink-3: #8C96BA;
  --blue: #7FB6E3; --blue-2: #ACDBFC; --on-blue: #1F2540; --sky: #4D8EC1;
  --ai-bg: #263056; --ai-line: #4D8EC1; --ai-ink: #ACDBFC;
  --hl: #34507E; --hl-line: #ACDBFC;
  --ok: #5FC3B0; --warn: #F2C46B;
  --band: #384064; --band-ink: #FFFFFF; --band-ink-2: #D3DAEC; --band-cta: #ACDBFC; --band-cta-2: #CFE7FB; --band-cta-ink: #1F2540;
  --mark-1: #4D8EC1; --mark-2: #7FB6E3; --mark-3: #ACDBFC; --mark-4: #FFFFFF;
  --focus: #ACDBFC;
  color-scheme: dark;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
p { margin: 0; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
code { font-family: var(--mono); font-size: .88em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 20;
  background: var(--sheet); color: var(--ink); padding: 10px 16px; border-radius: var(--r);
  border: 1px solid var(--line-2); text-decoration: none;
}
.skip:focus { top: 12px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* The wings of the mark, filled per context */
.w1 { fill: var(--m1, currentColor); }
.w2 { fill: var(--m2, currentColor); }
.w3 { fill: var(--m3, currentColor); }
.w4 { fill: var(--m4, currentColor); }
.mark-brand { --m1: var(--mark-1); --m2: var(--mark-2); --m3: var(--mark-3); --m4: var(--mark-4); }
.mark-reverse { --m1: var(--rev-1); --m2: var(--rev-2); --m3: var(--rev-3); --m4: var(--rev-4); }

.wrap {
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* ── Buttons: square, because a person presses them ───────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border: 1px solid transparent; border-radius: var(--r);
  font: 500 16px/1.1 var(--font); letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: var(--on-blue); }
.btn-primary:hover { background: var(--blue-2); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-quiet:hover { background: var(--sheet); border-color: var(--ink-3); }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 17px; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }

/* ── Header ───────────────────────────────────────────────────────────── */
.top-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 24px;
  padding-block: 18px;
}
.brand { display: inline-flex; color: var(--ink); border-radius: var(--r); }
.brand svg { display: block; height: 34px; width: auto; }
.wm { fill: var(--ink); }
.nav { display: flex; align-items: center; gap: 4px 22px; flex-wrap: wrap; justify-content: flex-end; }
.nav-link { color: var(--ink); text-decoration: none; font-size: 16px; padding-block: 8px; }
.nav-link:hover { text-decoration: underline; }
@media (max-width: 700px) {
  .nav-anchor { display: none; }
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { padding-block: clamp(28px, 6vw, 72px) clamp(16px, 3vw, 32px); }
.hero-head {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 28px 56px; align-items: end;
}
@media (min-width: 960px) {
  .hero-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}
.hero h1 {
  font-size: clamp(42px, 5.4vw + 8px, 78px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  max-width: 12ch;
}
.lead {
  font-size: clamp(18px, .5vw + 15px, 21px);
  line-height: 1.55; font-weight: 300; color: var(--ink-2);
  max-width: 46ch;
}
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* The exchange: one question, the work, the answer and its evidence */
.exchange { margin: clamp(40px, 5vw, 64px) 0 0; }
.sheet {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--r-sheet);
  padding: clamp(18px, 3vw, 36px);
}
.ask {
  margin-left: auto; width: fit-content; max-width: min(100%, 44ch);
  background: var(--raised); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 20px;
  font-size: clamp(19px, 1vw + 14px, 25px); line-height: 1.35; letter-spacing: -0.01em;
}
.work {
  list-style: none; margin: 16px 0 22px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px 22px;
  font-size: 14px; line-height: 1.4; color: var(--ink-2);
}
.work li, .checks li { display: flex; align-items: flex-start; gap: 8px; }
.tick {
  flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--ok);
}
.exchange-grid {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px;
}
@media (min-width: 960px) {
  .exchange-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
}

/* What Imago wrote: petal */
.petal {
  background: var(--ai-bg);
  border: 1px solid var(--ai-line);
  border-radius: var(--petal);
}
.answer { border-radius: var(--petal-lg); padding: clamp(20px, 2.4vw, 32px); }
.say {
  font-size: clamp(19px, .5vw + 16px, 22px); line-height: 1.6;
}
.prov {
  display: flex; align-items: center; gap: 8px;
  margin-top: 16px; font-size: 14px; line-height: 1.45; color: var(--ai-ink);
}
.prov svg { flex: none; width: 16px; height: 16px; }
.prov-person { margin-top: 16px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }

/* A figure Imago wrote, pointing at its evidence */
.fig {
  font: inherit; font-weight: 600; font-variant-numeric: tabular-nums;
  color: inherit; background: transparent;
  border: 0; border-radius: 3px;
  padding: 0 3px; margin: 0 -1px;
  text-decoration: underline 2px var(--sky); text-underline-offset: 5px;
  cursor: pointer;
  transition: background-color .15s ease, text-decoration-color .15s ease;
}
.fig:hover, .fig.is-on { background: var(--hl); text-decoration-color: var(--hl-line); }

/* What the database reported: square */
.evidence { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.panel {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 18px;
  min-width: 0;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.panel-title { font-size: 15px; line-height: 1.35; font-weight: 500; }
.panel-sub { margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--ink-2); }

.exchange[data-show="w35"] .chart-panel,
.exchange[data-show="w36"] .chart-panel,
.exchange[data-show="weeks"] .chart-panel,
.exchange[data-show="footwear"] .table-panel {
  border-color: var(--hl-line);
  box-shadow: 0 0 0 1px var(--hl-line);
}

/* The chart: drawn to one scale (0–15% up, weeks 31–46 across) */
.chart { position: relative; height: 210px; margin-top: 12px; }
.plot { position: absolute; left: 40px; right: 12px; top: 14px; bottom: 26px; }
.gy {
  position: absolute; left: 0; right: 0; height: 0;
  border-top: 1px solid var(--line);
}
.gy::before {
  content: attr(data-l);
  position: absolute; right: calc(100% + 8px); top: 0; transform: translateY(-50%);
  font-size: 12px; line-height: 1; color: var(--ink-2); font-variant-numeric: tabular-nums;
}
.gy-0  { bottom: 0; border-top-color: var(--ink-3); }
.gy-5  { bottom: 33.333%; }
.gy-10 { bottom: 66.667%; }
.gy-15 { bottom: 100%; }
.gx {
  position: absolute; top: calc(100% + 8px); transform: translateX(-50%);
  font-size: 12px; line-height: 1; color: var(--ink-2); white-space: nowrap;
}
.gx-31 { left: 0; transform: none; }
.gx-36 { left: 33.333%; }
.gx-41 { left: 66.667%; }
.gx-46 { left: 100%; transform: translateX(-100%); }
@media (max-width: 600px) { .gx-41 { display: none; } }
.line {
  position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
}
.line polyline {
  fill: none; stroke: var(--blue); stroke-width: 2.5;
  stroke-linejoin: round; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.dot {
  position: absolute; left: var(--x); bottom: var(--y);
  width: 11px; height: 11px; transform: translate(-50%, 50%);
  border-radius: 50%; background: var(--sheet); border: 2.5px solid var(--blue);
}
.dot-w35 { --x: 26.667%; --y: 40.667%; }
.dot-w36 { --x: 33.333%; --y: 85.333%; }
.dot-w46 { --x: 100%;    --y: 86%; }
.dot-w35, .dot-w36 { opacity: 0; transition: opacity .15s ease; }
.tag {
  position: absolute; white-space: nowrap;
  font-size: 12px; line-height: 1.2; font-weight: 600; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.tag-w46 { right: 0; bottom: calc(86% + 12px); }
.tag-w35 { left: 26.667%; bottom: calc(40.667% - 30px); transform: translateX(-50%); opacity: 0; }
.tag-w36 { right: calc(66.667% + 10px); bottom: calc(85.333% + 4px); opacity: 0; }
.band {
  position: absolute; left: 30%; right: -6px; top: -6px; bottom: 0;
  background: var(--hl); border-radius: 2px; opacity: 0; transition: opacity .15s ease;
}
.band .tag { left: 8px; top: 6px; }
.ref {
  position: absolute; left: 0; right: 0; bottom: 80%; height: 0;
  border-top: 1.5px dashed var(--hl-line); opacity: 0; transition: opacity .15s ease;
}
.exchange[data-show="w35"] .dot-w35, .exchange[data-show="w35"] .tag-w35,
.exchange[data-show="w36"] .dot-w36, .exchange[data-show="w36"] .tag-w36,
.exchange[data-show="weeks"] .band, .exchange[data-show="weeks"] .ref { opacity: 1; }

/* The table */
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.table-panel table { margin-top: 10px; font-size: 15px; }
th {
  text-align: left; font-weight: 500; font-size: 13px; color: var(--ink-2);
  padding: 6px 10px; border-bottom: 1px solid var(--line);
}
td { padding: 8px 10px; border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: 0; }
.num { text-align: right; }
td { transition: background-color .15s ease; }
.exchange[data-show="footwear"] .row-footwear td { background: var(--hl); }
.exchange[data-show="footwear"] .row-footwear td:first-child { box-shadow: inset 3px 0 0 var(--hl-line); }

/* The queries */
.queries { margin-top: 20px; }
.queries summary {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; cursor: pointer; list-style: none;
  font-size: 15px; font-weight: 500; color: var(--blue); border-radius: var(--r);
}
.queries summary::-webkit-details-marker { display: none; }
.queries summary::before {
  content: ""; width: 8px; height: 8px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); transition: transform .15s ease;
}
.queries[open] summary::before { transform: rotate(45deg) translate(-2px, -2px); }
.answer-col { min-width: 0; }
.sql-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 10px; }
.sql { min-width: 0; }
.sql-title { font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
pre {
  margin: 0; overflow-x: auto;
  background: var(--raised); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 16px;
  font: 13px/1.65 var(--mono); color: var(--ink); tab-size: 2;
  font-variant-ligatures: none;   /* show >= as typed, never as ≥ */
}
pre code { font-size: inherit; }
.k { color: var(--blue); }

/* The key under the sheet */
.key {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px 40px;
  margin-top: 24px;
}
@media (min-width: 760px) { .key { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.key-item { display: flex; gap: 16px; align-items: flex-start; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.key-item strong { color: var(--ink); font-weight: 600; }
.swatch { flex: none; width: 46px; height: 32px; margin-top: 2px; }
.swatch-square { background: var(--sheet); border: 1.5px solid var(--line-2); border-radius: var(--r); }
.swatch-petal { background: var(--ai-bg); border: 1.5px solid var(--ai-line); border-radius: 16px 4px 16px 4px; }
.key-hint { grid-column: 1 / -1; font-size: 14px; color: var(--ink-2); }

/* ── Sections ─────────────────────────────────────────────────────────── */
.section { padding-block: clamp(72px, 9vw, 128px); }
.section-head { max-width: 760px; margin-bottom: clamp(44px, 5vw, 72px); }
.section-head h2, .closing h2, .nf-title {
  font-size: clamp(30px, 2.4vw + 16px, 46px);
  line-height: 1.1; letter-spacing: -0.03em; font-weight: 600;
}
.section-head p { margin-top: 18px; font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 58ch; }

/* The journey: a real sequence, joined by a thread like the app's rail */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(56px, 6vw, 88px); position: relative; }
.steps::before {
  content: ""; position: absolute; left: 17px; top: 20px; bottom: 20px; width: 2px;
  background: var(--line);
}
.step {
  display: grid; grid-template-columns: 36px minmax(0, 1fr);
  gap: 24px 20px; position: relative;
}
@media (min-width: 960px) {
  .step { grid-template-columns: 36px minmax(0, 5fr) minmax(0, 6fr); gap: 0 48px; align-items: start; }
}
.node {
  width: 36px; height: 36px; display: grid; place-items: center;
  background: var(--sheet); border: 1.5px solid var(--line-2); border-radius: var(--r);
  font-size: 15px; font-weight: 600; color: var(--ink); position: relative; z-index: 1;
}
.step-show { grid-column: 2; min-width: 0; }
@media (min-width: 960px) { .step-show { grid-column: 3; grid-row: 1; } }
.area { font-size: 15px; font-weight: 600; color: var(--blue); line-height: 36px; }
.step h3 {
  margin-top: 4px; font-size: clamp(22px, .8vw + 16px, 27px);
  line-height: 1.25; letter-spacing: -0.02em; font-weight: 600;
}
.step-text > p:not(.area) { margin-top: 12px; color: var(--ink-2); max-width: 52ch; }
.sources { font-size: 15px; line-height: 1.6; }

/* Specimens */
.spec { display: grid; gap: 14px; }
.checks { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; font-size: 15px; line-height: 1.5; }
.checks .warn .tick { color: var(--warn); }
.checks .warn { color: var(--ink); }
.panel-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }

.draft { padding: 20px 22px; transition: border-radius .35s ease, background-color .35s ease, border-color .35s ease; }
.draft[data-state="accepted"] { border-radius: var(--r); background: var(--sheet); border-color: var(--line-2); }
.draft[data-state="rejected"] .draft-text { color: var(--ink-3); text-decoration: line-through; }
.draft-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.draft-head code { font-size: 14px; }
.draft-text { margin-top: 10px; font-size: 16px; line-height: 1.6; }
.pill {
  display: inline-flex; align-items: center; min-height: 22px; padding: 0 9px;
  border-radius: 999px; font-size: 12px; font-weight: 500; line-height: 1;
  background: var(--sheet); color: var(--ai-ink); border: 1px solid var(--ai-line);
}
.pill-done { background: var(--blue); color: var(--on-blue); border-color: var(--blue); }
.pill-quiet { color: var(--ink-2); border-color: var(--line-2); background: transparent; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.followup { display: grid; gap: 12px; }
.ask-sm { font-size: 17px; padding: 10px 16px; }
.rewrite { padding: 14px 18px; border-radius: var(--petal-sm); max-width: 44ch; }
.rewrite .prov { margin-top: 0; margin-bottom: 4px; }
.rewrite p:last-child { font-size: 16px; line-height: 1.5; }

.act { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 560px) { .act { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; } }
.kpi-v { font-size: 34px; line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi-l { margin-top: 6px; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.kpi-d { margin-top: 10px; font-size: 13px; line-height: 1.4; color: var(--ink); font-variant-numeric: tabular-nums; }
.finding { padding: 18px 20px; transition: opacity .25s ease; }
.finding p:first-child { font-size: 16px; line-height: 1.55; }
.act[data-state="dismissed"] .finding { opacity: .6; }

.board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.board .panel { padding: 14px 16px; }
.board .kpi-v { font-size: 26px; }
.bars-panel { grid-column: 1 / -1; }
.bars { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.bars li { display: grid; grid-template-columns: 92px minmax(0, 1fr) 48px; gap: 10px; align-items: center; font-variant-numeric: tabular-nums; }
.bars .bar { height: 14px; background: var(--blue); border-radius: 0 2px 2px 0; }
.bars .v { text-align: right; color: var(--ink-2); }
.bar-1 { width: 100%; }
.bar-2 { width: 29.7%; }
.bar-3 { width: 17.2%; }
.bar-4 { width: 9.4%; }
.board .summary { grid-column: 1 / -1; padding: 12px 16px; border-radius: var(--petal-sm); font-size: 15px; line-height: 1.5; }

/* ── Security ─────────────────────────────────────────────────────────── */
.security { background: var(--sheet); border-block: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 56px; margin: 0; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fact { padding: 22px 0 26px; border-top: 1px solid var(--line); }
.fact dt { font-size: 19px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.fact dd { margin: 8px 0 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 50ch; }

/* ── Closing: the navy wing ───────────────────────────────────────────── */
.closing { background: var(--band); color: var(--band-ink); padding-block: clamp(72px, 8vw, 112px); overflow: hidden; }
.closing-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
@media (min-width: 900px) { .closing-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.closing h2 { color: var(--band-ink); max-width: 18ch; }
.closing p { margin-top: 18px; font-size: 19px; line-height: 1.6; color: var(--band-ink-2); max-width: 48ch; }
.closing .ctas { align-items: center; gap: 12px 24px; margin-top: 30px; }
.btn-band { background: var(--band-cta); color: var(--band-cta-ink); }
.btn-band:hover { background: var(--band-cta-2); }
.closing a:not(.btn) { color: var(--band-ink); }
.closing :focus-visible { outline-color: var(--band-cta); }
.big-mark { display: block; width: min(100%, 340px); height: auto; justify-self: center; }
@media (min-width: 900px) { .big-mark { justify-self: end; } }
@media (max-width: 899px) { .big-mark { width: 160px; justify-self: start; order: -1; } }

/* ── Footer ───────────────────────────────────────────────────────────── */
.foot { padding-block: 28px 44px; }
.foot-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 32px; font-size: 14px; color: var(--ink-2);
}
.made { display: inline-flex; align-items: center; gap: 10px; }
.made img { width: 34px; height: auto; }
.foot a { color: var(--ink); }

/* ── The one orchestrated moment: the answer arrives ──────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .work li { animation: tick-in .35s ease both; }
  .work li:nth-child(1) { animation-delay: .15s; }
  .work li:nth-child(2) { animation-delay: .45s; }
  .work li:nth-child(3) { animation-delay: .75s; }
  .line { animation: draw .9s cubic-bezier(.3, .7, .2, 1) .9s both; }
  .dot-w46, .tag-w46 { animation: appear .3s ease 1.7s both; }
  .answer { animation: bloom .7s cubic-bezier(.2, .8, .2, 1) 1.5s both; transform-origin: 0 0; }
}
/* Every frame of this sequence is readable: the line starts drawn up to week 35 and
   unrolls the jump; only its end label starts hidden. */
@keyframes tick-in { from { opacity: .5; transform: translateY(2px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { clip-path: inset(-10px 72% -10px -10px); } to { clip-path: inset(-10px -10px -10px -10px); } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes bloom {
  from { transform: scale(.99); border-radius: 12px 6px 12px 6px; }   /* a petal from the first frame */
  to { transform: none; border-radius: var(--petal-lg); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
