/* ============================================================
   Design the Agent — designtheagent.com
   Identity lifted from the Agentic AI Design Canvas:
   navy + cream, Newsreader display, IBM Plex Sans/Mono,
   corner-triangle accents, navy hairlines, orange mono eyebrows.
   ============================================================ */

:root {
  --navy: #0B1F3A;
  --navy-2: #0F2747;
  --ink: #0B1F3A;
  --cream: #FAF7F2;
  --cream-2: #F2ECE1;
  --paper: #FFFFFF;
  --rule: #1F3553;
  --warm-line: #DCD3C3;

  --orange: #FF6B35;   /* Purpose */
  --yellow: #F4D35E;   /* Capability */
  --amber-ink: #9A7B0E;/* readable capability text */
  --green: #06A77D;    /* Governance */
  --teal: #1E8FA8;
  --red: #C0392B;

  --maxw: 1200px;
  --pad: 40px;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 var(--pad); }

/* ---- shared type ---- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0;
}
.serif { font-family: var(--serif); }
em.it { font-style: italic; font-weight: 400; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.018em; }

a { color: inherit; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 31, 58, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(250, 247, 242, 0.12);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.wordmark {
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
  font-family: var(--serif); font-size: 20px; font-weight: 600;
  color: var(--cream); text-decoration: none; letter-spacing: -0.01em;
}
.wordmark .glyph {
  width: 22px; height: 22px; flex: none;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(250, 247, 242, 0.72);
  text-decoration: none; transition: color 0.15s; white-space: nowrap;
}
.nav-links a:hover { color: var(--cream); }
.nav-cta {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--navy);
  background: var(--orange); padding: 9px 16px; border-radius: 4px;
  text-decoration: none; font-weight: 600; transition: transform 0.12s, background 0.15s;
}
.nav-cta:hover { background: #ff7d4d; transform: translateY(-1px); }
.nav-links .nav-cta { color: var(--navy); }
@media (max-width: 860px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--navy);
  color: var(--cream);
  position: relative;
  overflow: hidden;
  padding: 110px 0 0;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 88% -8%, rgba(255,107,53,0.10), transparent 60%),
    radial-gradient(700px 500px at 8% 110%, rgba(6,167,125,0.08), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero .eyebrow { margin-bottom: 26px; }
.hero h1 {
  font-size: clamp(56px, 9.5vw, 132px);
  line-height: 0.92;
  margin: 0;
  color: var(--cream);
  letter-spacing: -0.03em;
}
.hero h1 em { font-style: italic; font-weight: 500; color: var(--yellow); }
.hero-spine {
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.32;
  max-width: 720px;
  margin: 34px 0 0;
  color: rgba(250, 247, 242, 0.88);
  text-wrap: balance;
}
.hero-sub {
  max-width: 600px; margin: 22px 0 0;
  color: rgba(250, 247, 242, 0.66); font-size: 17px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 40px 0 0; }
.btn {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em;
  text-transform: uppercase; font-weight: 600;
  padding: 14px 24px; border-radius: 5px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
  transition: transform 0.12s, background 0.15s, border-color 0.15s;
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--orange); color: var(--navy); }
.btn-primary:hover { background: #ff7d4d; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(250,247,242,0.28); }
.btn-ghost:hover { border-color: var(--cream); background: rgba(250,247,242,0.06); }
.btn .arrow { transition: transform 0.15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* stat strip */
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 84px; border-top: 1px solid rgba(250,247,242,0.16);
}
.stat { padding: 30px 26px 38px; border-right: 1px solid rgba(250,247,242,0.16); }
.stat:last-child { border-right: none; }
.stat .n { font-family: var(--serif); font-size: clamp(40px, 5vw, 62px); line-height: 1; color: var(--cream); font-style: italic; }
.stat .n em { font-style: italic; color: var(--orange); }
.stat .n em.alt { color: var(--yellow); } /* ties the Gartner stat to the "Design." accent */
.stat .l { margin-top: 12px; font-size: 14px; line-height: 1.45; color: rgba(250,247,242,0.62); }
@media (max-width: 760px) {
  .hero-stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-top: 1px solid rgba(250,247,242,0.14); padding: 24px 0 26px; }
  .hero-stats { border-top: none; }
}

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
section { position: relative; }
.band { padding: 110px 0; }
.band-cream { background: var(--cream); }
.band-paper { background: var(--cream-2); }
.band-navy { background: var(--navy); color: var(--cream); }

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 {
  font-size: clamp(34px, 4.6vw, 56px); line-height: 1.02; margin: 0;
  color: inherit;
}
.section-head h2 em { font-style: italic; font-weight: 400; }
.section-head .lede {
  font-family: var(--serif); font-size: 21px; line-height: 1.5;
  margin: 22px 0 0; color: inherit; opacity: 0.82; text-wrap: pretty;
}
.band-navy .section-head h2 { color: var(--cream); }

