@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=IBM+Plex+Mono:wght@400;500;600&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  /* NaptiQCare QA report palette, extended only with semantic status colors. */
  --paper: #f6f1e8;
  --page: #fffaf0;
  --ink: #171717;
  --black: #111111;
  --muted: #6d6658;
  --line: #d8d0bf;
  --gold: #f5bc17;
  --critical: #991b1b;
  --high: #9a5a00;
  --medium: #075985;
  --good: #166534;
  --good-bg: #ecfdf5;
  --navy: var(--ink);
  --navy-2: var(--black);
  --white: var(--page);
  --coral: var(--gold);
  --coral-dark: var(--ink);
  --teal: var(--gold);
  --rule: rgba(23, 23, 23, .18);
  --rule-light: rgba(246, 241, 232, .24);
  --max: 1240px;
  --gutter: clamp(1.15rem, 3.5vw, 4.5rem);
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Manrope', Arial, sans-serif;
  --mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}
body.dark-page { background: var(--ink); color: var(--paper); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
::selection { background: var(--gold); color: var(--ink); }

.skip-link {
  position: fixed; left: 1rem; top: -5rem; z-index: 20;
  padding: .75rem 1rem; background: var(--gold); color: var(--ink);
  font-family: var(--mono); font-size: .72rem; text-transform: uppercase;
}
.skip-link:focus { top: 1rem; }

.container { width: min(var(--max), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 8.5rem) 0; position: relative; scroll-margin-top: 6.5rem; }
.section-tight { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.section-dark { background: var(--ink); color: var(--paper); }
.section-navy { background: var(--ink); color: var(--paper); }
.section-coral { background: var(--ink); color: var(--page); }
.rule { border-top: 1px solid var(--rule); }
.dark-page .rule { border-color: var(--rule-light); }

.eyebrow, .micro, .index, .stamp, .status, .nav-label, .form-label {
  font-family: var(--mono);
  font-size: .72rem;
  line-height: 1.25;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.eyebrow { color: var(--ink); display: inline-flex; align-items: center; gap: .65rem; }
.section-dark .eyebrow, .section-navy .eyebrow { color: var(--gold); }
.section-dark .h1 em, .section-dark .h2 em, .section-navy .h1 em, .section-navy .h2 em { color: var(--gold); text-decoration: none; }
.section:not(.section-dark):not(.section-navy):not(.section-coral) .h1 em, .section:not(.section-dark):not(.section-navy):not(.section-coral) .h2 em { color: var(--ink); }
.section-coral .h1 em, .section-coral .h2 em { color: var(--page); text-decoration: none; }
.section-dark .index-big, .section-navy .index-big, .section-dark .statement p em, .section-navy .statement p em { color: var(--gold); }
.section-dark .service-arrow, .section-navy .service-arrow { color: var(--gold); }
.eyebrow::before { content: ''; width: 2.7rem; height: 1px; background: currentColor; display: inline-block; }
.index { color: var(--ink); }
.section-dark .index, .section-navy .index { color: var(--gold); }
.muted { color: var(--muted); }
.section-dark .muted, .section-navy .muted { color: rgba(246,241,232,.78); }
.dark-page .section:not(.section-dark):not(.section-navy):not(.section-coral) { background: var(--paper); color: var(--ink); }
.section-dark .service-row p, .section-navy .service-row p, .section-dark .research-track p, .section-navy .research-track p { color: rgba(246,241,232,.84); }
.section:not(.section-dark):not(.section-navy):not(.section-coral) .process-step p { color: var(--muted); }

.site-header {
  position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid var(--rule);
  background: rgba(246,241,232,.96);
  backdrop-filter: blur(12px);
}
.dark-page .site-header { background: rgba(23,23,23,.95); border-color: var(--rule-light); }
.header-inner { min-height: 4.8rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand-lockup { display: inline-flex; align-items: center; gap: .8rem; min-width: max-content; }
.brand-logo { width: clamp(10rem, 17vw, 14rem); height: auto; display: block; }
.dark-page .brand-logo, .footer .brand-logo { filter: brightness(0) invert(1); }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.2rem); }
.site-nav a { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: .25rem 0; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); border-color: var(--gold); }
.dark-page .site-nav a { color: rgba(246,241,232,.72); }
.dark-page .site-nav a:hover, .dark-page .site-nav a[aria-current="page"] { color: var(--paper); }
.nav-cta { background: var(--ink); color: var(--paper) !important; padding: .7rem .85rem !important; border: 1px solid var(--ink) !important; }
.nav-cta:hover { background: var(--gold); color: var(--ink) !important; border-color: var(--gold) !important; }
.dark-page .nav-cta { background: var(--paper); color: var(--ink) !important; border-color: var(--paper) !important; }
.dark-page .nav-cta:hover { background: var(--gold); color: var(--ink) !important; border-color: var(--gold) !important; }
.nav-toggle { display: none; border: 0; background: none; color: inherit; padding: .5rem; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: .8rem; min-height: 3rem; padding: .82rem 1.1rem; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; transition: background .2s ease, color .2s ease, transform .2s ease; }
.button::after { content: '↗'; font-size: 1rem; line-height: 0; }
.button:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); transform: translateY(-2px); }
.button:disabled { opacity: .65; cursor: wait; transform: none; }
.button-secondary { background: transparent; color: var(--ink); }
.button-secondary:hover { color: var(--ink); }
.section-dark .button-secondary, .section-navy .button-secondary { border-color: var(--paper); color: var(--paper); }
.section-dark .button-secondary:hover, .section-navy .button-secondary:hover { border-color: var(--gold); color: var(--paper); }
.button-coral { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.button-coral:hover { background: var(--page); color: var(--ink); border-color: var(--page); }

.display { font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; line-height: .92; font-size: clamp(3.35rem, 7.3vw, 7.7rem); max-width: 10.5ch; margin: 1.1rem 0 1.6rem; }
.display em, .h1 em, .h2 em { color: var(--ink); font-style: normal; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: .08em; text-underline-offset: .1em; }
.h1 { font-family: var(--serif); font-weight: 400; letter-spacing: -.04em; line-height: .95; font-size: clamp(3rem, 6vw, 6.5rem); max-width: 11ch; margin: .9rem 0 1.5rem; }
.h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.035em; line-height: 1; font-size: clamp(2.35rem, 4.3vw, 4.8rem); max-width: 12ch; margin: .7rem 0 1.1rem; }
.h3 { font-size: clamp(1.25rem, 2.2vw, 1.75rem); letter-spacing: -.03em; line-height: 1.1; margin: .6rem 0 .7rem; }
.lede { max-width: 41rem; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.55; color: rgba(10,20,27,.72); }
.section-dark .lede, .section-navy .lede { color: rgba(246,241,232,.88); }
.body-copy { max-width: 40rem; color: rgba(10,20,27,.72); }
.section-dark .body-copy, .section-navy .body-copy { color: rgba(246,241,232,.84); }

