@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,200..500&family=Archivo:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ============================================================
   Cash Cow Capital — design tokens
   ============================================================ */
:root {
  --void: #07080a;
  --panel: #0c0f13;
  --card: #11151b;
  --card-hi: #171c24;

  --gold: #c2a163;
  --gold-lt: #e0c68f;
  --gold-dim: #9a8248;

  --bone: #efede8;
  --mist: #8c96a2;
  --mist-dim: #7f8691;   /* 4.9:1 on the cards — WCAG AA for small text */

  --line: rgba(194, 161, 99, 0.20);
  --hair: rgba(255, 255, 255, 0.075);

  --display: 'Fraunces', 'Georgia', 'Times New Roman', serif;
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Consolas, monospace;

  --gutter: clamp(20px, 4vw, 40px);
  --max: 1300px;
  --nav-h: 86px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* the rem root — every rem-based size on the site scales from here */
  font-size: 17.5px;
}

body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-variation-settings: 'opsz' 144, 'SOFT' 0, 'WONK' 0;
  font-weight: 300;
  letter-spacing: -0.018em;
  line-height: 1.06;
  margin: 0;
  color: var(--bone);
}

h1 { font-size: clamp(3.1rem, 7vw, 6.4rem); line-height: 0.98; }
h2 { font-size: clamp(2.2rem, 4.1vw, 3.8rem); }
h3 { font-size: clamp(1.25rem, 1.68vw, 1.62rem); letter-spacing: -0.01em; }
p  { margin: 0 0 1.1em; color: var(--mist); }

.accent { color: var(--gold); font-style: italic; font-variation-settings: 'opsz' 144, 'WONK' 1; }

::selection { background: var(--gold); color: #0a0a0a; }

:focus-visible {
  outline: 2px solid var(--gold-lt);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================================
   Layout primitives
   ============================================================ */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 9vw, 132px) 0; position: relative; }
.section--panel { background: var(--panel); }
.section--tight { padding: clamp(52px, 6vw, 84px) 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
  flex: none;
}
.eyebrow--plain::before { display: none; }

.section-head { max-width: 780px; margin-bottom: clamp(38px, 5vw, 64px); }
.section-head.is-split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.section-head p { max-width: 62ch; margin-top: 22px; }
.lede { font-size: clamp(1.1rem, 1.4vw, 1.34rem); color: #b3bcc6; }

/* the drawn rule — a section's underline animates in on scroll */
.rule {
  height: 1px;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease);
  margin: 26px 0 0;
}
.in .rule, .rule.in { transform: scaleX(1); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 15px 26px;
  border: 1px solid var(--line);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease);
  z-index: 0;
}
.btn > * { position: relative; z-index: 1; }
.btn:hover { color: #0a0a0a; border-color: var(--gold); }
.btn:hover::after { transform: translateY(0); }
.btn .arw { transition: transform 0.4s var(--ease); }
.btn:hover .arw { transform: translateX(5px); }

.btn--gold { background: var(--gold); color: #0a0a0a; border-color: var(--gold); }
.btn--gold::after { background: var(--gold-lt); }
.btn--gold:hover { color: #0a0a0a; }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease), color 0.35s var(--ease);
}
.link:hover { border-color: var(--gold); color: var(--gold-lt); }
.link .arw { transition: transform 0.35s var(--ease); }
.link:hover .arw { transform: translateX(4px); }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: height 0.4s var(--ease), background-color 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  height: 68px;
  background: rgba(7, 8, 10, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--hair);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: block; line-height: 1; flex: none; }
.brand b {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.12rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone);
}
.brand span {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.12rem;
  /* tracked out so CAPITAL sets to the same width as CASH COW above it */
  letter-spacing: 0.4em;
  margin-right: -0.4em; /* absorb the trailing track so both lines end flush */
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 7px;
}

.nav-links { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); }
.nav-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b8c0c9;
  padding: 6px 0;
  position: relative;
  transition: color 0.3s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav-links a:hover { color: var(--bone); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-links a[aria-current='page'] { color: var(--gold); }
.nav-links a[aria-current='page']::after { transform: scaleX(1); }

/* a nav item with sections of its own opens them on hover or keyboard focus */
.navdrop { position: relative; display: flex; align-items: center; }

.navdrop-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: -18px;
  min-width: 208px;
  display: grid;
  padding: 8px 0;
  background: rgba(12, 15, 19, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--hair);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
}
/* the gap between the link and the menu would drop the hover, so bridge it */
.navdrop::after {
  content: '';
  position: absolute;
  top: 100%; left: -18px; right: -18px;
  height: 16px;
}
.navdrop:hover .navdrop-menu,
.navdrop:focus-within .navdrop-menu { opacity: 1; visibility: visible; transform: none; }

.navdrop-menu a {
  padding: 11px 20px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
  white-space: nowrap;
}
.navdrop-menu a::after { display: none; }
.navdrop-menu a:hover { color: var(--gold); background: rgba(194, 161, 99, 0.06); }

.nav-toggle {
  display: none;
  width: 46px; height: 40px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex: none;
}
.nav-toggle i { display: block; width: 18px; height: 1px; background: var(--bone); position: relative; transition: background 0.2s; }
.nav-toggle i::before, .nav-toggle i::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 1px; background: var(--bone);
  transition: transform 0.35s var(--ease);
}
.nav-toggle i::before { top: -6px; }
.nav-toggle i::after { top: 6px; }
/* the burger belongs to the narrow layout only: wherever the menu links are
   visible it must not be, whatever else the cascade does */
@media (min-width: 901px) {
  .nav-toggle { display: none !important; }
}
.nav-toggle[aria-expanded='true'] i { background: transparent; }
.nav-toggle[aria-expanded='true'] i::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] i::after { transform: translateY(-6px) rotate(-45deg); }

