/* ==========================================================================
   Avelorn — core stylesheet
   Type: Newsreader (high-contrast display serif) + Inter Tight (grotesk)
   Palette: charcoal / paper / bronze, with taupe menu overlay
   ========================================================================== */

:root {
  --ink: #141517;
  --char: #1f2023;
  --char-2: #2a2b2f;
  --paper: #f2efe8;
  --paper-2: #e8e3d8;
  --white: #fbfaf7;
  --taupe: #736b5c;
  --taupe-dk: #5f584b;
  --bronze: #a8774e;
  --bronze-lt: #c9a17a;
  --mist: #9fb0bf;
  --line-dk: rgba(255, 255, 255, 0.14);
  --line-lt: rgba(20, 21, 23, 0.14);
  --muted-dk: rgba(255, 255, 255, 0.62);
  --muted-lt: rgba(20, 21, 23, 0.6);

  --serif: "Newsreader", "Iowan Old Style", "Times New Roman", Georgia, serif;
  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --rail: 72px;
  --gutter: clamp(20px, 5vw, 88px);
  --max: 1320px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-gutter: stable; }
/* Lock scroll on the root (not body) so the reserved scrollbar gutter stays and the layout doesn't shift;
   the root background paints that gutter, so match it to the menu overlay while open. */
html.menu-open { overflow: hidden; background: var(--taupe); }
html.drawer-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--bronze); color: var(--white); }

.theme-dark { background: var(--char); color: var(--white); }

/* ---------- Type ---------- */
.display, h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -0.015em;
  margin: 0;
}
.display { font-size: clamp(3rem, 8.4vw, 8.25rem); line-height: 0.92; letter-spacing: -0.03em; }
.h1 { font-size: clamp(2.6rem, 6vw, 5.5rem); line-height: 0.98; letter-spacing: -0.025em; }
.h2 { font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.04; }
.h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.15; }
.h4 { font-size: 1.35rem; line-height: 1.25; }
em, .it { font-style: italic; }
.serif { font-family: var(--serif); }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.meta { font-size: 11px; line-height: 1.5; letter-spacing: 0.02em; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.55; max-width: 34ch; }
.body-sm { font-size: 13px; line-height: 1.65; }
.muted { color: var(--muted-lt); }
.theme-dark .muted, .on-dark .muted { color: var(--muted-dk); }
.bronze { color: var(--bronze); }
.theme-dark .bronze, .on-dark .bronze { color: var(--bronze-lt); }
.num { font-family: var(--sans); font-size: 11px; letter-spacing: 0.08em; color: var(--bronze); }

.link-u {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.02em;
  padding-bottom: 4px; border-bottom: 1px solid currentColor;
  transition: gap 0.4s var(--ease), color 0.3s;
}
.link-u::after { content: "→"; font-size: 12px; }
.link-u:hover { gap: 16px; color: var(--bronze); }
.theme-dark .link-u:hover, .on-dark .link-u:hover { color: var(--bronze-lt); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 24px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid currentColor; border-radius: 0;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s;
}
.btn:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.on-dark .btn:hover, .theme-dark .btn:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--solid { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--solid:hover { background: var(--bronze); border-color: var(--bronze); }

/* ---------- Layout ---------- */
.shell { padding-left: var(--rail); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: clamp(88px, 12vw, 180px) 0; }
.section--tight { padding: clamp(64px, 8vw, 110px) 0; }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }
.rule { height: 1px; background: var(--line-lt); border: 0; margin: 0; }
.theme-dark .rule, .on-dark .rule { background: var(--line-dk); }

/* ---------- Left rail (Consolance) ---------- */
.rail {
  position: fixed; inset: 0 auto 0 0; z-index: 60;
  width: var(--rail);
  background: var(--white);
  color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 26px 0 30px;
  border-right: 1px solid var(--line-lt);
}
.rail__menu { width: 40px; height: 40px; display: grid; place-items: center; }
.burger { width: 20px; height: 9px; position: relative; }
.burger span { position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform 0.5s var(--ease), top 0.5s var(--ease); }
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 8px; }
.menu-open .burger span:nth-child(1) { top: 4px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 4px; transform: rotate(-45deg); }
.rail__vert {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-lt);
  white-space: nowrap;
}

