/* ==========================================================================
   Delta · financial advisory & accounting template (Bemorex)
   BEM blocks · tokens first · IBM Plex Sans + IBM Plex Mono · no italics
   Tokens first: :root colours and the --fs-* scale drive the whole system.
   ========================================================================== */

:root {
  /* colour */
  --paper: #F3F2EE;        /* page background */
  --paper-2: #E8E7E0;      /* alternate sections */
  --card: #FBFAF7;         /* cards on paper */
  --ink: #121415;          /* text, dark sections */
  --ink-2: #1D2022;        /* raised surfaces on dark */
  --muted: #575C60;        /* secondary text on paper (AA 6.2:1) */
  --rule: #D3D2CA;         /* hairlines on paper */
  --on-dark: #EEEFE9;      /* text on ink */
  --on-dark-muted: #A7ACA7;/* secondary text on ink (AA 7.9:1) */
  --rule-dark: #2E3336;    /* hairlines on ink */
  --lime: #C9F24D;         /* the river, primary action, one accent */
  --lime-ink: #3F5500;     /* lime for text on paper (AA 7.4:1) */
  --clay: #E0784A;         /* tax, warnings */
  --clay-ink: #9C3F17;     /* clay for text on paper (AA 5.6:1) */
  --stone: #9CA29A;        /* cost streams */

  /* type */
  --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --fs-display: clamp(3.4rem, 10.4vw, 11.5rem);
  --fs-page: clamp(3.2rem, 9vw, 9.5rem);
  --fs-h2: clamp(2.4rem, 6vw, 6rem);
  --fs-h3: clamp(1.35rem, 1.9vw, 1.875rem);
  --fs-lead: clamp(1.125rem, 1.35vw, 1.375rem);
  --fs-body: 1.0625rem;
  --fs-small: .875rem;
  --fs-mono: .8125rem;

  /* space & shape */
  --gutter: clamp(16px, 4.2vw, 64px);
  --max: 1520px;
  --section: clamp(80px, 9.5vw, 156px);
  --radius: 20px;
  --radius-s: 12px;
  --header-h: 76px;

  /* motion (documented in style-guide.html) */
  --ease: cubic-bezier(.2, .7, .1, 1);
  --t-hover: .4s;
  --t-appear: .7s;
  --t-reveal: .9s;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--fs-body)/1.6 var(--font); font-feature-settings: 'tnum' 0; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
