/* ==========================================================================
   JB3 Consulting — site styles
   Palette: cool white / navy / deep teal, with a brass accent used sparingly.
   Type: Newsreader (display, editorial) + Public Sans (interface, body).
   ========================================================================== */

:root {
  --paper: #F5F7F9;
  --paper-2: #E9EDF1;
  --paper-3: #D7DEE5;
  --ink: #0C1B2E;
  --ink-2: #26384D;
  --muted: #56657A;
  --rule: rgba(12, 27, 46, .15);
  --rule-strong: rgba(12, 27, 46, .45);
  --accent: #1B6B67;
  --accent-bright: #63B5AC;
  --brass: #B08A4A;
  --error: #B42318;
  --on-dark: #EEF2F6;
  --on-dark-muted: rgba(238, 242, 246, .66);
  --rule-dark: rgba(238, 242, 246, .16);

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Public Sans", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(.19, .73, .18, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --gutter: clamp(20px, 4vw, 56px);
  --gap: clamp(16px, 2.2vw, 32px);
  --header-h: 84px;
  --section: clamp(88px, 12vw, 176px);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 16px; font-size: .875rem; transition: top .2s; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1380px; margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 860px; }

main { padding-top: var(--header-h); display: block; }

/* ---------- Typography ---------- */
.display, .h1, .h2, .h3, .serif {
  font-family: var(--serif);
  font-weight: 350;
  font-optical-sizing: auto;
  letter-spacing: -.018em;
  text-wrap: balance;
}
.statement, .footer-statement, .commit-quote, .card-title, .article-title, .svc-title, .lede, .article-dek { text-wrap: balance; }
.display { font-size: clamp(3rem, 7.4vw, 7.25rem); line-height: .98; letter-spacing: -.028em; }
.h1 { font-size: clamp(2.6rem, 5.8vw, 5.5rem); line-height: 1.01; letter-spacing: -.025em; }
.h2 { font-size: clamp(2rem, 3.8vw, 3.5rem); line-height: 1.06; }
.h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); line-height: 1.2; letter-spacing: -.01em; }
.display em, .h1 em, .h2 em, .h3 em, .serif em { font-style: italic; color: var(--accent); font-weight: 330; }
.lede { font-family: var(--serif); font-size: clamp(1.25rem, 1.7vw, 1.55rem); line-height: 1.45; color: var(--ink-2); font-weight: 350; letter-spacing: -.005em; }
.body-lg { font-size: 1.125rem; line-height: 1.7; color: var(--ink-2); }
.muted { color: var(--muted); }