.drawer {
  position: fixed;
  inset: 0;
  z-index: 89;
  background: var(--void);
  padding: calc(var(--nav-h) + 30px) var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transform: translateY(-100%);
  transition: transform 0.55s var(--ease);
  overflow-y: auto;
}
.drawer.is-open { transform: translateY(0); }
.drawer a {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 300;
  padding: 16px 0;
  border-bottom: 1px solid var(--hair);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.drawer a i {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-style: normal;
  letter-spacing: 0.2em;
  color: var(--gold-dim);
}

/* ============================================================
   In-page section nav — slides in once you leave the hero
   ============================================================ */
section[id] { scroll-margin-top: 132px; }


.chip[hidden] { display: none; }

/* left-edge scroll rail — the site's running progress mark */
.rail {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  z-index: 88;
  background: linear-gradient(to bottom, transparent, rgba(194, 161, 99, 0.14), transparent);
  pointer-events: none;
}
/* the browser's own scrollbar is hidden; the page still scrolls by wheel,
   trackpad, keyboard, touch and the scroll rail on the left */
html {
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* old Edge */
}
html::-webkit-scrollbar,
body::-webkit-scrollbar { width: 0; height: 0; }   /* Chrome, Safari, Edge */

.rail b {
  position: absolute;
  left: 0; top: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(to bottom, var(--gold-dim), var(--gold-lt));
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: clamp(620px, 100svh, 1000px);
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 60px) 0 clamp(60px, 8vw, 110px);
  overflow: hidden;
}
.hero--short { min-height: clamp(520px, 78svh, 780px); }
/* hero and the stats row share one background band */
.hero-band { position: relative; overflow: hidden; }
.hero-band > section { position: relative; z-index: 2; }
.hero-band .hero { min-height: clamp(560px, 84svh, 880px); }

/* the band is taller than a lone hero, so ease the floor — otherwise the
   stats row sits on near-solid black and the photo behind it is lost */
.hero-band .hero-scrim {
  background:
    linear-gradient(100deg, rgba(7, 8, 10, 0.94) 0%, rgba(7, 8, 10, 0.70) 42%, rgba(7, 8, 10, 0.24) 72%),
    linear-gradient(to top, var(--void) 0.5%, rgba(7, 8, 10, 0.56) 11%, rgba(7, 8, 10, 0.34) 26%, rgba(7, 8, 10, 0) 52%);
}

.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* hero slideshow — frames are stacked and cross-dissolve, so nothing ever moves
   in layout; the only motion is the drift, which never stops or snaps back */
.hero-track { position: absolute; inset: 0; }
.hero-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 2.4s ease-in-out;
  will-change: opacity;
}
.hero-frame.is-live { opacity: 1; z-index: 1; }

/* every frame drifts continuously and alternates, so there is no restart to see */
.hero-frame img { animation: heroDriftA 17s ease-in-out infinite alternate; }
.hero-frame:nth-child(even) img { animation-name: heroDriftB; animation-duration: 21s; }

@keyframes heroDriftA {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(-1.6%, -1%, 0); }
}
@keyframes heroDriftB {
  from { transform: scale(1.14) translate3d(1.4%, -0.8%, 0); }
  to   { transform: scale(1.04) translate3d(0, 0, 0); }
}

/* these two are portrait originals, so `cover` already crops them hard — pull all
   the way back to 1.0 so as much of the frame shows as the format allows */
.hero-frame.hero-frame--out img {
  animation-name: heroDriftOut;
  animation-duration: 19s;
}
@keyframes heroDriftOut {
  from { transform: scale(1.10) translate3d(0.8%, -0.6%, 0); }
  to   { transform: scale(1) translate3d(0, 0, 0); }
}

/* ---- every other page: a single hero still, drifting the same way ---- */
.hero-media > img,
.band-media img,
.feature-media img {
  animation: heroAmbient 24s ease-in-out infinite alternate;
}
.band-media img { animation-duration: 30s; }
@keyframes heroAmbient {
  from { transform: scale(1.03) translate3d(0, 0, 0); }
  to   { transform: scale(1.11) translate3d(-1.1%, -0.7%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-frame { transition: none; }
  .hero-frame img,
  .hero-media > img,
  .band-media img,
  .feature-media img { animation: none; transform: none; }
}
/* ---------- hero background video (real estate) ---------- */
.hero-poster { width: 100%; height: 100%; object-fit: cover; }

.hero-video {
  position: absolute;
  inset: 0;
  opacity: 0;
  /* stays invisible until a clip actually plays, so the poster shows through
     when there is no footage, the network is slow, or autoplay is blocked */
  transition: opacity 1.2s var(--ease);
}
.hero-video.is-playing { opacity: 1; }

.hero-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.8s var(--ease);
}
.hero-vid.is-live { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}

.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(7, 8, 10, 0.94) 0%, rgba(7, 8, 10, 0.72) 42%, rgba(7, 8, 10, 0.22) 72%),
    linear-gradient(to top, var(--void) 2%, rgba(7, 8, 10, 0) 46%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-inner { max-width: 940px; }
.hero h1 { margin-bottom: 30px; }
.hero-sub { font-size: clamp(1.14rem, 1.65vw, 1.46rem); color: #c3cad2; max-width: 46ch; }

/* page hero (interior pages) */
.crumbs {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist-dim);
  margin-bottom: 26px;
}
.crumbs a { color: var(--mist); transition: color 0.3s; }
.crumbs a:hover { color: var(--gold); }
.crumbs span { margin: 0 10px; color: var(--gold-dim); }

/* ============================================================
   Strategy cards (home)
   ============================================================ */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 26px); }
.strat {
  position: relative;
  min-height: clamp(400px, 44vw, 560px);
  border: 1px solid var(--hair);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(26px, 3vw, 44px);
  isolation: isolate;
}
.strat img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.strat::after {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(7, 8, 10, 0.96) 12%, rgba(7, 8, 10, 0.55) 55%, rgba(7, 8, 10, 0.30) 100%);
  transition: background 0.5s var(--ease);
}
.strat > h3, .strat > p, .strat > a { position: relative; z-index: 2; }
.strat:hover img { transform: scale(1.06); }
.strat:hover { border-color: var(--line); }
.strat h3 {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: 18px;
}
.strat p { max-width: 40ch; margin-bottom: 26px; color: #aeb7c1; }

/* ============================================================
   Stats
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.stats--5 { grid-template-columns: repeat(5, 1fr); }
.stat { padding: clamp(30px, 4vw, 52px) clamp(14px, 2vw, 30px); text-align: center; position: relative; }
.stat + .stat::before {
  content: '';
  position: absolute; left: 0; top: 18%; bottom: 18%;
  width: 1px; background: var(--hair);
}
.stat b {
  display: block;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.1rem, 3.6vw, 3.3rem);
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.02em;
}
/* a stats row whose values are words, not figures */
.stats--text .stat b {
  font-family: var(--sans);
  font-size: clamp(0.95rem, 1.35vw, 1.22rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--bone);
  line-height: 1.35;
}
.stat span {
  display: block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
  line-height: 1.6;
}

/* ============================================================
   Split band (image + copy)
   ============================================================ */
.band { display: grid; grid-template-columns: 1.02fr 1fr; align-items: stretch; gap: 0; }
.band--flip .band-media { order: -1; }
.band-copy { padding: clamp(46px, 6vw, 96px) clamp(24px, 5vw, 84px); display: flex; flex-direction: column; justify-content: center; }
.band-copy .wide { max-width: 54ch; }
.band-media { position: relative; min-height: clamp(320px, 40vw, 620px); overflow: hidden; }
.band-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   Sector rail
   ============================================================ */
.sectors {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--hair);
  background: var(--panel);
}
/* the plate row is separate cards, not one continuous band:
   gap instead of hairline dividers, scoped so ventures keeps its band */
