/* VARDEM — marketing site. One stylesheet for the home page and every public page.
   Concept: engraved. Pages open on an intaglio plate drawn by engrave.js; the rest is quiet type on paper. */

@font-face { font-family: 'Newsreader'; src: url('assets/fonts/newsreader.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('assets/fonts/newsreader-italic.woff2') format('woff2'); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('assets/fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --vault: #0b1722;
  --vault-2: #112131;
  --ink: #0d1b27;
  --ink-2: #2b3a47;
  --muted: #59646f;
  --faint: #8a9198;
  --paper: #f6f3ec;
  --paper-2: #ede7db;
  --card: #fbfaf6;
  --rule: rgba(13, 27, 39, 0.14);
  --rule-soft: rgba(13, 27, 39, 0.08);
  --gold: #9b7a4c;
  --champagne: #d6bf94;
  --on-vault: #f3eee3;
  --on-vault-2: rgba(243, 238, 227, 0.7);
  --on-vault-3: rgba(243, 238, 227, 0.46);
  --rule-vault: rgba(243, 238, 227, 0.14);

  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --gutter: clamp(20px, 4vw, 60px);
  --max: 1400px;
  --nav-h: 84px;
  --section: clamp(96px, 11vw, 168px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 1px; }
.hero :focus-visible, .phero :focus-visible, .nav :focus-visible, .ledger :focus-visible, .cta :focus-visible, .footer :focus-visible, .vault-band :focus-visible { outline-color: var(--champagne); }

.shell { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 16px; font-size: 14px; }
.skip:focus { top: 12px; }

/* ---------- Type ---------- */
.h2 { font: 330 clamp(2.2rem, 4.3vw, 4.1rem)/1.03 var(--serif); letter-spacing: -0.026em; font-optical-sizing: auto; text-wrap: balance; }
.lede { font: 350 clamp(1.3rem, 1.75vw, 1.62rem)/1.42 var(--serif); letter-spacing: -0.01em; text-wrap: pretty; }
.muted { color: var(--muted); }
.line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.line > span { display: inline-block; }

.section-head { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: clamp(44px, 6vw, 84px); }
.section-head > p { max-width: 27rem; justify-self: end; }
.section-head--link { display: flex; justify-content: space-between; }

/* ---------- Buttons and links ---------- */
.btn {
  --h: 54px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--h);
  padding: 0 28px;
  font: 500 14.5px/1 var(--sans);
  letter-spacing: 0.005em;
  white-space: nowrap;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.5s var(--ease);
}
.btn::after { content: ''; position: absolute; inset: 0; z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform 0.55s var(--ease); }
.btn:hover::after { transform: scaleY(1); }
.btn--sm { --h: 42px; padding: 0 18px; font-size: 13.5px; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink::after { background: var(--gold); }
.btn--ivory { background: var(--on-vault); color: var(--ink); }
.btn--ivory::after { background: var(--champagne); }
.btn--line { color: var(--on-vault); box-shadow: inset 0 0 0 1px rgba(243, 238, 227, 0.32); }
.btn--line::after { background: var(--on-vault); }
.btn--line:hover { color: var(--ink); }
.btn--block { width: 100%; --h: 58px; margin-top: 6px; }
.btn:disabled { opacity: 0.6; cursor: progress; }

.link {
  display: inline-flex;
  align-items: center;
  font: 500 14.5px/1 var(--sans);
  padding-block: 9px;
  background:
    linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat,
    linear-gradient(var(--rule), var(--rule)) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.6s var(--ease);
}
.link:hover, a:hover .link { background-size: 100% 1px, 100% 1px; }
.link--light { color: var(--on-vault); background-image: linear-gradient(currentColor, currentColor), linear-gradient(var(--rule-vault), var(--rule-vault)); }

/* ---------- Navigation: always on navy, transparent over the plate ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  color: var(--on-vault);
  transition: transform 0.6s var(--ease), background-color 0.5s, box-shadow 0.5s;
  view-transition-name: site-nav;
}
.scrolled .nav {
  background: rgba(11, 23, 34, 0.86);
  -webkit-backdrop-filter: saturate(1.3) blur(16px);
  backdrop-filter: saturate(1.3) blur(16px);
  box-shadow: 0 1px 0 var(--rule-vault);
}
.nav-hidden .nav { transform: translateY(-100%); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 40px; }
.wordmark { display: inline-flex; flex: none; }
.vardem-logo { display: block; width: 224px; height: auto; }
.nav__links { display: flex; gap: 34px; margin-left: auto; }
.nav__links a { position: relative; font-size: 14px; color: var(--on-vault-2); padding-block: 8px; transition: color 0.3s; }
.nav__links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--champagne); transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease); }
.nav__links a:hover, .nav__links a[aria-current='page'] { color: var(--on-vault); }
.nav__links a:hover::after, .nav__links a[aria-current='page']::after { transform: scaleX(1); transform-origin: left; }
.nav__mobile-only { display: none; }
.nav__actions { display: flex; align-items: center; gap: 26px; }
.nav__login { font-size: 14px; color: var(--on-vault-2); transition: color 0.3s; }
.nav__login:hover { color: var(--on-vault); }
.nav__toggle { display: none; }

/* ---------- Engraved plates (drawn by engrave.js) ---------- */
.plate { --plate-ground: #0b1722; --plate-ink: #8a6a3f; --plate-lit: #f2e1b8; position: relative; overflow: hidden; background: var(--plate-ground); }
.plate--paper { --plate-ground: #f6f3ec; --plate-ink: #13212e; --plate-lit: #50657a; }
.plate img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.plate canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.is-plate img { opacity: 0; }
/* Without WebGL the photograph stands in, toned to sit with the navy */
.plate:not(.is-plate) img { filter: saturate(0.6) brightness(0.72); }
.plate--paper:not(.is-plate) img { filter: saturate(0.5); }
.js .plate:not(.is-plate) img { opacity: 0; animation: plate-photo 0.8s var(--ease) 2.5s forwards; }
@keyframes plate-photo { to { opacity: 1; } }

/* ---------- Hero photographs: settle in, then a slow cinematic push towards the focus ---------- */
/* Three layers so each motion owns its transform: the frame clips, the pan follows scroll and pointer,
   the image settles (scale) and drifts (transform). The pan overscans so parallax never shows an edge. */
.hero-media { overflow: hidden; background: var(--vault); contain: paint; }
.hero-media__pan { position: absolute; inset: -3%; transform: translate3d(0, 0, 0); will-change: transform; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: translate3d(1.6%, 0.8%, 0) scale(1.05); backface-visibility: hidden; will-change: transform, opacity; }
.js .hero-media img { animation: hero-in 2.6s cubic-bezier(0.16, 1, 0.3, 1) both, hero-drift 20s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--vault), rgba(11, 23, 34, 0.55) 30%, rgba(11, 23, 34, 0.12) 62%, transparent), linear-gradient(0deg, rgba(11, 23, 34, 0.7), transparent 28%), linear-gradient(180deg, rgba(11, 23, 34, 0.6), transparent 22%); pointer-events: none; }
@keyframes hero-in { from { opacity: 0; scale: 1.14; } }
@keyframes hero-drift {
  from { transform: translate3d(1.6%, 0.8%, 0) scale(1.05); }
  to { transform: translate3d(-2.4%, -1.2%, 0) scale(1.15); }
}

/* ---------- Home hero ---------- */
.hero { position: relative; min-height: max(660px, 100svh); display: flex; flex-direction: column; background: var(--vault); color: var(--on-vault); overflow: hidden; isolation: isolate; }
.hero__plate { position: absolute; top: 0; right: 0; bottom: 0; width: min(72%, 1280px); z-index: -1; }
.hero__body { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 34px; padding-top: calc(var(--nav-h) + 3vh); padding-bottom: 4vh; }
.hero__title { font: 300 clamp(3rem, 7.4vw, 8.2rem)/0.93 var(--serif); letter-spacing: -0.038em; font-optical-sizing: auto; }
.hero__title em { font-style: italic; font-weight: 280; color: var(--champagne); letter-spacing: -0.03em; padding-right: 0.06em; }
.hero__lede { max-width: 31rem; color: var(--on-vault-2); font-size: clamp(16px, 1.2vw, 18px); line-height: 1.65; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* The decade rule: quarters are the faintest ticks, decades carry the labels */
.ruler { --tick: rgba(214, 191, 148, 0.9); position: relative; height: 56px; margin-bottom: clamp(16px, 3vh, 34px); color: var(--champagne); }
.ruler__scale {
  position: absolute;
  inset: 0 0 auto;
  height: 22px;
  background:
    linear-gradient(var(--tick), var(--tick)) 0 0 / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--tick) 0 1px, transparent 1px 25%) 0 0 / 100% 20px no-repeat,
    repeating-linear-gradient(90deg, rgba(214, 191, 148, 0.5) 0 1px, transparent 1px 2.5%) 0 0 / 100% 10px no-repeat,
    repeating-linear-gradient(90deg, rgba(214, 191, 148, 0.24) 0 1px, transparent 1px 0.625%) 0 0 / 100% 5px no-repeat;
}
.ruler__scale::after { content: ''; position: absolute; right: 0; top: 0; width: 1px; height: 20px; background: var(--tick); }
.ruler__year { position: absolute; top: 28px; left: calc(var(--at) * 100%); transform: translateX(calc(var(--at) * -100%)); font: 500 12px/1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; color: var(--on-vault-3); }
.ruler__cursor { position: absolute; top: -14px; height: 36px; left: calc(var(--x, 0) * 100%); width: 1px; background: var(--on-vault); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.ruler__cursor b { position: absolute; bottom: calc(100% + 6px); left: 0; transform: translateX(-50%); font: 500 12px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--on-vault); white-space: nowrap; }
.is-reading .ruler__cursor { opacity: 1; }

/* ---------- Statement ---------- */
.statement { padding-block: var(--section); }
.statement__text { font: 330 clamp(1.95rem, 4.4vw, 4.3rem)/1.12 var(--serif); letter-spacing: -0.024em; max-width: 1180px; text-wrap: pretty; }
.statement__text .w { transition: color 0.35s linear; }
.js .statement__text .w { color: rgba(13, 27, 39, 0.14); }
.js .statement__text .w.lit { color: var(--ink); }
.statement__sign { margin-top: 48px; display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--muted); }
.statement__sign img { width: 44px; height: 44px; }

