/* =====================================================================
   DILLAN HYPOLITE — design system
   Concept: FROM COMPLEXITY TO CLARITY. Fragments → structure.
   Type: Bebas Neue (display) + Manrope (text). Light/dark bands alternate.
   ===================================================================== */

/* ---------- tokens ---------- */
:root {
  --graphite: #101216;
  --porcelain: #f7f6f2;
  --titanium: #8c939e;      /* large text / decoration, and small text on dark only */
  --titanium-ink: #575d67;  /* small secondary text on light (≈6.4:1 on porcelain) */
  --cobalt: #2455e6;
  --cobalt-deep: #193db8;
  --cobalt-light: #8aa6ff;  /* cobalt for small text on dark (≈7:1 on graphite) */
  --carbon: #252932;
  --mist: #e5e7eb;
  --white: #ffffff;
  --line-light: #dcdcd6;
  --line-dark: #2e333d;
  --ok: #1f7a4d;
  --ok-dark: #6fd3a0;
  --warn: #9a4a00;
  --warn-dark: #ffb877;

  --font-display: "Bebas Neue", "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-text: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-hero: clamp(52px, 8.4vw, 140px);
  --fs-h1: clamp(52px, 6.4vw, 88px);
  --fs-h2: clamp(40px, 4.6vw, 64px);
  --fs-h3: clamp(30px, 3vw, 44px);
  --fs-lead: clamp(18px, 1.35vw, 21px);
  --fs-body: clamp(16px, 1.1vw, 18px);
  --fs-small: 14px;

  --gutter: clamp(20px, 4.5vw, 72px);
  --maxw: 1320px;
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 72px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { min-width: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--porcelain); color: var(--graphite);
  font-family: var(--font-text); font-size: var(--fs-body); line-height: 1.6;
  font-feature-settings: "ss01", "cv11"; overflow-x: clip;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
figure { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--cobalt); }
.dark a:hover { color: var(--cobalt-light); }
p { margin: 0 0 1em; }
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 400; letter-spacing: .005em; line-height: .92; margin: 0; text-wrap: balance; text-transform: uppercase; }
h4, h5 { font-family: var(--font-text); font-weight: 700; margin: 0 0 .5em; font-size: 1rem; letter-spacing: -.005em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 2px; }
.dark :focus-visible { outline-color: var(--cobalt-light); }
::selection { background: var(--cobalt); color: #fff; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--graphite); color: #fff; padding: 12px 18px; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; color: #fff; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* display-font elements are always uppercase, even if the webfont fails */
.word, .employers span, .metric .v, .facts b, .work-list .t, .score-big, .maturity, .timeline .co, .principles b, .failure-types b, .method-list b, .action .num, .q-title, .svc ol.process li::before { text-transform: uppercase; }
.word { margin: 0; }
/* safety net: never let a display word widen the page if the webfont fails to load */
h1, h2, h3, .display, .word, .employers span, .work-list .t, .maturity, .q-title { overflow-wrap: anywhere; }
.pillar h3, .flag h3, h3.plain { text-transform: none; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.band { padding-block: clamp(72px, 10vw, 152px); position: relative; }
.band.tight { padding-block: clamp(48px, 6vw, 88px); }
.dark { background: var(--graphite); color: var(--porcelain); }
.carbon { background: var(--carbon); color: var(--porcelain); }
.white { background: var(--white); }
.muted { color: var(--titanium-ink); }
.dark .muted, .carbon .muted { color: var(--titanium); }
.lead { font-size: var(--fs-lead); line-height: 1.55; max-width: 38em; }
.kicker { font-size: var(--fs-small); font-weight: 700; letter-spacing: .01em; margin: 0 0 18px; display: flex; align-items: center; gap: 10px; color: var(--titanium-ink); }
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--cobalt); flex: none; }
.dark .kicker, .carbon .kicker { color: var(--titanium); }
.dark .kicker::before, .carbon .kicker::before { background: var(--cobalt-light); }
.h-hero { font-size: var(--fs-hero); }
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); line-height: .95; }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }
.measure { max-width: 34em; }
.rule { border: 0; border-top: 1px solid var(--line-light); margin: 0; }
.dark .rule { border-color: var(--line-dark); }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--radius);
  font-weight: 700; font-size: 15.5px; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background .2s var(--ease), color .2s, border-color .2s, transform .2s var(--ease);
  white-space: nowrap;
}
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-primary { background: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--cobalt-deep); color: #fff; }
.btn-ghost { border-color: currentColor; color: var(--graphite); background: transparent; }
.btn-ghost:hover { background: var(--graphite); color: var(--porcelain); }
.dark .btn-ghost, .carbon .btn-ghost { color: var(--porcelain); }
.dark .btn-ghost:hover, .carbon .btn-ghost:hover { background: var(--porcelain); color: var(--graphite); }
.btn-quiet { background: transparent; color: inherit; padding-inline: 4px; min-height: 44px; text-decoration: underline; text-underline-offset: .25em; font-weight: 600; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.textlink { font-weight: 700; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; min-height: 32px; }
.textlink:hover { color: var(--cobalt); }
.dark .textlink:hover, .carbon .textlink:hover { color: var(--cobalt-light); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--porcelain) 92%, transparent); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.scrolled { border-bottom-color: var(--line-light); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.wordmark { font-family: var(--font-display); text-transform: uppercase; font-size: 30px; line-height: 1; text-decoration: none; letter-spacing: .02em; display: inline-flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.wordmark .mark { display: inline-grid; grid-template-columns: repeat(3, 6px); gap: 2px; align-self: center; }
.wordmark .mark i { width: 6px; height: 6px; background: var(--graphite); transition: transform .4s var(--ease), background .3s; }
.wordmark .mark i:nth-child(3n+2) { transform: translate(1px, -2px) rotate(18deg); background: var(--titanium); }
.wordmark .mark i:nth-child(5) { background: var(--cobalt); }
.wordmark:hover .mark i { transform: none; }
.wordmark:hover { color: var(--graphite); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { display: flex; list-style: none; gap: 2px; align-items: center; }
.nav > ul a, .nav .nav-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; text-decoration: none; font-weight: 600; font-size: 15px; border-radius: var(--radius); background: none; border: 0; cursor: pointer; }
.nav > ul a[aria-current="page"], .nav .nav-btn.current { color: var(--cobalt); }
.nav .nav-btn svg { transition: transform .2s; }
.nav .nav-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.has-menu { position: relative; }
.submenu { position: absolute; top: calc(100% + 8px); left: -8px; width: 340px; background: var(--white); border: 1px solid var(--line-light); border-radius: 6px; padding: 8px; list-style: none; box-shadow: 0 18px 40px -24px rgba(16,18,22,.35); }
.submenu[hidden] { display: none; }
.submenu a { display: block; padding: 12px 14px; }
.submenu a strong { display: block; font-weight: 700; }
.submenu a span { display: block; font-weight: 500; font-size: 13.5px; color: var(--titanium-ink); margin-top: 2px; }
.submenu a:hover { background: var(--porcelain); color: var(--graphite); }
.nav .btn { margin-left: 10px; min-height: 44px; padding: 10px 18px; }
.menu-toggle { display: none; width: 48px; height: 48px; border: 0; background: none; cursor: pointer; place-items: center; border-radius: var(--radius); }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--graphite); position: relative; transition: transform .25s var(--ease), background .2s; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; width: 24px; height: 2px; background: var(--graphite); transition: transform .25s var(--ease); }
.menu-toggle span::before { top: -7px; } .menu-toggle span::after { top: 7px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .menu-toggle { display: grid; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--porcelain); flex-direction: column; align-items: stretch; padding: 24px var(--gutter) 40px; overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s; }
  .nav.open { transform: none; opacity: 1; visibility: visible; transition: opacity .2s, transform .25s var(--ease); }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid var(--line-light); }
  .nav > ul a, .nav .nav-btn { font-family: var(--font-display); font-weight: 400; font-size: 40px; padding: 14px 0; width: 100%; justify-content: space-between; }
  .submenu { position: static; width: auto; border: 0; box-shadow: none; padding: 0 0 12px; background: none; }
  .submenu a { font-family: var(--font-text); font-size: 17px; padding: 10px 0; }
  .nav .btn { margin: 28px 0 0; font-family: var(--font-text); font-size: 17px; font-weight: 700; justify-content: center; }
  body.menu-open { overflow: hidden; }
}