p, li, dd, blockquote, figcaption, td { text-wrap: pretty; } /* no one-word last lines */
h1, h2, h3, .section-intro, .page-hero__lead, .book__lead, .footer__lead { text-wrap: balance; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
em, i, cite { font-style: normal; }
address { font-style: normal; }
.mono { font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: .02em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.river :focus-visible, .quotes :focus-visible, .footer :focus-visible, .hero :focus-visible, .dark :focus-visible { outline-color: var(--lime); }
.page-home .header:not(.is-solid) :focus-visible { outline-color: #fff; } /* header over the dark hero photo */
.menu :focus-visible { outline-color: var(--lime); }
::selection { background: var(--lime); color: var(--ink); }

.skip { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--lime); color: var(--ink); padding: 12px 18px; border-radius: 999px; font-weight: 600; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

/* ---------- type helpers ---------- */
.eyebrow { font: 500 var(--fs-mono)/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: .65em; }
.eyebrow::before { content: ''; width: 18px; height: 2px; background: currentColor; flex: none; }
.eyebrow--light { color: rgba(255, 255, 255, .86); }
.eyebrow--lime { color: var(--lime); }
.section-title { font-size: var(--fs-h2); font-weight: 500; line-height: .98; letter-spacing: -.045em; max-width: 14ch; text-wrap: balance; }
.section-title--light { color: var(--on-dark); }
.section-intro { font-size: var(--fs-lead); line-height: 1.5; color: var(--muted); max-width: 46ch; }
.note { font: 400 var(--fs-mono)/1.5 var(--mono); color: var(--muted); margin-top: 24px; }
.line-mask { display: block; overflow: clip; padding-bottom: .06em; margin-bottom: -.06em; }

/* ---------- buttons & links ---------- */
.btn { --bg: var(--ink); --fg: var(--paper); display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent; background: var(--bg); color: var(--fg); font-weight: 500; font-size: 1rem; text-decoration: none; white-space: nowrap; cursor: pointer; position: relative; overflow: hidden; isolation: isolate; transition: transform var(--t-hover) var(--ease), background-color var(--t-hover) var(--ease); }
.btn::after { content: '→'; font-family: var(--mono); transition: transform var(--t-hover) var(--ease); }
.btn:hover::after { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn--lime { --bg: var(--lime); --fg: var(--ink); }
.btn--lime:hover { --bg: #D8FA6E; }
.btn--ink:hover { --bg: #000; }
.btn--glass { --bg: rgba(255, 255, 255, .12); --fg: #fff; border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--glass:hover { --bg: rgba(255, 255, 255, .22); }
.btn--line { --bg: transparent; --fg: var(--ink); border-color: var(--ink); }
.btn--line:hover { --bg: var(--ink); --fg: var(--paper); }
.btn--small { min-height: 42px; padding: 0 18px; font-size: .9375rem; }
.btn--small::after { display: none; }
.btn--block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; white-space: nowrap; }
.link-arrow::after { content: '→'; font-family: var(--mono); transition: transform var(--t-hover) var(--ease); }
.link-arrow:hover::after { transform: translateX(5px); }

/* ---------- header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--ink); transition: transform .45s var(--ease), background-color .3s, color .3s, box-shadow .3s; }
.header__bar { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.header.is-solid, body:not(.page-home) .header { background: rgba(243, 242, 238, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--rule); }
.page-home .header:not(.is-solid) { color: #fff; }
.page-home .header:not(.is-solid) .header__bar { padding-top: 10px; }
.header.is-hidden { transform: translateY(-110%); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 1.125rem; letter-spacing: -.02em; flex: none; }
.brand__mark { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.brand__mark circle { fill: var(--lime); stroke: none; }
.nav { display: flex; gap: clamp(14px, 1.8vw, 30px); margin-left: auto; }
.nav__link { text-decoration: none; font-size: .9375rem; font-weight: 500; position: relative; padding: 6px 0; }
.nav__link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform var(--t-hover) var(--ease); }
.nav__link:hover::after, .nav__link[aria-current='page']::after { transform: scaleX(1); transform-origin: left; }
.header__tools { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; font: 500 var(--fs-mono)/1 var(--mono); border: 1px solid currentColor; border-radius: 999px; padding: 3px; opacity: .9; }
.lang__link { text-decoration: none; padding: 7px 9px; border-radius: 999px; }
.lang__link[aria-current='true'] { background: var(--ink); color: var(--paper); }
.page-home .header:not(.is-solid) .lang__link[aria-current='true'] { color: var(--ink); background: #fff; }
.menu-toggle { display: none; align-items: center; gap: 10px; background: none; border: 0; padding: 10px 4px; cursor: pointer; font-weight: 500; }
.menu-toggle__icon { width: 22px; height: 10px; border-block: 2px solid currentColor; transition: transform .3s var(--ease); }
.menu-toggle[aria-expanded='true'] .menu-toggle__icon { transform: scaleY(.3); }
.menu { background: var(--ink); color: var(--on-dark); padding: 24px 0 40px; }
.menu__link { display: block; padding: 10px 0; font-size: clamp(1.8rem, 8vw, 2.6rem); font-weight: 500; letter-spacing: -.03em; text-decoration: none; border-bottom: 1px solid var(--rule-dark); }

@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header__tools { margin-left: auto; }
}
@media (max-width: 560px) {
  .header__cta { display: none; }
  .menu-toggle__label { display: none; }
  .brand__name { font-size: 1rem; }
}

/* ---------- page transition veil ---------- */
.veil { position: fixed; inset: 0; z-index: 90; background: var(--ink); transform: scaleY(0); transform-origin: 50% 100%; pointer-events: none; }
.veil::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--lime); }
.veil.is-covering { transition: transform .5s var(--ease); transform: scaleY(1); }
.veil.is-covered { transform: scaleY(1); }
.veil.is-uncovering { transition: transform .6s var(--ease); transform: scaleY(0); transform-origin: 50% 0; }

/* ---------- hero ---------- */
.hero { padding:0; }
.hero__frame { position: relative; border-radius:0; overflow: hidden; min-height: calc(100svh - 20px); display: flex; align-items: flex-end; color: #fff; background: var(--ink); }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 14, 14, .55) 0%, rgba(12, 14, 14, .08) 26%, rgba(12, 14, 14, .35) 52%, rgba(12, 14, 14, .9) 100%); }
.hero__content { position: relative; padding-top: calc(var(--header-h) + 72px); padding-bottom: clamp(24px, 3.4vw, 48px); display: grid; gap: clamp(18px, 2.4vw, 32px); }
.hero__title { font-size: var(--fs-display); font-weight: 500; line-height: .9; letter-spacing: -.055em; max-width: 12ch; }
.hero__foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.hero__copy { display: grid; gap: 24px; max-width: 620px; }
.hero__lead { font-size: var(--fs-lead); line-height: 1.5; color: rgba(255, 255, 255, .9); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.proof { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.proof__faces { display: flex; }
.proof__faces li + li { margin-left: -12px; }
.proof__faces img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ink); }
.proof__text { font-size: var(--fs-small); color: rgba(255, 255, 255, .88); }
.proof__stars { color: var(--lime); letter-spacing: .1em; }
.hero__river { width: 340px; display: grid; gap: 8px; padding: 18px 18px 16px; border-radius: 16px; background: rgba(16, 18, 18, .62); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); text-decoration: none; transition: transform var(--t-hover) var(--ease), border-color var(--t-hover); }
.hero__river:hover { transform: translateY(-4px); border-color: var(--lime); }
.hero__river-label { color: rgba(255, 255, 255, .78); font-size: .75rem; }
.hero__river-svg { width: 100%; height: auto; }
.hero__river-figure { font-size: 1.05rem; }
.hero__river-figure b { font-size: 2rem; font-weight: 500; letter-spacing: -.03em; color: var(--lime); font-feature-settings: 'tnum' 1; }
.hero__river-link { font: 500 var(--fs-mono)/1.3 var(--mono); color: var(--lime); }

@media (max-width: 900px) {
  .hero__foot { grid-template-columns: 1fr; }
  .hero__river { width: 100%; max-width: 420px; }
  .hero__frame { min-height: auto; }
  .hero__content { padding-top: calc(var(--header-h) + 120px); }
}
@media (max-width: 700px) {
  .hero__media img { object-position: 66% 30%; } /* portrait crop: keep the adviser's face in frame */
}
@media (max-width: 480px) {
  .hero { padding:0; }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* ---------- trust ---------- */
.trust { padding: clamp(40px, 5vw, 64px) 0 clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--rule); }
.trust__head { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.trust__title { font-weight: 500; font-size: var(--fs-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.certs { display: flex; gap: clamp(16px, 2.5vw, 36px); flex-wrap: wrap; }
.cert { display: flex; align-items: center; gap: 10px; font-size: var(--fs-small); color: var(--muted); max-width: 230px; line-height: 1.3; }
.cert svg { width: 34px; height: 34px; flex: none; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ticker { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker__track { display: flex; width: max-content; gap: clamp(40px, 6vw, 88px); animation: ticker 40s linear infinite; padding-inline: 20px; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.logo svg { height: 34px; width: auto; fill: var(--ink); opacity: .82; }
.logo__cut { fill: var(--paper); }
.logo__stroke { fill: none; stroke: var(--ink); stroke-width: 3; }
.logo__stroke--paper { stroke: var(--paper); stroke-width: 1.6; }
.logo__t { font-family: var(--font); font-size: 24px; letter-spacing: -.02em; }
.logo__t--500 { font-weight: 500; }
.logo__t--600 { font-weight: 600; letter-spacing: -.04em; }
.logo__t--caps { font-weight: 600; font-size: 19px; letter-spacing: .14em; }
.logo__t--mono { font-family: var(--mono); font-size: 20px; }
.logo__t--big { font-weight: 600; font-size: 34px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- river (signature) ---------- */
.river { background: var(--ink); color: var(--on-dark); padding: var(--section) 0; position: relative; overflow: hidden; }
.river__head { display: grid; gap: 22px; max-width: 980px; margin-bottom: clamp(40px, 5vw, 72px); }
.river__intro { font-size: var(--fs-lead); line-height: 1.55; color: var(--on-dark-muted); max-width: 60ch; }
.river__app { display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.river__controls { display: grid; gap: 26px; position: sticky; top: calc(var(--header-h) + 24px); }
.presets { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; min-width: 0; }
.presets__list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 500 .875rem/1 var(--font); padding: 11px 14px; border-radius: 999px; border: 1px solid var(--rule-dark); background: transparent; color: var(--on-dark); cursor: pointer; transition: background-color var(--t-hover), border-color var(--t-hover), color var(--t-hover); }
.chip:hover { border-color: var(--on-dark-muted); }
.chip[aria-pressed='true'], .chip[aria-checked='true'] { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.control { display: grid; gap: 10px; }
.control__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.control__label { font: 500 var(--fs-mono)/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-muted); padding: 0; }
.control__value { font-size: 1.375rem; font-weight: 500; letter-spacing: -.02em; font-feature-settings: 'tnum' 1; }
.control__hint { font-size: var(--fs-small); color: var(--on-dark-muted); line-height: 1.45; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; --p: 50%; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--lime) var(--p), var(--rule-dark) var(--p)); }
.range::-moz-range-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--lime) var(--p), var(--rule-dark) var(--p)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10px; border-radius: 50%; background: var(--on-dark); border: 5px solid var(--lime); transition: transform .2s var(--ease); }
.range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--on-dark); border: 5px solid var(--lime); }
.range:active::-webkit-slider-thumb { transform: scale(1.15); }
.range:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
.river__stage { min-width: 0; position: relative; }
.river__svg { width: 100%; height: auto; overflow: visible; display: none; }
.js .river.is-live .river__svg { display: block; }
.river__fallback { width: 100%; border-collapse: collapse; font-feature-settings: 'tnum' 1; }
.river__fallback caption { text-align: left; color: var(--on-dark-muted); padding-bottom: 12px; font-size: var(--fs-small); }
.river__fallback th, .river__fallback td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--rule-dark); font-weight: 400; }
.river__fallback td { text-align: right; }
.js .river.is-live .river__fallback { display: none; }
.river__legend { display: none; }
.js .river.is-live.is-narrow .river__legend { display: grid; gap: 0; margin-top: 16px; }
.legend__row { display: grid; grid-template-columns: 14px 1fr auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--rule-dark); font-size: .9375rem; }
.legend__sw { width: 14px; height: 14px; border-radius: 3px; }
.legend__val { font-feature-settings: 'tnum' 1; text-align: right; }
.legend__val small { display: block; color: var(--on-dark-muted); font: 400 .75rem/1.3 var(--mono); }
.rv-band { mix-blend-mode: normal; transition: opacity .3s; }
.rv-node { fill: var(--on-dark); }
.rv-label { fill: var(--on-dark); font: 500 15px/1 var(--font); letter-spacing: -.01em; }
.rv-label--big { font-size: 26px; letter-spacing: -.03em; }
.rv-sub { fill: var(--on-dark-muted); font: 400 12.5px/1 var(--mono); }
.rv-sub--lime { fill: var(--lime); }
.rv-sub--clay { fill: var(--clay); }
.rv-dot { fill: var(--ink); opacity: .55; }
.river__outcomes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--rule-dark); }
.outcome { padding: 24px 24px 0 0; display: grid; gap: 8px; align-content: start; }
.outcome + .outcome { padding-left: 24px; border-left: 1px solid var(--rule-dark); }
.outcome__label { font: 500 var(--fs-mono)/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--on-dark-muted); }
.outcome__value { font-size: clamp(2.4rem, 5vw, 4.75rem); font-weight: 500; letter-spacing: -.05em; line-height: 1; color: var(--lime); font-feature-settings: 'tnum' 1; }
.outcome:nth-child(2) .outcome__value { color: #F09A72; }
.outcome__sentence { grid-column: 1 / -1; margin-top: 28px; font-size: var(--fs-lead); color: var(--on-dark); max-width: 70ch; line-height: 1.5; }
.outcome__sentence:empty { display: none; }
.assumptions { margin-top: 32px; border-top: 1px solid var(--rule-dark); }
.assumptions__summary { cursor: pointer; padding: 20px 0; font: 500 var(--fs-mono)/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-muted); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.assumptions__summary::-webkit-details-marker { display: none; }
.assumptions__summary::after { content: '+'; font-size: 1.2rem; line-height: 1; }
.assumptions[open] .assumptions__summary::after { content: '−'; }
.assumptions__body { display: grid; gap: 16px; padding-bottom: 12px; color: var(--on-dark-muted); max-width: 80ch; }
.assumptions__list { display: grid; gap: 6px; font: 400 var(--fs-small)/1.5 var(--mono); }
.assumptions__list b { color: var(--on-dark); font-weight: 500; }
.assumptions__note { font-size: var(--fs-small); color: var(--on-dark); }

@media (max-width: 1100px) {
  .river__app { grid-template-columns: 1fr; }
  .river__controls { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); column-gap: 40px; }
  .presets { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .river__outcomes { grid-template-columns: 1fr; }
  .outcome, .outcome + .outcome { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--rule-dark); }
}