/* pull quote */
.pull {
  font-family: var(--serif);
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.22; font-style: italic; font-weight: 400;
  max-width: 980px; margin: 0 auto; text-align: center;
  letter-spacing: -0.01em; text-wrap: balance;
}
.pull .src { display: block; font-style: normal; font-family: var(--mono);
  font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase;
  margin-top: 26px; opacity: 0.55; }

/* ============================================================
   PROBLEM — failure ledger
   ============================================================ */
.ledger { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border: 1.2px solid var(--ink); background: var(--paper); }
.ledger .item { padding: 34px 30px; border-right: 1.2px solid var(--ink); }
.ledger .item:last-child { border-right: none; }
.ledger .n { font-family: var(--serif); font-size: 58px; line-height: 0.95; }
.ledger .n.orange { color: var(--orange); }
.ledger .n.green { color: var(--green); }
.ledger .src { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; opacity: 0.5; margin: 14px 0 8px; }
.ledger .d { font-size: 15px; line-height: 1.5; }
@media (max-width: 760px) {
  .ledger { grid-template-columns: 1fr; }
  .ledger .item { border-right: none; border-bottom: 1.2px solid var(--ink); }
  .ledger .item:last-child { border-bottom: none; }
}

/* ============================================================
   AGENT OPERATING MODEL — three layers
   ============================================================ */
.aom { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .aom { grid-template-columns: 1fr; gap: 40px; } }

.aom-stack { display: flex; flex-direction: column; gap: 14px; }
.layer {
  border: 1.2px solid rgba(250,247,242,0.7); border-radius: 6px;
  padding: 24px 28px; position: relative; overflow: hidden;
}
.layer .lab { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em;
  text-transform: uppercase; opacity: 0.6; }
.layer h3 { font-size: 28px; margin: 6px 0 4px; color: var(--cream); }
.layer h3 .sub { display: block; font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 17px; opacity: 0.62; margin: 3px 0 0; }
.layer p { margin: 8px 0 0; font-size: 15px; color: rgba(250,247,242,0.72); }
.layer .parts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.layer .chip { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em;
  padding: 5px 11px; border-radius: 999px; background: rgba(250,247,242,0.08);
  border: 1px solid rgba(250,247,242,0.16); color: rgba(250,247,242,0.85); }
.layer.worker { border-left: 4px solid var(--orange); }
.layer.harness { border-left: 4px solid var(--yellow); }
.layer.tools { border-left: 4px solid var(--green); }
.layer.harness { background: rgba(244,211,94,0.05); }

.aom-note .eyebrow { color: var(--yellow); }
.aom-note h2 { font-size: clamp(30px, 3.6vw, 44px); margin: 16px 0 0; color: var(--cream); line-height: 1.05; }
.aom-note h2 em { font-style: italic; font-weight: 400; }
.aom-note p { margin: 20px 0 0; color: rgba(250,247,242,0.74); font-size: 16.5px; }
.aom-note .eq { font-family: var(--serif); font-style: italic; font-size: 22px;
  margin: 26px 0 0; color: var(--cream); }
.aom-note .eq b { font-style: normal; font-weight: 600; color: var(--orange); }

/* ============================================================
   THE CANVAS — faithful reproduction of the editorial canvas
   (10-col × 3-row asymmetric grid; numbers bottom-right)
   ============================================================ */