/* ---------- signature motif: fragments → structure ---------- */
.motif { width: 100%; height: auto; }
.motif .frag { transform-box: fill-box; transform-origin: center; transition: transform 1.4s var(--ease), fill .8s, opacity .8s; }
.motif.resolved .frag { transform: none !important; }
.js .motif .frag { transform: var(--t); }
.js .motif .link { stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 1.6s var(--ease) .5s; }
.js .motif.resolved .link { stroke-dashoffset: 0; }

/* ---------- HERO ---------- */
.hero { padding-block: clamp(40px, 6vw, 96px) clamp(64px, 8vw, 120px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 { font-size: var(--fs-hero); line-height: .88; margin-bottom: 32px; }
.hero h1 .soft { color: var(--titanium); display: block; }
.hero .lead { margin-bottom: 36px; }
.hero-meta { margin-top: 40px; display: flex; gap: 10px 22px; flex-wrap: wrap; font-size: 14px; color: var(--titanium-ink); font-weight: 600; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ""; width: 6px; height: 6px; background: var(--graphite); }
@media (max-width: 1020px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }

/* mini chat preview (hero) */
.preview { background: var(--graphite); color: var(--porcelain); border-radius: 10px; padding: 18px; position: relative; box-shadow: 0 40px 80px -48px rgba(16,18,22,.6); }
.preview-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.preview-title { font-size: 13px; font-weight: 700; color: var(--titanium); }
.seg { display: inline-flex; border: 1px solid var(--line-dark); border-radius: 6px; padding: 3px; gap: 3px; background: #0b0c0f; }
.seg button { border: 0; background: none; color: var(--titanium); font-weight: 700; font-size: 13.5px; padding: 8px 14px; min-height: 36px; border-radius: 4px; cursor: pointer; transition: background .2s, color .2s; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--porcelain); color: var(--graphite); }
.seg.light { background: var(--mist); border-color: var(--line-light); }
.seg.light button { color: var(--titanium-ink); }
.seg.light button[aria-pressed="true"], .seg.light button[aria-selected="true"] { background: var(--graphite); color: var(--porcelain); }
.preview-screen { background: #16191f; border: 1px solid var(--line-dark); border-radius: 8px; padding: 16px; min-height: 300px; display: flex; flex-direction: column; gap: 12px; }
.preview-prompts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { border: 1px solid var(--line-dark); background: transparent; color: var(--porcelain); border-radius: 4px; padding: 8px 12px; font-size: 13.5px; font-weight: 600; cursor: pointer; min-height: 40px; text-align: left; transition: border-color .2s, background .2s; }
.chip:hover { border-color: var(--cobalt-light); }
.chip:disabled { opacity: .45; cursor: wait; }
.chip[aria-pressed="true"] { border-color: var(--porcelain); background: #20242c; }
.light-chips .chip { border-color: var(--line-light); color: var(--graphite); background: var(--white); }
.light-chips .chip:hover { border-color: var(--cobalt); }
.preview-foot { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 14px; font-size: 13px; color: var(--titanium); flex-wrap: wrap; }
.preview-foot a { color: var(--porcelain); font-weight: 700; }

/* ---------- chat messages (shared by preview and lab) ---------- */
.msg { max-width: 92%; font-size: 15px; line-height: 1.55; }
.msg.user { align-self: flex-end; background: var(--cobalt); color: #fff; padding: 10px 14px; border-radius: 10px 10px 2px 10px; }
.msg.bot { align-self: flex-start; }
.msg.bot .bubble { background: #20242c; border: 1px solid var(--line-dark); padding: 12px 14px; border-radius: 10px 10px 10px 2px; }
.msg.bot p { margin: 0 0 .6em; } .msg.bot p:last-child { margin: 0; }
.msg.bot ol { padding-left: 1.3em; margin: .2em 0 .7em; } .msg.bot li { margin: .25em 0; }
.msg .note { font-size: 13.5px; color: var(--titanium); margin: .5em 0 0; }
.msg .escalate { font-size: 13.5px; margin-top: .6em; padding-top: .6em; border-top: 1px dashed var(--line-dark); }
.msg .escalate::before { content: "If that doesn't work: "; font-weight: 700; }
.msg .quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.msg .meta { display: flex; gap: 12px; align-items: center; margin-top: 6px; font-size: 12.5px; color: var(--titanium); flex-wrap: wrap; }
.msg .meta button { background: none; border: 0; color: var(--cobalt-light); font-weight: 700; cursor: pointer; padding: 6px 0; min-height: 32px; font-size: 13px; text-decoration: underline; text-underline-offset: .2em; }
.typing { display: inline-flex; gap: 4px; padding: 14px; background: #20242c; border: 1px solid var(--line-dark); border-radius: 10px 10px 10px 2px; align-self: flex-start; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--titanium); animation: blink 1.2s infinite both; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.empty-chat { margin: auto; text-align: center; color: var(--titanium); font-size: 14px; max-width: 28em; padding: 20px; }

/* ---------- credibility ---------- */
.cred .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.employers { display: flex; flex-wrap: wrap; gap: 0 clamp(24px, 4vw, 64px); align-items: baseline; }
.employers span { font-family: var(--font-display); font-size: clamp(56px, 7vw, 104px); line-height: .9; color: var(--porcelain); }
.employers span:nth-child(2) { color: var(--titanium); }
.cred-label { font-size: 14px; color: var(--titanium); border-top: 1px solid var(--line-dark); padding-top: 14px; margin-top: 22px; max-width: 34em; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border-top: 1px solid var(--line-dark); }
.metric { padding: 22px 22px 6px 0; border-right: 1px solid var(--line-dark); margin-right: 22px; }
.metric:last-child { border-right: 0; }
.metric .v { font-family: var(--font-display); font-size: clamp(48px, 4.6vw, 72px); line-height: .9; display: block; }
.metric .l { font-weight: 700; display: block; margin-top: 6px; }
.metric .s { font-size: 13px; color: var(--titanium); display: block; margin-top: 6px; line-height: 1.45; }
.unverified { display: block; margin-top: 8px; font-size: 12.5px; font-weight: 700; color: var(--warn); }
.dark .unverified, .carbon .unverified { color: var(--warn-dark); }
.unverified::before { content: "⚑ "; }
.light-metrics .metrics { border-color: var(--line-light); }
.light-metrics .metric { border-color: var(--line-light); }
.light-metrics .metric .s { color: var(--titanium-ink); }
@media (max-width: 860px) { .cred .wrap { grid-template-columns: minmax(0, 1fr); } }

/* ---------- pillars (three distinct compositions) ---------- */
.pillars-intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: end; margin-bottom: clamp(56px, 7vw, 104px); }
.pillar { display: grid; gap: clamp(28px, 4vw, 72px); padding-block: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line-light); align-items: start; }
.pillar .word { font-family: var(--font-display); font-size: clamp(64px, 17vw, 220px); line-height: .78; letter-spacing: -.005em; }
.pillar h3 { font-family: var(--font-text); font-weight: 800; font-size: clamp(20px, 1.7vw, 24px); line-height: 1.25; letter-spacing: -.01em; margin: 0 0 14px; text-wrap: pretty; }
.pillar .cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 22px; }
.pillar ul.ticks { list-style: none; display: grid; gap: 8px; font-size: 15.5px; }
.pillar ul.ticks li { padding-left: 20px; position: relative; }
.pillar ul.ticks li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1.5px; background: var(--graphite); }
.pillar .value { font-size: 15.5px; border-left: 2px solid var(--cobalt); padding: 4px 0 4px 16px; margin: 26px 0; }
.pillar--build { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.pillar--build .word { color: var(--graphite); }
.pillar--optimize { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.pillar--optimize .word { text-align: right; color: transparent; -webkit-text-stroke: 1.5px var(--graphite); }
.pillar--optimize .lhs { order: 1; } .pillar--optimize .rhs { order: 2; }
.pillar--strategize { grid-template-columns: minmax(0, 1fr); }
.pillar--strategize .top { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 40px; align-items: end; }
.pillar--strategize .word { color: var(--cobalt); margin-bottom: 28px; }
.pillar-fig { margin-top: 28px; background: var(--white); border: 1px solid var(--line-light); border-radius: 6px; padding: 18px; }
.pillar-fig figcaption { font-size: 13px; color: var(--titanium-ink); margin-top: 10px; }
@media (max-width: 900px) {
  .pillars-intro, .pillar--build, .pillar--optimize, .pillar--strategize .top { grid-template-columns: minmax(0, 1fr); }
  .pillar--optimize .word { text-align: left; }
  .pillar .cols { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- lab teaser ---------- */
.lab-teaser .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.compare-static { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: 8px; overflow: hidden; }
.compare-static > div { background: #1b1e25; padding: 22px; }
.compare-static h4 { font-size: 13px; color: var(--titanium); font-weight: 700; display: flex; justify-content: space-between; gap: 8px; }
.compare-static .q { background: var(--cobalt); color: #fff; padding: 8px 12px; border-radius: 8px; font-size: 14px; display: inline-block; margin: 8px 0 14px; }
.compare-static .a { font-size: 14.5px; line-height: 1.55; }
.compare-static .a ol { padding-left: 1.2em; margin: .5em 0; }
.compare-static .src { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-dark); font-size: 13px; color: var(--titanium); }
.bar { height: 6px; background: #2b3038; border-radius: 3px; overflow: hidden; margin-top: 6px; }
.bar > i { display: block; height: 100%; background: var(--titanium); }
.bar.good > i { background: var(--cobalt-light); }
@media (max-width: 960px) { .lab-teaser .wrap, .compare-static { grid-template-columns: minmax(0, 1fr); } }

/* ---------- selected work ---------- */
.work-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 72px); }
.flagship { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 4vw, 64px); padding-bottom: clamp(48px, 6vw, 88px); border-bottom: 1px solid var(--line-light); align-items: start; }
.flagship .ctx { font-size: 14px; font-weight: 700; color: var(--titanium-ink); margin-bottom: 14px; }
.flagship h3 { font-size: clamp(40px, 4.4vw, 64px); margin-bottom: 22px; }
.work-list { list-style: none; }
.work-list li { border-bottom: 1px solid var(--line-light); }
.work-list a { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 6fr) minmax(0, 3fr) 40px; gap: 24px; padding: 28px 0; text-decoration: none; align-items: baseline; transition: padding .3s var(--ease); }
.work-list a:hover { padding-left: 12px; color: var(--graphite); }
.work-list a:hover .t { color: var(--cobalt); }
.work-list .p { font-weight: 700; font-size: 14px; color: var(--titanium-ink); }
.work-list .t { font-family: var(--font-display); font-size: clamp(30px, 3vw, 44px); line-height: .95; }
.work-list .m { font-size: 14px; color: var(--titanium-ink); }
.work-list .go { font-size: 22px; justify-self: end; }
@media (max-width: 860px) { .flagship { grid-template-columns: minmax(0, 1fr); } .work-list a { grid-template-columns: minmax(0, 1fr); gap: 6px; } .work-list .go { display: none; } }

/* navigation diagram (ARC-inspired, fictional) */
.navfig { color: var(--graphite); background: var(--white); border: 1px solid var(--line-light); border-radius: 8px; padding: 18px; }
.navfig-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.navfig svg { width: 100%; height: auto; }
.navfig .stat { font-size: 14px; margin-top: 10px; min-height: 3em; }
.navfig figcaption { font-size: 12.5px; color: var(--titanium-ink); margin-top: 8px; }

/* ---------- assessment teaser ---------- */
.assess-teaser .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid currentColor; margin: 32px 0 36px; }
.facts div { padding: 16px 16px 0 0; }
.facts b { font-family: var(--font-display); font-weight: 400; font-size: clamp(36px, 3.6vw, 52px); line-height: 1; display: block; }
.facts span { font-size: 14px; font-weight: 600; }
.dimbars { display: grid; gap: 14px; }
.dimbar { display: grid; grid-template-columns: minmax(0, 1fr) 48px; gap: 4px 14px; align-items: center; font-size: 14px; font-weight: 600; }
.dimbar .track { grid-column: 1 / -1; height: 10px; background: var(--mist); border-radius: 2px; overflow: hidden; }
.dimbar .track i { display: block; height: 100%; background: var(--graphite); transition: width 1s var(--ease); }
.dimbar .n { text-align: right; font-variant-numeric: tabular-nums; }
.dark .dimbar .track, .carbon .dimbar .track { background: #2b3038; }
.dark .dimbar .track i, .carbon .dimbar .track i { background: var(--porcelain); }
.example-tag { font-size: 12.5px; color: var(--titanium-ink); margin-top: 12px; }
@media (max-width: 900px) { .assess-teaser .wrap { grid-template-columns: minmax(0, 1fr); } }

/* ---------- methodology system diagram ---------- */
.method .wrap > header { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px; align-items: end; margin-bottom: 48px; }
.method-fig { position: relative; }
.method-fig svg { width: 100%; height: auto; overflow: visible; }
.method-fig .node { cursor: pointer; }
.method-fig .node rect { fill: #1b1e25; stroke: var(--line-dark); transition: fill .25s, stroke .25s; }
.method-fig .node text { fill: var(--porcelain); font-family: var(--font-display); font-size: 26px; letter-spacing: .02em; pointer-events: none; }
.method-fig .node .num { fill: var(--titanium); font-family: var(--font-text); font-size: 12px; font-weight: 700; letter-spacing: 0; }
.method-fig .node.active rect, .method-fig .node:hover rect, .method-fig .node:focus-visible rect { fill: var(--cobalt); stroke: var(--cobalt); }
.method-fig .node.active .num, .method-fig .node:hover .num { fill: #dfe6ff; }
.method-fig .node:focus { outline: none; }
.method-fig .flow { stroke: var(--titanium); stroke-width: 1.5; fill: none; }
.method-fig .loop { stroke: var(--cobalt-light); stroke-width: 1.5; fill: none; stroke-dasharray: 5 6; }
.method-fig .loop-label { fill: var(--cobalt-light); font-size: 13px; font-weight: 700; font-family: var(--font-text); }
.method-detail { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: 32px; border-top: 1px solid var(--line-dark); padding-top: 24px; min-height: 96px; }
.method-detail .h3 { color: var(--porcelain); }
.method-list { display: none; list-style: none; counter-reset: m; }
.method-list li { padding: 18px 0; border-top: 1px solid var(--line-dark); display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; }
.method-list li::before { counter-increment: m; content: counter(m); font-family: var(--font-display); font-size: 28px; line-height: 1; color: var(--cobalt-light); grid-row: span 2; }
.method-list b { font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 1; }
@media (max-width: 760px) { .method .wrap > header, .method-detail { grid-template-columns: minmax(0, 1fr); } .method-fig, .method-detail { display: none; } .method-list { display: block; } }

/* ---------- engagement models ---------- */
.engage { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); border-top: 2px solid var(--graphite); }
.engage > div { padding: 28px 28px 8px 0; }
.engage > div + div { border-left: 1px solid var(--line-light); padding-left: 28px; }
.engage .lead-lbl { font-size: 13.5px; font-weight: 700; color: var(--titanium-ink); }
.engage h3 { font-size: clamp(34px, 3.4vw, 52px); margin: 10px 0 16px; }
.engage > div:first-child h3 { font-size: clamp(48px, 5vw, 76px); }
.engage .detail { font-size: 14px; color: var(--titanium-ink); }
@media (max-width: 900px) { .engage { grid-template-columns: minmax(0, 1fr); } .engage > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-light); } }

/* ---------- final CTA + footer ---------- */
.final { overflow: hidden; }
.final .wrap { position: relative; z-index: 1; }
.final h2 { font-size: clamp(52px, 10vw, 168px); line-height: .86; margin-bottom: 36px; }
.final .motif-bg { position: absolute; inset: auto -5% -10% auto; width: min(780px, 70%); opacity: .5; pointer-events: none; }
.site-footer { background: var(--graphite); color: var(--titanium); font-size: 14.5px; border-top: 1px solid var(--line-dark); }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 32px; padding-block: 56px 40px; }
.site-footer h4 { color: var(--porcelain); font-size: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 4px; }
.site-footer a { text-decoration: none; display: inline-block; padding: 4px 0; color: var(--porcelain); }
.site-footer a:hover { color: var(--cobalt-light); }
.site-footer .wordmark { color: var(--porcelain); display: inline-flex; }
.site-footer .wordmark .mark i { background: var(--porcelain); }
.site-footer .wordmark .mark i:nth-child(5) { background: var(--cobalt-light); }
.footer-base { border-top: 1px solid var(--line-dark); grid-column: 1 / -1; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
@media (max-width: 860px) { .site-footer .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer .wrap > :first-child { grid-column: 1 / -1; } }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding-block: clamp(48px, 7vw, 112px) clamp(40px, 5vw, 72px); }
.page-hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.page-hero h1 { font-size: var(--fs-h1); }
@media (max-width: 900px) { .page-hero .wrap { grid-template-columns: minmax(0, 1fr); } }

/* ---------- services page ---------- */
.svc-index { display: flex; gap: 10px; flex-wrap: wrap; }
.svc { padding-block: clamp(64px, 8vw, 120px); border-top: 1px solid var(--line-light); }
.svc .head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: end; margin-bottom: 48px; }
.svc .head .word { font-family: var(--font-display); font-size: clamp(64px, 17vw, 180px); line-height: .8; }
.svc .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--graphite); }
.svc .grid > section { padding: 22px 24px 22px 0; }
.svc .grid > section + section { border-left: 1px solid var(--line-light); padding-left: 24px; }
.svc .grid h4 { font-size: 14px; color: var(--titanium-ink); }
.svc ol.process { list-style: none; counter-reset: p; display: grid; gap: 10px; }
.svc ol.process li { counter-increment: p; display: grid; grid-template-columns: 28px minmax(0, 1fr); font-size: 15.5px; }
.svc ol.process li::before { content: counter(p); font-family: var(--font-display); font-size: 22px; line-height: 1.1; color: var(--cobalt); }
.svc .foot { display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line-light); }
.dark .svc, .dark .svc .grid > section + section, .dark .svc .foot { border-color: var(--line-dark); }
.dark .svc .grid { border-color: var(--porcelain); }
.dark .svc .grid h4 { color: var(--titanium); }
.dark .pillar ul.ticks li::before { background: var(--porcelain); }
@media (max-width: 900px) { .svc .head, .svc .grid { grid-template-columns: minmax(0, 1fr); } .svc .grid > section + section { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-light); } }