/* ---------- sections ---------- */
.section { padding: var(--section) 0; }
.section-head { display: grid; gap: 22px; margin-bottom: clamp(40px, 5vw, 80px); }
.section-head--row { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.section-head--row > div:first-child { display: grid; gap: 22px; }
.section-foot { margin-top: 40px; }
@media (max-width: 700px) { .section-head--row { grid-template-columns: 1fr; } }

/* manifesto */
.manifesto { padding: var(--section) 0; }
.manifesto__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px clamp(16px, 2vw, 32px); align-items: end; }
.manifesto__text { grid-column: 1 / span 9; font-size: clamp(1.9rem, 4.3vw, 4.25rem); font-weight: 500; line-height: 1.08; letter-spacing: -.035em; text-wrap: pretty; }
.has-motion .manifesto__text .word { color: #6A6E72; } /* dim state still passes AA (4.6:1); lights up to ink on scroll */
.manifesto__photo { grid-column: 10 / span 3; border-radius: var(--radius-s); overflow: hidden; aspect-ratio: 4 / 5; }
.manifesto__photo img { width: 100%; height: 100%; object-fit: cover; }
.manifesto__sign { grid-column: 1 / span 9; color: var(--muted); }
@media (max-width: 900px) {
  .manifesto__text, .manifesto__sign { grid-column: 1 / -1; }
  .manifesto__photo { grid-column: 1 / span 12; aspect-ratio: 16 / 10; }
}

/* services list */
.svc-list { border-top: 1px solid var(--ink); counter-reset: svc; }
.svc-row { border-bottom: 1px solid var(--rule); }
.svc-row__link { display: grid; grid-template-columns: 64px minmax(0, 1.2fr) minmax(0, 1fr) 150px 40px; gap: 24px; align-items: center; padding: clamp(22px, 2.6vw, 36px) 0; text-decoration: none; position: relative; }
.svc-row__n { font: 500 var(--fs-mono)/1 var(--mono); color: var(--muted); }
.svc-row__name { font-size: clamp(1.6rem, 3vw, 3rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.05; transition: transform var(--t-hover) var(--ease); }
.svc-row__sum { color: var(--muted); line-height: 1.5; }
.svc-row__price { font: 400 var(--fs-small)/1.4 var(--mono); text-align: right; }
.svc-row__price b { display: block; font: 500 1.25rem/1.2 var(--font); letter-spacing: -.02em; }
.svc-row__arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; font-family: var(--mono); transition: background-color var(--t-hover), transform var(--t-hover) var(--ease); }
.svc-row__link:hover .svc-row__name { transform: translateX(12px); }
.svc-row__link:hover .svc-row__arrow { background: var(--lime); border-color: var(--lime); transform: rotate(-45deg); }
.svc-preview { position: fixed; left: 0; top: 0; width: 260px; aspect-ratio: 4 / 3; border-radius: var(--radius-s); overflow: hidden; pointer-events: none; z-index: 30; opacity: 0; transform: translate(-50%, -50%) scale(.85); transition: opacity .3s, transform .4s var(--ease); }
.svc-preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.svc-preview img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .svc-row__link { grid-template-columns: 40px minmax(0, 1fr) 40px; gap: 8px 16px; }
  .svc-row__sum { grid-column: 2 / 3; }
  .svc-row__price { grid-column: 2 / 3; text-align: left; }
  .svc-row__arrow { grid-column: 3; grid-row: 1; }
  .svc-preview { display: none; }
}