#canvas > .wrap { max-width: 1340px; }
.dta-sheet {
  background: var(--cream);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  padding: 34px 38px 28px;
  box-shadow: 0 34px 80px rgba(11,31,58,0.13);
}
.dta-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 30px; flex-wrap: wrap;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 18px; margin-bottom: 22px;
}
.dta-head .title-block .eyebrow { color: var(--orange); margin-bottom: 8px; }
.dta-head h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(28px, 3.4vw, 44px); line-height: 0.98;
  margin: 0; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance;
}
.dta-head h3 em { font-style: italic; font-weight: 400; }
.dta-head .meta {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink); opacity: 0.62;
  text-align: right; line-height: 1.9; white-space: nowrap;
}

.dta-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: minmax(150px, auto) minmax(150px, auto) minmax(128px, auto);
  grid-template-areas:
    "w w u  u  a a r r f f"
    "w w pf pf a a m m f f"
    "c c c  c  c t t t t t";
  gap: 12px;
}
.w { grid-area: w; } .u { grid-area: u; } .pf { grid-area: pf; }
.a { grid-area: a; } .r { grid-area: r; } .m { grid-area: m; }
.t { grid-area: t; } .c { grid-area: c; } .f { grid-area: f; }

.dta-cell {
  position: relative; background: var(--paper);
  border: 1.2px solid var(--ink); border-radius: 4px;
  padding: 16px 18px 30px 12px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.14s, box-shadow 0.14s;
}
.dta-cell:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(11,31,58,0.10); }
.dta-cell::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 26px; height: 26px; clip-path: polygon(0 0, 100% 0, 0 100%);
}
.dta-cell.purpose::before { background: var(--orange); }
.dta-cell.capability::before { background: var(--yellow); }
.dta-cell.governance::before { background: var(--green); }
.dta-cell .cell-head { padding-left: 42px; min-height: 30px; }
.dta-cell .cell-head h3 { overflow-wrap: break-word; }
.dta-cell .icon { position: absolute; left: 18px; top: 8px; width: 30px; height: 30px; color: var(--ink); }
.dta-cell .icon svg { width: 100%; height: 100%; display: block; transform-origin: center; }
/* optical size normalization — each icon's artwork fills the 48-unit viewBox by a
   different amount, so equalize them visually against memory (the reference). */
.dta-cell.w  .icon svg { transform: scale(0.90); } /* target   */
.dta-cell.u  .icon svg { transform: scale(0.94); } /* users    */
.dta-cell.pf .icon svg { transform: scale(0.90); } /* brain    */
.dta-cell.a  .icon svg { transform: scale(0.88); } /* robot    */
.dta-cell.c  .icon svg { transform: scale(0.80); } /* book     */
.dta-cell.t  .icon svg { transform: scale(0.72); } /* wrench   */
.dta-cell.r  .icon svg { transform: scale(0.82); } /* clipboard*/
.dta-cell.m  .icon svg { transform: scale(1.00); } /* memory   */
.dta-cell.f  .icon svg { transform: scale(0.86); } /* eye      */
.dta-cell.northstar { border: 2px solid var(--orange); margin: 0 0 22px; padding: 12px 18px 12px 12px; }
.dta-cell.northstar:hover { transform: none; box-shadow: none; }
.dta-cell.northstar .icon svg { transform: scale(0.9); }
.dta-cell.northstar .prompt { font-size: 17px; margin-top: 6px; }
.dta-cell.northstar .cell-head h3 { position: relative; top: 5px; } /* drop 'North Star' to align with the star's middle */
.dta-cell h3 {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 19px; line-height: 1.1; margin: 0;
  letter-spacing: -0.005em; color: var(--ink);
}
.dta-cell .prompt {
  font-family: var(--serif); font-style: italic; font-size: 14.5px;
  line-height: 1.36; color: #4A5A70; margin: 10px 0 0; padding-left: 12px;
}
.dta-cell .num {
  position: absolute; bottom: 11px; right: 15px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  color: var(--ink); opacity: 0.5;
}