.eyebrow, .label {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
.label span { color: var(--accent); font-variant-numeric: tabular-nums; }
.label span::after { content: ""; display: inline-block; width: 22px; height: 1px; background: var(--rule-strong); vertical-align: middle; margin-left: 14px; }

/* ---------- Buttons & links ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  position: relative;
  display: inline-flex; align-items: center; gap: 18px;
  padding: 18px 26px 18px 28px;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--bg);
  font-family: var(--sans); font-size: .875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer; overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease), border-color .5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform .7s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.btn:hover, .btn:focus-visible { border-color: var(--accent); color: var(--paper); }
.btn .arr { width: 22px; transition: transform .6s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--rule-strong); }
.btn--light { --bg: var(--on-dark); --fg: var(--ink); }
.btn--light::before { background: var(--accent); }
.btn--sm { padding: 12px 18px; font-size: .75rem; gap: 12px; }
.btn[disabled] { opacity: .6; cursor: progress; }

.arr { width: 20px; height: 10px; flex: none; }
.arr path { fill: none; stroke: currentColor; stroke-width: 1.3; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding-block: 6px;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 100% 1px;
  transition: background-size .6s var(--ease), color .3s;
}
.link-arrow:hover { background-size: 0 1px; background-position: 100% 100%; color: var(--accent); }
.link-arrow .arr { transition: transform .6s var(--ease); }
.link-arrow:hover .arr { transform: translateX(5px); }

.text-link {
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 100% / 0 1px;
  transition: background-size .5s var(--ease), color .3s;
}
.text-link:hover { background-size: 100% 1px; color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: transform .6s var(--ease), background-color .4s, box-shadow .4s;
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--rule);
  transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease);
}
.site-header.is-scrolled { background: rgba(245, 247, 249, .9); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
.site-header.is-scrolled::after { transform: scaleX(1); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; transition: transform .8s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-90deg); }
.brand-word { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; letter-spacing: -.01em; line-height: 1; }
.brand-word span { font-family: var(--sans); font-size: .66rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; margin-left: 6px; color: var(--muted); vertical-align: 3px; }
.brand--light { color: var(--on-dark); }
.brand--light .brand-word span { color: var(--on-dark-muted); }

.primary-nav ul { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.primary-nav a { position: relative; font-size: .9375rem; font-weight: 500; padding-block: 8px; color: var(--ink-2); transition: color .3s; }
.primary-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease);
}
.primary-nav a:not(.nav-cta):hover { color: var(--ink); }
.primary-nav a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.primary-nav a[aria-current="page"]:not(.nav-cta) { color: var(--ink); }
.primary-nav a[aria-current="page"]:not(.nav-cta)::after { transform: scaleX(1); background: var(--accent); height: 2px; }
.primary-nav .nav-cta {
  display: inline-block; padding: 11px 20px; border: 1px solid var(--ink); color: var(--ink);
  font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s;
}
.primary-nav .nav-cta:hover, .primary-nav .nav-cta[aria-current="page"] { background: var(--ink); color: var(--paper); }

.nav-toggle { display: none; position: relative; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink); transition: transform .5s var(--ease), top .5s var(--ease), background-color .3s; }
.nav-toggle-bars { top: 18px; }
.nav-toggle-bars::before { content: ""; left: 0; right: 0; top: 7px; }
.nav-open .nav-toggle-bars { top: 21px; transform: rotate(45deg); background: var(--on-dark); }
.nav-open .nav-toggle-bars::before { top: 0; transform: rotate(-90deg); background: var(--on-dark); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 90;
  background: var(--ink); color: var(--on-dark);
  display: flex; align-items: flex-end;
  padding-bottom: 48px;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .8s var(--ease-io), visibility 0s .8s;
}
.nav-open .mobile-nav { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .8s var(--ease-io), visibility 0s; }
.nav-open .site-header { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; transform: none; }
.nav-open .site-header::after { transform: scaleX(0); }
.nav-open .site-header .brand { color: var(--on-dark); }
.nav-open .site-header .brand-word span { color: var(--on-dark-muted); }
.nav-open .brand-mark rect:nth-child(2), .nav-open .brand-mark rect:nth-child(3) { fill: var(--ink); }
.mobile-nav ol li { border-top: 1px solid var(--rule-dark); overflow: hidden; }
.mobile-nav ol li:last-child { border-bottom: 1px solid var(--rule-dark); }
.mobile-nav a {
  display: flex; align-items: baseline; gap: 18px; padding: 14px 0;
  font-family: var(--serif); font-size: clamp(2rem, 8vw, 3.2rem); font-weight: 350; line-height: 1.1; letter-spacing: -.02em;
  transform: translateY(100%); transition: transform .8s var(--ease), color .3s;
}
.mobile-nav a span { font-family: var(--sans); font-size: .75rem; letter-spacing: .14em; color: var(--accent-bright); }
.mobile-nav a[aria-current="page"] { font-style: italic; }
.nav-open .mobile-nav a { transform: none; }
.nav-open .mobile-nav li:nth-child(1) a { transition-delay: .18s; }
.nav-open .mobile-nav li:nth-child(2) a { transition-delay: .23s; }
.nav-open .mobile-nav li:nth-child(3) a { transition-delay: .28s; }
.nav-open .mobile-nav li:nth-child(4) a { transition-delay: .33s; }
.nav-open .mobile-nav li:nth-child(5) a { transition-delay: .38s; }
.mobile-nav-note { margin-top: 28px; font-size: .875rem; color: var(--on-dark-muted); }
.nav-open { overflow: hidden; }

/* ---------- Page transition ---------- */
.curtain { position: fixed; inset: 0; z-index: 150; background: var(--paper); pointer-events: none; opacity: 0; transition: opacity .45s var(--ease-io); }
.is-leaving .curtain { opacity: 1; }
.js main { animation: page-in 1s var(--ease) both; }
@keyframes page-in { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] {
  opacity: 0; transform: translate3d(0, 30px, 0);
  transition: opacity 1.1s var(--ease) var(--d, 0s), transform 1.3s var(--ease) var(--d, 0s);
}
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="line"] { opacity: 1; transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) var(--d, 0s); }
.js [data-reveal="mask"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1.5s var(--ease-io) var(--d, 0s); }
.js [data-reveal="zoom"] { opacity: 1; transform: none; clip-path: inset(8% 6% 8% 6%); transition: clip-path 1.6s var(--ease-io) var(--d, 0s); }
.js [data-reveal="zoom"] img { transform: scale(1.18); transition: transform 2.6s var(--ease) var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
.js [data-reveal="zoom"].is-in img { transform: scale(1); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(64px, 8vw, 112px); }
.section--paper2 { background: var(--paper-2); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--dark .eyebrow, .section--dark .label { color: var(--on-dark-muted); }
.section--dark .label span { color: var(--accent-bright); }
.section--dark .label span::after { background: var(--rule-dark); }
.section--dark .h2 em, .section--dark .h1 em, .section--dark .serif em, .section--dark .h3 em { color: var(--accent-bright); }
.section--dark .lede, .section--dark .body-lg { color: var(--on-dark-muted); }
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }
.section--dark .rule { background: var(--rule-dark); }

.section-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.section-head > :first-child { grid-column: 1 / span 7; }
.section-head > :last-child:not(:first-child) { grid-column: 9 / -1; }
.section-head .label { margin-bottom: 28px; }

/* ---------- Home: hero ---------- */
.hero { padding-top: clamp(40px, 7vw, 104px); }
.hero-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: end; }
.hero-head { grid-column: 1 / span 9; }
.hero-head .eyebrow { margin-bottom: clamp(28px, 3.5vw, 48px); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero-title .line > span { display: block; }
.js .hero-title .line > span { transform: translate3d(0, 108%, 0); transition: transform 1.4s var(--ease); transition-delay: calc(var(--i, 0) * .1s + .15s); }
.js .hero .eyebrow, .js .hero-aside > * { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.js .hero .eyebrow { transition-delay: .05s; }
.js .hero-aside > :nth-child(1) { transition-delay: .55s; }
.js .hero-aside > :nth-child(2) { transition-delay: .7s; }
.is-ready .hero-title .line > span, .is-ready .hero .eyebrow, .is-ready .hero-aside > * { transform: none; opacity: 1; }
.hero-aside { grid-column: 10 / -1; padding-bottom: 12px; }
.hero-aside p { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.65; margin-bottom: 32px; }
.hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }

.hero-figure { margin-top: clamp(56px, 7vw, 104px); position: relative; }
.figure-media { position: relative; overflow: hidden; background: var(--ink); }
.figure-media .parallax { will-change: transform; }
.figure-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-figure .figure-media { aspect-ratio: 16 / 6.6; }
.hero-figure .figure-media .parallax { position: absolute; inset: -8% 0; }
.js .hero-figure .figure-media { clip-path: inset(14% 0 0 0); transition: clip-path 1.8s var(--ease-io) .5s; }
.js .hero-figure .figure-media img { transform: scale(1.22); transition: transform 3.2s var(--ease) .5s; }
.is-ready .hero-figure .figure-media { clip-path: inset(0 0 0 0); }
.is-ready .hero-figure .figure-media img { transform: scale(1); }
.figure-caption { display: flex; justify-content: space-between; gap: 24px; margin-top: 16px; font-size: .8125rem; color: var(--muted); }
.figure-caption b { font-weight: 600; color: var(--ink); letter-spacing: .08em; text-transform: uppercase; font-size: .72rem; margin-right: 10px; }

.hero-index { position: absolute; left: clamp(20px, 3vw, 44px); bottom: clamp(20px, 3vw, 40px); display: flex; gap: clamp(20px, 3vw, 48px); color: var(--on-dark); z-index: 2; }
.hero-index li { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); }
.hero-index li span { display: block; color: var(--on-dark); font-family: var(--serif); font-size: 1.15rem; letter-spacing: 0; text-transform: none; margin-top: 2px; }