/* ---------- Top header ---------- */
.topbar {
  position: fixed; top: 0; left: var(--rail); right: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 84px; padding: 0 var(--gutter);
  color: var(--white);
  transition: background 0.5s var(--ease), color 0.5s var(--ease), height 0.5s var(--ease), border-color 0.5s;
  border-bottom: 1px solid transparent;
}
.topbar.is-light { color: var(--ink); }
.topbar.is-scrolled { height: 68px; background: rgba(20, 21, 23, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line-dk); color: var(--white); }
.topbar.is-light.is-scrolled { background: rgba(242, 239, 232, 0.86); border-color: var(--line-lt); color: var(--ink); }
.topbar__nav { display: flex; gap: clamp(14px, 1.8vw, 32px); }
.topbar__nav a { display: grid; grid-template-columns: auto auto; gap: 8px; font-size: 11px; line-height: 1.25; white-space: nowrap; opacity: 0.86; transition: opacity 0.3s; }
@media (max-width: 1280px) { .topbar__nav { display: none; } }
.topbar__nav a:hover, .topbar__nav a[aria-current="page"] { opacity: 1; }
.topbar__nav a span:first-child { opacity: 0.55; }
.topbar__nav a[aria-current="page"] span:last-child { border-bottom: 1px solid currentColor; }
.wordmark {
  font-family: var(--serif); font-size: 21px; letter-spacing: 0.42em; text-transform: uppercase;
  padding-left: 0.42em; line-height: 1; white-space: nowrap;
}
.wordmark small { display: block; font-family: var(--sans); font-size: 7.5px; letter-spacing: 0.5em; text-align: center; margin-top: 7px; opacity: 0.7; }
/* Pin columns explicitly: hidden nav/menu-button items would otherwise let these slide left */
.topbar .wordmark { grid-column: 2; justify-self: center; }
.topbar__right { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 22px; }
.topbar__right .btn { height: 36px; padding: 0 18px; font-size: 10px; }
.topbar__mobile-menu { display: none; }

/* ---------- Full-screen menu (Quadplex / Springs) ---------- */
.menu {
  position: fixed; inset: 0; z-index: 55;
  background: var(--taupe);
  color: var(--white);
  display: grid; grid-template-rows: 1fr auto;
  padding: 120px var(--gutter) 34px calc(var(--rail) + var(--gutter));
  opacity: 0; visibility: hidden;
  transition: opacity 0.7s var(--ease), visibility 0s linear 0.7s;
}
.menu-open .menu { opacity: 1; visibility: visible; transition: opacity 0.7s var(--ease); }
.menu-open .topbar { z-index: 58; color: var(--white); background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.menu__list { align-self: center; justify-self: center; text-align: center; list-style: none; margin: 0; padding: 0; }
.menu__list li { overflow: hidden; }
.menu__list a {
  display: inline-block; font-family: var(--serif); font-size: clamp(2.2rem, 5.2vw, 4.4rem); line-height: 1.12; letter-spacing: -0.02em;
  transform: translateY(105%); transition: transform 0.9s var(--ease), color 0.3s;
}
.menu__list a:hover { font-style: italic; color: var(--paper-2); }
.menu__list a[aria-current="page"] { font-style: italic; }
.menu-open .menu__list a { transform: none; }
.menu__list li:nth-child(2) a { transition-delay: 0.04s; }
.menu__list li:nth-child(3) a { transition-delay: 0.08s; }
.menu__list li:nth-child(4) a { transition-delay: 0.12s; }
.menu__list li:nth-child(5) a { transition-delay: 0.16s; }
.menu__list li:nth-child(6) a { transition-delay: 0.2s; }
.menu__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.menu__foot-links { display: flex; gap: 26px; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; }
.menu__foot-links a:hover { text-decoration: underline; }
.menu__phone { font-family: var(--serif); font-size: 22px; }
.menu__offices { display: flex; gap: 48px; font-size: 12px; line-height: 1.55; opacity: 0.85; }

/* ---------- Video stage (homepage) ---------- */
/* v2 legibility: videos are dimmed + desaturated (tunable via ?tune on the homepage),
   and a stronger scrim sits between video and text. */
.video-stage {
  --vid-brightness: 0.66;
  --vid-saturate: 0.77;
  --vid-overlay: 1;
  position: fixed; inset: 0; z-index: 0; background: var(--ink); overflow: hidden;
}
.video-stage video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06);
  filter: brightness(var(--vid-brightness)) saturate(var(--vid-saturate));
  transition: opacity 1.6s var(--ease), transform 7s linear;
}
.video-stage video.is-active { opacity: 1; transform: scale(1); }
.video-stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  opacity: var(--vid-overlay);
  background:
    linear-gradient(180deg, rgba(20,21,23,0.6) 0%, rgba(20,21,23,0.35) 40%, rgba(20,21,23,0.8) 100%),
    linear-gradient(90deg, rgba(20,21,23,0.78) 0%, rgba(20,21,23,0.35) 55%, rgba(20,21,23,0.15) 100%);
}
.over-video { position: relative; z-index: 2; color: var(--white); text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35); }
.over-video .eyebrow { opacity: 0.9 !important; }
/* Same gray as the "01" numeral in the top navigation (--white at the numeral's 0.55 opacity) */
:root { --nav-gray: rgba(251, 250, 247, 0.55); }
.over-video .disc p { color: var(--nav-gray); font-size: 14px; }
.over-video .text-nav-gray { color: var(--nav-gray); }