/* ---------- Disciplines ---------- */
.disciplines { padding-bottom: var(--section); }
.disciplines__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.disciplines__list { border-top: 1px solid var(--rule); }
.discipline a { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 32px; align-items: baseline; padding: clamp(26px, 3vw, 40px) 0; border-bottom: 1px solid var(--rule); }
.discipline a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.8s var(--ease); }
.discipline h3 { font: 330 clamp(1.75rem, 2.9vw, 2.75rem)/1.05 var(--serif); letter-spacing: -0.022em; transition: transform 0.7s var(--ease), color 0.4s; }
.discipline p { color: var(--muted); font-size: 15px; }
.discipline.is-active a::after { transform: scaleX(1); }
.discipline.is-active h3 { transform: translateX(14px); }
.disciplines__aside { position: sticky; top: calc(var(--nav-h) + 32px); display: grid; gap: 24px; justify-items: start; }
.disciplines__plate { width: 100%; aspect-ratio: 4 / 5; outline: 1px solid var(--rule); outline-offset: 12px; }

/* ---------- The firm ---------- */
.firm { padding-bottom: var(--section); }
.firm__photo { height: clamp(320px, 46vw, 680px); }
.firm__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.firm__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px); padding-top: clamp(56px, 7vw, 100px); }
.firm__text { display: grid; gap: 34px; justify-items: start; }
.values { width: 100%; border-top: 1px solid var(--rule); }
.values div { display: grid; grid-template-columns: 9rem 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.values dt { font: 400 1.2rem/1.2 var(--serif); }
.values dd { color: var(--muted); font-size: 15px; }

/* ---------- The long view: Discover and Plan are short; Review runs on ---------- */
.longview { background: var(--paper-2); padding-block: var(--section); }
.track { --p: 0; position: relative; display: grid; grid-template-columns: 22fr 22fr 56fr; margin-top: 40px; }
.track::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--rule); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.track::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--gold); transform: scaleX(var(--p)); transform-origin: left; }
.stage { position: relative; padding: 44px 36px 0 0; }
.stage::before { content: ''; position: absolute; left: 0; top: -5px; width: 11px; height: 11px; border-radius: 50%; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--ink); transition: background-color 0.5s, box-shadow 0.5s; }
.stage.is-reached::before { background: var(--gold); box-shadow: inset 0 0 0 1px var(--gold), 0 0 0 5px rgba(155, 122, 76, 0.16); }
.stage--review::after { content: ''; position: absolute; left: 14%; right: 0; top: -4px; height: 9px; background: repeating-linear-gradient(90deg, var(--ink-2) 0 1px, transparent 1px 9%); opacity: 0.45; -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent); mask-image: linear-gradient(90deg, #000 70%, transparent); }
.stage h3 { display: flex; align-items: baseline; gap: 12px; font: 380 clamp(1.5rem, 2.2vw, 2rem)/1.1 var(--serif); letter-spacing: -0.015em; margin-bottom: 14px; }
.stage__num { font: 500 12px/1 var(--sans); color: var(--gold); font-variant-numeric: tabular-nums; }
.stage p { color: var(--muted); font-size: 15px; max-width: 24rem; }

/* ---------- Ledger (safeguards) ---------- */
.ledger { background: var(--vault); color: var(--on-vault); padding-block: var(--section); }
.ledger__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.ledger__head { position: sticky; top: calc(var(--nav-h) + 40px); display: grid; gap: 26px; }
.ledger__head p { color: var(--on-vault-2); max-width: 26rem; }
.ledger__rows { border-top: 1px solid var(--rule-vault); }
.ledger__rows li { position: relative; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px; padding: 30px 0 30px 34px; border-bottom: 1px solid var(--rule-vault); transition: background-color 0.5s; }
.ledger__rows li::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-left: 1px solid rgba(214, 191, 148, 0.55); border-right: 1px solid rgba(214, 191, 148, 0.25); }
.ledger__rows li:hover { background: rgba(243, 238, 227, 0.03); }
.ledger__rows h3 { font: 380 1.4rem/1.2 var(--serif); letter-spacing: -0.01em; }
.ledger__rows p { color: var(--on-vault-2); font-size: 15px; }