/* ---------- Home: perspective ---------- */
.perspective-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.perspective-grid .label { grid-column: 1 / span 3; align-self: start; padding-top: 14px; }
.statement { grid-column: 4 / -1; font-family: var(--serif); font-weight: 330; font-size: clamp(1.75rem, 3.3vw, 3.05rem); line-height: 1.18; letter-spacing: -.018em; }
.statement em { font-style: italic; color: var(--accent); }
.markers { grid-column: 4 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: clamp(56px, 7vw, 96px); }
.marker { border-top: 1px solid var(--ink); padding-top: 22px; }
.marker h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 400; margin-bottom: 10px; letter-spacing: -.01em; }
.marker p { font-size: .97rem; color: var(--muted); line-height: 1.6; }

/* ---------- Home: capabilities index ---------- */
.cap-list { border-bottom: 1px solid var(--rule); counter-reset: cap; }
.cap-row a {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 90px minmax(0, 1.25fr) minmax(0, 1.5fr) 56px; gap: var(--gap); align-items: baseline;
  padding: clamp(26px, 3vw, 40px) 0;
  border-top: 1px solid var(--rule);
}
.cap-row a::before { content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1; background: var(--paper-2); transform: scaleY(0); transform-origin: bottom; transition: transform .7s var(--ease); }
.cap-row a:hover::before, .cap-row a:focus-visible::before { transform: scaleY(1); }
.cap-num { font-size: .8125rem; font-weight: 600; letter-spacing: .1em; color: var(--accent); font-variant-numeric: tabular-nums; }
.cap-title { font-family: var(--serif); font-size: clamp(1.6rem, 2.7vw, 2.4rem); font-weight: 350; line-height: 1.1; letter-spacing: -.018em; transition: transform .8s var(--ease), color .4s; }
.cap-desc { color: var(--muted); font-size: 1rem; line-height: 1.6; max-width: 52ch; }
.cap-arrow { justify-self: end; align-self: center; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--rule-strong); border-radius: 50%; transition: background-color .5s var(--ease), color .5s, border-color .5s; }
.cap-arrow .arr { width: 16px; transition: transform .6s var(--ease); }
.cap-row a:hover .cap-title { transform: translateX(14px); color: var(--accent); }
.cap-row a:hover .cap-arrow { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cap-row a:hover .cap-arrow .arr { transform: translateX(3px); }

/* ---------- Home: stages ---------- */
.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--rule-dark); }
.stage { padding: clamp(32px, 4vw, 56px) clamp(20px, 3vw, 44px) 0 0; position: relative; }
.stage + .stage { padding-left: clamp(20px, 3vw, 44px); border-left: 1px solid var(--rule-dark); }
.stage-num { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(3.5rem, 6vw, 5.5rem); line-height: 1; color: var(--accent-bright); margin-bottom: clamp(28px, 4vw, 56px); }
.stage h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.15; margin-bottom: 16px; letter-spacing: -.01em; }
.stage p { color: var(--on-dark-muted); font-size: 1rem; }
.stage ul { margin-top: 24px; border-top: 1px solid var(--rule-dark); }
.stage li { padding: 12px 0; border-bottom: 1px solid var(--rule-dark); font-size: .9375rem; color: var(--on-dark); }