/* Supporting copy over video: larger, brighter, anchored by a bronze rule */
.over-video__support {
  margin: 0; max-width: 44ch;
  font-size: clamp(1rem, 1.15vw, 1.125rem); line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  padding-left: 20px; border-left: 1px solid var(--bronze-lt);
}

/* Tuning panel (homepage, only with ?tune in the URL) */
.tune {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 280px;
  background: rgba(20, 21, 23, 0.92); color: var(--white); border: 1px solid var(--line-dk);
  padding: 18px 20px 14px; font-size: 12px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.tune h6 { margin: 0 0 14px; font-size: 10px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bronze-lt); }
.tune label { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; margin-bottom: 12px; }
.tune input[type="range"] { grid-column: 1 / -1; width: 100%; accent-color: var(--bronze-lt); }
.tune output { font-variant-numeric: tabular-nums; color: var(--muted-dk); }
.tune button { margin-top: 4px; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; border-bottom: 1px solid currentColor; }
.solid { position: relative; z-index: 2; }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 150px 0 56px; }
.hero__meta { position: absolute; top: 130px; left: 0; right: 0; }
.hero__grid { align-items: end; row-gap: 40px; }
.hero__title { grid-column: 1 / span 8; }
.hero__aside { grid-column: 9 / span 4; padding-bottom: 14px; }
.hero__foot { margin-top: clamp(48px, 8vh, 96px); display: flex; justify-content: space-between; align-items: center; }
.scroll-cue { display: inline-flex; align-items: center; gap: 16px; font-size: 11px; }
.scroll-cue i {
  width: 38px; height: 38px; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; font-style: normal;
  position: relative; overflow: hidden;
}
.scroll-cue i::before { content: "↓"; animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-140%); } 45%, 55% { transform: none; } 100% { transform: translateY(140%); } }
.hero__index { display: flex; gap: 14px; align-items: center; font-size: 11px; }
.hero__index b { font-weight: 400; display: inline-block; width: 36px; height: 1px; background: var(--line-dk); position: relative; overflow: hidden; }
.hero__index b::after { content: ""; position: absolute; inset: 0; background: var(--white); transform-origin: left; transform: scaleX(var(--p, 0.33)); transition: transform 0.8s var(--ease); }

/* page hero (non-home) */
.page-hero { position: relative; padding: clamp(170px, 22vh, 240px) 0 clamp(72px, 10vw, 130px); overflow: hidden; }
.page-hero__ghost {
  position: absolute; right: -0.06em; bottom: -0.2em; z-index: 0;
  font-family: var(--serif); font-size: clamp(10rem, 30vw, 30rem); line-height: 0.8; letter-spacing: -0.05em;
  color: rgba(255,255,255,0.045); pointer-events: none; user-select: none; white-space: nowrap;
}
.theme-light .page-hero__ghost, .page-hero.is-light .page-hero__ghost { color: rgba(20,21,23,0.05); }
.page-hero .wrap { position: relative; z-index: 1; }
.crumbs { display: flex; gap: 10px; font-size: 11px; margin-bottom: 36px; }
.crumbs span { opacity: 0.45; }

/* ---------- Diamond media (Consolance) ---------- */
.diamond { position: relative; aspect-ratio: 1; width: 100%; }
.diamond__inner {
  position: absolute; inset: 14.6%; transform: rotate(45deg); overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.45);
}
.diamond__inner > * { position: absolute; top: 50%; left: 50%; width: 142%; height: 142%; max-width: none; object-fit: cover; transform: translate(-50%, -50%) rotate(-45deg); }

.tall-media { position: relative; overflow: hidden; background: var(--char); }
.tall-media video, .tall-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Ghost word (Turecap "Investment") ---------- */
.ghost-word {
  position: absolute; left: 0; right: 0; white-space: nowrap; overflow: hidden; pointer-events: none; user-select: none;
  font-family: var(--serif); font-size: clamp(8rem, 20vw, 20rem); line-height: 0.9; letter-spacing: -0.04em;
  color: rgba(20,21,23,0.045);
}
.on-dark .ghost-word, .theme-dark .ghost-word { color: rgba(255,255,255,0.05); }