.sectors--8 { grid-template-columns: repeat(8, 1fr); }

/* a row of photo plates is separate cards, not one continuous band. Keyed off
   :has(img) so both the real-estate row and the ventures row get it, while the
   icon rows keep their hairline band. */
.sectors:has(img) {
  gap: clamp(10px, 1.2vw, 18px);
  border: 0;
  background: none;
}
.sectors:has(img) > .sector {
  border: 1px solid var(--hair);
  background: var(--panel);
}
.sectors:has(img) > .sector::before { display: none !important; }
/* two flavours: icon cells (ventures) and illustrated plates (real estate) */
.sector {
  padding: clamp(24px, 3vw, 40px) 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: background 0.4s var(--ease);
}
.sector svg {
  margin: 0 auto 16px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 32px; height: 32px;
  transition: transform 0.45s var(--ease);
}
.sector:hover svg { transform: translateY(-3px); }

/* the illustrated plate bleeds to the cell edges; the label sits under it */
.sector img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-bottom: clamp(14px, 1.6vw, 20px);
  opacity: 1;
  filter: saturate(1.04) contrast(1.05);
  transition: transform 0.7s var(--ease), filter 0.45s var(--ease);
}
.sector:hover img { transform: scale(1.04); filter: saturate(1.1) contrast(1.08); }
.sector:has(img) { padding: 0 0 clamp(18px, 2vw, 24px); }
.sector:has(img) span { padding: 0 12px; }
.sector + .sector::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--hair); z-index: 1;
}
.sector:hover { background: var(--card-hi); }
.sector span {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c6ced7;
  line-height: 1.5;
}

/* ============================================================
   Cards grid (investments / projects / insights)
   ============================================================ */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
/* leadership: three across, the remainder falling to a second row */
.grid--team { grid-template-columns: repeat(4, 1fr); max-width: 1180px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.45s var(--ease), transform 0.45s var(--ease), background 0.45s var(--ease);
}
.card:hover { border-color: var(--line); transform: translateY(-4px); background: var(--card-hi); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; flex: none; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(17, 21, 27, 0.85), rgba(17, 21, 27, 0) 55%);
}
.card-body { padding: clamp(20px, 2vw, 28px); display: flex; flex-direction: column; flex: 1; }
.card-body h3 {
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.tag {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 10px;
  display: block;
}
/* project cards: the sector stays gold, the location steps back to a neutral
   and never breaks across two lines */
.tag .tag-place { color: var(--mist); white-space: nowrap; }
.card-body p { font-size: 0.94rem; margin: 16px 0 22px; color: var(--mist); }
.card-body .link { margin-top: auto; align-self: flex-start; }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--mist-dim);
  border-top: 1px solid var(--hair);
  padding-top: 16px;
  margin-top: auto;
}
.meta b { color: #b9c1ca; font-weight: 400; }

/* ============================================================
   Filters
   ============================================================ */
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--hair);
  margin-bottom: clamp(26px, 3vw, 40px);
}
.filters + .filters { margin-top: -18px; }
.filter-label {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist-dim);
  margin-right: 4px;
}
.chip {
  background: none;
  border: 0;
  padding: 6px 0;
  font-family: var(--sans);
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mist);
  cursor: pointer;
  position: relative;
  transition: color 0.3s var(--ease);
}
.chip::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.chip:hover { color: var(--bone); }
.chip.is-on { color: var(--gold); }
.chip.is-on::after { transform: scaleX(1); transform-origin: left; }

/* ============================================================
   Horizontal card rail — the building images scroll sideways
   ============================================================ */
.hscroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(290px, 27%);
  gap: clamp(16px, 2vw, 24px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 2px;
  padding-bottom: 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dim) rgba(255, 255, 255, 0.06);
  cursor: grab;
}
.hscroll > * { scroll-snap-align: start; }
.hscroll::-webkit-scrollbar { height: 6px; }
.hscroll::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.06); }
.hscroll::-webkit-scrollbar-thumb { background: var(--gold-dim); }
.hscroll:focus-visible { outline: 2px solid var(--gold-lt); outline-offset: 6px; }
.hscroll.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.hscroll.is-dragging img { pointer-events: none; }

/* fade the right edge so it reads as "there is more" */
.hscroll-shell { position: relative; }
.hscroll-shell::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 18px;
  width: 90px;
  pointer-events: none;
  background: linear-gradient(to right, transparent, var(--void));
  opacity: 1;
  transition: opacity 0.35s var(--ease);
}
.section--panel .hscroll-shell::after { background: linear-gradient(to right, transparent, var(--panel)); }
.hscroll-shell.is-end::after { opacity: 0; }

.head-actions { display: flex; align-items: center; gap: clamp(18px, 3vw, 34px); }
.rail-nav { display: flex; gap: 8px; }
.rail-btn {
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--bone);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), opacity 0.3s var(--ease);
}
.rail-btn:hover:not(:disabled) { background: var(--gold); color: #0a0a0a; border-color: var(--gold); }
.rail-btn:disabled { opacity: 0.3; cursor: default; }

@media (max-width: 900px) {
  .hscroll { grid-auto-columns: minmax(250px, 72%); }
}

.card.is-hidden { display: none; }
.empty {
  padding: 60px 0;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist-dim);
}

/* ============================================================
   Approach ledger (a real sequence, so it is numbered)
   ============================================================ */