/* results */
.results { background: var(--paper-2); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.stat { padding: 28px 24px 0 0; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 12px; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--rule); }
.stat__value { font-size: clamp(3.4rem, 7.4vw, 8.5rem); font-weight: 500; letter-spacing: -.06em; line-height: .9; font-feature-settings: 'tnum' 1; }
.stat__value small { font-size: .4em; letter-spacing: -.02em; margin-left: .05em; }
.stat__label { color: var(--muted); font-size: var(--fs-small); max-width: 24ch; }
.case { margin-top: clamp(56px, 7vw, 104px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: center; background: var(--card); border-radius: var(--radius); padding: clamp(16px, 2vw, 24px); }
.case__photo { border-radius: var(--radius-s); overflow: hidden; aspect-ratio: 4 / 5; height: 100%; }
.case__photo img { width: 100%; height: 100%; object-fit: cover; }
.case__body { display: grid; gap: 24px; padding: clamp(8px, 2vw, 32px); padding-left: 0; }
.case__title { font-size: clamp(1.6rem, 2.8vw, 2.75rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.08; max-width: 22ch; }
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { margin-top: 32px; }
  .case { grid-template-columns: 1fr; }
  .case__photo { aspect-ratio: 16 / 10; }
  .case__body { padding: 8px 4px 16px; }
}

/* charts (crisp SVG, shared by the case and the articles) */
.chart { display: grid; gap: 12px; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart__grid line { stroke: var(--rule); stroke-width: 1; }
.chart__axis text, .chart__labels text { font: 400 11px var(--mono); fill: var(--muted); }
.chart__axis text { text-anchor: end; }
.chart__labels text, .chart__values text { text-anchor: middle; }
.chart__values text { font: 500 13px var(--font); fill: var(--ink); }
.chart__bars rect { fill: var(--ink); }
.chart__bars .chart__bar--muted { fill: var(--stone); }
.chart__bars .chart__bar--lime { fill: var(--lime); stroke: var(--ink); stroke-width: 1; }
.chart__line { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart__area { fill: var(--lime); opacity: .55; }
.chart__floor { stroke: var(--clay); stroke-width: 1.5; stroke-dasharray: 5 5; }
.chart__floor-label { font: 500 11px var(--mono); fill: var(--clay-ink); }
.chart__dot { fill: var(--clay); stroke: var(--card); stroke-width: 2; }
.chart__caption { font: 400 var(--fs-mono)/1.5 var(--mono); color: var(--muted); }

/* industries rail */
.rail { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding: 4px 0 24px; scroll-padding-inline: var(--gutter); }
.rail:focus-visible { outline-offset: -2px; }
.rail__track { display: flex; gap: clamp(12px, 1.6vw, 24px); padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); width: max-content; }
.ind-card { width: clamp(270px, 28vw, 420px); scroll-snap-align: start; }
.ind-card__link { display: grid; gap: 16px; text-decoration: none; }
.ind-card__media { border-radius: var(--radius-s); overflow: hidden; aspect-ratio: 4 / 5; position: relative; }
.ind-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.ind-card__link:hover img { transform: scale(1.05); }
.ind-card__stat { position: absolute; left: 12px; bottom: 12px; background: var(--paper); border-radius: 10px; padding: 8px 12px; font: 500 1.4rem/1 var(--font); letter-spacing: -.03em; }
.ind-card__stat small { font-size: .6em; }
.ind-card__stat-label { display: block; margin-top: 5px; font: 500 .6875rem/1.2 var(--mono); letter-spacing: .02em; color: var(--muted); max-width: 18ch; }
.ind-grid .ind-card { width: auto; }
.ind-card__name { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.ind-card__sum { color: var(--muted); font-size: .9875rem; }

/* process */
.process { background: var(--paper); border-top: 1px solid var(--rule); }
.process__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 120px); align-items: start; }
.process__side { position: sticky; top: calc(var(--header-h) + 40px); display: grid; gap: 22px; }
.process__meter { width: 100%; max-width: 360px; height: 3px; background: var(--rule); margin-top: 16px; }
.process__meter span { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: left; transform: scaleX(var(--progress, 1)); }
.steps { display: grid; gap: 16px; }
.step { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; padding: clamp(24px, 3vw, 40px); border-radius: var(--radius); background: var(--card); border: 1px solid var(--rule); transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s; }
.step__n { font-size: 1rem; padding-top: 6px; }
.step__title { font-size: clamp(1.5rem, 2.4vw, 2.25rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; margin-bottom: 12px; }
.step__text { color: var(--muted); max-width: 52ch; transition: color .5s; }
.step__time { margin-top: 18px; display: inline-block; padding: 6px 10px; border-radius: 999px; border: 1px solid currentColor; }
.step.is-active { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.step.is-active .step__text { color: var(--on-dark-muted); }
.step.is-active .step__n { color: var(--lime); }
@media (max-width: 900px) {
  .process__grid { grid-template-columns: 1fr; }
  .process__side { position: static; }
  .step { grid-template-columns: 1fr; }
}

/* quotes (dark) */
.quotes { background: var(--ink); color: var(--on-dark); }
.quotes__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.quote { background: var(--ink-2); border: 1px solid var(--rule-dark); border-radius: var(--radius); padding: clamp(24px, 2.6vw, 40px); display: flex; flex-direction: column; gap: 24px; }
.quote__stars { color: var(--lime); letter-spacing: .15em; }
.quote__text { font-size: clamp(1.2rem, 1.6vw, 1.5rem); line-height: 1.4; letter-spacing: -.015em; flex: 1; }
.quote__who { display: flex; gap: 14px; align-items: center; }
.quote__who img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.quote__who p { display: grid; font-size: var(--fs-small); color: var(--on-dark-muted); }
.quote__who b { color: var(--on-dark); font-weight: 500; font-size: 1rem; }
@media (max-width: 900px) { .quotes__grid { grid-template-columns: 1fr; } }

/* pricing */
.billing { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--rule); }
.billing__opt { border: 0; background: transparent; padding: 11px 16px; border-radius: 999px; cursor: pointer; font-weight: 500; font-size: .9375rem; }
.billing__opt[aria-pressed='true'] { background: var(--ink); color: var(--paper); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); align-items: stretch; }
.plan { border-radius: var(--radius); background: var(--card); border: 1px solid var(--rule); padding: clamp(24px, 2.6vw, 40px); display: flex; flex-direction: column; gap: 24px; transition: transform var(--t-hover) var(--ease); }
.plan:hover { transform: translateY(-4px); }
.plan--featured { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.plan__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan__name { font-size: 1.5rem; font-weight: 500; letter-spacing: -.02em; }
.plan__tag { font: 500 .75rem/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; background: var(--lime); color: var(--ink); padding: 6px 9px; border-radius: 999px; }
.plan__for { color: var(--muted); }
.plan--featured .plan__for, .plan--featured .plan__per { color: var(--on-dark-muted); }
.plan__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan__amount { font-size: clamp(3rem, 5vw, 4.75rem); font-weight: 500; letter-spacing: -.055em; line-height: 1; font-feature-settings: 'tnum' 1; }
.plan__per { color: var(--muted); font: 400 var(--fs-small)/1.3 var(--mono); }
.plan__list { display: grid; gap: 10px; border-top: 1px solid var(--rule); padding-top: 24px; flex: 1; }
.plan--featured .plan__list { border-color: var(--rule-dark); }
.plan__list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: .9875rem; line-height: 1.45; }
.plan__list li::before { content: ''; width: 14px; height: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translate(2px, 4px); }
.plan--featured .plan__list li::before { color: var(--lime); }
.plan .btn { align-self: stretch; }
@media (max-width: 1000px) { .plans { grid-template-columns: 1fr; max-width: 560px; } }

/* people */
.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.people--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.person__link { display: grid; gap: 14px; text-decoration: none; }
.person__media { border-radius: var(--radius-s); overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-2); }
.person__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform 1s var(--ease); }
.person__link:hover img { transform: scale(1.04); }
.person__name { font-size: 1.375rem; font-weight: 500; letter-spacing: -.025em; line-height: 1.2; }
.person__role { color: var(--muted); font-size: var(--fs-small); }
@media (max-width: 1000px) { .people, .people--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* posts */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); }
.post__link { display: grid; gap: 16px; text-decoration: none; }
.post__media { border-radius: var(--radius-s); overflow: hidden; aspect-ratio: 3 / 2; }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post__link:hover img { transform: scale(1.04); }
.post__meta { display: flex; gap: 12px; flex-wrap: wrap; font: 400 var(--fs-mono)/1.4 var(--mono); color: var(--muted); }
.post__cat { color: var(--lime-ink); font-weight: 500; }
.post__title { font-size: clamp(1.3rem, 1.7vw, 1.625rem); font-weight: 500; letter-spacing: -.025em; line-height: 1.2; text-wrap: balance; }
.post__link:hover .post__title { text-decoration: underline; text-decoration-thickness: 1px; }
@media (max-width: 1000px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .posts { grid-template-columns: 1fr; } }