/* ---------- Home: statement ---------- */
.statement { min-height: 110svh; display: flex; align-items: center; }
.statement__text { font-family: var(--serif); font-size: clamp(2rem, 4.6vw, 4.4rem); line-height: 1.08; letter-spacing: -0.02em; max-width: 19ch; }
.statement__text em { color: var(--bronze-lt); }
.statement__sub { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; max-width: 760px; }

/* ---------- Disciplines (over video) ---------- */
.disciplines { min-height: 110svh; display: flex; flex-direction: column; justify-content: center; }
.disc-intro__head { grid-column: 1 / span 7; }
.disc-intro__aside { grid-column: 9 / span 4; }
.disc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-dk); margin-top: 72px; }
.disc { padding: 34px 28px 10px 0; border-right: 1px solid var(--line-dk); margin-right: 28px; }
.disc:last-child { border-right: 0; margin-right: 0; }
.disc h3 { font-size: clamp(1.4rem, 2vw, 1.85rem); line-height: 1.12; margin: 44px 0 18px; }
.disc p { font-size: 13px; color: var(--muted-dk); margin: 0; max-width: 30ch; }

/* ---------- Cards / lists ---------- */
.approach { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: center; row-gap: 56px; }
.approach__media { grid-column: 1 / span 5; }
.approach__copy { grid-column: 7 / span 6; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 56px; }
.two-col h4 { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.02em; margin: 14px 0 10px; }
.two-col p { margin: 0; font-size: 13px; }

.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dk); }
.rows li { border-bottom: 1px solid var(--line-dk); }
.rows a, .rows .row {
  display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 20px; padding: 28px 0;
  transition: padding 0.5s var(--ease), color 0.3s;
}
.rows a:hover { padding-left: 14px; color: var(--bronze-lt); }
.rows .row__title { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.6rem); line-height: 1.1; }
.rows .row__desc { font-size: 13px; max-width: 42ch; color: var(--muted-dk); }
.theme-light .rows, .theme-light .rows li { border-color: var(--line-lt); }

.insight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.insight { display: flex; flex-direction: column; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line-lt); }
.insight h3 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); line-height: 1.2; transition: color 0.3s; }
.insight:hover h3 { color: var(--bronze); }
.insight p { margin: 0; font-size: 13px; color: var(--muted-lt); }
.insight .meta { display: flex; justify-content: space-between; color: var(--muted-lt); }

.stat-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--white); box-shadow: 0 50px 90px -50px rgba(20,21,23,0.35); }
.stat { padding: clamp(40px, 5vw, 72px) clamp(20px, 3vw, 44px); text-align: center; border-right: 1px solid var(--line-lt); display: flex; flex-direction: column; align-items: center; }
.stat:last-child { border-right: 0; }
.stat__big { font-family: var(--serif); font-size: clamp(3rem, 5.4vw, 4.8rem); line-height: 1; letter-spacing: -0.03em; }
.stat__label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; margin: 16px 0 26px; padding-bottom: 26px; border-bottom: 1px solid var(--line-lt); width: 70%; }
.stat p { margin: 0 0 26px; font-size: 13px; color: var(--muted-lt); max-width: 24ch; }

.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-dk); }
.resource { padding: 40px 36px 48px 0; margin-right: 36px; border-right: 1px solid var(--line-dk); }
.resource:last-child { border: 0; margin: 0; }
.resource h3 { font-size: 1.7rem; margin: 40px 0 16px; }
.resource p { font-size: 13px; color: var(--muted-dk); margin: 0; max-width: 34ch; }

/* ---------- CTA band (Turecap yellow → bronze) ---------- */
.cta { background: var(--bronze); color: var(--white); text-align: center; }
.cta h2 { font-size: clamp(2.4rem, 5.4vw, 5rem); line-height: 1.02; letter-spacing: -0.025em; max-width: 16ch; margin: 0 auto 44px; }
.cta .btn:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