.ledger { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--hair); }
.ledger--4 { grid-template-columns: repeat(4, 1fr); }
.step { padding: 34px 26px 34px 0; position: relative; }
.step + .step { padding-left: 26px; }
.step + .step::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--hair); }
.step::after {
  content: ''; position: absolute; left: 0; top: -1px; width: 100%; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.7s var(--ease);
}
.in .step::after { transform: scaleX(1); }
.in .step:nth-child(2)::after { transition-delay: 0.1s; }
.in .step:nth-child(3)::after { transition-delay: 0.2s; }
.in .step:nth-child(4)::after { transition-delay: 0.3s; }
.in .step:nth-child(5)::after { transition-delay: 0.4s; }
.step i {
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--gold-dim);
  display: block;
  margin-bottom: 20px;
}
.step h3 {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.step p { font-size: 0.92rem; margin: 0; }

/* ============================================================
   Company-building programme — horizontal accordion
   Columns sit side by side with vertical labels; the open column
   expands its width while its panel fades in.
   ============================================================ */
.hacc {
  display: flex;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  overflow: hidden;
  height: clamp(520px, 60vh, 660px);
}

.hacc-item {
  position: relative;
  flex: 0 0 auto;
  width: 124px;
  min-width: 0;
  display: flex;
  border-left: 1px solid var(--hair);
  transition: width 0.8s cubic-bezier(0.215, 0.61, 0.355, 1),
              background-color 0.6s var(--ease);
}
.hacc-item:first-child { border-left: 0; }
.hacc-item.is-open {
  flex: 1 1 auto;
  width: auto;
  background: var(--card);
}

/* the vertical label rail */
.hacc-tab {
  flex: none;
  width: 124px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 30px 0;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--bone);
  writing-mode: vertical-lr;
  text-orientation: mixed;
  transition: color 0.35s var(--ease), background-color 0.5s var(--ease);
}
.hacc-tab:hover { background: rgba(255, 255, 255, 0.02); }

.hacc-tab i {
  flex: none;
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--gold-dim);
  transition: color 0.35s var(--ease);
}
.hacc-tab span {
  flex: 1;
  font-family: var(--display);
  font-size: clamp(1.3rem, 1.7vw, 1.7rem);
  font-weight: 300;
  letter-spacing: -0.008em;
  white-space: nowrap;
}
.hacc-tab em {
  flex: none;
  width: 9px; height: 9px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  /* points down the column; swings to face the panel when open */
  transform: rotate(-45deg);
  transition: transform 0.55s cubic-bezier(0.215, 0.61, 0.355, 1);
}
.hacc-tab:hover, .hacc-item.is-open .hacc-tab { color: var(--gold-lt); }
.hacc-tab:hover i, .hacc-item.is-open .hacc-tab i { color: var(--gold); }
.hacc-item.is-open .hacc-tab em { transform: rotate(135deg); }

/* the revealed panel */
.hacc-panel {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.55s cubic-bezier(0.215, 0.61, 0.355, 1);
}
.hacc-item.is-open .hacc-panel { opacity: 1; }

.hacc-inner {
  min-width: 420px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 4vw, 56px) clamp(28px, 4vw, 60px);
}
.hacc-inner h3 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  margin-bottom: 18px;
}
.hacc-inner > p {
  font-size: clamp(1.05rem, 1.2vw, 1.2rem);
  max-width: 46ch;
  margin: 0 0 32px;
  color: #b3bcc6;
}
.hacc-inner ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--hair);
  padding-top: 26px;
}
.hacc-inner li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--mono);
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  line-height: 1.5;
}
.hacc-inner li b {
  flex: none;
  min-width: 82px;
  font-weight: 500;
  color: var(--gold);
  text-transform: uppercase;
}
.hacc-inner li span {
  color: var(--mist-dim);
  border-left: 1px solid var(--hair);
  padding-left: 14px;
}

/* below the fold for a row of six — fall back to a stacked accordion */
@media (max-width: 900px) {
  .hacc { display: block; height: auto; }
  .hacc-item {
    display: block;
    width: 100%;
    border-left: 0;
    border-bottom: 1px solid var(--hair);
    background: none;
  }
  .hacc-item:last-child { border-bottom: 0; }
  .hacc-item.is-open { background: none; }
  .hacc-tab {
    width: 100%;
    height: auto;
    writing-mode: horizontal-tb;
    gap: clamp(18px, 3vw, 40px);
    padding: clamp(20px, 2.4vw, 28px) 0;
    text-align: left;
  }
  .hacc-tab span { white-space: normal; }
  .hacc-tab em { transform: translateY(-3px) rotate(45deg); }
  .hacc-item.is-open .hacc-tab em { transform: translateY(2px) rotate(-135deg); }

  .hacc-panel {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 1;
    transition: grid-template-rows 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  .hacc-item.is-open .hacc-panel { grid-template-rows: 1fr; }
  /* padding lives on the children — a 0fr track cannot shrink padding away */
  .hacc-inner {
    min-width: 0;
    height: auto;
    overflow: hidden;
    padding: 0;
  }
  .hacc-inner ul { padding-bottom: clamp(26px, 3vw, 34px); }
  .hacc-inner h3 { display: none; } /* the tab label already says it */
  .hacc-inner ul { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hacc-item, .hacc-panel, .hacc-tab, .hacc-tab em { transition: none; }
}

/* ============================================================
   Criteria / value list
   ============================================================ */
.list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--hair); border: 1px solid var(--hair); }
.list > div { background: var(--panel); padding: clamp(26px, 3vw, 40px); display: flex; gap: 22px; align-items: flex-start; }
.list svg { flex: none; width: 30px; height: 30px; stroke: var(--gold); fill: none; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; margin-top: 3px; }
.list h3 {
  font-family: var(--sans); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 10px;
}
.list p { font-size: 0.93rem; margin: 0; }

/* ============================================================
   Footprint map
   ============================================================ */
.map-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
.map-shell { position: relative; }
.map-shell img { width: 100%; height: auto; }
.market-list { display: flex; flex-direction: column; }
.market {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--hair);
}
.market:first-child { border-top: 1px solid var(--hair); }
.market b {
  font-family: var(--sans); font-weight: 500; font-size: 0.82rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone);
}
.market span { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-dim); }
.market.is-primary span { color: var(--gold); }