.hero { min-height: min(880px, calc(100svh - 4.8rem)); display: grid; align-items: center; padding: clamp(3rem, 6vw, 6rem) 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(360px, .96fr); gap: clamp(2rem, 7vw, 8rem); align-items: center; }
.hero-copy { position: relative; z-index: 1; }
.hero .lede { max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-note { display: flex; gap: .7rem; align-items: center; margin-top: 1.4rem; color: var(--muted); font-family: var(--mono); font-size: .72rem; text-transform: uppercase; }
.hero-note::before { content: ''; width: 1.6rem; border-top: 1px solid var(--gold); }

.ledger { position: relative; display: flex; flex-direction: column; min-height: 30rem; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); padding: 1.25rem; transform: rotate(1.2deg); }
.ledger::before { content: ''; position: absolute; inset: .55rem; border: 1px solid rgba(246,241,232,.24); pointer-events: none; }
.ledger-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--rule-light); padding: .4rem .55rem 1.15rem; }
.ledger-title { font-family: var(--mono); text-transform: uppercase; letter-spacing: .07em; font-size: .7rem; }
.ledger-code { color: var(--gold); font-family: var(--mono); font-size: .72rem; }
.ledger-main { position: relative; flex: 1; padding: 2.4rem .55rem 1.3rem; }
.ledger-kicker { font-family: var(--mono); color: var(--gold); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.ledger-claim { font-family: var(--serif); font-size: clamp(2.1rem, 4vw, 4.2rem); line-height: .94; letter-spacing: -.04em; max-width: 8ch; margin: .8rem 0 2rem; }
.ledger-path { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--rule-light); border-bottom: 1px solid var(--rule-light); }
.ledger-path div { padding: .85rem .55rem; border-right: 1px solid var(--rule-light); }
.ledger-path div:last-child { border-right: 0; }
.ledger-path b { display: block; color: var(--gold); font-family: var(--mono); font-size: 1.2rem; }
.ledger-path span { display: block; margin-top: .25rem; color: rgba(246,241,232,.72); font-family: var(--mono); font-size: .72rem; text-transform: uppercase; line-height: 1.3; }
.ledger-foot { position: relative; left: auto; right: auto; bottom: auto; display: flex; justify-content: space-between; gap: 1rem; margin: 0 .55rem .25rem; padding-top: 1.1rem; border-top: 1px solid var(--rule-light); color: rgba(246,241,232,.7); font-family: var(--mono); font-size: .72rem; text-transform: uppercase; }
.ledger-mark { width: 2.2rem; height: 2.2rem; border: 1px solid var(--gold); display: grid; place-items: center; color: var(--gold); font-family: var(--mono); font-size: .72rem; transform: rotate(-7deg); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 6vw, 7rem); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; background: var(--rule); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.grid-3 > * { background: var(--paper); }
.section-dark .grid-3, .section-navy .grid-3 { background: var(--rule-light); border-color: var(--rule-light); }
.section-dark .grid-3 > *, .section-navy .grid-3 > * { background: transparent; }