/* ---------- Portal ---------- */
.portal { padding-block: var(--section); }
.portal__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.portal__copy { display: grid; gap: 32px; justify-items: start; }
.portal__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.ticks { width: 100%; border-top: 1px solid var(--rule); }
.ticks li { position: relative; padding: 15px 0 15px 32px; border-bottom: 1px solid var(--rule); color: var(--ink-2); font-size: 15.5px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 50%; width: 10px; height: 5px; border-left: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: translateY(-70%) rotate(-45deg); }
.portal__art svg { display: block; width: 100%; height: auto; max-width: 640px; margin-inline: auto; overflow: visible; }

/* ---------- Insights (home) ---------- */
.insights { padding-bottom: var(--section); }
.stories { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: clamp(28px, 3vw, 44px) clamp(28px, 4vw, 64px); }
.story-card { display: grid; gap: 18px; align-content: start; }
.story-card--feature { grid-row: span 2; }
.story-card:not(.story-card--feature) { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); align-items: center; }
.story-card:not(.story-card--feature) + .story-card { padding-top: clamp(24px, 3vw, 44px); border-top: 1px solid var(--rule); }
.story-card__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.story-card--feature .story-card__img { aspect-ratio: 16 / 11; }
.story-card__img img, .post__img img, .card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.story-card:hover img, .post:hover img, .card:hover img { transform: scale(1.04); }
.story-card h3, .post h3 { font: 380 clamp(1.3rem, 1.8vw, 1.6rem)/1.2 var(--serif); letter-spacing: -0.012em; text-wrap: balance; margin-top: 10px; }
.story-card--feature h3 { font-size: clamp(1.7rem, 2.8vw, 2.5rem); line-height: 1.08; letter-spacing: -0.02em; }
.post__meta { display: flex; gap: 18px; font-size: 13px; color: var(--muted); }
.post__meta span:first-child { color: var(--gold); font-weight: 500; }

