:root {
  --ink: #17222b; --muted: #596b73; --navy: #244c5a; --teal: #2f6472;
  --teal-soft: #dcebed; --amber: #865a12; --amber-soft: #f8edd8;
  --paper: #f7f9fa; --white: #fff; --line: #d6dfe2; --line-dark: #b8c7cc;
  --shadow: 0 18px 50px rgba(30, 55, 64, .09); --radius: 18px; --content: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.6; }
a { color: var(--navy); text-underline-offset: 4px; }
a:hover { color: var(--teal); }
button { font: inherit; }
:focus-visible { outline: 3px solid #c77700; outline-offset: 3px; }
h1, h2, h3 { margin-top: 0; color: var(--ink); line-height: 1.12; }
h1 { font-size: clamp(3rem, 7vw, 6.8rem); letter-spacing: -.06em; }
h2 { font-size: clamp(2rem, 4vw, 3.6rem); letter-spacing: -.045em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 200; padding: .7rem 1rem; border-radius: 0 0 8px 8px; background: var(--ink); color: white; }
.skip-link:focus { top: 0; }
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(184,199,204,.8); background: rgba(247,249,250,.96); backdrop-filter: blur(14px); }
.header-inner { width: min(calc(100% - 2.5rem), 1380px); min-height: 76px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--ink); text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: var(--navy); color: white; font-weight: 900; }
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); font-size: .66rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: clamp(.7rem, 2vw, 1.6rem); }
.site-nav a { color: #34464e; font-size: .84rem; font-weight: 800; text-decoration: none; }
.site-nav a:hover { color: var(--teal); }
.nav-toggle { display: none; min-height: 42px; padding: .45rem .75rem; border: 1px solid var(--line-dark); border-radius: 8px; background: white; color: var(--ink); }
.section-shell { width: min(calc(100% - 3rem), var(--content)); margin-inline: auto; }
.section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.eyebrow, .card-label, .figure-label { color: var(--teal); font-size: .72rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.hero { min-height: calc(100vh - 76px); display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); align-items: center; gap: clamp(3rem, 8vw, 8rem); padding-block: 5rem; }
.hero h1 { max-width: 850px; margin: .55rem 0 1.35rem; }
.hero-lede { max-width: 760px; color: #40535c; font-size: clamp(1.2rem, 2.4vw, 1.65rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: 2rem; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: .7rem 1.05rem; border: 1px solid transparent; border-radius: 9px; font-weight: 900; text-decoration: none; cursor: pointer; }
.button-primary { background: var(--navy); color: white; }
.button-primary:hover { background: var(--teal); color: white; }
.button-secondary { border-color: var(--line-dark); background: white; color: var(--navy); }
.text-link { font-weight: 900; }
.proof-card { padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.proof-card h2 { margin: .5rem 0 1.4rem; font-size: 1.45rem; letter-spacing: -.02em; }
.proof-list { margin: 0; }
.proof-list div { display: grid; grid-template-columns: 76px 1fr; align-items: baseline; gap: .8rem; padding: .85rem 0; border-top: 1px solid var(--line); }
.proof-list dt { color: var(--navy); font-size: 1.8rem; font-weight: 900; }
.proof-list dd { margin: 0; color: var(--muted); }
.microcopy, .source-note, .download-note { color: var(--muted); font-size: .82rem; }
.split-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; border-top: 1px solid var(--line); }
.prose { color: #40535c; font-size: 1.2rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.section-heading h2 { max-width: 900px; margin-bottom: 0; }
.status-chip { display: inline-flex; width: fit-content; align-items: center; border-radius: 999px; padding: .38rem .7rem; background: var(--teal-soft); color: var(--navy); font-size: .75rem; font-weight: 900; white-space: nowrap; }
.status-chip::before { content: ''; width: 7px; height: 7px; margin-right: .4rem; border-radius: 50%; background: currentColor; }
.status-chip.warning { background: var(--amber-soft); color: #67440f; }
.project-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.project-story { color: #40535c; }
.large-copy { color: var(--ink); font-size: 1.38rem; }
.metric-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.metric-board article { min-height: 130px; padding: 1rem; border: 1px solid var(--line); border-radius: 13px; background: white; }
.metric-board strong, .metric-board span { display: block; }
.metric-board strong { color: var(--navy); font-size: 2.4rem; line-height: 1; }
.metric-board span { margin-top: .6rem; color: var(--muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.boundary-note { margin-top: 1.5rem; padding: 1rem 1.2rem; border-left: 4px solid var(--amber); border-radius: 0 10px 10px 0; background: var(--amber-soft); color: #5c3e0e; }
.role-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.role-grid article { padding: clamp(1.4rem, 3vw, 2.2rem); border-top: 4px solid var(--teal); background: white; box-shadow: var(--shadow); }
.role-grid h3 { margin: .6rem 0 1rem; font-size: 1.45rem; }
.check-list { padding: 0; list-style: none; }
.check-list li { position: relative; padding: .45rem 0 .45rem 1.5rem; border-top: 1px solid var(--line); }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: #315d43; font-weight: 900; }
.diagram-feature { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.diagram-canvas { padding: .75rem; overflow: auto; background: #f8fafb; }
.evidence-diagram { display: block; width: 100%; height: auto; min-width: 780px; }
.diagram-feature figcaption { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; padding: 1.2rem 1.4rem; border-top: 1px solid var(--line); }
.diagram-feature figcaption strong, .diagram-feature figcaption span { display: block; }
.diagram-feature figcaption span { color: var(--muted); font-size: .88rem; }
.research-band { background: var(--navy); color: white; }
.section-heading.light h2, .research-band h3, .research-band .eyebrow { color: white; }
.research-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.research-grid article { padding: 1.5rem; border: 1px solid rgba(255,255,255,.22); border-radius: 14px; background: rgba(255,255,255,.06); }
.research-grid p { color: #dce7ea; }
.source-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: .7rem; margin-top: 2rem; }
.source-list article { padding: 1rem; border-radius: 11px; background: white; color: var(--ink); }
.source-list h3 { margin: .55rem 0; font-size: .96rem; line-height: 1.3; }
.source-list p { color: var(--muted); font-size: .78rem; }
.quality { color: var(--teal); font-size: .7rem; font-weight: 900; text-transform: uppercase; }
.source-note { margin: 1rem 0 0; color: #dce7ea; }
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.capability-grid article { padding: 1.4rem; border: 1px solid var(--line); border-radius: 14px; background: white; }
.card-index { color: var(--teal); font-size: .75rem; font-weight: 900; }
.capability-grid h3 { margin: 1.8rem 0 .6rem; }
.capability-grid p { color: var(--muted); }
details { border-top: 1px solid var(--line); padding-top: .7rem; }
summary { color: var(--navy); font-size: .8rem; font-weight: 900; cursor: pointer; }
details ul { padding: 0; list-style: none; }
details li { padding: .5rem 0; border-top: 1px solid var(--line); }
details li strong, details li span { display: block; }
details li span { color: var(--muted); font-size: .72rem; }
.resume-section { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; border-top: 1px solid var(--line); }
.resume-intro h2 { margin-bottom: 1rem; }
.resume-intro > p:last-child { margin-top: 1.2rem; color: var(--muted); }
.resume-sheet { padding: clamp(1.5rem, 4vw, 3.2rem); border: 1px solid var(--line); background: white; box-shadow: var(--shadow); }
.resume-sheet header { padding-bottom: 1rem; border-bottom: 2px solid var(--ink); }
.resume-sheet li { padding: .45rem 0; }
.download-note { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.download-actions { align-items: center; margin-top: 1.35rem; }
.contact-section { max-width: 820px; text-align: center; }
.contact-section p:last-child { color: var(--muted); font-size: 1.1rem; }
footer { width: min(calc(100% - 3rem), 1380px); margin: auto; display: flex; justify-content: space-between; gap: 2rem; padding: 2rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
footer strong, footer span { display: block; }
footer p { max-width: 520px; text-align: right; }
.case-hero { min-height: 670px; display: flex; flex-direction: column; justify-content: center; padding-block: 6rem; }
.case-hero h1 { max-width: 1060px; margin: .6rem 0 1.5rem; font-size: clamp(3rem, 6.5vw, 6.3rem); }
.case-hero > p:not(.eyebrow) { max-width: 760px; color: #40535c; font-size: 1.35rem; }
.case-nav { position: sticky; top: 76px; z-index: 30; display: flex; justify-content: center; gap: 1.4rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.96); box-shadow: 0 8px 25px rgba(30,55,64,.07); }
.case-nav a { font-size: .8rem; font-weight: 900; text-decoration: none; }
.case-diagrams { display: grid; gap: 2rem; }
.figure-label { margin-bottom: .25rem; }
.figure-actions { display: flex; align-items: center; gap: .8rem; flex-shrink: 0; }
.case-metrics { grid-template-columns: repeat(6, 1fr); }
.limitations-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.limitations-grid article { padding: 1.5rem; border: 1px solid var(--line); border-radius: 14px; background: white; }
.limitations-grid li { margin-bottom: .55rem; }
.diagram-dialog { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 3vh 3vw; background: rgba(16,28,33,.82); }
.diagram-dialog[hidden] { display: none; }
.dialog-panel { width: min(94vw, 1400px); max-height: 92vh; overflow: hidden; border-radius: 16px; background: white; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.dialog-header h2 { margin: 0; font-size: 1.2rem; }
.dialog-header button { padding: .45rem .7rem; border: 1px solid var(--line-dark); border-radius: 8px; background: white; }
.dialog-body { max-height: calc(92vh - 70px); padding: 1rem; overflow: auto; }
.dialog-body .evidence-diagram { min-width: 1000px; }
.dialog-open { overflow: hidden; }
@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .proof-card { max-width: 620px; }
  .project-layout, .resume-section { grid-template-columns: 1fr; }
  .source-list { grid-template-columns: repeat(3, 1fr); }
  .case-metrics { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  html { scroll-behavior: auto; }
  .header-inner, .section-shell, footer { width: min(calc(100% - 2rem), var(--content)); }
  .brand small { display: none; }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; inset: 76px 1rem auto; display: none; flex-direction: column; align-items: stretch; padding: .8rem; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .7rem; }
  .hero { padding-block: 4.5rem; }
  .hero h1 { font-size: clamp(3rem, 17vw, 5rem); }
  .split-section, .role-grid, .research-grid, .capability-grid, .limitations-grid { grid-template-columns: 1fr; }
  .metric-board { grid-template-columns: repeat(2, 1fr); }
  .source-list { grid-template-columns: 1fr; }
  .section-heading, .diagram-feature figcaption, footer { align-items: start; flex-direction: column; }
  .case-nav { top: 76px; justify-content: start; overflow-x: auto; white-space: nowrap; border-radius: 0; }
  .case-hero { min-height: auto; }
  .case-metrics { grid-template-columns: repeat(2, 1fr); }
  .figure-actions { width: 100%; justify-content: space-between; }
  footer p { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  @page { margin: 14mm; }
  body { background: white; color: black; font-size: 10pt; }
  .site-header, .case-nav, .hero-actions, .button, .diagram-dialog, footer { display: none !important; }
  .section, .case-hero { min-height: 0; padding-block: 1.2rem; }
  .section-shell { width: 100%; }
  h1 { font-size: 30pt; }
  h2 { font-size: 20pt; }
  .research-band { background: white; color: black; }
  .research-band h2, .research-band h3, .research-band .eyebrow, .research-grid p { color: black; }
  .research-grid article, .resume-sheet, .diagram-feature, .limitations-grid article { box-shadow: none; break-inside: avoid; }
  .source-list { display: none; }
  .evidence-diagram { min-width: 0; }
  a { color: black; text-decoration: none; }
}