.metrics { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.metric { padding: 1.45rem 1rem 1.45rem 0; border-right: 1px solid var(--rule); margin: 1rem 0; }
.metric + .metric { padding-left: 1rem; }
.metric:last-child { border-right: 0; }
.metric-value { display: block; font-family: var(--serif); color: var(--ink); font-size: clamp(2.4rem, 4vw, 4rem); line-height: .9; letter-spacing: -.04em; }
.metric-label { display: block; margin-top: .55rem; max-width: 10rem; font-family: var(--mono); color: var(--muted); font-size: .72rem; text-transform: uppercase; line-height: 1.35; }
.section-dark .metric { border-color: var(--rule-light); }
.section-dark .metric-value { color: var(--gold); }
.section-dark .metric-label { color: rgba(246,241,232,.78); }

.indexed-section { display: grid; grid-template-columns: minmax(8rem, .24fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 6rem); }
.index-block { padding-top: .35rem; }
.index-big { display: block; font-family: var(--serif); font-size: clamp(3rem, 6vw, 6rem); line-height: .8; color: var(--ink); letter-spacing: -.06em; }
.index-name { display: block; margin-top: .8rem; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; color: var(--muted); letter-spacing: .08em; }

.statement { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: clamp(2.5rem, 5vw, 5rem) 0; }
.statement p { max-width: 57rem; margin: 0; font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 5.4rem); line-height: 1.04; letter-spacing: -.045em; }
.statement p em { color: var(--ink); font-style: normal; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: .08em; text-underline-offset: .1em; }

.featured { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 32rem; border: 1px solid var(--rule); scroll-margin-top: 6.5rem; }
.featured-copy { padding: clamp(1.5rem, 4vw, 4rem); display: flex; flex-direction: column; justify-content: space-between; }
.featured-visual { background: var(--ink); color: var(--paper); min-height: 20rem; padding: clamp(1.3rem, 3vw, 2.4rem); position: relative; overflow: hidden; }
.featured-visual::after { content: ''; position: absolute; width: 20rem; height: 20rem; border: 1px solid var(--gold); border-radius: 50%; right: -4rem; bottom: -8rem; opacity: .65; }
.featured-visual .visual-title { position: relative; z-index: 1; font-family: var(--mono); color: var(--gold); text-transform: uppercase; font-size: .72rem; letter-spacing: .08em; }
.visual-diagram { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 4rem; max-width: 23rem; align-items: stretch; }
.visual-node { display: flex; align-items: center; min-height: 4.5rem; border: 1px solid rgba(246,241,232,.45); padding: 1rem; font-family: var(--mono); font-size: .72rem; line-height: 1.3; text-transform: uppercase; overflow-wrap: anywhere; }
.visual-node:nth-child(2), .visual-node:nth-child(3), .visual-node:nth-child(4) { border-color: var(--gold); transform: none; }