/* ---------- Insight cards ---------- */
.cards { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(28px, 3vw, 48px) var(--gap); }
.card { grid-column: span 4; display: flex; flex-direction: column; }
.card--wide { grid-column: span 6; }
.card--third { grid-column: span 3; }
.card a.card-link { display: flex; flex-direction: column; height: 100%; }
.card-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink); margin-bottom: 24px; }
.card-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.78) contrast(1.03); transition: transform 1.6s var(--ease), filter 1s var(--ease); }
.card-link:hover .card-media img { transform: scale(1.06); filter: saturate(1) contrast(1.03); }
.figure-media img { filter: saturate(.8) contrast(1.04); }
.hero-figure .figure-media::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(12,27,46,0) 45%, rgba(12,27,46,.72) 100%); }
.card-media::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.0); transition: border-color .6s; pointer-events: none; }
.card-kicker { display: flex; justify-content: space-between; gap: 16px; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.card-kicker time { color: var(--muted); font-weight: 500; }
.card-title { font-family: var(--serif); font-weight: 380; font-size: clamp(1.45rem, 1.9vw, 1.85rem); line-height: 1.15; letter-spacing: -.012em; margin-bottom: 12px; }
.card-title span { background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px; transition: background-size .7s var(--ease); padding-bottom: 2px; }
.card-link:hover .card-title span { background-size: 100% 1px; }
.card-dek { color: var(--muted); font-size: .97rem; line-height: 1.6; }
.card-meta { margin-top: auto; padding-top: 20px; font-size: .8125rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { border-top: 1px solid var(--rule); }
.cta-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: end; }
.cta-grid .h1 { grid-column: 1 / span 8; }
.cta-grid .cta-side { grid-column: 9 / -1; }
.cta-side p { color: var(--ink-2); margin-bottom: 28px; }

/* ---------- Interior page hero ---------- */
.page-hero { padding-top: clamp(48px, 7vw, 112px); padding-bottom: clamp(56px, 7vw, 104px); position: relative; }
.page-hero-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: end; }
.page-hero .crumbs { grid-column: 1 / -1; margin-bottom: clamp(32px, 4vw, 56px); display: flex; gap: 10px; font-size: .8125rem; color: var(--muted); }
.page-hero .crumbs a:hover { color: var(--accent); }
.page-hero .eyebrow { grid-column: 1 / -1; margin-bottom: 4px; }
.page-hero .h1, .page-hero .display { grid-column: 1 / span 9; }
.page-hero .page-lede { grid-column: 1 / span 7; margin-top: clamp(28px, 3vw, 44px); }
.page-hero .page-hero-aside { grid-column: 9 / -1; align-self: end; }
.page-hero-rule { margin-top: clamp(56px, 7vw, 96px); }
.page-hero .h1 .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.page-hero .h1 .line > span { display: block; }
.js .page-hero .h1 .line > span { transform: translate3d(0, 108%, 0); transition: transform 1.3s var(--ease); transition-delay: calc(var(--i, 0) * .1s + .1s); }
.is-ready .page-hero .h1 .line > span { transform: none; }

/* ---------- Split (label + content) ---------- */
.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.split-label { grid-column: 1 / span 3; }
.split-label .label { position: sticky; top: calc(var(--header-h) + 32px); }
.split-body { grid-column: 4 / -1; }
.split-body .h2 { margin-bottom: clamp(32px, 4vw, 56px); max-width: 18ch; }
.split-body .lede { max-width: 40ch; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap) clamp(32px, 4vw, 64px); margin-top: clamp(36px, 4vw, 56px); }
.cols-2 p { color: var(--ink-2); }
.cols-2 p + p { margin-top: 1em; }