/* autonomy spectrum strip inside cell 04 */
.dta-cell .rungs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.dta-cell .rung { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.03em;
  text-transform: lowercase; padding: 3px 9px; border-radius: 999px;
  border: 1px solid rgba(11,31,58,0.25); color: var(--ink); }
.dta-cell .rung.on { background: var(--yellow); border-color: var(--yellow); color: var(--navy); font-weight: 600; }

.dta-foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap; margin-top: 20px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink);
}
.dta-foot .key { display: flex; gap: 22px; flex-wrap: wrap; }
.dta-foot .key span { display: inline-flex; align-items: center; gap: 8px; }
.dta-foot .key .sw { width: 11px; height: 11px; border-radius: 2px; }
.dta-foot .credit { opacity: 0.6; text-align: right; }

.canvas-cta { text-align: center; margin: 32px 0 0; font-family: var(--serif);
  font-style: italic; font-size: 18px; color: var(--ink); }
.canvas-cta a { font-family: var(--mono); font-style: normal; font-size: 12.5px;
  letter-spacing: 0.03em; text-transform: uppercase; color: var(--orange);
  text-decoration: none; border-bottom: 1.5px solid var(--orange); padding-bottom: 2px;
  margin-left: 8px; white-space: nowrap; transition: opacity 0.15s; }
.canvas-cta a:hover { opacity: 0.7; }

/* filled canvas variants used by public case pages */
.filled-sheet .dta-head { align-items: flex-start; }
.filled-sheet .dta-head .meta { max-width: 420px; white-space: normal; text-align: right; line-height: 1.55; }
.filled-sheet .dta-cell { padding: 15px 16px 34px; min-height: 0; }
.filled-sheet .dta-cell:hover { transform: none; box-shadow: none; }
.filled-sheet .dta-cell .cell-head { padding-left: 42px; min-height: 30px; }
.filled-sheet .dta-cell .prompt { padding-left: 0; font-size: 12.5px; line-height: 1.25; margin-top: 7px; color: rgba(11,31,58,0.56); }
.filled-sheet .dta-cell .answer { margin: 11px 0 0; font-size: 14.5px; line-height: 1.33; color: var(--ink); }
.filled-sheet .dta-cell.northstar { display: block; padding: 16px 18px; }
.filled-sheet .dta-cell.northstar .answer { font-family: var(--serif); font-size: 18px; line-height: 1.34; }
.filled-sheet .dta-grid { grid-template-rows: minmax(250px, auto) minmax(250px, auto) minmax(210px, auto); }
.filled-sheet .dta-cell h3 { font-size: 17px; line-height: 1.12; }
.source-note {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(11,31,58,0.68);
}
.source-note a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }

/* ============================================================
   PUBLIC CASE PAGE
   ============================================================ */