/* faq */
.faq { border-top: 1px solid var(--rule); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 120px); align-items: start; }
.faq__grid > div:first-child { display: grid; gap: 22px; }
.accordion { border-top: 1px solid var(--ink); }
.acc { border-bottom: 1px solid var(--rule); }
.acc__q { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; font-size: clamp(1.125rem, 1.5vw, 1.375rem); font-weight: 500; letter-spacing: -.015em; }
.acc__q::-webkit-details-marker { display: none; }
.acc__q::after { content: ''; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--ink); background: linear-gradient(var(--ink), var(--ink)) center / 11px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 11px no-repeat; transition: transform var(--t-hover) var(--ease), background-color var(--t-hover); }
.acc[open] .acc__q::after { transform: rotate(45deg); background-color: var(--lime); }
.acc__a { padding: 0 48px 26px 0; color: var(--muted); max-width: 62ch; }
@media (max-width: 900px) { .faq__grid { grid-template-columns: 1fr; } }

/* booking */
.book { background: var(--lime); color: var(--ink); padding: var(--section) 0; }
.book__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 96px); align-items: end; }
.book__copy { display: grid; gap: 24px; }
.book .eyebrow { color: var(--ink); }
.book__title { font-size: var(--fs-page); font-weight: 500; letter-spacing: -.055em; line-height: .92; max-width: 11ch; }
.book__lead { font-size: var(--fs-lead); max-width: 40ch; }
.book__alt a { font-weight: 500; }
.booker { background: var(--card); border-radius: var(--radius); padding: clamp(20px, 2.4vw, 36px); display: grid; gap: 22px; box-shadow: 0 30px 60px -30px rgba(18, 20, 21, .45); }
.booker .control__label { color: var(--muted); }
.booker__group { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.booker .chip { color: var(--ink); border-color: var(--rule); }
.booker .chip:hover { border-color: var(--ink); }
.booker .chip[aria-checked='true'] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip small { display: block; font: 400 .6875rem/1.2 var(--mono); opacity: .75; margin-top: 3px; }
.field { display: grid; gap: 8px; }
.field__label { font: 500 var(--fs-mono)/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.field__input { width: 100%; min-height: 52px; border-radius: var(--radius-s); border: 1px solid var(--rule); background: #fff; padding: 12px 16px; transition: border-color .2s; }
.field__input:hover { border-color: var(--muted); }
.field__input:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
textarea.field__input { min-height: 120px; resize: vertical; }
.field__error { display: none; color: var(--clay-ink); font-size: var(--fs-small); }
.field.is-invalid .field__input { border-color: var(--clay-ink); }
.field.is-invalid .field__error { display: block; }
.booker__done { background: var(--ink); color: var(--on-dark); border-radius: var(--radius-s); padding: 16px 18px; }
@media (max-width: 900px) { .book__grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--on-dark); padding: clamp(64px, 8vw, 120px) 0 28px; overflow: hidden; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__cta { display: flex; justify-content: space-between; align-items: center; gap: 24px 48px; flex-wrap: wrap; padding-bottom: clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--rule-dark); }
.footer__lead { font-size: clamp(1.4rem, 2.4vw, 2.25rem); letter-spacing: -.03em; line-height: 1.2; max-width: 30ch; }
.footer__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding: clamp(40px, 5vw, 72px) 0; }
.footer__title { font: 500 var(--fs-mono)/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--on-dark-muted); margin-bottom: 18px; }
.footer__list { display: grid; gap: 10px; }
.footer__address, .footer__line { color: var(--on-dark); line-height: 1.6; margin-bottom: 12px; }
.footer__line.mono { color: var(--on-dark-muted); }
/* Footer wordmark: always exactly the width of the content column. --mark-em is the word's width in em
   (measured by delta.js once the font is in; the CSS value is the fallback for "Arrieta Kohl" in Plex Sans 600). */