/* ---------- Quote (Turecap mission) ---------- */
.quote { position: relative; }
.quote blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1.2; letter-spacing: -0.015em; max-width: 26ch; }
.quote__mark { font-family: var(--serif); font-size: 5rem; line-height: 0.6; color: var(--bronze); display: block; margin-bottom: 20px; }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 2; background: var(--ink); color: var(--white); padding: clamp(80px, 10vw, 140px) 0 34px; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 48px; }
.footer__brand { grid-column: 1 / span 5; }
.footer__brand .h2 { max-width: 13ch; }
.footer__col { grid-column: span 2; }
.footer__col--wide { grid-column: span 3; }
.footer__col h5 { margin: 0 0 20px; font-size: 10px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-dk); }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 13px; }
.footer__col a:hover { color: var(--bronze-lt); }
.footer__col address { font-style: normal; font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.82); margin-bottom: 18px; }
.footer__mark {
  font-family: var(--serif); text-transform: uppercase; letter-spacing: 0.2em; line-height: 0.8; white-space: nowrap;
  font-size: clamp(2.6rem, 9.6vw, 10.5rem); color: rgba(255,255,255,0.06); margin: clamp(60px, 9vw, 120px) 0 30px; text-align: center; padding-left: 0.2em;
}
.footer__legal { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--line-dk); font-size: 11px; color: var(--muted-dk); }
.footer__legal p { margin: 0; max-width: 80ch; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; } .reveal-d2 { transition-delay: 0.2s; } .reveal-d3 { transition-delay: 0.3s; }
/* The mask crops tall ascenders (line-height < font height) and italic overhangs, so pad the mask
   on every side and pull it back with equal negative margins: layout is unchanged (net +0.06em below,
   as before) but glyphs get room. The hidden offset is deeper so padding doesn't expose letters early. */
.split-line { display: block; overflow: hidden; padding: 0.12em 0.25em 0.1em; margin: -0.12em -0.25em -0.04em; }
/* Stack masked lines in a flex column so adjacent negative margins add up instead of collapsing */
:where(h1, h2, p):has(> .split-line) { display: flex; flex-direction: column; }
.split-line > span { display: block; transform: translateY(135%); transition: transform 1.2s var(--ease); }
.is-in .split-line > span, .split-line.is-in > span { transform: none; }
.split-line:nth-child(2) > span { transition-delay: 0.08s; }
.split-line:nth-child(3) > span { transition-delay: 0.16s; }

/* ==========================================================================
   Page-specific
   ========================================================================== */

/* Philosophy */
.pillars { counter-reset: p; }
.pillar { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--line-lt); }
.pillar__n { grid-column: 1 / span 2; font-family: var(--serif); font-size: clamp(3rem, 6vw, 5.4rem); line-height: 0.9; color: var(--bronze); }
.pillar__head { grid-column: 3 / span 4; }
.pillar__head h3 { margin-top: 10px; }
.pillar__body { grid-column: 8 / span 5; }
.pillar__body p { margin: 0 0 16px; }
.pillar__body ul { margin: 22px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-lt); }
.pillar__body li { padding: 12px 0; border-bottom: 1px solid var(--line-lt); font-size: 13px; display: flex; gap: 14px; }
.pillar__body li::before { content: "—"; color: var(--bronze); }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-dk); border-left: 1px solid var(--line-dk); }
.principle { padding: 44px 36px 50px; border-right: 1px solid var(--line-dk); border-bottom: 1px solid var(--line-dk); }
.principle h4 { font-size: 1.5rem; margin: 30px 0 14px; }
.principle p { font-size: 13px; color: var(--muted-dk); margin: 0; }
.process { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; position: relative; }
.process::before { content: ""; position: absolute; top: 19px; left: 0; right: 0; height: 1px; background: var(--line-lt); }
.step { position: relative; padding-right: 24px; }
.step__dot { width: 39px; height: 39px; border-radius: 50%; border: 1px solid var(--bronze); background: var(--paper); display: grid; place-items: center; font-size: 11px; color: var(--bronze); position: relative; }
.step h4 { font-size: 1.3rem; margin: 26px 0 10px; }
.step p { font-size: 13px; color: var(--muted-lt); margin: 0; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) clamp(20px, 3vw, 44px); }
.team-grid--duo { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1000px; }
@media (max-width: 760px) { .team-grid--duo { grid-template-columns: 1fr; } }
.member { cursor: pointer; text-align: left; display: block; width: 100%; }
.member__photo {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  background: linear-gradient(160deg, var(--char-2), var(--ink));
  display: grid; place-items: center;
}
.member__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(20,21,23,0.55)); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: transform 1.2s var(--ease), filter 0.6s; }
.member:hover .member__photo img { transform: scale(1.04); filter: grayscale(0.2); }
.member__initials { font-family: var(--serif); font-size: clamp(3.5rem, 7vw, 6rem); color: rgba(255,255,255,0.14); letter-spacing: 0.04em; transition: color 0.6s; }
.member:hover .member__initials { color: var(--bronze-lt); }
.member__plus { position: absolute; right: 16px; bottom: 16px; z-index: 1; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,0.5); border-radius: 50%; display: grid; place-items: center; color: var(--white); font-size: 16px; transition: background 0.3s, transform 0.5s var(--ease); }
.member:hover .member__plus { background: var(--bronze); border-color: var(--bronze); transform: rotate(90deg); }
.member__name { font-family: var(--serif); font-size: 1.6rem; line-height: 1.15; margin: 20px 0 4px; }
.member__role { font-size: 12px; color: var(--muted-lt); }