.case-hero {
  background: var(--navy);
  color: var(--cream);
  padding: 96px 0 64px;
}
.case-hero h1 {
  font-size: clamp(44px, 7.2vw, 96px);
  line-height: 0.96;
  margin: 20px 0 0;
  color: var(--cream);
}
.case-hero h1 em { color: var(--yellow); font-style: italic; font-weight: 500; }
.case-hero .hero-sub { max-width: 760px; color: rgba(250,247,242,0.76); }
.case-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
  padding: 7px 11px;
  border: 1px solid rgba(250,247,242,0.22);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250,247,242,0.78);
}
.case-label .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1.2px solid var(--ink);
  background: var(--paper);
}
.case-fact {
  padding: 24px 24px 28px;
  border-right: 1.2px solid var(--ink);
  min-width: 0;
}
.case-fact:last-child { border-right: none; }
.case-fact .k {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
}
.case-fact .v {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.15;
  margin: 10px 0 0;
  overflow-wrap: break-word;
}
.case-story {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 56px;
  align-items: start;
}
.case-story h2,
.audit-section h2 {
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.03;
  margin: 0;
}
.case-story h2 em,
.audit-section h2 em { font-style: italic; font-weight: 400; }
.case-story .eyebrow,
.audit-section .eyebrow { margin-bottom: 18px; }
.case-story p { margin: 18px 0 0; color: rgba(11,31,58,0.78); }
.decision-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1.2px solid var(--ink);
  background: var(--paper);
}
.decision {
  padding: 26px 26px 28px;
  border-right: 1.2px solid var(--ink);
  border-bottom: 1.2px solid var(--ink);
  min-width: 0;
}
.decision:nth-child(2n) { border-right: none; }
.decision:nth-last-child(-n+2) { border-bottom: none; }
.decision .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}
.decision h3 { font-size: 25px; line-height: 1.08; margin: 10px 0 8px; }
.decision p { margin: 0; font-size: 15px; line-height: 1.48; color: rgba(11,31,58,0.76); }
.sample-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.sample-actions .btn-ghost { color: var(--ink); border-color: rgba(11,31,58,0.32); }
.sample-actions .btn-ghost:hover { background: rgba(11,31,58,0.04); border-color: var(--ink); }
.sample-callout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  border: 1.2px solid var(--ink);
  background: var(--paper);
  padding: 26px 30px;
  margin-top: 34px;
}
.sample-callout h3 { font-size: 28px; line-height: 1.08; margin: 0; }
.sample-callout p { margin: 8px 0 0; color: rgba(11,31,58,0.74); }
.audit-panel {
  border: 1.2px solid var(--ink);
  background: var(--paper);
  margin-top: 28px;
}
.audit-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 22px 26px;
  border-bottom: 1.2px solid var(--ink);
}
.audit-head h3 { font-size: 28px; margin: 0; }
.audit-status {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--amber-ink);
  background: #fdf2e2;
  white-space: nowrap;
}
.audit-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.audit-body > div {
  padding: 26px;
  border-right: 1.2px solid var(--ink);
  min-width: 0;
}
.audit-body > div:last-child { border-right: none; }
.audit-body h4 {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: var(--orange);
}
.audit-body ul { margin: 0; padding-left: 20px; }
.audit-body li { margin: 9px 0; font-size: 15px; line-height: 1.45; color: rgba(11,31,58,0.78); }
.sources-list {
  columns: 2;
  column-gap: 42px;
  margin: 22px 0 0;
  padding-left: 20px;
}
.sources-list li { break-inside: avoid; margin: 0 0 12px; }
.sources-list a { color: var(--ink); text-underline-offset: 2px; }

@media (max-width: 900px) {
  .case-grid,
  .case-story,
  .audit-body,
  .sample-callout { grid-template-columns: 1fr; }
  .case-fact,
  .audit-body > div { border-right: none; border-bottom: 1.2px solid var(--ink); }
  .case-fact:last-child,
  .audit-body > div:last-child { border-bottom: none; }
}
@media (max-width: 760px) {
  .decision-list { grid-template-columns: 1fr; }
  .decision,
  .decision:nth-child(2n) { border-right: none; border-bottom: 1.2px solid var(--ink); }
  .decision:last-child { border-bottom: none; }
  .sources-list { columns: 1; }
}

@media (max-width: 560px) {
  .case-hero { padding: 52px 0 34px; }
  .case-hero h1 {
    font-size: clamp(42px, 14vw, 64px);
    overflow-wrap: break-word;
  }
  .case-hero .hero-sub {
    max-width: 100%;
    overflow-wrap: break-word;
  }
  .case-hero .hero-ctas .btn,
  .sample-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .case-grid,
  .decision-list,
  .audit-panel,
  .dta-sheet {
    min-width: 0;
    max-width: 100%;
  }
  .case-fact .v { font-size: 22px; }
}

/* responsive: collapse the asymmetric grid into a single ordered column */
@media (max-width: 1080px) {
  .dta-sheet { padding: 26px 22px 22px; }
  .dta-grid { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: none; }
  .dta-cell { grid-area: auto !important; padding-bottom: 30px; }
  .dta-cell.w { order: 1; } .dta-cell.u { order: 2; } .dta-cell.pf { order: 3; }
  .dta-cell.a { order: 4; } .dta-cell.c { order: 5; } .dta-cell.t { order: 6; }
  .dta-cell.r { order: 7; } .dta-cell.m { order: 8; } .dta-cell.f { order: 9; }
  .dta-cell h3 { font-size: 21px; }
  .dta-cell .prompt { font-size: 16px; }
}