/* ---------- About: approach timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); position: relative; margin-top: clamp(48px, 6vw, 80px); }
.timeline-track { position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--rule-strong); }
.tl-step { position: relative; padding-top: 44px; }
.tl-step::before { content: ""; position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--paper); border: 1px solid var(--ink); transition: background-color .6s; }
.tl-step.is-in::before { background: var(--accent); border-color: var(--accent); }
.tl-step .tl-num { font-size: .75rem; letter-spacing: .14em; font-weight: 600; color: var(--accent); }
.tl-step h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.1vw, 1.9rem); margin: 10px 0 14px; letter-spacing: -.01em; }
.tl-step p { color: var(--muted); font-size: .98rem; }

/* ---------- About: principles ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.principle { padding: clamp(28px, 3vw, 44px) clamp(20px, 2.4vw, 40px) clamp(36px, 4vw, 56px) 0; border-bottom: 1px solid var(--rule); position: relative; transition: background-color .6s var(--ease); }
.principle:not(:nth-child(3n+1)) { padding-left: clamp(20px, 2.4vw, 40px); border-left: 1px solid var(--rule); }
.principle-num { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--accent); margin-bottom: clamp(36px, 5vw, 72px); display: block; }
.principle h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.45rem, 2vw, 1.8rem); line-height: 1.15; margin-bottom: 14px; letter-spacing: -.01em; }
.principle p { color: var(--muted); font-size: .98rem; }

/* ---------- About: commitment ---------- */
.commit-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.commit-grid .label { grid-column: 1 / -1; margin-bottom: clamp(32px, 4vw, 56px); }
.commit-quote { grid-column: 1 / span 7; font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 3.8vw, 3.6rem); line-height: 1.1; letter-spacing: -.02em; }
.commit-quote em { font-style: italic; color: var(--accent-bright); }
.commit-list { grid-column: 9 / -1; align-self: end; border-top: 1px solid var(--rule-dark); }
.commit-list li { padding: 22px 0; border-bottom: 1px solid var(--rule-dark); }
.commit-list h3 { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; margin-bottom: 6px; }
.commit-list p { color: var(--on-dark-muted); font-size: .95rem; }

/* ---------- Services ---------- */
.svc-layout { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.svc-index { grid-column: 1 / span 3; }
.svc-index nav { position: sticky; top: calc(var(--header-h) + 32px); }
.svc-index p { margin-bottom: 20px; }
.svc-index ol { border-top: 1px solid var(--rule); }
.svc-index a { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: .9375rem; color: var(--muted); transition: color .3s, padding-left .5s var(--ease); }
.svc-index a span { font-size: .75rem; font-weight: 600; letter-spacing: .08em; color: var(--accent); padding-top: 3px; }
.svc-index a:hover { color: var(--ink); padding-left: 6px; }
.svc-index a.is-current { color: var(--ink); font-weight: 600; }
.svc-list { grid-column: 5 / -1; }
.svc { padding-block: clamp(48px, 6vw, 88px); border-top: 1px solid var(--rule); }
.svc:first-child { border-top: 1px solid var(--ink); padding-top: clamp(36px, 4vw, 56px); }
.svc-head { display: grid; grid-template-columns: 70px 1fr; gap: 0 var(--gap); margin-bottom: clamp(24px, 3vw, 40px); }
.svc-num { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--accent); padding-top: .6em; }
.svc-title { font-family: var(--serif); font-weight: 350; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.05; letter-spacing: -.02em; }
.svc-desc { margin-left: calc(70px + var(--gap)); max-width: 60ch; }
.svc-cols { margin-left: calc(70px + var(--gap)); display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap) clamp(28px, 3.5vw, 56px); margin-top: clamp(28px, 3.5vw, 48px); }
.svc-cols h3 { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.svc-cols li { padding: 13px 0 13px 22px; border-bottom: 1px solid var(--rule); font-size: .97rem; line-height: 1.5; color: var(--ink-2); position: relative; }
.svc-cols li::before { content: ""; position: absolute; left: 0; top: 1.3em; width: 10px; height: 1px; background: var(--accent); }
.svc-cols .q li { font-family: var(--serif); font-size: 1.1rem; font-style: italic; }

.models { border-top: 1px solid var(--rule-dark); }
.model-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 3fr); gap: var(--gap); padding: clamp(28px, 3.5vw, 44px) 0; border-bottom: 1px solid var(--rule-dark); align-items: baseline; transition: padding-left .7s var(--ease); }
.model-row:hover { padding-left: 12px; }
.model-row h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.3vw, 2.1rem); letter-spacing: -.012em; }
.model-row h3 span { display: block; font-family: var(--sans); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-bright); margin-bottom: 8px; font-weight: 600; }
.model-row p { color: var(--on-dark-muted); font-size: .98rem; }
.model-row dl { margin: 0; font-size: .9rem; }
.model-row dt { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); font-weight: 600; }
.model-row dd { margin: 4px 0 0; color: var(--on-dark); }