.drawer { position: fixed; inset: 0; z-index: 80; visibility: hidden; transition: visibility 0s linear 0.7s; }
.drawer.is-open { visibility: visible; transition: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(20,21,23,0.55); opacity: 0; transition: opacity 0.6s var(--ease); }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(620px, 100%); background: var(--paper); color: var(--ink);
  transform: translateX(100%); transition: transform 0.7s var(--ease); overflow-y: auto; padding: 36px clamp(24px, 4vw, 56px) 56px;
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__close { display: inline-flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 48px; }
.drawer__close i { width: 20px; height: 9px; position: relative; }
.drawer__close i::before, .drawer__close i::after { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: currentColor; transform: rotate(45deg); }
.drawer__close i::after { transform: rotate(-45deg); }
.drawer__bio p { margin: 0 0 16px; }

/* About — timeline */
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--line-lt); }
.timeline__progress { position: absolute; top: 0; left: 50%; width: 1px; background: var(--bronze); height: 0; transform: translateX(-0.5px); }
.t-item { position: relative; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(48px, 8vw, 140px); padding: clamp(40px, 6vw, 80px) 0; }
.t-item::before { content: ""; position: absolute; left: 50%; top: calc(clamp(40px, 6vw, 80px) + 30px); width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 1px solid var(--bronze); transform: translateX(-50%); transition: background 0.5s; }
.t-item.is-in::before { background: var(--bronze); }
.t-item__year { font-family: var(--serif); font-size: clamp(3.5rem, 7vw, 6.4rem); line-height: 0.9; letter-spacing: -0.03em; text-align: right; }
.t-item__year small { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bronze); margin-top: 16px; }
.t-item__body h3 { margin: 12px 0 14px; }
.t-item__body p { margin: 0; max-width: 44ch; color: var(--muted-lt); }
.t-item:nth-child(even) .t-item__year { order: 2; text-align: left; }
.t-item:nth-child(even) .t-item__body { order: 1; text-align: right; justify-self: end; }
.t-item:nth-child(even) .t-item__body p { margin-left: auto; }

.offices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.office { position: relative; overflow: hidden; background: var(--char); color: var(--white); min-height: 440px; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(28px, 3vw, 44px); }
.office video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.38; transition: opacity 0.8s var(--ease), transform 2s var(--ease); }
.office:hover video { opacity: 0.55; transform: scale(1.04); }
.office > *:not(video) { position: relative; }
.office__city { font-family: var(--serif); font-size: clamp(2.4rem, 4.4vw, 3.8rem); line-height: 1; letter-spacing: -0.02em; }
.office address { font-style: normal; font-size: 14px; line-height: 1.6; margin-top: 18px; color: rgba(255,255,255,0.85); }

/* Education */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 56px; }
.chip { height: 34px; padding: 0 16px; border: 1px solid var(--line-lt); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; transition: all 0.3s; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.feature { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: stretch; background: var(--char); color: var(--white); margin-bottom: clamp(56px, 7vw, 96px); }
.feature__media { grid-column: 1 / span 6; position: relative; min-height: 440px; overflow: hidden; }
.feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Blank article-image placeholder (shown until an article supplies an image) */
.img-placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 22px), linear-gradient(135deg, var(--char-2), var(--ink)); }
.img-placeholder svg { display: block; width: 56px; height: 56px; margin: 0 auto 16px; color: var(--bronze-lt); opacity: 0.7; }
.img-placeholder span { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-dk); }
/* The feature card is dark: muted copy inside it uses the light-on-dark gray */
.feature .muted { color: var(--muted-dk); }
.feature__copy { grid-column: 7 / span 6; padding: clamp(32px, 5vw, 72px) clamp(24px, 4vw, 64px) clamp(32px, 5vw, 72px) 0; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.feature__copy h2 { font-size: clamp(2rem, 3.4vw, 3.1rem); line-height: 1.08; }
.article-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-lt); }
.article-list li { border-bottom: 1px solid var(--line-lt); }
.article-list a { display: grid; grid-template-columns: 160px 1fr 1fr 120px; gap: 28px; align-items: baseline; padding: 34px 0; transition: padding 0.5s var(--ease); }
.article-list a:hover { padding-left: 14px; }
.article-list a:hover h3 { color: var(--bronze); }
.article-list h3 { font-size: clamp(1.4rem, 2.2vw, 1.95rem); line-height: 1.15; transition: color 0.3s; }
.article-list p { margin: 0; font-size: 13px; color: var(--muted-lt); }
.article-list .meta { color: var(--muted-lt); }
.article-list .read { text-align: right; font-size: 11px; color: var(--muted-lt); }