/* ============================================================
   TWO CANVASES — Klarna vs Harvey
   ============================================================ */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1.2px solid var(--ink); background: var(--paper); }
@media (max-width: 820px) { .versus { grid-template-columns: 1fr; } }
.case { padding: 40px 38px; position: relative; }
.case-logo { display: block; height: 30px; width: auto; }
.case .cite, .ledger .cite { display: inline-block; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 1px; opacity: 0.62; }
.case .cite { margin-top: 18px; }
.case .cite:hover, .ledger .cite:hover { opacity: 1; }
.case.klarna .cite { color: var(--red); }
.case.harvey .cite { color: var(--green); }
.ledger .cite { color: var(--ink); margin-top: 4px; }
.case.klarna { border-right: 1.2px solid var(--ink); }
@media (max-width: 820px) { .case.klarna { border-right: none; border-bottom: 1.2px solid var(--ink); } }
.case .tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em;
  text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }
.case .tag .dot { width: 9px; height: 9px; border-radius: 50%; }
.case.klarna .tag { color: var(--red); } .case.klarna .dot { background: var(--red); }
.case.harvey .tag { color: var(--green); } .case.harvey .dot { background: var(--green); }
.case h3 { font-size: 34px; margin: 14px 0 4px; }
.case .verdict { font-family: var(--serif); font-style: italic; font-size: 18px; opacity: 0.75; margin: 0 0 22px; }
.case ul { list-style: none; padding: 0; margin: 0; }
.case li { display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid var(--warm-line);
  font-size: 15px; line-height: 1.45; }
.case li .v { flex: 1; min-width: 0; }
.case li .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em;
  text-transform: uppercase; opacity: 0.5; flex: none; width: 86px; padding-top: 2px; }
.case .outcome { margin-top: 24px; padding-top: 20px; border-top: 1.2px solid var(--ink);
  font-family: var(--serif); font-size: 17px; line-height: 1.45; }
.case.klarna .outcome { color: var(--red); }
.case.harvey .outcome { color: var(--green); }

/* ============================================================
   THE TOOL — canvas-critic
   ============================================================ */
.tool { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 60px; align-items: center; }
@media (max-width: 960px) { .tool { grid-template-columns: 1fr; gap: 44px; } }
.tool-copy .eyebrow { color: var(--green); }
.tool-copy h2 { font-size: clamp(32px, 4vw, 50px); margin: 16px 0 0; color: var(--cream); line-height: 1.02; }
.tool-copy h2 em { font-style: italic; font-weight: 400; color: var(--green); }
.tool-copy .lede { font-family: var(--serif); font-size: 20px; line-height: 1.5;
  margin: 22px 0 0; color: rgba(250,247,242,0.84); }
.tool-feats { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 2px; }
.tool-feats li { display: flex; gap: 14px; padding: 13px 0; border-top: 1px solid rgba(250,247,242,0.14);
  font-size: 15px; color: rgba(250,247,242,0.82); align-items: flex-start; }
.tool-feats li b { color: var(--cream); font-weight: 600; }
.tool-feats .ic { width: 18px; height: 18px; flex: none; color: var(--green); margin-top: 2px; }

/* mock window */
.mock {
  background: var(--cream); border-radius: 10px; overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,0.42), 0 4px 12px rgba(0,0,0,0.3);
  border: 1px solid rgba(0,0,0,0.2);
}
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: var(--paper); border-bottom: 1px solid var(--warm-line); }
.mock-bar .dots { display: flex; gap: 6px; }
.mock-bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: #d8d2c6; display: block; }
.mock-bar .url { font-family: var(--mono); font-size: 11.5px; color: rgba(11,31,58,0.55);
  background: var(--cream); padding: 4px 12px; border-radius: 5px; margin-left: 8px; }