/* ============================================================
   Featured project (carousel)
   ============================================================ */
.feature { display: grid; grid-template-columns: 1.15fr 1fr; border: 1px solid var(--hair); background: var(--card); }
/* pinned to 4:3 so a 4:3 project photo fills it with no crop and no bars,
   the same way it fills the cards. No min-height: it would fight the ratio and
   drive the width past the viewport on a phone. */
.feature-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.feature-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* the carousel stacks two layers so slides cross-dissolve instead of cutting;
   only the live one is visible. A lone photo in a feature-media just shows. */
.feature-media img[data-slide-img] {
  opacity: 0;
  /* the outgoing and incoming frames overlap for most of the hold, and the live
     frame drifts very slightly, so the change reads as movement, not a cut */
  transform: scale(1.035);
  transition: opacity 0.9s cubic-bezier(0.33, 0, 0.2, 1), transform 4.4s linear;
  will-change: opacity, transform;
}
.feature-media img[data-slide-img].is-live { opacity: 1; transform: scale(1); }

/* the copy travels a few pixels as it fades, on the same curve */
.feature-copy [data-slide-name],
.feature-copy .place,
.feature-specs,
.feature-copy [data-slide-blurb] {
  transition: opacity 0.5s cubic-bezier(0.33, 0, 0.2, 1), transform 0.5s cubic-bezier(0.33, 0, 0.2, 1);
}
.feature.is-swapping [data-slide-name],
.feature.is-swapping .place,
.feature.is-swapping .feature-specs,
.feature.is-swapping [data-slide-blurb] { opacity: 0; transform: translateY(8px); }

@media (prefers-reduced-motion: reduce) {
  .feature-media img[data-slide-img],
  .feature-copy [data-slide-name],
  .feature-copy .place,
  .feature-specs,
  .feature-copy [data-slide-blurb] { transition: none; transform: none; }
}
.feature-copy { padding: clamp(30px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.feature-copy h3 {
  font-family: var(--display); font-size: clamp(1.6rem, 2.4vw, 2.3rem);
  font-weight: 300; letter-spacing: -0.015em; text-transform: none; margin-bottom: 8px;
}
.feature-copy .place { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 26px; }
.feature-specs { display: flex; flex-wrap: wrap; gap: 10px 30px; margin-bottom: 30px; }
.feature-specs div { border-left: 1px solid var(--line); padding-left: 14px; }
.feature-specs b { display: block; font-family: var(--display); font-size: 1.3rem; font-weight: 300; color: var(--bone); }
.feature-specs span { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mist-dim); }
.feature-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 20px; margin-top: auto; padding-top: 26px; }
.dots { display: flex; flex-wrap: wrap; gap: 8px; }
.dots button { width: 26px; height: 2px; border: 0; padding: 0; background: var(--hair); cursor: pointer; transition: background 0.35s; }
.dots button.is-on { background: var(--gold); }

/* ============================================================
   Team
   ============================================================ */
.team-card { position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--hair); transition: border-color 0.4s var(--ease); }
.team-card:hover { border-color: var(--line); }
.team-photo { aspect-ratio: 4 / 5; overflow: hidden; position: relative; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.12) contrast(1.06) saturate(1.02); transition: transform 0.9s var(--ease), filter 0.6s var(--ease); }
.team-card:hover .team-photo img { transform: scale(1.04); filter: grayscale(0) contrast(1); }
.team-body { padding: 22px clamp(18px, 2vw, 26px) 26px; }
.team-body b {
  display: block; font-family: var(--sans); font-size: 0.84rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.team-body i {
  display: block; font-family: var(--mono); font-style: normal; font-size: 0.66rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin: 9px 0 14px;
}
.team-body p { font-size: 0.9rem; margin: 0; }

/* ============================================================
   Insights
   ============================================================ */
.post-date { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mist-dim); }
.post-title {
  font-family: var(--display);
  font-size: clamp(1.2rem, 1.7vw, 1.6rem);
  font-weight: 300;
  letter-spacing: -0.012em;
  text-transform: none;
  margin: 14px 0 12px;
  transition: color 0.4s var(--ease);
}
.card:hover .post-title { color: var(--gold-lt); }

.post-lead { display: grid; grid-template-columns: 1.25fr 1fr; border: 1px solid var(--hair); background: var(--card); margin-bottom: clamp(20px, 3vw, 32px); }
/* no min-height: .feature-media is aspect-ratio pinned, and a forced height
   makes the ratio derive an over-wide box (453px inside a 390px phone). */
.post-lead .feature-media { min-height: 0; }
.post-lead .feature-copy h3 { font-size: clamp(1.7rem, 2.8vw, 2.6rem); }

/* ============================================================
   Contact
   ============================================================ */
.contact-layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(34px, 5vw, 80px); }
.form { display: grid; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field label {
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--mist);
}
.field input, .field select, .field textarea {
  background: var(--panel);
  border: 1px solid var(--hair);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 14px 16px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); background: var(--card); }
/* keyboard users get the same ring as the rest of the site */
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--gold-lt); outline-offset: 2px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-note { font-size: 0.82rem; color: var(--mist-dim); }
.form-status {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); min-height: 22px;
}