.article { max-width: 720px; margin: 0 auto; }
.article__body { font-family: var(--serif); font-size: clamp(1.1rem, 1.35vw, 1.28rem); line-height: 1.7; }
.article__body > p:first-child { font-size: 1.3em; line-height: 1.5; }
.article__body > p:first-child::first-letter { float: left; font-size: 4.2em; line-height: 0.8; margin: 0.08em 0.1em 0 0; color: var(--bronze); }
.article__body h3 { font-size: 1.6em; margin: 1.8em 0 0.6em; line-height: 1.2; }
.article__body blockquote { margin: 1.6em 0; padding: 0 0 0 28px; border-left: 1px solid var(--bronze); font-style: italic; font-size: 1.25em; line-height: 1.45; }
.article__body ul { padding-left: 1.1em; }
.article__body li { margin-bottom: 0.5em; }
.disclaimer { margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--line-lt); font-size: 11px; color: var(--muted-lt); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 64px; }
.contact-form { grid-column: 1 / span 7; }
.contact-info { grid-column: 9 / span 4; }
.field { position: relative; margin-bottom: 30px; }
.field label { display: block; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-lt); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--line-lt); background: transparent; padding: 10px 0 12px;
  font-family: var(--serif); font-size: 1.35rem; color: var(--ink); border-radius: 0; outline: none; transition: border-color 0.3s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 120px; font-size: 1.2rem; line-height: 1.5; }