/* ---------- Closing call to action ---------- */
.cta { position: relative; min-height: min(88svh, 860px); display: flex; align-items: center; color: #fff; overflow: hidden; isolation: isolate; background: var(--vault); }
.cta__bg { position: absolute; inset: 0; z-index: -2; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 23, 34, 0.78), rgba(11, 23, 34, 0.3) 58%, rgba(11, 23, 34, 0.05)), linear-gradient(0deg, rgba(11, 23, 34, 0.35), transparent 45%); }
.cta__inner { display: grid; gap: 28px; justify-items: start; padding-block: 120px; }
.cta__title { font: 300 clamp(3rem, 7.6vw, 7.4rem)/0.94 var(--serif); letter-spacing: -0.038em; max-width: 10ch; }
.cta__inner p { max-width: 30rem; color: rgba(255, 255, 255, 0.82); font-size: 17px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

/* ---------- Footer: an engraved range of mountains ---------- */
.footer { position: relative; background: var(--vault); color: var(--on-vault); padding-block: clamp(80px, 9vw, 130px) 36px; overflow: hidden; isolation: isolate; }
.footer__plate { position: absolute; inset: auto 0 0; height: 82%; z-index: -2; }
.footer__top { display: grid; grid-template-columns: 1fr 2fr; gap: 50px; padding-bottom: 60px; border-bottom: 1px solid var(--rule-vault); }
.footer__brand { display: grid; gap: 24px; justify-items: start; }
.footer__brand .vardem-logo { width: 250px; }
.footer__brand p { color: var(--on-vault-2); font-size: 14.5px; max-width: 20rem; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer__cols nav { display: grid; gap: 12px; align-content: start; }
.footer h4 { font: 500 13px/1 var(--sans); color: var(--champagne); margin-bottom: 10px; }
.footer__cols a { font-size: 14.5px; color: var(--on-vault-2); transition: color 0.3s; justify-self: start; }
.footer__cols a:hover { color: var(--on-vault); }
.footer__disclosure { padding-block: 34px; font-size: 12.5px; line-height: 1.7; color: var(--on-vault-3); max-width: 900px; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 26px; border-top: 1px solid var(--rule-vault); font-size: 13px; color: var(--on-vault-3); }
.footer__bottom div { display: flex; gap: 24px; }
.footer__bottom a:hover { color: var(--on-vault); }

/* =====================================================================
   Inner pages
   ===================================================================== */

/* Page hero: navy, the plate to the right */
.phero { position: relative; background: var(--vault); color: var(--on-vault); overflow: hidden; isolation: isolate; }
.phero--plate { min-height: min(92svh, 920px); display: flex; }
.phero__plate { position: absolute; top: 0; right: 0; bottom: 0; width: min(62%, 1100px); z-index: -1; }
.phero__body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 30px; padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 88px)); padding-bottom: clamp(64px, 8vw, 120px); }
.phero--plate .phero__body { padding-bottom: clamp(56px, 7vw, 96px); }
.phero__title { font: 300 clamp(2.8rem, 6.2vw, 6.4rem)/0.96 var(--serif); letter-spacing: -0.035em; font-optical-sizing: auto; max-width: 14ch; }
.phero__lede { max-width: 31rem; color: var(--on-vault-2); font-size: clamp(16px, 1.25vw, 18.5px); line-height: 1.65; }
.phero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; margin-top: 6px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--on-vault-3); margin-bottom: 8px; }
.crumbs a { color: var(--on-vault-2); transition: color 0.3s; }
.crumbs a:hover, .crumbs [aria-current] { color: var(--on-vault); }