.card { padding: 1.5rem 1.25rem 1.7rem; border-right: 1px solid var(--rule); min-height: 17rem; }
.card:last-child { border-right: 0; }
.card .index { display: block; margin-bottom: 2.5rem; }
.card p { color: var(--muted); max-width: 22rem; }
.card a { color: var(--ink); font-family: var(--mono); font-size: .72rem; text-transform: uppercase; display: inline-flex; margin-top: 1rem; }
.section-dark .card { border-color: var(--rule-light); }
.section-dark .card p { color: rgba(246,241,232,.78); }
.section-dark .card a { color: var(--gold); }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--rule); border-top: 1px solid var(--rule); }
.project-card { background: var(--paper); padding: clamp(1.2rem, 2.3vw, 2.25rem); min-height: 24rem; display: flex; flex-direction: column; justify-content: space-between; }
.project-card:hover { background: var(--page); }
.project-card .project-top { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.project-card .project-name { font-family: var(--serif); font-size: clamp(2rem, 3.5vw, 3.4rem); letter-spacing: -.04em; line-height: .92; max-width: 8ch; }
.project-card .status { color: var(--ink); border: 1px solid var(--line); padding: .35rem .45rem; white-space: nowrap; }
.project-card p { max-width: 30rem; color: var(--muted); }
.project-meta { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; padding-top: 1rem; border-top: 1px solid var(--rule); color: var(--muted); font-family: var(--mono); font-size: .72rem; text-transform: uppercase; }
.project-meta span::before { content: '↳ '; color: var(--gold); }
.filter-row { display: flex; flex-wrap: wrap; gap: .45rem; margin: 2rem 0 2.2rem; }
.filter-button { border: 1px solid var(--rule); background: transparent; padding: .55rem .7rem; color: var(--muted); font-family: var(--mono); font-size: .72rem; text-transform: uppercase; }
.filter-button:hover, .filter-button[aria-pressed="true"] { color: var(--page); background: var(--ink); border-color: var(--ink); }

.service-row { display: grid; grid-template-columns: 5.5rem 1.1fr 1fr auto; gap: 1.3rem; align-items: start; padding: 1.4rem 0; border-top: 1px solid var(--rule); }
.service-row:last-child { border-bottom: 1px solid var(--rule); }
.service-row .service-num { color: var(--ink); font-family: var(--mono); font-size: .7rem; }
.service-row h3 { margin: 0; font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 3rem); line-height: .95; letter-spacing: -.04em; }
.service-row p { margin: 0; color: var(--muted); max-width: 27rem; }
.service-arrow { font-family: var(--mono); font-size: 1.4rem; color: var(--ink); }

.process { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--rule-light); border-bottom: 1px solid var(--rule-light); }
.process-step { padding: 1.35rem 1rem 1.8rem 0; border-right: 1px solid var(--rule-light); margin: 1rem 0; }
.process-step + .process-step { padding-left: 1rem; }
.process-step:last-child { border-right: 0; }
.process-step .step-no { font-family: var(--mono); color: var(--gold); font-size: .7rem; }
.process-step h3 { font-family: var(--serif); font-size: 2rem; line-height: .9; margin: 2rem 0 .7rem; }
.process-step p { color: rgba(246,241,232,.72); font-size: .9rem; }

.research-track { display: grid; grid-template-columns: 1.1fr .9fr; border-top: 1px solid var(--rule); min-height: 17rem; }
.research-track > div { padding: 1.35rem 0; }
.research-track > div + div { padding-left: 2rem; border-left: 1px solid var(--rule); }
.research-track h3 { font-family: var(--serif); font-size: clamp(2rem, 3.2vw, 3.5rem); letter-spacing: -.04em; line-height: .92; margin: 1.5rem 0 .8rem; }
.research-track p { color: var(--muted); max-width: 34rem; }
.track-status { color: var(--gold); font-family: var(--mono); font-size: .72rem; text-transform: uppercase; }

.quote { max-width: 50rem; padding-top: 0; }
.quote::before { content: ''; display: block; width: 5rem; height: 3px; margin-bottom: 1.2rem; background: var(--gold); }
.quote p { margin: 0; font-family: var(--serif); font-size: clamp(1.8rem, 3.5vw, 3.8rem); line-height: 1; letter-spacing: -.04em; }
.quote cite { display: block; margin-top: 1.2rem; font-family: var(--mono); font-style: normal; color: var(--muted); font-size: .72rem; text-transform: uppercase; }