.mock-body { padding: 22px; }
.mock-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.mock-h .t { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.readiness { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 600; padding: 4px 11px; border-radius: 999px; }
.readiness.warn { background: #fdf2e2; color: var(--amber-ink); }

.mock-cell { background: var(--paper); border: 1px solid var(--warm-line); border-left: 4px solid var(--ink);
  border-radius: 6px; padding: 14px 16px; margin-bottom: 12px; }
.mock-cell.c-purpose { border-left-color: var(--orange); }
.mock-cell.c-gov { border-left-color: var(--green); }
.mock-cell .mc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.mock-cell .mc-num { font-family: var(--mono); font-size: 11px; color: var(--ink); opacity: 0.5; }
.mock-cell .mc-title { font-family: var(--serif); font-weight: 600; font-size: 15.5px; color: var(--ink); }
.badge { font-family: var(--mono); font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase;
  font-weight: 600; padding: 2px 8px; border-radius: 999px; margin-left: auto; }
.badge.clear { background: #e7f3ec; color: var(--green); }
.badge.needs { background: #fdf2e2; color: var(--amber-ink); }
.badge.risk { background: #fbeae8; color: var(--red); }
.mock-cell .mc-q { font-size: 13.5px; line-height: 1.45; color: rgba(11,31,58,0.72); margin: 6px 0 0; }
.mock-cell .mc-q b { color: var(--ink); font-weight: 600; }
.mock-flag { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px;
  background: #fdf2e2; border-radius: 6px; border-left: 3px solid var(--amber-ink); }
.mock-flag .ft { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--amber-ink); font-weight: 600; }
.mock-flag p { margin: 4px 0 0; font-size: 13px; line-height: 1.4; color: rgba(11,31,58,0.78); }

/* ============================================================
   HOW TO RUN — five moves
   ============================================================ */
.moves { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  border-top: 1.2px solid var(--ink); }
@media (max-width: 980px) { .moves { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .moves { grid-template-columns: 1fr; } }
.move { padding: 30px 26px 36px; border-right: 1.2px solid var(--ink);
  border-bottom: 1.2px solid transparent; }
.moves .move:last-child { border-right: none; }
@media (max-width: 980px) {
  .move { border-bottom: 1.2px solid var(--warm-line); }
}
.move .step { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--orange); }
.move h3 { font-size: 21px; line-height: 1.1; margin: 14px 0 10px; }
.move p { font-size: 14.5px; line-height: 1.5; opacity: 0.78; margin: 0; }

/* ============================================================
   CLOSING CTA
   ============================================================ */
.closer { text-align: center; }
.closer h2 { font-size: clamp(40px, 6vw, 88px); line-height: 0.96; color: var(--cream); margin: 0; }
.closer h2 em { font-style: italic; font-weight: 500; color: var(--yellow); }
.closer p { font-family: var(--serif); font-size: 21px; margin: 26px auto 0; max-width: 600px;
  color: rgba(250,247,242,0.78); }
.closer .hero-ctas { justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.foot { background: var(--navy); color: rgba(250,247,242,0.6); padding: 50px 0;
  border-top: 1px solid rgba(250,247,242,0.12); font-size: 13.5px; }
.foot-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.foot a { color: rgba(250,247,242,0.78); text-decoration: none; border-bottom: 1px solid rgba(250,247,242,0.2); }
.foot a:hover { color: var(--cream); }
.foot .credit { max-width: 520px; line-height: 1.6; }
.foot .domain { font-family: var(--serif); font-size: 18px; color: var(--cream); }

/* entrance */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---- mobile refinements ---- */
@media (max-width: 560px) {
  .wrap, .wrap-narrow { padding-left: 20px; padding-right: 20px; }
  /* nav: stop the wordmark and the CTA colliding */
  .wordmark { font-size: 16px; }
  .wordmark .glyph { width: 20px; height: 20px; }
  .nav-cta { padding: 8px 11px; font-size: 11px; letter-spacing: 0.03em; }
  .nav-inner { gap: 10px; }
  /* five moves: uniform solid separators, no stray right border on the last box */
  .move { border-right: none; border-bottom: 1.2px solid var(--ink); }
  /* download link: let it wrap rather than force one wide line */
  .canvas-cta a { white-space: normal; }
}

/* mobile: guard against horizontal overflow + let the headline scale on narrow phones */
body { overflow-x: hidden; }
@media (max-width: 560px) {
  .hero h1 { font-size: clamp(40px, 13vw, 96px); }
}