/* Services overview: a sticky plate re-engraves as each discipline arrives */
.chapters { padding-block: var(--section); }
.chapters__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.chapters__aside { position: sticky; top: calc(var(--nav-h) + 40px); }
.chapters__plate { aspect-ratio: 4 / 5; max-height: calc(100svh - var(--nav-h) - 80px); width: 100%; outline: 1px solid var(--rule); outline-offset: 12px; }
.chapter { display: grid; gap: 24px; justify-items: start; min-height: 78svh; align-content: center; padding-block: 40px; }
.chapter + .chapter { border-top: 1px solid var(--rule); }
.chapter__photo { display: none; }
.chapter .muted { max-width: 34rem; }
.points { width: 100%; border-top: 1px solid var(--rule); }
.points li { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.points b { font: 400 1.15rem/1.25 var(--serif); }
.points span { color: var(--muted); font-size: 15px; }

/* Ruled rows: a heading on the left, the explanation on the right */
.focus, .principles, .story, .expect { padding-block: var(--section); }
.principles { background: var(--paper-2); }
.rows { border-top: 1px solid var(--ink); }
.rows li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding: clamp(28px, 3vw, 44px) 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.rows h3 { font: 330 clamp(1.6rem, 2.6vw, 2.4rem)/1.08 var(--serif); letter-spacing: -0.02em; }
.rows p { color: var(--muted); font-size: 16px; max-width: 32rem; }

.audience { padding-bottom: var(--section); }
.audience__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.audience__img { aspect-ratio: 5 / 4; outline: 1px solid var(--rule); outline-offset: 12px; }
.audience__img img { width: 100%; height: 100%; object-fit: cover; }
.audience__body { display: grid; gap: 26px; justify-items: start; }

.related { padding-block: var(--section); }
.related--tint { background: var(--paper-2); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px); }
.card { display: grid; gap: 12px; align-content: start; }
.card__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); margin-bottom: 8px; }
.card h3 { font: 380 1.6rem/1.1 var(--serif); letter-spacing: -0.015em; }
.card p { color: var(--muted); font-size: 15px; }

/* About */
.story__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.story__grid > .h2 { position: sticky; top: calc(var(--nav-h) + 40px); }
.story__text { display: grid; gap: 22px; }
.story__text .muted { font-size: 17px; max-width: 38rem; }
.quote-band { position: relative; min-height: min(78svh, 720px); display: flex; align-items: center; color: #fff; overflow: hidden; isolation: isolate; }
.quote-band__bg { position: absolute; inset: 0; z-index: -2; }
.quote-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.quote-band::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 23, 34, 0.85), rgba(11, 23, 34, 0.2) 70%); }
.quote-band blockquote { max-width: 920px; display: grid; gap: 28px; }
.quote-band blockquote p { font: 330 clamp(2rem, 4.4vw, 4rem)/1.1 var(--serif); letter-spacing: -0.025em; text-indent: -0.42em; }
.quote-band blockquote footer { font-size: 14px; color: rgba(255, 255, 255, 0.75); }
.expect-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.expect-grid li { display: grid; gap: 12px; align-content: start; padding-top: 24px; border-top: 1px solid var(--ink); }
.expect-grid h3 { font: 380 1.4rem/1.15 var(--serif); }
.expect-grid p { color: var(--muted); font-size: 15px; }
.vault-band { background: var(--vault); color: var(--on-vault); padding-block: clamp(80px, 9vw, 130px); }
.vault-band__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.vault-band__grid p { color: var(--on-vault-2); max-width: 30rem; }
.vault-band__links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* Insights library */
.library { padding-block: clamp(56px, 6vw, 88px) var(--section); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(36px, 5vw, 60px); }
.filter { height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 1px var(--rule); font: 500 13.5px/1 var(--sans); color: var(--ink-2); cursor: pointer; transition: background-color 0.3s, color 0.3s, box-shadow 0.3s; }
.filter:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.filter.is-on { background: var(--ink); color: var(--paper); box-shadow: none; }
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) clamp(24px, 3vw, 44px); }
.post { display: grid; gap: 22px; align-content: start; }
.post[hidden] { display: none; }
.post--feature { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding-bottom: clamp(36px, 4vw, 56px); border-bottom: 1px solid var(--rule); }
.post__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.post__body { display: grid; gap: 12px; justify-items: start; }
.post--feature h3 { font-size: clamp(1.9rem, 3.2vw, 3rem); line-height: 1.06; letter-spacing: -0.022em; }
.post__dek { color: var(--muted); max-width: 36rem; }
.post__date { font-size: 13px; color: var(--faint); }