.testimonial-intro { max-width: 42rem; color: rgba(246,241,232,.78); }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 3rem; background: var(--rule-light); border-top: 1px solid var(--rule-light); }
.testimonial-card { display: flex; flex-direction: column; min-width: 0; min-height: 23rem; margin: 0; padding: clamp(1.2rem, 2.5vw, 2rem); background: var(--ink); border-bottom: 1px solid var(--rule-light); }
.testimonial-draft { color: var(--gold); font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.testimonial-card blockquote { flex: 1; margin: 2rem 0; color: var(--paper); font-family: var(--serif); font-size: clamp(1.55rem, 2.3vw, 2.45rem); line-height: 1.04; letter-spacing: -.035em; }
.testimonial-card figcaption { display: grid; gap: .3rem; padding-top: 1rem; border-top: 1px solid var(--rule-light); font-family: var(--mono); font-size: .7rem; font-style: normal; text-transform: uppercase; }
.testimonial-card figcaption strong { color: var(--paper); font-weight: 400; }
.testimonial-card figcaption span { color: var(--gold); }
.testimonial-card figcaption small { color: rgba(246,241,232,.58); font-size: .62rem; }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2.5rem, 8vw, 8rem); padding-inline: clamp(1rem, 2.8vw, 3.5rem); }
.contact-grid > * { min-width: 0; }
.contact-aside { padding-top: .5rem; }
.contact-aside a { color: var(--ink); border-bottom: 1px solid var(--gold); }
.contact-form { border-top: 1px solid var(--rule); }
.field { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1.3rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); align-items: center; }
.field label { color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; border: 0; border-bottom: 1px solid transparent; background: transparent; color: var(--ink); padding: .55rem 0; outline: none; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); }
.field textarea { min-height: 8rem; resize: vertical; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; padding-top: 1.3rem; }
.form-note { color: var(--muted); font-family: var(--mono); font-size: .72rem; }
.form-success { display: none; border: 1px solid var(--good); color: var(--good); padding: 1rem; margin-top: 1rem; font-family: var(--mono); font-size: .72rem; }
.form-success.show { display: block; }

.footer { padding: 3rem 0 1.4rem; background: var(--ink); color: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 2rem; padding-bottom: 3rem; border-bottom: 1px solid var(--rule-light); }
.footer p { color: rgba(246,241,232,.78); max-width: 23rem; }
.footer h3 { color: var(--gold); font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-links { display: grid; gap: .55rem; color: rgba(246,241,232,.76); font-family: var(--mono); font-size: .72rem; text-transform: uppercase; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.2rem; color: rgba(246,241,232,.66); font-family: var(--mono); font-size: .72rem; text-transform: uppercase; }

.reveal { opacity: 0; transform: translateY(18px); animation: reveal .7s ease forwards; }
.js-reveal.reveal { animation-play-state: paused; }
.js-reveal.reveal.is-visible { animation-play-state: running; }
.reveal.delay-1 { animation-delay: .1s; }
.reveal.delay-2 { animation-delay: .2s; }
.reveal.delay-3 { animation-delay: .3s; }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }

[data-filtered="true"] { display: none !important; }

@media (max-width: 900px) {
  .site-nav { gap: .85rem; }
  .site-nav a:not(.nav-cta) { display: none; }
  .site-nav .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .site-nav.open { position: absolute; left: 0; right: 0; top: 4.8rem; padding: 1rem var(--gutter) 1.4rem; background: var(--paper); border-bottom: 1px solid var(--rule); display: grid; gap: .9rem; }
  .dark-page .site-nav.open { background: var(--ink); border-color: var(--rule-light); }
  .site-nav.open a:not(.nav-cta), .site-nav.open .nav-cta { display: block; }
  .site-nav.open .nav-cta { width: fit-content; }
  .hero-grid, .featured, .contact-grid, .research-track { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .ledger { max-width: 42rem; margin: 1rem auto 0; }
  .featured-visual { min-height: 24rem; }
  .grid-3, .project-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .card { border-right: 0; border-bottom: 1px solid var(--rule); }
  .card:last-child { border-bottom: 0; }
  .project-card { min-height: 20rem; }
  .service-row { grid-template-columns: 4rem 1fr auto; }
  .service-row p { grid-column: 2 / 4; }
  .process { grid-template-columns: repeat(2,1fr); }
  .process-step:nth-child(2) { border-right: 0; }
  .process-step:nth-child(-n+2) { border-bottom: 1px solid var(--rule-light); }
  .research-track > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .header-inner { min-height: 4.2rem; }
  .site-nav.open { top: 4.2rem; }
  .brand-logo { width: 10.5rem; }
  .hero { padding-top: 3.3rem; }
  .display { font-size: clamp(3.1rem, 15vw, 5.8rem); }
  .metrics { grid-template-columns: repeat(2,1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .metric:nth-child(3), .metric:nth-child(4) { margin-top: 1rem; }
  .indexed-section { grid-template-columns: 1fr; gap: 1.5rem; }
  .index-block { display: flex; align-items: baseline; gap: .8rem; }
  .index-name { margin-top: 0; }
  .service-row { grid-template-columns: 3rem 1fr; }
  .service-row p { grid-column: 2; }
  .service-arrow { grid-column: 2; }
  .process { grid-template-columns: 1fr; }
  .process-step, .process-step + .process-step { padding-left: 0; border-right: 0; border-bottom: 1px solid var(--rule-light); }
  .process-step:last-child { border-bottom: 0; }
  .field { grid-template-columns: 1fr; gap: .2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .footer-bottom { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