/* ---------- Insights index ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px 4px; border-bottom: 1px solid var(--rule); padding-bottom: 20px; margin-bottom: clamp(40px, 5vw, 72px); align-items: center; }
.filters-label { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-right: 16px; }
.filter-btn { background: none; border: 1px solid transparent; padding: 8px 14px; font-size: .875rem; color: var(--muted); cursor: pointer; transition: color .3s, border-color .3s, background-color .3s; }
.filter-btn:hover { color: var(--ink); border-color: var(--rule); }
.filter-btn[aria-pressed="true"] { color: var(--paper); background: var(--ink); border-color: var(--ink); }

.feature { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: center; margin-bottom: clamp(64px, 8vw, 120px); }
.feature-media { grid-column: 1 / span 7; }
.feature-media .card-media { aspect-ratio: 16 / 11; margin: 0; }
.feature-body { grid-column: 9 / -1; }
.feature-body .card-title { font-size: clamp(2rem, 3.4vw, 3.1rem); line-height: 1.06; margin-bottom: 20px; }
.feature-body .card-dek { font-size: 1.0625rem; margin-bottom: 28px; }
.feature-tag { display: inline-block; font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; padding: 6px 10px; border: 1px solid var(--accent); color: var(--accent); margin-bottom: 24px; }
.post-grid .card { grid-column: span 6; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.post-grid .card.is-filtered { display: none; }
.post-grid .card.is-entering { animation: card-in .8s var(--ease) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.empty-note { display: none; color: var(--muted); }

.subscribe { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: end; }
.subscribe .h2 { grid-column: 1 / span 7; }
.subscribe > div { grid-column: 9 / -1; }
.subscribe p { color: var(--on-dark-muted); margin-bottom: 28px; }

/* ---------- Article ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; background: transparent; }
.progress span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.article-head { padding-top: clamp(48px, 7vw, 104px); }
.article-head .crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: .8125rem; color: var(--muted); margin-bottom: clamp(32px, 4vw, 56px); }
.article-head .crumbs a:hover { color: var(--accent); }
.article-kicker { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 24px; display: block; }
.article-title { font-family: var(--serif); font-weight: 340; font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: 1.01; letter-spacing: -.026em; max-width: 16ch; }
.article-title em { font-style: italic; color: var(--accent); }
.article-dek { font-family: var(--serif); font-size: clamp(1.25rem, 1.8vw, 1.6rem); line-height: 1.4; color: var(--ink-2); max-width: 42ch; margin-top: clamp(24px, 3vw, 36px); font-weight: 350; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: clamp(36px, 4vw, 56px); padding-top: 20px; border-top: 1px solid var(--rule); font-size: .875rem; color: var(--muted); }
.article-meta b { color: var(--ink); font-weight: 600; }
.article-figure { margin-top: clamp(40px, 5vw, 72px); }
.article-figure .card-media { aspect-ratio: 21 / 9; margin: 0; }
.article-figure figcaption { margin-top: 12px; font-size: .8125rem; color: var(--muted); }

.article-body { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); padding-block: clamp(56px, 7vw, 104px); }
.article-aside { grid-column: 1 / span 3; }
.article-aside .sticky { position: sticky; top: calc(var(--header-h) + 32px); font-size: .875rem; color: var(--muted); }
.article-aside h2 { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }
.article-aside ol { border-top: 1px solid var(--rule); counter-reset: toc; }
.article-aside li { border-bottom: 1px solid var(--rule); }
.article-aside li a { display: block; padding: 10px 0; transition: color .3s, padding-left .4s var(--ease); }
.article-aside li a:hover, .article-aside li a.is-current { color: var(--accent); padding-left: 6px; }
.share { margin-top: 32px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.share button { background: none; border: 0; padding: 0; cursor: pointer; color: var(--muted); font-size: .875rem; }
.share button:hover { color: var(--accent); }

.prose { grid-column: 4 / span 7; font-family: var(--serif); font-size: clamp(1.15rem, 1.35vw, 1.28rem); line-height: 1.68; color: var(--ink-2); font-weight: 380; }
.prose > * + * { margin-top: 1.15em; }
.prose > p:first-child::first-letter { float: left; font-size: 4.6em; line-height: .82; padding: .06em .1em 0 0; color: var(--accent); font-weight: 400; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.3vw, 2.1rem); line-height: 1.15; letter-spacing: -.014em; color: var(--ink); margin-top: 2.2em; padding-top: 1.1em; border-top: 1px solid var(--rule); }
.prose h2 + p { margin-top: .8em; }
.prose strong { font-weight: 560; color: var(--ink); }
.prose ul, .prose ol { padding-left: 0; }
.prose ul li, .prose ol li { position: relative; padding-left: 1.6em; }
.prose ul li + li, .prose ol li + li { margin-top: .55em; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .8em; width: .8em; height: 1px; background: var(--accent); }
.prose ol { counter-reset: li; }
.prose ol li::before { counter-increment: li; content: counter(li) "."; position: absolute; left: 0; color: var(--accent); font-style: italic; }
.pull { margin: 2em 0 !important; padding: 1.2em 0 1.2em 1.4em; border-left: 2px solid var(--accent); font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.25; font-style: italic; color: var(--ink); font-weight: 340; letter-spacing: -.01em; }
.callout { margin: 2.2em 0 !important; padding: 28px 32px 30px; background: var(--paper-2); border-top: 2px solid var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.6; }
.callout h3 { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.callout ol li + li { margin-top: .7em; }
.article-note { margin-top: 2.6em !important; padding-top: 1.2em; border-top: 1px solid var(--rule); font-family: var(--sans); font-size: .875rem; color: var(--muted); line-height: 1.6; }

.article-cta { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: end; }
.article-cta .h2 { grid-column: 1 / span 7; }
.article-cta > div { grid-column: 9 / -1; }
.article-cta p { color: var(--on-dark-muted); margin-bottom: 28px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); padding-top: clamp(48px, 7vw, 104px); padding-bottom: var(--section); }
.contact-intro { grid-column: 1 / span 5; }
.contact-intro .eyebrow { margin-bottom: 28px; }
.contact-intro .h1 { margin-bottom: 32px; }
.contact-intro .lede { margin-bottom: clamp(40px, 5vw, 64px); }
.next-steps { border-top: 1px solid var(--ink); }
.next-steps li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.next-steps span { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 1.1rem; }
.next-steps h3 { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; margin-bottom: 4px; }
.next-steps p { font-size: .95rem; color: var(--muted); }
.contact-note { margin-top: 32px; font-size: .9rem; color: var(--muted); display: flex; gap: 12px; }
.contact-note svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--accent); }

.form-wrap { grid-column: 7 / -1; position: relative; }
.form-panel { background: #FFFFFF; border: 1px solid var(--rule); padding: clamp(28px, 4vw, 56px); position: relative; }
.form-panel::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: var(--accent); }
.form-panel h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.2vw, 2rem); letter-spacing: -.012em; margin-bottom: 8px; }
.form-intro { color: var(--muted); font-size: .95rem; margin-bottom: clamp(28px, 3vw, 40px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.field { position: relative; margin-bottom: 26px; }
.field label { display: flex; align-items: baseline; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.field label .opt { margin-left: auto; font-weight: 500; letter-spacing: .04em; text-transform: none; color: var(--muted); font-size: .8rem; }
.field label .req { color: var(--accent); margin-left: 3px; }
.field input, .field select, .field textarea {
  width: 100%; display: block;
  background: transparent; border: 0; border-bottom: 1px solid var(--rule-strong); border-radius: 0;
  padding: 10px 0 12px; font-size: 1.0625rem; line-height: 1.4; color: var(--ink);
  transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230C1B2E' stroke-width='1.3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 2px center; background-size: 12px 8px; padding-right: 28px; cursor: pointer; }
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder, .field textarea::placeholder { color: #8E99A6; }
.field input, .field select, .field textarea { background-image: linear-gradient(var(--ink), var(--ink)); background-repeat: no-repeat; background-position: 0 100%; background-size: 0 2px; transition: background-size .6s var(--ease), border-color .3s; }
.field select { background-image: linear-gradient(var(--ink), var(--ink)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230C1B2E' stroke-width='1.3'/%3E%3C/svg%3E"); background-position: 0 100%, right 2px center; background-size: 0 2px, 12px 8px; }
.field input:focus, .field textarea:focus { outline: none; background-size: 100% 2px; }
.field select:focus { outline: none; background-size: 100% 2px, 12px 8px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-bottom-color: var(--error); box-shadow: 0 1px 0 0 var(--error); }
.field .error { display: none; margin-top: 8px; font-size: .8125rem; color: var(--error); font-weight: 500; }
.field.has-error .error { display: block; animation: err-in .4s var(--ease); }
@keyframes err-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.field .counter { position: absolute; right: 0; bottom: -22px; font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.field.has-error .counter { bottom: auto; top: 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-actions .btn .spinner { display: none; width: 14px; height: 14px; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.form-actions .btn.is-loading .spinner { display: block; }
.form-actions .btn.is-loading .arr { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.consent { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: .9375rem; line-height: 1.55; color: var(--ink-2); }
.form-status { margin-top: 16px; font-size: .9rem; color: var(--error); font-weight: 500; }
.form-status:empty { display: none; }

.form-success { display: none; padding: clamp(8px, 2vw, 24px) 0; }
.form-success.is-visible { display: block; animation: card-in .9s var(--ease) both; }
.form-success .check { width: 56px; height: 56px; border: 1px solid var(--accent); border-radius: 50%; display: grid; place-items: center; margin-bottom: 28px; color: var(--accent); }
.form-success .check svg { width: 22px; height: 22px; }
.form-success .check path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .9s var(--ease) .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form-success h2 { margin-bottom: 14px; }
.form-success p { color: var(--ink-2); margin-bottom: 28px; max-width: 46ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark); padding-top: clamp(80px, 10vw, 140px); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 48px; flex-wrap: wrap; padding-bottom: clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--rule-dark); }
.footer-statement { font-family: var(--serif); font-weight: 300; font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: 1.03; letter-spacing: -.025em; max-width: 15ch; }
.footer-statement em { font-style: italic; color: var(--accent-bright); }
.footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1.3fr 1.1fr 1fr; gap: 40px var(--gap); padding-block: clamp(48px, 6vw, 80px); }
.footer-brand p { margin-top: 20px; color: var(--on-dark-muted); font-size: .9375rem; max-width: 36ch; }
.footer-col h2 { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 18px; }
.footer-col li + li { margin-top: 10px; }
.footer-col a { font-size: .9375rem; color: var(--on-dark); background: linear-gradient(var(--accent-bright), var(--accent-bright)) no-repeat 0 100% / 0 1px; transition: background-size .5s var(--ease), color .3s; padding-bottom: 2px; }
.footer-col a:hover { background-size: 100% 1px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 24px 0 32px; border-top: 1px solid var(--rule-dark); font-size: .8125rem; color: var(--on-dark-muted); }
.back-top { color: var(--on-dark); transition: color .3s; }
.back-top:hover { color: var(--accent-bright); }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: flex; align-items: center; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .primary-nav ul { gap: 22px; }
  .hero-head { grid-column: 1 / -1; }
  .hero-aside { grid-column: 1 / span 8; padding-top: 24px; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
  .cap-row a { grid-template-columns: 64px minmax(0, 1fr) 48px; }
  .cap-desc { grid-column: 2 / 3; margin-top: -8px; }
  .cap-arrow { grid-row: 1; grid-column: 3; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .timeline-track { display: none; }
  .tl-step { border-top: 1px solid var(--rule-strong); padding-top: 36px; }
  .tl-step::before { top: -8px; }
  .feature-body { grid-column: 8 / -1; }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .primary-nav { display: none; }
  .nav-toggle { display: block; }
  .section-head > :first-child, .section-head > :last-child:not(:first-child) { grid-column: 1 / -1; }
  .hero-aside { grid-column: 1 / -1; }
  .hero-figure .figure-media { aspect-ratio: 4 / 3; }
  .hero-index { display: none; }
  .figure-caption { flex-direction: column; gap: 4px; }
  .perspective-grid .label, .statement, .markers { grid-column: 1 / -1; }
  .markers { grid-template-columns: 1fr; gap: 28px; }
  .stages { grid-template-columns: 1fr; }
  .stage, .stage + .stage { padding: 32px 0 40px; border-left: 0; border-bottom: 1px solid var(--rule-dark); }
  .card, .card--wide { grid-column: 1 / -1; }
  .cards--home .card:not(:first-child) { grid-column: span 6; }
  .cta-grid .h1, .cta-grid .cta-side { grid-column: 1 / -1; }
  .page-hero .h1, .page-hero .display, .page-hero .page-lede, .page-hero .page-hero-aside { grid-column: 1 / -1; }
  .split-label, .split-body { grid-column: 1 / -1; }
  .split-label .label { position: static; margin-bottom: 8px; }
  .cols-2 { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr 1fr; }
  .principle, .principle:not(:nth-child(3n+1)) { padding: 28px 20px 36px 0; border-left: 0; }
  .principle:nth-child(2n) { padding-left: 20px; border-left: 1px solid var(--rule); }
  .commit-quote, .commit-list { grid-column: 1 / -1; }
  .commit-list { margin-top: 40px; }
  .svc-index { display: none; }
  .svc-list { grid-column: 1 / -1; }
  .model-row { grid-template-columns: 1fr; gap: 12px; }
  .feature-media, .feature-body { grid-column: 1 / -1; }
  .subscribe .h2, .subscribe > div { grid-column: 1 / -1; }
  .article-aside { display: none; }
  .prose { grid-column: 1 / -1; }
  .article-cta .h2, .article-cta > div { grid-column: 1 / -1; }
  .contact-intro, .form-wrap { grid-column: 1 / -1; }
  .form-wrap { margin-top: 48px; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .cards--home .card:not(:first-child), .post-grid .card { grid-column: 1 / -1; }
  .cap-row a { grid-template-columns: 1fr 44px; gap: 10px 16px; }
  .cap-num { grid-column: 1 / -1; }
  .cap-title { grid-column: 1; }
  .cap-arrow { grid-column: 2; grid-row: 2; width: 40px; height: 40px; }
  .cap-desc { grid-column: 1 / -1; margin-top: 0; }
  .cap-row a:hover .cap-title { transform: translateX(6px); }
  .principles { grid-template-columns: 1fr; }
  .principle, .principle:nth-child(2n) { padding: 28px 0 32px; border-left: 0; }
  .timeline { grid-template-columns: 1fr; }
  .svc-desc, .svc-cols { margin-left: 0; }
  .svc-cols { grid-template-columns: 1fr; }
  .svc-head { grid-template-columns: 1fr; }
  .svc-num { padding-top: 0; margin-bottom: 8px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-top .btn { width: 100%; justify-content: space-between; }
  .btn { padding: 16px 22px; }
  .hero-actions .btn { width: 100%; justify-content: space-between; }
  .article-figure .card-media { aspect-ratio: 4 / 3; }
  .filters-label { width: 100%; margin-bottom: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js .hero-title .line > span, .js .page-hero .h1 .line > span, .js .hero .eyebrow, .js .hero-aside > * { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .js .hero-figure .figure-media, .js [data-reveal="zoom"] { clip-path: none !important; }
  .js .hero-figure .figure-media img, .js [data-reveal="zoom"] img { transform: none !important; }
}

@media print {
  .site-header, .mobile-nav, .site-footer, .progress, .curtain, .article-aside { display: none !important; }
  main { padding: 0; }
  .js [data-reveal] { opacity: 1; transform: none; clip-path: none; }
}