/* Article */
.article .phero__title { font-size: clamp(2.4rem, 4.8vw, 4.8rem); line-height: 1.02; max-width: 15ch; }
.article .phero__title .line > span { display: inline; }
.article__meta { display: flex; flex-wrap: wrap; gap: 14px 40px; }
.article__meta dt { font-size: 12.5px; color: var(--on-vault-3); margin-bottom: 4px; }
.article__meta dd { font-size: 14.5px; color: var(--on-vault); }
.article__layout { display: grid; grid-template-columns: 250px minmax(0, 700px); gap: clamp(40px, 8vw, 140px); padding-block: clamp(56px, 7vw, 100px) var(--section); }
.article__sticky { position: sticky; top: calc(var(--nav-h) + 32px); display: grid; gap: 18px; }
.aside-title { font-size: 13px; color: var(--muted); }
.toc { display: grid; border-top: 1px solid var(--rule); }
.toc a { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 14.5px; color: var(--muted); transition: color 0.3s, padding 0.4s var(--ease); }
.toc a:hover, .toc a.is-active { color: var(--ink); padding-left: 8px; }
.aside-card { margin-top: 18px; padding: 26px; background: var(--paper-2); display: grid; gap: 12px; justify-items: start; }
.aside-card h3 { font: 400 1.35rem/1.15 var(--serif); }
.aside-card p { color: var(--muted); font-size: 14.5px; margin-bottom: 6px; }
.prose { display: grid; justify-items: start; }
.prose .prose__lead { font: 360 clamp(1.4rem, 2vw, 1.75rem)/1.45 var(--serif); letter-spacing: -0.01em; color: var(--ink); margin-bottom: 20px; }
.prose .prose__lead::first-letter { float: left; font-size: 3.6em; line-height: 0.82; padding: 0.06em 0.1em 0 0; color: var(--gold); font-weight: 300; }
.prose section { padding-top: 44px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.prose h2 { font: 380 clamp(1.6rem, 2.4vw, 2.1rem)/1.15 var(--serif); letter-spacing: -0.015em; margin-bottom: 16px; }
.prose p { font: 400 19px/1.7 var(--serif); color: var(--ink-2); }
.prose p + p { margin-top: 18px; }
.prose .prose__note { margin: 52px 0 28px; padding: 18px 22px; border-left: 2px solid var(--gold); background: var(--paper-2); font: 400 14px/1.6 var(--sans); color: var(--muted); }
.legal .prose section:first-child { padding-top: 0; }
.legal .prose > .link { margin-top: 44px; }

/* Forms: the card rises over the navy hero */
.form-section { padding-bottom: var(--section); }
.form-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; margin-top: clamp(-90px, -6vw, -48px); position: relative; }
.form-card { background: var(--card); box-shadow: 0 0 0 1px var(--rule-soft), 0 40px 80px -40px rgba(13, 27, 39, 0.35); padding: clamp(28px, 4vw, 56px); border-top: 2px solid var(--gold); }
.form-card__head { display: grid; gap: 8px; padding-bottom: 28px; margin-bottom: 30px; border-bottom: 1px solid var(--rule); }
.form-card__head h2 { font: 360 clamp(1.7rem, 2.6vw, 2.3rem)/1.1 var(--serif); letter-spacing: -0.015em; }
.form-card__head p { color: var(--muted); }
.form { display: grid; gap: 22px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.field-row > * { min-width: 0; }
.field { display: grid; gap: 9px; }
.field label, .slots legend { font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.field__opt, .slots legend span { font-weight: 400; color: var(--faint); }
.field input, .field select, .field textarea { width: 100%; font: 400 16px/1.4 var(--sans); color: var(--ink); background: #fff; border: 1px solid var(--rule); border-radius: 2px; padding: 14px 16px; transition: border-color 0.3s, box-shadow 0.3s; appearance: none; -webkit-appearance: none; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 21px) 50%, calc(100% - 16px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 44px; }
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(13, 27, 39, 0.3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(13, 27, 39, 0.08); }
.slots { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.slots legend { padding: 0; margin-bottom: 10px; }
.slots__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.slots label { position: relative; cursor: pointer; }
.slots input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.slots__grid span { display: grid; place-items: center; height: 48px; border: 1px solid var(--rule); border-radius: 2px; background: #fff; font-size: 14.5px; transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
.slots__grid label:hover span { border-color: var(--ink); }
.slots input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.slots input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.form-note { font-size: 13px; color: var(--faint); text-align: center; }
.site-feedback:empty { display: none; }
.site-feedback { padding: 14px 16px; font-size: 14.5px; background: #fbeeea; color: #8a2f1d; border: 1px solid rgba(138, 47, 29, 0.18); }
.site-feedback.success { background: #ecf3ee; color: #2f5a3f; border-color: rgba(47, 90, 63, 0.2); }
.form-aside { display: grid; gap: 20px; }
.aside-photo { display: grid; overflow: hidden; background: var(--card); box-shadow: 0 0 0 1px var(--rule-soft); }
.aside-photo figure { aspect-ratio: 16 / 9; overflow: hidden; }
.aside-photo figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
a.aside-photo:hover figure img { transform: scale(1.04); }
.aside-photo > div { padding: 26px 28px 30px; display: grid; gap: 12px; justify-items: start; }
.aside-photo h3, .aside-block h3 { font: 380 1.45rem/1.15 var(--serif); letter-spacing: -0.01em; }
.aside-photo p, .aside-block p { color: var(--muted); font-size: 15px; }
.aside-block { padding: 26px 28px; box-shadow: inset 0 0 0 1px var(--rule); display: grid; gap: 12px; justify-items: start; }
.ticks--compact li { padding-block: 11px; font-size: 14.5px; }
.next-steps { counter-reset: step; display: grid; gap: 16px; width: 100%; margin-top: 4px; }
.next-steps li { counter-increment: step; display: grid; grid-template-columns: 32px 1fr; column-gap: 14px; }
.next-steps li::before { content: counter(step); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 500 12px/1 var(--sans); box-shadow: inset 0 0 0 1px var(--ink); }
.next-steps b { font-weight: 500; font-size: 15px; }
.next-steps span { color: var(--muted); font-size: 14px; }

/* =====================================================================
   Motion: one load sequence per page, then only what answers the reader
   ===================================================================== */
/* Pure CSS, so it starts with the first paint instead of waiting for scripts */
@keyframes rise { from { transform: translateY(135%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }
@keyframes draw { from { clip-path: inset(0 100% 0 0); } }
@keyframes fade { from { opacity: 0; } }
.js .hero__title .line > span, .js .phero__title .line > span { animation: rise 0.9s var(--ease) both; }
.js .hero__title .line:nth-child(2) > span, .js .phero__title .line:nth-child(2) > span { animation-delay: 0.06s; }
.js .hero__title .line:nth-child(3) > span, .js .phero__title .line:nth-child(3) > span { animation-delay: 0.12s; }
.js [data-load] { animation: fade-up 0.8s var(--ease) both; }
.js [data-load='2'] { animation-delay: 0.15s; }
.js [data-load='3'] { animation-delay: 0.22s; }
.js .ruler__scale { animation: draw 1.6s var(--ease-io) 0.2s both; }
.js .ruler__year { animation: fade 0.6s var(--ease) both; animation-delay: calc(0.4s + var(--at) * 1s); }

/* Page to page: the navigation stays put while the page dissolves underneath */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.25s; animation-timing-function: var(--ease); }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1180px) {
  .nav__links { gap: 24px; }
  .nav__login { display: none; }
  .vardem-logo { width: 200px; }
  .expect-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .article__layout { grid-template-columns: 220px minmax(0, 1fr); }
  .form-layout { grid-template-columns: 1fr; }
  .form-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-aside > :first-child { grid-row: span 2; }
}

@media (max-width: 900px) {
  :root { --nav-h: 68px; }
  .nav__inner { gap: 16px; }
  .nav__actions { margin-left: auto; }
  .nav__actions .btn { display: none; }
  .vardem-logo { width: 184px; }
  .nav__toggle { display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; cursor: pointer; color: var(--on-vault); }
  .nav__toggle span { display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform 0.5s var(--ease); }
  .menu-open .nav__toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-open .nav__toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav__links { position: fixed; inset: var(--nav-h) 0 0; margin: 0; flex-direction: column; gap: 0; padding: 20px var(--gutter) 40px; background: var(--vault); clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path 0.7s var(--ease-io), visibility 0s 0.7s; overflow-y: auto; }
  .menu-open .nav__links { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.7s var(--ease-io); }
  .menu-open { overflow: hidden; }
  .menu-open .nav { background: var(--vault); transform: none; }
  .nav__links a { font: 300 32px/1.2 var(--serif); padding: 16px 0; border-bottom: 1px solid var(--rule-vault); color: var(--on-vault); }
  .nav__links a::after { display: none; }
  .nav__mobile-only { display: block; }

  .hero { min-height: 0; }
  .hero__plate { position: relative; width: auto; height: min(96vw, 560px); margin-bottom: -22vw; }
  .hero__body { padding-top: 0; gap: 26px; }
  .phero--plate { flex-direction: column; min-height: 0; }
  .phero__plate { position: relative; width: auto; height: min(80vw, 520px); margin-bottom: -18vw; }
  .phero--plate .phero__body { padding-top: 0; }
  .hero-media::after { background: linear-gradient(0deg, var(--vault), rgba(11, 23, 34, 0.35) 45%, transparent 75%); }

  .section-head { grid-template-columns: 1fr; }
  .section-head > p { justify-self: start; }
  .section-head--link { flex-direction: column; align-items: flex-start; }
  .disciplines__grid, .firm__grid, .ledger__grid, .portal__grid, .audience__grid, .story__grid, .vault-band__grid { grid-template-columns: 1fr; }
  .disciplines__aside { position: static; order: -1; }
  .disciplines__plate { aspect-ratio: 16 / 10; outline-offset: 8px; }
  .ledger__head, .story__grid > .h2 { position: static; }

  .track { grid-template-columns: 1fr; margin-top: 0; padding-left: 34px; }
  .track::before, .track::after { right: auto; top: 0; bottom: 0; width: 1px; height: auto; -webkit-mask-image: linear-gradient(180deg, #000 85%, transparent); mask-image: linear-gradient(180deg, #000 85%, transparent); }
  .track::after { transform: scaleY(var(--p)); transform-origin: top; }
  .stage { padding: 0 0 48px; }
  .stage::before { left: -39px; top: 8px; }
  .stage--review::after { left: -38px; right: auto; top: 44px; bottom: 0; width: 9px; height: auto; background: repeating-linear-gradient(180deg, var(--ink-2) 0 1px, transparent 1px 28px); -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }

  .chapters__grid { grid-template-columns: 1fr; }
  .chapters__aside { display: none; }
  .chapter { min-height: 0; padding-block: 56px; }
  .chapter__photo { display: block; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
  .chapter__photo img { width: 100%; height: 100%; object-fit: cover; }

  .rows li { grid-template-columns: 1fr; gap: 12px; }
  .stories { grid-template-columns: 1fr; }
  .story-card--feature { grid-row: auto; }
  .cards { grid-template-columns: 1fr 1fr; }
  .cards > :nth-child(3) { display: none; }
  .post-grid, .post--feature { grid-template-columns: 1fr; }
  .article__layout { grid-template-columns: 1fr; padding-top: 44px; }
  .article__aside { order: 2; }
  .article__sticky { position: static; }
  .article__aside .toc, .article__aside .aside-title { display: none; }
  .legal .article__aside { display: none; }
  .form-aside { grid-template-columns: 1fr; }
  .form-aside > :first-child { grid-row: auto; }
  .footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .btn { --h: 52px; padding: 0 22px; }
  .hero__ctas .btn, .phero__ctas .btn, .cta__actions .btn, .vault-band__links .btn { flex: 1 1 100%; }
  .ruler__year:nth-of-type(2n) { display: none; }
  .discipline a { grid-template-columns: 1fr; gap: 8px; }
  .values div { grid-template-columns: 1fr; gap: 2px; }
  .ledger__rows li { grid-template-columns: 1fr; gap: 8px; padding-left: 26px; }
  .story-card:not(.story-card--feature) { grid-template-columns: 0.85fr 1fr; gap: 16px; }
  .expect-grid, .cards { grid-template-columns: 1fr; }
  .cards > :nth-child(3) { display: grid; }
  .field-row { grid-template-columns: 1fr; }
  .slots__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-card { padding: 26px 20px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .vardem-logo { width: 170px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img, .hero-media__pan { animation: none !important; transform: none !important; will-change: auto; }
  .hero-media__pan { inset: 0; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  @view-transition { navigation: none; }
}