/* ---------- case studies ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { border: 1.5px solid var(--line-light); background: var(--white); border-radius: var(--radius); padding: 10px 16px; min-height: 44px; font-weight: 700; font-size: 14.5px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--graphite); color: var(--porcelain); border-color: var(--graphite); }
.case { padding-block: clamp(64px, 8vw, 120px); border-top: 1px solid var(--line-light); }
.case[hidden] { display: none; }
.case .head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: end; margin-bottom: 48px; }
.case .head h2 { font-size: clamp(44px, 5.2vw, 76px); }
.case .ctx { font-size: 14px; font-weight: 700; color: var(--titanium-ink); margin-bottom: 16px; display: flex; gap: 14px; flex-wrap: wrap; }
.case .body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.case .story section { padding: 18px 0; border-top: 1px solid var(--line-light); display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; }
.case .story h4 { font-size: 13.5px; color: var(--titanium-ink); margin: .2em 0 0; }
.case .story ul { padding-left: 1.1em; display: grid; gap: 4px; }
.case .story p { margin: 0; }
.case .role-note { font-size: 14px; background: var(--white); border: 1px solid var(--line-light); padding: 12px 14px; border-radius: 4px; margin-top: 10px; }
.case .side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 24px; }
.evidence-gap { font-size: 13.5px; border: 1px dashed var(--warn); color: var(--warn); padding: 12px 14px; border-radius: 4px; }
.evidence-gap strong { display: block; }
.dark .evidence-gap { border-color: var(--warn-dark); color: var(--warn-dark); }
.case.dark .story section { border-color: var(--line-dark); }
.case.dark .story h4, .case.dark .ctx { color: var(--titanium); }
.case.dark .role-note { background: var(--carbon); border-color: var(--line-dark); }
@media (max-width: 960px) { .case .head, .case .body { grid-template-columns: minmax(0, 1fr); } .case .side { position: static; } .case .story section { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

.figbox { color: var(--graphite); background: var(--white); border: 1px solid var(--line-light); border-radius: 8px; padding: 18px; }
.figbox figcaption, .figbox .cap { font-size: 12.5px; color: var(--titanium-ink); margin-top: 10px; }
.matrix { display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(2, minmax(0, 1fr)); font-size: 13.5px; }
.matrix > * { padding: 9px 8px; border-bottom: 1px solid var(--line-light); }
.matrix .h { font-weight: 700; color: var(--titanium-ink); font-size: 12.5px; }
.matrix .cell { text-align: center; font-weight: 700; transition: background .4s, color .4s; }
.matrix .cell.gap { color: var(--warn); }
.matrix .cell.ok { color: var(--ok); }
.matrix .cell.dead { color: #b3261e; }
.split-art { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); gap: 8px; align-items: center; }
.split-art .doc { border: 1px solid var(--line-light); border-radius: 4px; padding: 10px; font-size: 12.5px; background: var(--porcelain); }
.split-art .doc b { display: block; font-size: 13px; margin-bottom: 6px; }
.split-art .doc i { display: block; height: 5px; background: var(--mist); margin: 5px 0; border-radius: 2px; }
.split-art .doc i.hit { background: var(--cobalt); }
.split-art .stack { display: grid; gap: 6px; }
.gov-fig svg { width: 100%; height: auto; }

/* ---------- LAB ---------- */
.lab-shell { background: var(--graphite); color: var(--porcelain); border-radius: 12px; border: 1px solid var(--line-dark); overflow: hidden; }
.lab-bar { display: flex; flex-wrap: wrap; gap: 12px 18px; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line-dark); background: #0c0d10; }
.lab-bar .left, .lab-bar .right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.lab-label { font-size: 12.5px; color: var(--titanium); font-weight: 700; }
.engine-tag { font-size: 12.5px; font-weight: 700; color: var(--warn-dark); border: 1px solid #5a3b1c; padding: 6px 10px; border-radius: 4px; }
.engine-tag.live { color: var(--ok-dark); border-color: #1f4d36; }
.lab-panes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lab-panes.single { grid-template-columns: minmax(0, 1fr); }
.lab-pane { display: flex; flex-direction: column; min-height: 520px; max-height: 70vh; }
.lab-pane + .lab-pane { border-left: 1px solid var(--line-dark); }
.lab-pane[hidden] { display: none; }
.pane-head { padding: 12px 18px; border-bottom: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.pane-head h2 { font-size: 28px; line-height: 1; }
.pane-head p { margin: 0; font-size: 13px; color: var(--titanium); }
.pane-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 14px; scroll-behavior: smooth; }
.lab-composer { border-top: 1px solid var(--line-dark); padding: 14px 18px 16px; background: #0c0d10; }
.lab-composer form { display: flex; gap: 10px; align-items: flex-end; }
.lab-composer textarea { flex: 1; resize: none; min-height: 48px; max-height: 140px; background: #181b21; border: 1px solid var(--line-dark); color: var(--porcelain); border-radius: 6px; padding: 12px 14px; font-size: 16px; line-height: 1.4; }
.lab-composer textarea::placeholder { color: #7d838d; }
.lab-composer textarea:focus { border-color: var(--cobalt-light); outline: none; box-shadow: 0 0 0 3px rgba(138,166,255,.25); }
.lab-composer .hint { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--titanium); margin-top: 8px; }
.lab-composer .err { color: var(--warn-dark); font-weight: 700; }
.lab-prompts { display: flex; gap: 8px; overflow-x: auto; padding: 12px 18px; border-top: 1px solid var(--line-dark); scrollbar-width: thin; }
.lab-prompts .chip { flex: none; }
.mobile-modes { display: none; }
@media (max-width: 1023px) {
  .lab-panes, .lab-panes.single { grid-template-columns: minmax(0, 1fr); }
  .lab-pane + .lab-pane { border-left: 0; border-top: 1px solid var(--line-dark); }
  .lab-pane { min-height: 380px; max-height: none; }
  .pane-log { max-height: 60vh; }
}
.behind { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 56px); }
.behind-panel { background: var(--white); border: 1px solid var(--line-light); border-radius: 10px; padding: clamp(18px, 2.4vw, 28px); }
.behind-panel[aria-busy="true"] { opacity: .6; }
.trace-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.trace-cols.one { grid-template-columns: minmax(0, 1fr); }
.trace h3 { font-size: 30px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.trace h4 { font-size: 13px; color: var(--titanium-ink); margin: 18px 0 8px; }
.src-item { border: 1px solid var(--line-light); border-radius: 6px; padding: 10px 12px; margin-bottom: 8px; font-size: 14px; }
.src-item .tt { font-weight: 700; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.src-item blockquote { margin: 6px 0; color: var(--carbon); font-size: 13.5px; }
.src-item .sm { font-size: 12.5px; color: var(--titanium-ink); }
.rel { display: grid; grid-template-columns: 70px minmax(0, 1fr) 40px; gap: 8px; align-items: center; font-size: 12.5px; color: var(--titanium-ink); margin-top: 4px; }
.rel .track { height: 6px; background: var(--mist); border-radius: 3px; overflow: hidden; }
.rel .track i { display: block; height: 100%; background: var(--cobalt); }
.factor { display: grid; grid-template-columns: 22px 92px minmax(0, 1fr); gap: 6px; font-size: 14px; padding: 6px 0; border-bottom: 1px solid var(--mist); }
.factor .ic { font-weight: 800; }
.factor.ok .ic { color: var(--ok); } .factor.bad .ic { color: #b3261e; }
.factor .k { font-size: 12.5px; font-weight: 700; color: var(--titanium-ink); text-transform: capitalize; padding-top: 2px; }
.sim-label { font-size: 12.5px; font-weight: 700; color: var(--warn); margin: 0 0 10px; }
.failure-types { display: grid; gap: 14px; }
.failure-types div { border-top: 1px solid var(--line-light); padding-top: 12px; font-size: 15px; }
.failure-types b { font-family: var(--font-display); font-weight: 400; font-size: 26px; display: block; line-height: 1; margin-bottom: 4px; }
@media (max-width: 900px) { .behind, .trace-cols { grid-template-columns: minmax(0, 1fr); } }

.notice { border: 1px solid var(--line-light); background: var(--white); padding: 14px 16px; border-radius: 6px; font-size: 14.5px; }
.notice strong { display: block; margin-bottom: 2px; }
.dark .notice { background: var(--carbon); border-color: var(--line-dark); }

/* ---------- ASSESSMENT ---------- */
.assess { max-width: 880px; margin-inline: auto; }
.progress { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.progress-track { height: 4px; background: var(--mist); border-radius: 2px; overflow: hidden; margin-bottom: 40px; }
.progress-track i { display: block; height: 100%; background: var(--cobalt); transition: width .4s var(--ease); }
.q-dim { font-size: 14px; font-weight: 700; color: var(--titanium-ink); margin-bottom: 12px; }
.q-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(38px, 4.4vw, 60px); line-height: .95; margin: 0 0 14px; }
.q-hint { color: var(--titanium-ink); font-size: 15.5px; max-width: 42em; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.opts { display: grid; gap: 10px; margin: 28px 0 32px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt label { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: center; background: var(--white); border: 1.5px solid var(--line-light); border-radius: 6px; padding: 16px 18px; min-height: 60px; cursor: pointer; font-weight: 600; font-size: 16.5px; transition: border-color .2s, background .2s; }
.opt label .n { width: 30px; height: 30px; display: grid; place-items: center; border: 1.5px solid var(--line-light); border-radius: 50%; font-size: 13px; font-weight: 800; color: var(--titanium-ink); transition: all .2s; }
.opt input:hover + label { border-color: var(--graphite); }
.opt input:focus-visible + label { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.opt input:checked + label { border-color: var(--graphite); background: var(--graphite); color: var(--porcelain); }
.opt input:checked + label .n { background: var(--porcelain); color: var(--graphite); border-color: var(--porcelain); }
.q-nav { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line-light); padding-top: 22px; }
.q-err { color: #b3261e; font-weight: 700; font-size: 14.5px; min-height: 1.4em; margin: 0 0 10px; }
.review { list-style: none; display: grid; }
.review li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-light); align-items: center; font-size: 15px; }
.review .qn { font-family: var(--font-display); font-size: 26px; color: var(--titanium-ink); }
.review .ans { font-size: 14px; color: var(--titanium-ink); }
.review .missing { color: #b3261e; font-weight: 700; }
.result-hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: end; padding-bottom: 40px; border-bottom: 1px solid var(--line-light); margin-bottom: 40px; }
.score-big { white-space: nowrap; font-family: var(--font-display); font-size: clamp(80px, 11vw, 168px); line-height: .8; font-variant-numeric: tabular-nums; }
.score-big small { font-size: .26em; color: var(--titanium-ink); margin-left: .1em; }
.maturity { font-family: var(--font-display); font-size: clamp(40px, 4.4vw, 64px); line-height: .95; }
.scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; margin-top: 18px; font-size: 12px; font-weight: 700; }
.scale div { padding-top: 8px; border-top: 4px solid var(--mist); color: var(--titanium-ink); }
.scale div.on { border-color: var(--graphite); color: var(--graphite); }
.result-sec { margin-bottom: 56px; }
.result-sec > h2 { font-size: clamp(36px, 3.6vw, 52px); margin-bottom: 20px; }
.result-dims .dimbar { font-size: 15px; }
.result-dims .dimbar .w { font-size: 12.5px; color: var(--titanium-ink); font-weight: 600; }
.flag { border-left: 3px solid #b3261e; background: var(--white); padding: 16px 18px; margin-bottom: 12px; border-radius: 0 6px 6px 0; }
.flag h3 { font-family: var(--font-text); font-weight: 800; font-size: 16.5px; line-height: 1.35; margin-bottom: 6px; }
.flag dl, .action dl { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 6px 14px; margin: 10px 0 0; font-size: 14.5px; }
.flag dt, .action dt { font-weight: 700; color: var(--titanium-ink); }
.flag dd, .action dd { margin: 0; }
.action { border-top: 2px solid var(--graphite); padding: 22px 0 28px; display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 16px; }
.action .num { font-family: var(--font-display); font-size: 64px; line-height: .8; color: var(--cobalt); }
.action h3 { font-size: clamp(30px, 3vw, 42px); margin-bottom: 8px; }
.action .why { font-size: 14.5px; color: var(--titanium-ink); font-weight: 600; }
.strengths { list-style: none; display: grid; gap: 10px; }
.strengths li { padding-left: 28px; position: relative; }
.strengths li::before { content: "✓"; position: absolute; left: 0; font-weight: 800; color: var(--ok); }
.method-note { font-size: 14.5px; background: var(--white); border: 1px solid var(--line-light); border-radius: 6px; padding: 18px; }
.method-note summary { cursor: pointer; font-weight: 700; min-height: 32px; }
@media (max-width: 760px) { .result-hero { grid-template-columns: minmax(0, 1fr); } .flag dl, .action dl { grid-template-columns: minmax(0, 1fr); } .action { grid-template-columns: minmax(0, 1fr); } .review li { grid-template-columns: 32px minmax(0, 1fr); } .review li > :last-child { grid-column: 2; justify-self: start; } }

/* ---------- forms ---------- */
.form { display: grid; gap: 22px; }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.field label, .field legend { display: block; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.field .opt-lbl { font-weight: 500; color: var(--titanium-ink); font-size: 13.5px; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font-size: 16px; background: var(--white);
  border: 1.5px solid #c9cac4; border-radius: var(--radius); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--graphite) 50%), linear-gradient(135deg, var(--graphite) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cobalt); outline: none; box-shadow: 0 0 0 3px rgba(36,85,230,.2); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field .err { color: #b3261e; font-weight: 700; font-size: 14px; margin-top: 6px; }
.field .warn { color: var(--warn); font-size: 13.5px; margin-top: 6px; }
.field .help { color: var(--titanium-ink); font-size: 13.5px; margin-top: 6px; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-row label { position: relative; display: inline-flex; align-items: center; min-height: 46px; padding: 10px 16px; border: 1.5px solid #c9cac4; border-radius: var(--radius); background: var(--white); font-weight: 600; font-size: 15px; margin: 0; cursor: pointer; }
.radio-row input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.radio-row label:has(input:checked) { background: var(--graphite); color: var(--porcelain); border-color: var(--graphite); }
.radio-row label:has(input:focus-visible) { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 16px 18px; border-radius: 6px; font-size: 15px; border: 1.5px solid; }
.form-status.error { border-color: #b3261e; color: #8c1d17; background: #fdf3f2; }
.form-status.success { border-color: var(--ok); color: #165c3a; background: #f0f8f3; }
.form-status.info { border-color: var(--warn); color: #6e3500; background: #fff7ef; }
.form-status strong { display: block; margin-bottom: 2px; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 700px) { .form .row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 88px); }
.timeline { list-style: none; }
.timeline li { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: 20px; padding: 24px 0; border-top: 1px solid var(--line-light); }
.timeline .co { font-family: var(--font-display); font-size: clamp(40px, 4vw, 60px); line-height: .9; }
.placeholder { display: inline-block; font-size: 13.5px; font-weight: 700; color: var(--warn); border: 1px dashed currentColor; padding: 4px 8px; border-radius: 3px; }
.dark .placeholder { color: var(--warn-dark); }
.portrait-ph { aspect-ratio: 4 / 5; border: 1px dashed var(--line-light); border-radius: 6px; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--titanium-ink); font-size: 14px; background: var(--white); }
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.principles div { padding: 22px 0; border-top: 1px solid var(--line-dark); }
.principles b { font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1; display: block; margin-bottom: 8px; }
@media (max-width: 900px) { .about-grid, .principles, .timeline li { grid-template-columns: minmax(0, 1fr); } }

/* ---------- next-step strip ---------- */
.next-step { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-block: 40px; border-top: 1px solid var(--line-light); }
.next-step .h3 { max-width: 18em; }

/* ---------- reveal motion (progressive; content visible without JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .motif .frag { transform: none !important; }
  .js .motif .link { stroke-dashoffset: 0; }
}

/* ---------- print (assessment report) ---------- */
@media print {
  .site-header, .site-footer, .no-print, .final, .next-step { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .band { padding-block: 0; }
  .flag, .action { break-inside: avoid; }
  a { text-decoration: none; }
}
/* Mobile menu fix: backdrop-filter turns .site-header into the containing block for the fixed .nav, collapsing the open menu to ~64px. Use a solid header below the nav breakpoint. */
@media (max-width: 980px) { .site-header { background: var(--porcelain); -webkit-backdrop-filter: none; backdrop-filter: none; } }