.office { border-top: 1px solid var(--hair); padding: 26px 0; }
.office b {
  display: block; font-family: var(--sans); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 12px;
}
.office p { font-size: 0.95rem; margin: 0; }
.office a { color: var(--gold); border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.office a:hover { border-bottom-color: var(--gold); }

/* ============================================================
   CTA band
   ============================================================ */
.cta { text-align: center; padding: clamp(70px, 9vw, 130px) 0; border-top: 1px solid var(--hair); }
.cta h2 { max-width: 18ch; margin: 0 auto 24px; }
.cta p { max-width: 56ch; margin: 0 auto; }
.cta .btn-row { justify-content: center; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--panel); border-top: 1px solid var(--hair); padding: clamp(52px, 6vw, 84px) 0 34px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); padding-bottom: 46px; border-bottom: 1px solid var(--hair); }
.footer-top p { font-size: 0.92rem; max-width: 34ch; margin: 22px 0 0; }
.footer h4 {
  font-family: var(--mono); font-size: 0.64rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
/* plain items (the address) match the links rather than inheriting body type */
.footer ul li { font-size: 0.9rem; line-height: 1.65; color: var(--mist); }
.footer ul a { font-size: 0.9rem; color: var(--mist); transition: color 0.3s; }
.footer ul a:hover { color: var(--bone); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: space-between;
  padding-top: 28px;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; color: var(--mist-dim);
}
.disclaimer { max-width: 92ch; margin-top: 24px; font-size: 0.72rem; line-height: 1.75; color: #757e8a; }

/* ============================================================
   Scroll reveal
   ============================================================ */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: 0.08s; }
.rv-d2 { transition-delay: 0.16s; }
.rv-d3 { transition-delay: 0.24s; }
.rv-d4 { transition-delay: 0.32s; }

/* ============================================================
   AI orientation — typographic
   No overlays, no canvas, no grid. The signal comes entirely from
   how the existing words are set and how they arrive: monospace
   telemetry labels, a decoding resolve, and a shimmer through the
   closing word of every heading. Not one word of copy is added.
   ============================================================ */

/* ---------- labels read as machine output ---------- */
.eyebrow {
  position: relative;
  gap: 10px;
}
.eyebrow::before {
  content: '[';
  width: auto;
  height: auto;
  background: none;
  opacity: 1;
  font-family: var(--mono);
  font-size: 0.82em;
  color: var(--gold-dim);
}
.eyebrow::after {
  content: ']';
  font-family: var(--mono);
  font-size: 0.82em;
  color: var(--gold-dim);
  margin-left: -2px;
}
.eyebrow--plain::before,
.eyebrow--plain::after { content: none; }

/* while a label is resolving, it is visibly computing */
.eyebrow.is-decoding { color: var(--gold-dim); }

/* ---------- the closing word of each heading carries a slow shimmer ---------- */
.accent,
.w-last {
  display: inline-block;
  /* one tile is exactly 3em and both its edges are flat gold, so the tile
     repeats invisibly. Travelling exactly one tile per cycle at a linear rate
     means the highlight never pauses and never jumps. 3em keeps the tile near
     a word width, so a highlight is crossing the word almost all the time —
     at 16em the tile was 1568px on the h1 and never reached it. */
  background-image: linear-gradient(90deg,
    var(--gold)  0%,
    var(--gold)  36%,
    var(--gold-lt) 45%,
    #fff6df      50%,
    var(--gold-lt) 55%,
    var(--gold)  64%,
    var(--gold)  100%);
  background-size: 3em 100%;
  background-repeat: repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: accentSweep 2.8s linear infinite;
  text-shadow: none;
}
/* the wordmark's second line catches the same light, a single pass on load */
.nav .brand span {
  background-image: linear-gradient(90deg,
    var(--gold)  0%,
    var(--gold)  36%,
    var(--gold-lt) 45%,
    #fff6df      50%,
    var(--gold-lt) 55%,
    var(--gold)  64%,
    var(--gold)  100%);
  background-size: 3em 100%;
  background-repeat: repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brandSweep 3.4s linear 0.6s 1 both;
}
@keyframes brandSweep {
  from { background-position: 0 0; }
  to   { background-position: 9em 0; }
}
@media (prefers-reduced-motion: reduce) {
  .nav .brand span { animation: none; background-image: none; color: var(--gold); }
}

@keyframes accentSweep {
  from { background-position: 0 0; }
  to   { background-position: 3em 0; }
}

/* ---------- headings arrive word by word, resolving out of blur ---------- */
.rv .w, .rv.w-host .w {
  display: inline-block;
  opacity: 0;
  filter: blur(9px);
  transform: translateY(0.22em);
  transition:
    opacity 0.62s var(--ease),
    filter 0.62s var(--ease),
    transform 0.62s var(--ease);
  transition-delay: var(--wd, 0ms);
}
.rv.in .w {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

/* ---------- mono figures stay instrument-like ---------- */
.stat b,
.ledger b,
.feature-specs b { font-variant-numeric: tabular-nums; }
.stat b { letter-spacing: -0.01em; }

@media (prefers-reduced-motion: reduce) {
  .accent, .w-last {
    animation: none;
    background-image: none;
    color: var(--gold);
    -webkit-text-fill-color: var(--gold);
  }
  .rv .w { transition: none; opacity: 1; filter: none; transform: none; }
}

/* ============================================================
   Project dialog
   ============================================================ */
.is-openable { cursor: pointer; }
.is-openable:focus-visible { outline: 2px solid var(--gold-lt); outline-offset: 3px; }

.pmodal {
  /* fixed, not relative: a modal dialog is fixed by UA default, and overriding
     that anchors it to the document instead of the viewport — the page then
     scrolls to the top to reveal it the moment it opens */
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(1040px, 92vw);
  max-height: 88vh;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--bone);
  overflow: auto;
}
.pmodal::backdrop { background: rgba(4, 5, 7, 0.82); backdrop-filter: blur(6px); }

/* keyframes rather than transitions: the element goes display:none -> block,
   which a transition cannot animate across */
@keyframes pmodalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}
@keyframes pmodalBackdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.pmodal[open] { animation: pmodalIn 0.34s var(--ease); }
.pmodal[open]::backdrop { animation: pmodalBackdropIn 0.34s var(--ease); }

/* the page must not scroll behind the dialog either */
body.has-modal { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .pmodal[open], .pmodal[open]::backdrop { animation: none; }
}

.pmodal-x {
  position: sticky;
  top: 0;
  float: right;
  z-index: 2;
  width: 46px; height: 46px;
  margin: 10px 10px 0 0;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--bone);
  background: rgba(7, 8, 10, 0.7);
  border: 1px solid var(--hair);
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.pmodal-x:hover { color: var(--gold); border-color: var(--gold); }

.pmodal-body { padding: clamp(28px, 4vw, 52px); }
.pmodal-body h2 { font-size: clamp(1.9rem, 3.2vw, 2.9rem); margin-bottom: 10px; }
.pmodal-place {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 26px;
}

.pmodal-specs {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 54px);
  padding: 22px 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  margin-bottom: 28px;
}
.pmodal-specs b {
  display: block;
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
}
.pmodal-specs span {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist-dim);
}

.pmodal-copy p { max-width: 68ch; }
.pmodal-specs[hidden], .pmodal-site[hidden] { display: none; }
.pmodal-body .pmodal-site { margin-top: 6px; }
.pmodal-note {
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--gold-dim);
  border-left: 1px solid var(--line);
  padding-left: 14px;
}