.field select { background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 6px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--bronze); }
.field .err { position: absolute; right: 0; top: 0; font-size: 11px; color: #a2432f; opacity: 0; transition: opacity 0.3s; }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: #a2432f; }
.field.is-invalid .err { opacity: 1; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 12px; color: var(--muted-lt); margin: 8px 0 36px; }
.consent input { margin-top: 3px; accent-color: var(--bronze); }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-field { margin: 4px 0 20px; min-height: 65px; }
.form-error { margin: 0 0 20px; padding: 12px 16px; border-left: 2px solid #a2432f; background: rgba(162, 67, 47, 0.07); color: #7d3222; font-size: 13px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.form-success { display: none; padding: 40px; background: var(--char); color: var(--white); }
.form-success.is-shown { display: block; }
.info-block { padding: 26px 0; border-top: 1px solid var(--line-lt); }
.info-block .serif { font-size: 1.5rem; line-height: 1.3; }
.info-block a:hover { color: var(--bronze); }

.map-wrap { display: grid; grid-template-columns: 380px 1fr; min-height: 580px; background: var(--char); color: var(--white); }
.map-list { display: flex; flex-direction: column; }
.map-list .office-item { cursor: pointer; text-align: left; padding: 34px 36px; border-bottom: 1px solid var(--line-dk); transition: background 0.4s; position: relative; }
.map-list .office-item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--bronze-lt); transform: scaleY(0); transition: transform 0.5s var(--ease); }
.map-list .office-item.is-active { background: var(--char-2); }
.map-list .office-item.is-active::before { transform: none; }
.map-list .office-item:hover { background: var(--char-2); }
.map-list .city { font-family: var(--serif); font-size: 2rem; line-height: 1.1; margin: 10px 0 12px; display: block; }
.map-list address { font-style: normal; font-size: 13px; color: rgba(255,255,255,0.78); }
.map-list .dir { display: inline-block; margin-top: 14px; font-size: 11px; border-bottom: 1px solid currentColor; color: var(--bronze-lt); }
#map { min-height: 580px; background: #1b1c1f; }
.leaflet-container { font-family: var(--sans) !important; background: #1b1c1f !important; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--paper) !important; color: var(--ink) !important; border-radius: 0 !important; box-shadow: 0 20px 40px -20px rgba(0,0,0,.5) !important; }
.leaflet-popup-content { margin: 16px 20px !important; font-size: 12px; line-height: 1.5; }
.leaflet-popup-content strong { font-family: var(--serif); font-weight: 400; font-size: 18px; display: block; margin-bottom: 4px; }
.leaflet-control-attribution { background: rgba(20,21,23,0.7) !important; color: rgba(255,255,255,0.5) !important; }
.leaflet-control-attribution a { color: rgba(255,255,255,0.7) !important; }
.leaflet-bar a { background: var(--char) !important; color: var(--white) !important; border-color: var(--line-dk) !important; border-radius: 0 !important; }
.pin { width: 22px; height: 22px; border-radius: 50%; background: var(--bronze); border: 3px solid var(--paper); box-shadow: 0 0 0 8px rgba(168,119,78,0.28); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .topbar__nav { display: none; }
  .hero__title { grid-column: 1 / -1; }
  .hero__aside { grid-column: 1 / span 8; }
  .disc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .disc:nth-child(2) { border-right: 0; margin-right: 0; }
  .disc:nth-child(-n+2) { border-bottom: 1px solid var(--line-dk); }
  .footer__brand { grid-column: 1 / -1; }
  .footer__col, .footer__col--wide { grid-column: span 4; }
  .article-list a { grid-template-columns: 130px 1fr; }
  .article-list a p, .article-list .read { display: none; }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .process::before { display: none; }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-wrap { grid-template-columns: 1fr; }
  .map-list { flex-direction: row; overflow-x: auto; }
  .map-list .office-item { flex: 1 0 280px; border-right: 1px solid var(--line-dk); }
  #map { min-height: 440px; }
}

@media (max-width: 760px) {
  :root { --rail: 0px; }
  .rail { display: none; }
  /* Equal side columns keep the logo truly centered on phones */
  .topbar { height: 68px; grid-template-columns: 1fr auto 1fr; }
  .topbar__mobile-menu { display: grid; justify-self: start; width: 40px; height: 40px; place-items: center; margin-left: -10px; }
  .topbar .wordmark { justify-self: center; font-size: 17px; }
  .topbar__right .btn { display: none; }
  .menu { padding: 100px var(--gutter) 28px; }
  .menu__offices { display: none; }
  .hero__meta { top: 96px; }
  .hero__aside { grid-column: 1 / -1; }
  .disc-intro__head, .disc-intro__aside { grid-column: 1 / -1; }
  .hero__index { display: none; }
  .statement__sub, .two-col, .form-row { grid-template-columns: 1fr; }
  .disc-grid, .insight-grid, .stat-cards, .resource-grid, .team-grid, .offices, .principles { grid-template-columns: 1fr; }
  .disc, .resource { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line-dk); }
  .stat { border-right: 0; border-bottom: 1px solid var(--line-lt); }
  .approach__media, .approach__copy, .contact-form, .contact-info { grid-column: 1 / -1; }
  .approach__media { max-width: 440px; }
  .rows a, .rows .row { grid-template-columns: 44px 1fr; }
  .rows .row__desc { grid-column: 2; }
  .footer__col, .footer__col--wide { grid-column: span 6; }
  .pillar__n, .pillar__head, .pillar__body { grid-column: 1 / -1; }
  .pillar__head { margin: 18px 0 24px; }
  .process { grid-template-columns: 1fr; }
  .timeline::before, .timeline__progress { left: 6px; }
  .t-item { grid-template-columns: 1fr; padding-left: 36px; row-gap: 18px; }
  .t-item::before { left: 6px; top: calc(clamp(40px, 6vw, 80px) + 14px); }
  .t-item__year, .t-item:nth-child(even) .t-item__year { order: 0; text-align: left; }
  .t-item:nth-child(even) .t-item__body { order: 1; text-align: left; justify-self: start; }
  .t-item:nth-child(even) .t-item__body p { margin-left: 0; }
  .feature__media, .feature__copy { grid-column: 1 / -1; }
  .feature__media { min-height: 260px; }
  .feature__copy { padding: 32px 24px; }
  .article-list a { grid-template-columns: 1fr; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .split-line > span { transform: none; }
}

/* Investor Relations gate ------------------------------------------------- */
.gate { max-width: 860px; }
.gate--locked .form-error { max-width: 52ch; }
.gate__form { margin-top: 8px; max-width: 420px; }
.gate__form .field { margin-bottom: 24px; }
.gate__docs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-lt); }
.gate__docs li {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 28px 0; border-bottom: 1px solid var(--line-lt);
}
.gate__docs h3 { font-family: var(--serif); font-size: 26px; font-weight: 400; margin: 0 0 8px; }
.gate__docs p { margin: 0; font-size: 15px; line-height: 1.5; max-width: 56ch; }
.gate__docs .btn { flex: none; }
.gate__note { margin: 36px 0 0; font-size: 13px; line-height: 1.6; max-width: 70ch; }
@media (max-width: 720px) {
  .gate__docs li { flex-direction: column; align-items: flex-start; gap: 18px; }
}