.footer__mark { container-type: inline-size; margin: 0; padding: clamp(8px, 1.5vw, 24px) 0 clamp(12px, 2vw, 28px); }
.footer__mark-text { --mark-em: 5.06; display: inline-block; font: 600 calc(100cqi / var(--mark-em))/.8 var(--font); letter-spacing: -.045em; padding-right: .045em; color: var(--lime); white-space: nowrap; }
.footer__base { display: flex; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--rule-dark); font-size: var(--fs-small); color: var(--on-dark-muted); }
.footer__note { max-width: 70ch; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- inner pages ---------- */
/* reserve viewport height before the CMS renderer fills a detail page, so the footer doesn't shift (CLS) */
[data-cms-detail]:empty { display: block; min-height: 100vh; }
.page-hero { padding: calc(var(--header-h) + clamp(56px, 8vw, 128px)) 0 clamp(48px, 6vw, 96px); }
.page-hero__inner { display: grid; gap: 28px; }
.page-hero__title { font-size: var(--fs-page); font-weight: 500; letter-spacing: -.055em; line-height: .92; max-width: 13ch; text-wrap: balance; }
.page-hero__lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--muted); max-width: 52ch; }
.page-hero__media { margin-top: clamp(40px, 5vw, 72px); border-radius: var(--radius); overflow: hidden; aspect-ratio: 21 / 9; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .page-hero__media { aspect-ratio: 4 / 3; } }
.crumbs { font: 400 var(--fs-mono)/1.4 var(--mono); color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.svc-card__link { display: grid; gap: 18px; text-decoration: none; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 14px 14px 26px; height: 100%; align-content: start; transition: transform var(--t-hover) var(--ease), border-color var(--t-hover); }
.svc-card__link:hover { transform: translateY(-4px); border-color: var(--ink); }
.svc-card__media { border-radius: var(--radius-s); overflow: hidden; aspect-ratio: 16 / 10; }
.svc-card__media img { width: 100%; height: 100%; object-fit: cover; }
.svc-card__body { display: grid; gap: 10px; padding: 0 10px; }
.svc-card__n { font: 500 var(--fs-mono)/1 var(--mono); color: var(--muted); }
.svc-card__name { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.svc-card__sum { color: var(--muted); }
.svc-card__price { font: 400 var(--fs-small)/1.4 var(--mono); margin-top: 6px; }
@media (max-width: 1000px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }

.detail { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 120px); align-items: start; }
.detail__main { display: grid; gap: 28px; }
.detail__main h2 { font-size: clamp(1.75rem, 3vw, 2.75rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; margin-top: 24px; }
.detail__main p { font-size: 1.125rem; line-height: 1.65; max-width: 62ch; }
.detail__aside { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 18px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(22px, 2.4vw, 32px); }
.detail__aside .btn { white-space: normal; text-align: center; line-height: 1.2; padding-block: 12px; }
.detail__aside h2 { font: 500 var(--fs-mono)/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.detail__price { font-size: clamp(2.6rem, 4vw, 3.75rem); font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.detail__price small { font: 400 var(--fs-small)/1 var(--mono); letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.ticks { display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; line-height: 1.45; }
.ticks li::before { content: ''; width: 14px; height: 8px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg) translate(2px, 5px); }
.mini-people { display: grid; gap: 12px; }
.mini-person { display: flex; gap: 12px; align-items: center; text-decoration: none; }
.mini-person img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.mini-person span { display: grid; font-size: var(--fs-small); color: var(--muted); }
.mini-person b { color: var(--ink); font-weight: 500; font-size: 1rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font: 500 .8125rem/1 var(--font); padding: 9px 12px; border-radius: 999px; border: 1px solid var(--rule); text-decoration: none; background: var(--paper); }
a.tag:hover { border-color: var(--ink); }
.pull { font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.2; border-left: 3px solid var(--lime); padding-left: 24px; max-width: 30ch; margin: 16px 0; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } .detail__aside { position: static; } }

.profile { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 120px); align-items: start; }
.profile__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; position: sticky; top: calc(var(--header-h) + 32px); }
.profile__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.profile__body { display: grid; gap: 28px; }
.profile__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.profile__facts div { padding: 18px 16px 0 0; display: grid; gap: 6px; }
.profile__facts dt { font: 500 var(--fs-mono)/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.profile__facts dd { font-size: 1.25rem; font-weight: 500; }
@media (max-width: 900px) { .profile { grid-template-columns: 1fr; } .profile__media { position: static; aspect-ratio: 4 / 4; } .profile__facts { grid-template-columns: 1fr 1fr; } }

.article { max-width: 760px; margin-inline: auto; display: grid; gap: 26px; }
.article p { font-size: 1.1875rem; line-height: 1.7; }
.article h2 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.15; margin-top: 20px; }
.article ul { display: grid; gap: 12px; }
.article ul li { padding-left: 28px; position: relative; font-size: 1.125rem; }
.article ul li::before { content: ''; position: absolute; left: 0; top: .72em; width: 14px; height: 2px; background: var(--lime-ink); }
.article .chart { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(18px, 2.4vw, 32px); margin: 12px 0; }
.article-head { max-width: 1040px; display: grid; gap: 24px; }
.article-head__title { font-size: clamp(2.6rem, 6vw, 6rem); font-weight: 500; letter-spacing: -.05em; line-height: .98; text-wrap: balance; }
.article-head__dek { font-size: var(--fs-lead); color: var(--muted); max-width: 52ch; }
.byline { display: flex; align-items: center; gap: 14px; }
.byline img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.byline span { display: grid; font-size: var(--fs-small); color: var(--muted); }
.byline b { color: var(--ink); font-weight: 500; font-size: 1rem; }
.article-cover { margin: clamp(40px, 5vw, 72px) 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 21 / 9; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .article-cover { aspect-ratio: 4 / 3; } }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filters .chip { color: var(--ink); border-color: var(--rule); }
.filters .chip[aria-pressed='true'] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.res-list { border-top: 1px solid var(--ink); }
.res { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 24px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.res__format { font: 500 var(--fs-mono)/1 var(--mono); padding: 10px; border: 1px solid var(--ink); border-radius: 8px; text-align: center; }
.res__title { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -.03em; line-height: 1.15; }
.res__kind { font: 400 var(--fs-mono)/1.4 var(--mono); color: var(--muted); display: block; margin-bottom: 6px; }
.res__sum { color: var(--muted); }
/* resource rows inside a detail page's narrow main column */
.detail__main .res { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 8px 20px; padding: 22px 0; }
.detail__main .res__title { font-size: var(--fs-h3); margin-top: 0; line-height: 1.15; }
.detail__main .res__sum { grid-column: 2 / -1; grid-row: 2; font-size: 1rem; }
.detail__main .res .btn { grid-column: 3; grid-row: 1; }
@media (max-width: 560px) { .detail__main .res { grid-template-columns: 56px minmax(0, 1fr); } .detail__main .res .btn { grid-column: 1 / -1; grid-row: 3; justify-self: start; } }
@media (max-width: 900px) { .res { grid-template-columns: 70px minmax(0, 1fr); } .res__sum, .res .btn { grid-column: 1 / -1; } .res .btn { justify-self: start; } }

.compare { width: 100%; border-collapse: collapse; font-size: .9875rem; }
.compare th, .compare td { padding: 16px 12px; border-bottom: 1px solid var(--rule); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; padding-left: 0; }
.compare thead th { font: 500 var(--fs-mono)/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid var(--ink); }
.compare .yes { color: var(--lime-ink); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.nojs-list { display: grid; gap: 12px; padding: 8px 0 32px; color: var(--muted); }
.nojs-list a, .nojs-list b { color: var(--ink); font-weight: 500; }
.prose .table-scroll table { min-width: 540px; }
.office__map { margin-top: 10px; }

.jobs { border-top: 1px solid var(--ink); }
.job { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.job__title { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -.03em; }
.job__meta { color: var(--muted); font: 400 var(--fs-small)/1.4 var(--mono); }
@media (max-width: 800px) { .job { grid-template-columns: 1fr; gap: 8px; } }

.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.value { border-top: 1px solid var(--ink); padding-top: 20px; display: grid; gap: 10px; }
.value h3 { font-size: 1.375rem; font-weight: 500; letter-spacing: -.02em; }
.value p { color: var(--muted); }
@media (max-width: 800px) { .values { grid-template-columns: 1fr; } }

.photo-pair { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(12px, 1.6vw, 24px); }
.photo-pair figure { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.photo-pair figure:last-child { aspect-ratio: auto; }
.photo-pair img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .photo-pair { grid-template-columns: 1fr; } .photo-pair figure:last-child { aspect-ratio: 4 / 3; } }

.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.contact-form { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(22px, 3vw, 44px); display: grid; gap: 24px; }
.contact-form .chip { color: var(--ink); border-color: var(--rule); }
.contact-form .chip[aria-checked='true'] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.contact-form .control__label { color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.office { display: grid; gap: 24px; }
.office__photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.office__photo img { width: 100%; height: 100%; object-fit: cover; }
.office dl { display: grid; gap: 16px; }
.office dt { font: 500 var(--fs-mono)/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.office dd { font-size: 1.125rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.prose { max-width: 760px; display: grid; gap: 18px; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); font-weight: 500; letter-spacing: -.03em; margin-top: 32px; }
.prose h3 { font-size: 1.25rem; font-weight: 500; margin-top: 16px; }
.prose p, .prose li { line-height: 1.7; }
.prose ul { display: grid; gap: 8px; }
.prose ul li { padding-left: 22px; position: relative; }
.prose ul li::before { content: ''; position: absolute; left: 0; top: .8em; width: 10px; height: 2px; background: var(--ink); }
.prose code, .code { font-family: var(--mono); font-size: .875em; background: var(--paper-2); padding: 2px 6px; border-radius: 6px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { font: 500 var(--fs-mono)/1.4 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; }

/* style guide */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.swatch { border: 1px solid var(--rule); border-radius: var(--radius-s); overflow: hidden; background: var(--card); }
.swatch__chip { height: 96px; }
.swatch__meta { padding: 12px 14px; display: grid; gap: 2px; font-size: var(--fs-small); }
.swatch__meta span { font-family: var(--mono); color: var(--muted); }
.type-rows { display: grid; border-top: 1px solid var(--ink); }
.type-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.type-row__meta { font: 400 var(--fs-mono)/1.5 var(--mono); color: var(--muted); }
.type-row__sample { overflow-wrap: anywhere; }
@media (max-width: 700px) { .type-row { grid-template-columns: 1fr; } }
.sg-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 24px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-s); }
.sg-row--dark { background: var(--ink); border-color: var(--ink); }
.motion-demo { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.motion-demo__item { border: 1px solid var(--rule); border-radius: var(--radius-s); padding: 18px; display: grid; gap: 8px; background: var(--card); }
.motion-demo__item b { font-weight: 500; }
.motion-demo__item span { font: 400 var(--fs-small)/1.5 var(--mono); color: var(--muted); }

/* 404 */
.lost { padding: calc(var(--header-h) + clamp(48px, 8vw, 120px)) 0 var(--section); }
.lost__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.lost__code { font-size: clamp(6rem, 22vw, 22rem); font-weight: 500; letter-spacing: -.07em; line-height: .8; }
.lost__title { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.05; margin: 24px 0 16px; }
.lost__text { color: var(--muted); font-size: var(--fs-lead); max-width: 44ch; margin-bottom: 28px; }
.ledger { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); font-family: var(--mono); font-size: .9375rem; }
.ledger table { width: 100%; border-collapse: collapse; font-feature-settings: 'tnum' 1; }
.ledger caption { text-align: left; font-weight: 500; padding-bottom: 12px; text-transform: uppercase; letter-spacing: .06em; font-size: var(--fs-mono); color: var(--muted); }
.ledger th, .ledger td { padding: 12px 0; border-bottom: 1px solid var(--rule); text-align: left; font-weight: 400; }
.ledger td { text-align: right; }
.ledger tr.ledger__total th, .ledger tr.ledger__total td { border-bottom: 3px double var(--ink); font-weight: 500; }
.ledger .ledger__diff { color: var(--clay-ink); }
@media (max-width: 900px) { .lost__grid { grid-template-columns: 1fr; } }

/* ---------- motion hooks (JS sets the start state only when motion is allowed) ---------- */
.reveal { overflow: hidden; }
.has-motion [data-appear] { opacity: 0; }
.has-motion .hero [data-hero-in] { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .ticker__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; row-gap: 24px; }
  .ticker { -webkit-mask-image: none; mask-image: none; }
  .veil { display: none; }
}

@media (max-width: 760px) {
  .prose > * { min-width: 0; }
  .prose table { display: block; overflow-x: auto; }
}
@media (max-width: 600px) {
  .chart__axis text, .chart__labels text { font-size: 17px; }
  .chart__values text { font-size: 20px; }
}
.posts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .posts--2 { grid-template-columns: 1fr; } }
.rv-sub--halo { paint-order: stroke fill; stroke: var(--ink); stroke-width: 5px; stroke-linejoin: round; }