.pmodal-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(10px, 1.4vw, 16px);
  margin-top: 30px;
}
/* every photo is shown whole: the tile keeps its shape, the image is never cut */
.pmodal-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--void);
  border: 1px solid var(--hair);
}
.pmodal-gallery img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

@media (max-width: 620px) {
  .pmodal-gallery { grid-template-columns: 1fr; }
}

/* ============================================================
   Social links
   ============================================================ */
.social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.social a {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hair);
  color: var(--mist);
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.social a:hover {
  color: var(--brand, var(--gold));
  border-color: currentColor;
  transform: translateY(-2px);
}
.social svg { width: 16px; height: 16px; fill: currentColor; }

/* each icon in its own brand colour. X is white here: its black would vanish
   against the footer. Instagram is the magenta from the middle of its gradient. */
.social a[aria-label*="LinkedIn"]  { --brand: #0a66c2; }
.social a[aria-label*="Facebook"]  { --brand: #1877f2; }
.social a[aria-label*="Instagram"] { --brand: #e1306c; }
.social a[aria-label*=" X"]        { --brand: #ffffff; }
.social a { color: var(--brand, var(--mist)); }

/* the honeypot must be unreachable to people but present for bots:
   display:none would let some bots skip it, so it is moved off-screen */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ============================================================
   Stage flow (ventures): Seed -> Series A -> Series B -> Series C -> IPO
   ============================================================ */
.flow {
  list-style: none;
  margin: 0;
  padding: clamp(30px, 3.4vw, 44px) 0;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
/* basis auto, not 0: each stage sizes to its own pill and the spare room is
   shared evenly, so every arrow is the same length whatever the label width */
.flow > li { display: flex; align-items: center; flex: 1 1 auto; min-width: 0; }
.flow > li.flow-end { flex: 0 0 auto; }
.flow b {
  flex: none;
  padding: 13px clamp(14px, 1.6vw, 22px);
  border: 1px solid var(--line);
  background: var(--panel);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone);
  white-space: nowrap;
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease);
}
.flow > li:not(.flow-end):hover b { border-color: var(--gold); color: var(--gold-lt); }
.flow .flow-end b { background: var(--gold); border-color: var(--gold); color: #0a0a0a; }

/* the connector runs to the next stage and ends in an arrowhead; it draws in
   left to right on reveal, one link after another, like the site's rules */
.flow-arrow {
  position: relative;
  flex: 1 1 auto;
  min-width: 22px;
  height: 1px;
  margin: 0 12px;
  background: linear-gradient(90deg, rgba(194, 161, 99, 0.25), var(--gold));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.7s var(--ease);
}
.flow-arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
  transform: translateY(-50%) rotate(45deg);
}
.flow.in .flow-arrow { transform: scaleX(1); }
.flow > li:nth-child(1) .flow-arrow { transition-delay: 0.1s; }
.flow > li:nth-child(2) .flow-arrow { transition-delay: 0.25s; }
.flow > li:nth-child(3) .flow-arrow { transition-delay: 0.4s; }
.flow > li:nth-child(4) .flow-arrow { transition-delay: 0.55s; }

/* five pills do not fit a phone in a row, so the flow turns downward */
@media (max-width: 760px) {
  .flow { flex-direction: column; align-items: stretch; }
  .flow > li { flex-direction: column; flex: none; }
  .flow b { align-self: center; min-width: 170px; text-align: center; }
  .flow-arrow {
    flex: none;
    width: 1px;
    min-width: 0;
    height: 26px;
    margin: 10px 0;
    background: linear-gradient(180deg, rgba(194, 161, 99, 0.25), var(--gold));
    transform: scaleY(0);
    transform-origin: center top;
  }
  .flow-arrow::after {
    top: auto;
    bottom: 0;
    right: auto;
    left: 50%;
    transform: translateX(-50%) rotate(135deg);
  }
  .flow.in .flow-arrow { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  .flow-arrow, .flow.in .flow-arrow { transition: none; transform: none; }
}

/* visually hidden, still read by assistive tech */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- stage flow, AI treatment: one light travels the pipeline ----------
   A script moves a single light across the flow at an even speed and writes
   three values onto each part: --i (how close the light is, 0-1), --x (where
   the light sits inside that part, px) and --h (arrowhead flare). The CSS
   below only turns those into glow; without the script everything rests at 0. */
.flow { position: relative; }
.flow b {
  transition: none;
  border-color: rgba(194, 161, 99, calc(0.2 + var(--i, 0) * 0.8));
  box-shadow: 0 0 calc(var(--i, 0) * 22px) rgba(224, 198, 143, calc(var(--i, 0) * 0.28));
}
.flow .flow-end b {
  box-shadow: 0 0 calc(var(--i, 0) * 34px) rgba(224, 198, 143, calc(var(--i, 0) * 0.6));
}

/* the words: a warm band of light slides through the letters */
.flow-label {
  background-image:
    linear-gradient(90deg, rgba(255, 226, 163, 0), #ffe2a3 50%, rgba(255, 226, 163, 0)),
    linear-gradient(var(--bone), var(--bone));
  background-repeat: no-repeat;
  background-size: var(--bw, 120px) 100%, 100% 100%;
  background-position: var(--x, -999px) 0, 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 calc(var(--i, 0) * 7px) rgba(224, 198, 143, calc(var(--i, 0) * 0.75)));
}
.flow .flow-end .flow-label {
  background-image:
    linear-gradient(90deg, rgba(255, 251, 240, 0), #fffbf0 50%, rgba(255, 251, 240, 0)),
    linear-gradient(#0a0a0a, #0a0a0a);
  filter: drop-shadow(0 0 calc(var(--i, 0) * 6px) rgba(255, 246, 223, calc(var(--i, 0) * 0.8)));
}

/* the arrows: the line itself lights along its length, then the head flares */
.flow-arrow {
  background: linear-gradient(90deg,
    rgba(194, 161, 99, calc(0.25 + var(--i, 0) * 0.45)),
    rgba(224, 198, 143, calc(0.85 + var(--i, 0) * 0.15)));
}
.flow-arrow::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 3px;
  background-image: linear-gradient(90deg, rgba(255, 241, 204, 0), #fff1cc 50%, rgba(255, 241, 204, 0));
  background-repeat: no-repeat;
  background-size: var(--bw, 120px) 100%;
  background-position: var(--x, -999px) 0;
  opacity: var(--i, 0);
  filter: drop-shadow(0 0 4px rgba(224, 198, 143, 0.95));
  pointer-events: none;
}
.flow-arrow::after {
  filter: drop-shadow(0 0 calc(var(--h, 0) * 6px) rgba(255, 236, 190, var(--h, 0)))
          brightness(calc(1 + var(--h, 0) * 0.7));
}

@media (max-width: 760px) {
  .flow-label {
    background-image:
      linear-gradient(180deg, rgba(255, 226, 163, 0), #ffe2a3 50%, rgba(255, 226, 163, 0)),
      linear-gradient(var(--bone), var(--bone));
    background-size: 100% var(--bw, 120px), 100% 100%;
    background-position: 0 var(--x, -999px), 0 0;
  }
  .flow .flow-end .flow-label {
    background-image:
      linear-gradient(180deg, rgba(255, 251, 240, 0), #fffbf0 50%, rgba(255, 251, 240, 0)),
      linear-gradient(#0a0a0a, #0a0a0a);
  }
  .flow-arrow {
    background: linear-gradient(180deg,
      rgba(194, 161, 99, calc(0.25 + var(--i, 0) * 0.45)),
      rgba(224, 198, 143, calc(0.85 + var(--i, 0) * 0.15)));
  }
  .flow-arrow::before {
    left: 50%;
    right: auto;
    top: 0;
    bottom: 0;
    width: 3px;
    height: auto;
    margin-left: -1.5px;
    background-image: linear-gradient(180deg, rgba(255, 241, 204, 0), #fff1cc 50%, rgba(255, 241, 204, 0));
    background-size: 100% var(--bw, 120px);
    background-position: 0 var(--x, -999px);
  }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(3, 1fr); }
  .sectors, .sectors--8 { grid-template-columns: repeat(3, 1fr); }
  .sector:nth-child(3n + 1)::before { display: none; }
  .sectors:not(.sectors--8) .sector:nth-child(n + 4) { border-top: 1px solid var(--hair); }
  .ledger { grid-template-columns: repeat(2, 1fr); }
  .step { padding-left: 26px; }
  .step:nth-child(odd)::before { display: none; }
  .step:nth-child(odd) { padding-left: 0; }
  .map-layout { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .duo { grid-template-columns: 1fr; }
  .band, .feature, .post-lead, .contact-layout { grid-template-columns: 1fr; }
  .band--flip .band-media { order: 0; }
  .grid--3, .grid--4, .grid--team { grid-template-columns: repeat(2, 1fr); }
  .list { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd)::before { display: none; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--hair); }
  .rail { display: none; }
}

@media (max-width: 620px) {
  html { font-size: 16.5px; }
  body { font-size: 17px; }
  .rail-nav { display: none; }
  .grid--team, .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .sectors, .sectors--8 { grid-template-columns: repeat(2, 1fr); }
  .sector:nth-child(odd)::before { display: none; }
  .sectors:not(.sectors--8) .sector:nth-child(n + 3) { border-top: 1px solid var(--hair); }
  .ledger { grid-template-columns: 1fr; }
  .step { padding-left: 0 !important; }
  .step::before { display: none !important; }
  .step + .step { border-top: 1px solid var(--hair); }
  .field-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: space-between; }
  .drawer a { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .rv { opacity: 1; transform: none; }
  .rule, .step::after { transform: scaleX(1); }
}

@media print {
  .nav, .drawer, .rail { display: none; }
  body { background: #fff; color: #000; }
}

/* ============================================================
   Skip link — first stop for a keyboard, invisible until focused
   ============================================================ */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 12px 18px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--void);
  background: var(--gold);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }
main:focus { outline: none; }

/* ============================================================
   From idea → the stage — the closing word cycles
   ============================================================ */
/* three columns with the arrow in the middle one, so the arrow sits on the
   page centre and the words balance either side of it, whichever stage shows */
.stageline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: clamp(14px, 1.8vw, 28px);
  margin: 0;
  font-family: var(--display);
  font-variation-settings: 'opsz' 144, 'SOFT' 0, 'WONK' 0;
  font-weight: 300;
  font-size: clamp(2.2rem, 4.8vw, 4.4rem);
  letter-spacing: -0.018em;
  line-height: 1.12;
  color: var(--bone);
}
.stageline-lead { justify-self: end; white-space: nowrap; }

/* one drawn arrow: a long shaft and an open head, like → */
.stageline-arrow {
  justify-self: center;
  display: block;
  width: clamp(56px, 7vw, 128px);
  height: auto;
  overflow: visible;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* every stage is a whole label stacked in one line box. Between Series
   stages only the letter moves; the word "Series" holds perfectly still */
.stageline-rotor {
  justify-self: start;
  display: block;
  height: 1.12em;
  white-space: nowrap;
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'WONK' 1;
  color: var(--gold);
}
.stageline-tokens {
  position: relative;
  display: block;
  height: 1.12em;
  line-height: 1.12em;
  min-width: 3em;          /* just wider than the longest label, "Series D" (2.93em) */
  overflow: hidden;
}
.stageline-tokens .stage {
  position: absolute;
  left: 0; top: 0;
  line-height: 1.12em;
  white-space: nowrap;
}
.stageline-tokens .pre,
.stageline-tokens .let {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.7em);
  transition: opacity 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.stageline-tokens .stage.is-on .pre,
.stageline-tokens .stage.is-on .let { opacity: 1; transform: none; }
.stageline-tokens .stage.is-out .pre,
.stageline-tokens .stage.is-out .let { opacity: 0; transform: translateY(-0.7em); }

/* Series to Series: the prefix neither fades nor moves */
.stageline-tokens .stage.letter-only .pre { opacity: 1; transform: none; transition: none; }
/* a quiet reset, so a spent label never drifts visibly on its way out */
.stageline-tokens .stage.snap .pre,
.stageline-tokens .stage.snap .let { transition: none; }

@media (prefers-reduced-motion: reduce) {
  .stageline-tokens .stage { position: static; display: none; }
  .stageline-tokens .stage:last-child { display: inline; }
  .stageline-tokens .stage:last-child .let { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 620px) {
  .stageline { font-size: 1.9rem; column-gap: 10px; }
  .stageline-arrow { width: 40px; }
}
