/* ==========================================================================
   Midas Capital — production stylesheet

   Layers, in order:
     1. Tokens          design variables
     2. Reset & base    normalisation, typography defaults
     3. Textures        procedural SVG grain / mesh, no image downloads
     4. Layout          shell, sections, header, footer
     5. Components      buttons, cards, grids, forms
     6. Utilities       accessibility helpers
     7. Responsive      breakpoints
     8. Preferences     reduced motion, print, forced colors
   ========================================================================== */

/* 1. Tokens ================================================================ */

:root {
  /* Brand */
  --ink: #14140f;
  --ink-soft: #1d1d18;
  --ink-raised: #24241d;
  --ivory: #f4f0e6;
  --paper: #fbf8f1;
  --gold: #b8923c;
  --gold-bright: #c6a24a;
  --gold-soft: #e7d7a9;
  --muted: #6b6860;
  --muted-light: rgba(255, 255, 255, 0.6);
  /* Headings sit slightly lighter than body ink so large serif type reads
     composed rather than heavy. */
  --ink-heading: #24241d;

  /* Lines */
  --line: rgba(20, 20, 15, 0.12);
  --line-strong: rgba(20, 20, 15, 0.2);
  --line-dark: rgba(255, 255, 255, 0.14);

  /* Type ---------------------------------------------------------------------
     Caslon is the establishment serif of banking, law and publishing — an
     authoritative voice that reads as considered rather than fashionable.

     Two cuts, each used at the size it was drawn for:
       Display  large headlines; tighter fit, finer hairlines.
       Text     sub-headings and pull quotes; sturdier at reading sizes.
     Inter carries every piece of UI and body text.

     Both Caslon cuts ship a single upright weight (400). Never ask for 500+
     on them, or the browser synthesises a smeared fake bold. Hierarchy comes
     from size, colour and spacing instead.
     ------------------------------------------------------------------------- */
  --font-display: 'Libre Caslon Display', 'Libre Caslon Text', 'Iowan Old Style', 'Palatino Linotype', Georgia, 'Times New Roman', serif;
  --font-display-text: 'Libre Caslon Text', 'Libre Caslon Display', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* The one weight each Caslon cut actually provides. */
  --weight-display: 400;

  /* Fluid type scale.
     Display steps are deliberately restrained: a serif this dark gains
     presence from whitespace and precision, not size. Oversized Caslon reads
     as heavy rather than considered, so headline steps top out well below the
     usual hero scale. */
  --step--1: clamp(0.8125rem, 0.79rem + 0.11vw, 0.875rem);
  --step-0: clamp(0.9375rem, 0.91rem + 0.14vw, 1rem);
  --step-1: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-2: clamp(1.1875rem, 1.12rem + 0.34vw, 1.4375rem);
  --step-3: clamp(1.4375rem, 1.32rem + 0.6vw, 1.875rem);
  --step-4: clamp(1.75rem, 1.55rem + 1vw, 2.5rem);
  --step-5: clamp(2.125rem, 1.7rem + 2vw, 3.375rem);

  /* Space */
  --space-section: clamp(4.5rem, 3rem + 6vw, 7.5rem);
  --space-gutter: clamp(1.25rem, 0.8rem + 2vw, 3rem);

  /* Shape */
  --radius: 20px;
  --radius-sm: 14px;
  --radius-lg: 28px;

  /* Elevation — warm-tinted shadows read richer than neutral grey. */
  --shadow-sm: 0 1px 2px rgba(20, 20, 15, 0.04), 0 2px 8px rgba(20, 20, 15, 0.04);
  --shadow-md: 0 4px 12px rgba(20, 20, 15, 0.06), 0 12px 32px rgba(20, 20, 15, 0.07);
  --shadow-lg: 0 8px 24px rgba(20, 20, 15, 0.08), 0 24px 64px rgba(20, 20, 15, 0.1);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.35s;
}

/* 2. Reset & base ========================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  /* Offset anchored scroll targets so the sticky header never covers them. */
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
picture,
svg,
iframe {
  display: block;
  max-width: 100%;
}

img { height: auto; }

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* Headings ---------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  /* A touch lighter than body ink: at display sizes solid near-black reads
     as bold, and this keeps headings quiet without losing contrast. */
  color: var(--ink-heading);
  line-height: 1.1;
  letter-spacing: -0.015em;
  /* Lining figures so numerals align on the baseline — oldstyle figures
     bounce, which looks wrong beside financial copy. */
  font-variant-numeric: lining-nums proportional-nums;
  text-wrap: balance;
}

/* Caslon's hairlines thin out as size grows, so tracking tightens gradually
   rather than uniformly. */
h1 {
  font-size: var(--step-5);
  line-height: 1;
  letter-spacing: -0.028em;
}

h2 {
  font-size: var(--step-4);
  letter-spacing: -0.022em;
}

/* Below display sizes the Text cut holds up better than Display. */
h3, h4 {
  font-family: var(--font-display-text);
  letter-spacing: -0.01em;
}

h3 { font-size: var(--step-2); }

/* On dark surfaces the container sets the text colour, so headings must
   inherit it rather than keep the light-mode heading ink. */
.section--dark :is(h1, h2, h3, h4),
.inner-hero--dark :is(h1, h2, h3, h4),
.home-hero :is(h1, h2, h3, h4),
.signature-panel :is(h1, h2, h3, h4),
.contact-info :is(h1, h2, h3, h4),
.cta-band :is(h1, h2, h3, h4),
.footer :is(h1, h2, h3, h4) {
  color: inherit;
}

p { text-wrap: pretty; }

/* Focus ------------------------------------------------------------------- */

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Only suppress the ring for mouse users, never for keyboard users. */
:focus:not(:focus-visible) { outline: none; }

::selection {
  background: var(--gold-soft);
  color: var(--ink);
}

/* 3. Textures ==============================================================
   All background texture is generated procedurally — an inline SVG
   feTurbulence filter for film grain, plus layered radial gradients for a
   soft light mesh. This gives a premium tactile surface with zero image
   requests and no licensing concerns.
   ========================================================================== */

/* Fine paper grain, applied over the whole page. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 300px 300px;
}

/* Warm light mesh for ivory sections. */
.texture-mesh {
  position: relative;
  isolation: isolate;
}

.texture-mesh::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 55% at 12% 8%, rgba(184, 146, 60, 0.07), transparent 60%),
    radial-gradient(50% 45% at 88% 22%, rgba(184, 146, 60, 0.05), transparent 62%),
    radial-gradient(70% 60% at 50% 105%, rgba(20, 20, 15, 0.04), transparent 65%);
}

/* Coarser, brighter grain for dark panels, where noise reads as texture. */
.texture-dark {
  position: relative;
  isolation: isolate;
}

.texture-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='d'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23d)' opacity='0.07'/%3E%3C/svg%3E"),
    radial-gradient(65% 60% at 78% 12%, rgba(184, 146, 60, 0.14), transparent 60%),
    radial-gradient(55% 50% at 10% 92%, rgba(184, 146, 60, 0.08), transparent 62%);
}

.texture-dark > * { position: relative; z-index: 1; }

/* Fine hairline weave, used on the CTA band. */
.texture-weave::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    repeating-linear-gradient(45deg, rgba(20, 20, 15, 0.05) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(-45deg, rgba(20, 20, 15, 0.04) 0 1px, transparent 1px 7px);
}

/* 4. Layout ================================================================ */

.shell {
  width: min(1200px, 100% - (var(--space-gutter) * 2));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-section);
  position: relative;
}

.section--paper {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.section--dark {
  background: var(--ink);
  color: #fff;
}

.section--dark .lede,
.section--dark p { color: var(--muted-light); }

.section-foot { margin-top: 2.5rem; }

/* Header ------------------------------------------------------------------ */

.topbar {
  position: relative;
  /* Must outrank .hero-content (z-index 2) or the open mobile menu sheet
     renders beneath the hero headline and its links become unclickable. */
  z-index: 60;
}

.topbar-inner {
  min-height: 5.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.topbar--dark { color: #fff; }

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  width: clamp(140px, 14vw, 186px);
  height: auto;
  transition: opacity var(--dur) var(--ease);
}

.brand:hover img { opacity: 0.78; }

/* The logo art is dark; invert it when placed on dark surfaces. */
.topbar--dark .brand img,
.footer-brand img {
  filter: invert(1) grayscale(1) brightness(2.2);
  opacity: 0.94;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.2vw, 2.25rem);
  font-size: var(--step--1);
  letter-spacing: 0.01em;
}

.nav-link {
  position: relative;
  opacity: 0.72;
  padding-block: 0.35rem;
  transition: opacity var(--dur) var(--ease);
}

/* Underline grows from the left on hover; respects reduced motion below. */
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.nav-link:hover,
.nav-link.is-active { opacity: 1; }

.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }

/* Mobile menu ------------------------------------------------------------- */

/* The checkbox drives the mobile menu without JavaScript. It must stay in the
   layout (not `display:none` or `hidden`) or the label cannot toggle it, but it
   is hidden from sight and from assistive tech, which use the labelled button. */
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  margin: 0;
}

/* `hidden` must win over the display rule below when JS swaps the variants. */
.nav-burger[hidden] { display: none !important; }

.nav-burger {
  display: none;
  margin-left: auto;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  width: 2.75rem;
  height: 2.75rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
}

.topbar--dark .nav-burger { border-color: var(--line-dark); }

.nav-burger-bar {
  display: block;
  width: 17px;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

/* Hero -------------------------------------------------------------------- */

.home-hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  flex-direction: column;
  color: #fff;
  background: #0d0d0b;
  overflow: hidden;
}

.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(96deg, rgba(10, 10, 8, 0.97) 0%, rgba(10, 10, 8, 0.9) 34%, rgba(10, 10, 8, 0.42) 68%, rgba(10, 10, 8, 0.24) 100%);
}

/* Muted looping background video, replacing the former static photo. The
   poster image (a frame lifted from the clip) and this background-image
   both stand in for it: the poster while the video loads, the background
   if the <video> element or its source ever fails outright — a visitor
   never sees a blank hero either way. */
.home-hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: url('assets/hero-bg-poster.jpg') center / cover no-repeat;
}

/* Grain over the hero photograph, so it matches the rest of the page. */
.home-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='h'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23h)' opacity='0.08'/%3E%3C/svg%3E");
}

/* Lift hero children above the ::before photo and ::after grain layers.
   The header is excluded and given a higher z-index of its own: at the same
   z-index the later sibling would win, painting the headline over the open
   mobile menu and making its links unclickable. */
.home-hero > *:not(.topbar):not(.home-hero-video) { position: relative; z-index: 2; }
.home-hero > .topbar { position: relative; z-index: 60; }

.hero-content {
  padding-block: clamp(3.5rem, 7vw, 7rem) clamp(3rem, 6vw, 6rem);
  max-width: 46rem;
  margin-top: auto;
}

.hero-content h1 { margin-block: 1.4rem 1.75rem; }

.hero-content .lede {
  color: rgba(255, 255, 255, 0.74);
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.4rem;
}

.hero-meta {
  margin-top: auto;
  padding-block: 1.4rem 2.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.56);
}

/* Interior hero ----------------------------------------------------------- */

.inner-hero {
  background: var(--paper);
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
  position: relative;
  isolation: isolate;
}

.inner-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 70% at 88% 0%, rgba(184, 146, 60, 0.1), transparent 62%),
    radial-gradient(45% 60% at 4% 12%, rgba(184, 146, 60, 0.05), transparent 60%);
}

.inner-hero--dark {
  background: var(--ink);
  color: #fff;
}

.inner-hero--dark::before {
  background:
    radial-gradient(55% 70% at 88% 0%, rgba(184, 146, 60, 0.16), transparent 62%),
    radial-gradient(45% 60% at 4% 12%, rgba(184, 146, 60, 0.07), transparent 60%);
}

.inner-hero--dark .lede { color: rgba(255, 255, 255, 0.66); }

.inner-title {
  padding-block: clamp(2.5rem, 5vw, 5rem) clamp(1.5rem, 3vw, 2.25rem);
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: end;
}

.gold-rule {
  height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(184, 146, 60, 0.12) 55%, transparent);
}

/* Footer ------------------------------------------------------------------ */

.footer {
  background: #0e0e0c;
  color: #fff;
  padding-block: clamp(3.5rem, 6vw, 5rem) 1.75rem;
  position: relative;
  isolation: isolate;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(70% 80% at 15% 0%, rgba(184, 146, 60, 0.09), transparent 60%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.9fr 1fr 1fr 1.1fr;
  min-width: 0;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 3.5rem;
}

.footer-brand img { width: 168px; }

.footer-brand p {
  margin-top: 1.4rem;
  max-width: 22rem;
}

.footer p,
.footer a,
.footer address {
  color: rgba(255, 255, 255, 0.58);
  font-size: var(--step--1);
  line-height: 1.85;
  font-style: normal;
}

.footer a {
  transition: color var(--dur) var(--ease);
  width: fit-content;
}

.footer a:hover { color: var(--gold-bright); }

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 1.15rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.42);
}

.copyright-links {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.copyright a { font-size: 0.6875rem; }

/* 5. Components ============================================================ */

/* Buttons ----------------------------------------------------------------- */

.btn {
  --btn-bg: var(--gold);
  --btn-fg: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.5rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.btn::after {
  content: '↗';
  font-size: 1em;
  transition: transform var(--dur) var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:hover::after { transform: translate(2px, -2px); }

.btn:active { transform: translateY(0); }

.btn--sm { padding: 0.7rem 1.2rem; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  border-color: currentColor;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn--ink {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: var(--step--1);
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: gap var(--dur) var(--ease), color var(--dur) var(--ease);
}

.link-arrow::after { content: '→'; }

.link-arrow:hover {
  gap: 0.85rem;
  color: var(--gold);
}

/* Text elements ----------------------------------------------------------- */

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.6875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.section--dark .eyebrow,
.inner-hero--dark .eyebrow,
.signature-panel .eyebrow,
.contact-info .eyebrow { color: var(--gold-bright); }

.lede {
  font-size: var(--step-1);
  line-height: 1.7;
  color: var(--muted);
}

.gold { color: var(--gold-bright); }

.big-statement {
  font-family: var(--font-display);
  font-size: var(--step-4);
  /* Caslon ships one upright weight; 500 would synthesise a fake bold. */
  font-weight: var(--weight-display);
  line-height: 1.2;
  letter-spacing: -0.018em;
  max-width: 62rem;
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
  text-wrap: balance;
}

.section-head {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(1.5rem, 5vw, 5rem);
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.section-head .eyebrow { margin: 0; }

.section-head .lede {
  max-width: 42rem;
  margin-top: 1.25rem;
}

/* Cards & grids ----------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: center;
}

.about-grid .lede { margin-block: 1.5rem 2rem; }

.signature-panel {
  min-height: 26rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  background: linear-gradient(148deg, var(--ink-raised), #0c0c0a);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.75rem);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow-lg);
}

/* Concentric gold rings — a restrained decorative motif reused site-wide. */
.signature-panel::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 21rem;
  height: 21rem;
  right: -5.5rem;
  bottom: -7.5rem;
  border: 1px solid rgba(184, 146, 60, 0.34);
  border-radius: 50%;
  box-shadow:
    0 0 0 3.4rem rgba(184, 146, 60, 0.05),
    0 0 0 6.8rem rgba(184, 146, 60, 0.035);
}

.signature-panel h3 {
  font-size: var(--step-3);
  max-width: 30rem;
}

.lens-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  counter-reset: lens;
  list-style: none;
  padding: 0;
  margin: 0;
}

.lens-list li {
  padding-left: 2.25rem;
  position: relative;
}

.lens-list li::before {
  counter-increment: lens;
  content: counter(lens);
  position: absolute;
  left: 0;
  top: 0.15em;
  font-family: var(--font-display-text);
  font-size: var(--step--1);
  color: var(--gold-bright);
}

.lens-list h3 {
  font-size: var(--step-1);
  max-width: none;
  margin-bottom: 0.25rem;
}

.lens-list p {
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--step--1);
  line-height: 1.6;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: auto;
  padding-top: 3rem;
}

.metric {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 1.1rem;
  /* dl children are reordered so the number reads above its label. */
  display: flex;
  flex-direction: column-reverse;
}

.metric dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: var(--weight-display);
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--gold-bright);
  line-height: 1.1;
}

.metric dt {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.56);
  margin-top: 0.4rem;
}

/* Value grid -------------------------------------------------------------- */

.value-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
  padding: 0;
}

.value {
  padding: 2rem 1.5rem 2.4rem;
  border-right: 1px solid var(--line);
  min-height: 12rem;
  transition: background-color var(--dur) var(--ease);
}

.value:last-child { border-right: 0; }

.value:hover { background: rgba(184, 146, 60, 0.05); }

.value-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  color: var(--gold);
  margin-bottom: 2.25rem;
}

.value h3 {
  font-size: var(--step-1);
  margin-bottom: 0.6rem;
}

.value p {
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.6;
}

/* Logos ------------------------------------------------------------------- */

.logo-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.9rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.logo-card {
  aspect-ratio: 3 / 2;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  padding: 1.5rem;
  margin: 0;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.logo-card:hover,
.logo-card:focus-visible,
.logo-card:active {
  transform: translateY(-3px);
  border-color: rgba(184, 146, 60, 0.45);
  box-shadow: var(--shadow-md);
}

.logo-card-mark {
  display: grid;
  place-items: center;
  width: 100%;
}

/* Temporary placeholder for portfolio companies whose logo file has not
   been supplied yet — swap the markup for an <img> once the asset arrives. */
.logo-card-mark--text {
  font-family: var(--font-display-text);
  font-size: var(--step-1);
  font-weight: 700;
  color: var(--ink-heading);
  opacity: 0.72;
  transition: opacity var(--dur) var(--ease);
}

.logo-card:hover .logo-card-mark--text,
.logo-card:focus-visible .logo-card-mark--text,
.logo-card:active .logo-card-mark--text {
  opacity: 1;
}

/* Logos show their real colour on every device — grayscale-until-hover was
   removed because it depends on a hover state touch devices never trigger. */
.logo-card img {
  width: auto;
  max-width: 100%;
  max-height: 4.5rem;
  object-fit: contain;
  opacity: 0.88;
  transition: opacity var(--dur) var(--ease);
}

.logo-card:hover img,
.logo-card:focus-visible img,
.logo-card:active img {
  opacity: 1;
}

/* Name and sector are hidden on the compact homepage strip, and shown on
   the portfolio page's larger cards (see .portfolio-grid below). */
.logo-card-name,
.logo-card-sector { display: none; }

.portfolio-grid .logo-card {
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}

.portfolio-grid .logo-card-mark {
  aspect-ratio: 3 / 2;
  padding: 1.75rem;
}

.portfolio-grid .logo-card img { max-height: 5rem; }

.portfolio-grid .logo-card-name,
.portfolio-grid .logo-card-sector {
  display: block;
  text-align: left;
  padding-inline: 1.5rem;
}

.portfolio-grid .logo-card-name {
  font-family: var(--font-display-text);
  font-size: var(--step-1);
  color: var(--ink-heading);
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
}

.portfolio-grid .logo-card-sector {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 1.4rem;
  margin-top: 0.35rem;
}

/* Team ----------------------------------------------------------------------
   Full-bleed portrait tiles in the register of a board-of-directors page:
   edge-to-edge photo, name overlaid on a dark scrim, bio reached through a
   native <details> disclosure (works with zero JS; nav.js only smooths it).
   ============================================================================= */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.4vw, 1.75rem);
}

/* A lone tile on an incomplete final row would otherwise sit flush left with
   empty cells beside it. Centre the row instead of spanning the tile across
   it — spanning forces a wide, shallow crop that cuts into faces no matter
   where object-position anchors, since every portrait here is shot tall.
   This is layout math (:last-child + column count), not a headcount
   assumption, so it keeps working as people are added or removed. Scoped to
   the 3-column layout — narrower breakpoints define their own version. */
@media (min-width: 901px) {
  .team-grid:has(> .person:last-child:nth-child(3n - 1)),
  .team-grid:has(> .person:last-child:nth-child(3n - 2)) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .team-grid > .person:last-child:nth-child(3n - 2) {
    grid-column: 2;
  }
}

.person {
  position: relative;
  background: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  list-style: none;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.person:hover,
.person:focus-within,
.person[open] {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* A thin gold seam that brightens on hover — echoes the site's rings/rules
   motif without adding another decorative element. */
.person::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  border: 1px solid rgba(198, 162, 74, 0.16);
  transition: border-color var(--dur) var(--ease);
}

.person:hover::after,
.person:focus-within::after,
.person[open]::after { border-color: rgba(198, 162, 74, 0.55); }

.person::-webkit-details-marker { display: none; }

.person-summary {
  display: block;
  cursor: pointer;
  position: relative;
  outline-offset: -3px;
}

/* The disclosure triangle is not part of this design. */
.person-summary::marker,
.person-summary::-webkit-details-marker { display: none; }

.person-image {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(160deg, #2a2a22, #16160f);
}

/* Temporary stand-in for a team member whose photo has not been supplied
   yet — swap for an <img> once the asset arrives. */
.person-image--placeholder {
  display: grid;
  place-items: center;
}

.person-initials {
  font-family: var(--font-display-text);
  font-size: var(--step-5);
  color: var(--gold-bright);
  opacity: 0.7;
}

.person-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  /* A light desaturation unifies portraits shot in different sessions. */
  filter: saturate(0.94) contrast(1.03);
  transition: transform 0.8s var(--ease), filter var(--dur) var(--ease);
}

.person-summary:hover .person-image img,
.person-summary:focus-visible .person-image img {
  transform: scale(1.07);
  filter: saturate(1.08) contrast(1.04);
}

.person-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.6rem 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  color: #fff;
  background: linear-gradient(
    to top,
    rgba(11, 11, 9, 0.94) 0%,
    rgba(11, 11, 9, 0.68) 50%,
    transparent 100%
  );
  transition: padding-bottom var(--dur) var(--ease);
}

.person:hover .person-overlay,
.person:focus-within .person-overlay,
.person[open] .person-overlay { padding-bottom: 1.65rem; }

.person-name {
  font-family: var(--font-display-text);
  font-size: var(--step-2);
  line-height: 1.15;
  position: relative;
  display: inline-block;
}

/* A gold underline draws in on hover, echoing the site's gold-rule motif. */
.person-name::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.3em;
  width: 0;
  height: 1px;
  background: var(--gold-bright);
  transition: width var(--dur) var(--ease);
}

.person:hover .person-name::after,
.person:focus-within .person-name::after,
.person[open] .person-name::after { width: 100%; }

.person-overlay .role {
  color: var(--gold-bright);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

.person-toggle {
  margin-top: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  transition: color var(--dur) var(--ease);
}

.person:hover .person-toggle,
.person:focus-within .person-toggle,
.person[open] .person-toggle { color: rgba(255, 255, 255, 0.92); }

.person-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.person:hover .person-toggle-icon,
.person:focus-within .person-toggle-icon { border-color: var(--gold-bright); }

/* A plus that rotates into a cross — CSS-drawn, no icon font or SVG needed. */
.person-toggle-icon::before,
.person-toggle-icon::after {
  content: '';
  position: absolute;
  background: #fff;
}
.person-toggle-icon::before { width: 7px; height: 1px; }
.person-toggle-icon::after { width: 1px; height: 7px; }

.person[open] .person-toggle-icon {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  transform: rotate(45deg);
}

.person-bio {
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--step--1);
  line-height: 1.75;
  padding: 1.5rem;
  background: var(--ink-soft);
  border-top: 1px solid rgba(198, 162, 74, 0.18);
}

/* Text content must not animate open with the default browser jump-cut. */
@supports (interpolate-size: allow-keywords) {
  .person-bio {
    height: 0;
    padding-block: 0;
    overflow: hidden;
    interpolate-size: allow-keywords;
    opacity: 0;
    transition: height var(--dur) var(--ease), padding-block var(--dur) var(--ease),
      opacity var(--dur) var(--ease);
  }
  .person[open] .person-bio {
    height: auto;
    padding-block: 1.5rem;
    opacity: 1;
  }
}

/* Story ------------------------------------------------------------------- */

.story-copy {
  max-width: 46rem;
}

.story-copy h2 { margin-bottom: 1.75rem; }

.story-copy .lede + .lede { margin-top: 1.25rem; }

.story-photo {
  margin: clamp(3rem, 6vw, 4.5rem) 0 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.story-photo img {
  display: block;
  width: 100%;
  height: auto;
}

/* Principles -------------------------------------------------------------- */

.principle-list {
  border-top: 1px solid var(--line-dark);
  list-style: none;
  padding: 0;
}

.principle {
  display: grid;
  grid-template-columns: 5rem 20rem 1fr;
  gap: clamp(1rem, 3vw, 2.25rem);
  padding-block: 2.2rem;
  border-bottom: 1px solid var(--line-dark);
  align-items: start;
  transition: background-color var(--dur) var(--ease);
}

.principle:hover { background: rgba(255, 255, 255, 0.025); }

.principle-num {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  color: var(--gold-bright);
  padding-top: 0.5rem;
}

.principle h2 {
  font-size: var(--step-2);
  letter-spacing: -0.02em;
}

.principle p {
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.75;
  max-width: 34rem;
}

/* Process ----------------------------------------------------------------- */

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
  list-style: none;
  padding: 0;
  counter-reset: step;
}

.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.5vw, 2.2rem);
  min-height: 16rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.step:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 146, 60, 0.4);
  box-shadow: var(--shadow-md);
}

.step-num {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  font-size: var(--step--1);
  margin-bottom: auto;
}

.step h3 {
  font-size: var(--step-2);
  margin-block: 2.5rem 0.6rem;
}

.step p {
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.7;
}

/* Criteria ---------------------------------------------------------------- */

.criteria-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.criteria {
  border-top: 2px solid var(--gold);
  padding-top: 1.75rem;
}

.criteria h3 { margin-bottom: 0.85rem; }

.criteria p {
  color: var(--muted);
  line-height: 1.7;
}

/* CTA band ---------------------------------------------------------------- */

.cta-band {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  padding-block: clamp(3rem, 5vw, 4.5rem);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.6;
  background-image:
    repeating-linear-gradient(45deg, rgba(20, 20, 15, 0.045) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(-45deg, rgba(20, 20, 15, 0.035) 0 1px, transparent 1px 8px);
}

.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-band h2 {
  max-width: 46rem;
  font-size: var(--step-3);
}

.cta-band .btn { white-space: nowrap; }

/* Contact ----------------------------------------------------------------- */

.contact-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.contact-info {
  background: var(--ink);
  color: #fff;
  padding: clamp(2rem, 4vw, 3.75rem);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.contact-info::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 23rem;
  height: 23rem;
  left: -9.5rem;
  bottom: -13rem;
  border: 1px solid rgba(184, 146, 60, 0.26);
  border-radius: 50%;
  box-shadow:
    0 0 0 3.4rem rgba(184, 146, 60, 0.04),
    0 0 0 6.8rem rgba(184, 146, 60, 0.028);
}

.contact-info h2 {
  font-size: var(--step-3);
  margin-bottom: 1rem;
}

.contact-info > p { color: rgba(255, 255, 255, 0.6); }

.contact-detail {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-block: 1.35rem;
  margin-top: 1.35rem;
}

.contact-detail:first-of-type { margin-top: 2.5rem; }

.contact-detail h3 {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--gold-bright);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.5rem;
}

.contact-detail a,
.contact-detail address,
.contact-detail p {
  color: rgba(255, 255, 255, 0.86);
  font-style: normal;
  line-height: 1.6;
}

.contact-detail a { transition: color var(--dur) var(--ease); }

.contact-detail a:hover { color: var(--gold-bright); }

.contact-form { padding: clamp(2rem, 4vw, 3.75rem); }

.contact-form h2 {
  font-size: var(--step-2);
  margin-bottom: 2rem;
}

/* Forms ------------------------------------------------------------------- */

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.4rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field--full { grid-column: 1 / -1; }

.field label {
  font-size: var(--step--1);
  color: var(--muted);
  font-weight: 500;
}

.field input,
.field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  padding: 0.6rem 0 0.85rem;
  font-size: var(--step-0);
  outline: 0;
  border-radius: 0;
  transition: border-color var(--dur) var(--ease);
}

.field input::placeholder,
.field textarea::placeholder { color: rgba(107, 104, 96, 0.55); }

.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--gold);
  /* The bottom border is the focus affordance, so suppress the default ring. */
  outline: none;
  box-shadow: 0 1px 0 0 var(--gold);
}

.field textarea {
  min-height: 7rem;
  resize: vertical;
}

/* Server-flagged invalid fields. */
.field:has(.field-error) input,
.field:has(.field-error) textarea { border-bottom-color: #b23c3c; }

.field-error {
  color: #b23c3c;
  font-size: var(--step--1);
}

.consent { margin-top: 1.75rem; }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: var(--step--1);
  color: var(--muted);
  line-height: 1.6;
  cursor: pointer;
}

.checkbox input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.15rem;
  accent-color: var(--gold);
  flex-shrink: 0;
}

.checkbox a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-form .btn {
  margin-top: 2rem;
  border: 0;
}

.note-card {
  margin-top: 1.75rem;
  background: rgba(184, 146, 60, 0.09);
  border: 1px solid rgba(184, 146, 60, 0.2);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  font-size: var(--step--1);
  color: var(--muted);
  line-height: 1.65;
}

/* Honeypot: removed from the visual and accessibility trees but still
   submitted, so scripted agents fill it and reveal themselves. */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Alerts ------------------------------------------------------------------ */

.alert {
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.75rem;
  border: 1px solid;
  line-height: 1.6;
}

.alert strong { display: block; margin-bottom: 0.3rem; }

.alert p { font-size: var(--step--1); }

.alert--ok {
  background: rgba(46, 125, 80, 0.08);
  border-color: rgba(46, 125, 80, 0.3);
  color: #1f5c34;
}

.alert--error {
  background: rgba(178, 60, 60, 0.07);
  border-color: rgba(178, 60, 60, 0.3);
  color: #8f2f2f;
}

/* Map --------------------------------------------------------------------- */

.map-panel {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  aspect-ratio: 21 / 9;
}

.map-panel iframe {
  width: 100%;
  height: 100%;
  border: 0;
  /* Desaturate the embed slightly so it sits inside the warm palette. */
  filter: grayscale(0.35) contrast(1.05);
}

/* Error page -------------------------------------------------------------- */

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: var(--space-section);
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 16vw, 11rem);
  line-height: 1;
  color: var(--gold);
  opacity: 0.32;
}

.error-page h1 { margin-block: 1rem 1.25rem; }

.error-page .lede {
  max-width: 34rem;
  margin-inline: auto;
  margin-bottom: 2.25rem;
}

/* Legal pages ------------------------------------------------------------- */

.prose {
  max-width: 44rem;
}

.prose h2 {
  font-size: var(--step-2);
  margin-block: 2.75rem 1rem;
}

.prose h3 {
  font-size: var(--step-1);
  margin-block: 1.75rem 0.6rem;
}

.prose p,
.prose li {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose-meta {
  font-size: var(--step--1);
  color: var(--muted);
  margin-bottom: 2.5rem;
}

/* 6. Utilities ============================================================= */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 999;
  background: var(--ink);
  color: #fff;
  padding: 0.85rem 1.4rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: var(--step--1);
  font-weight: 600;
  transition: top 0.2s var(--ease);
}

.skip-link:focus { top: 0; }

/* 7. Responsive ============================================================ */

@media (max-width: 1080px) {
  .value-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .value:nth-child(3) { border-right: 0; }
  .logo-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portfolio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav-burger { display: flex; }

  /* Collapsed menu becomes a full-width sheet under the bar. */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 60;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 var(--space-gutter);
    background: var(--paper);
    border-block: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height var(--dur) var(--ease), padding var(--dur) var(--ease),
      visibility var(--dur);
  }

  .topbar--dark .nav {
    background: var(--ink-soft);
    border-color: var(--line-dark);
  }

  .nav-toggle:checked ~ .nav {
    max-height: 26rem;
    padding-block: 0.75rem 1.5rem;
    visibility: visible;
  }

  .nav-link {
    padding-block: 0.95rem;
    font-size: var(--step-1);
    opacity: 1;
    border-bottom: 1px solid var(--line);
  }

  .topbar--dark .nav-link { border-color: var(--line-dark); }

  .nav-link::after { display: none; }

  .nav-cta {
    margin-top: 1.25rem;
    justify-content: center;
  }

  /* Burger morphs into a close icon while the sheet is open. */
  .nav-toggle:checked ~ .nav-burger .nav-burger-bar:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }
  .nav-toggle:checked ~ .nav-burger .nav-burger-bar:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger .nav-burger-bar:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  .section-head,
  .about-grid,
  .inner-title,
  .contact-wrap { grid-template-columns: 1fr; }

  .inner-title { align-items: start; }

  .team-grid,
  .criteria-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* A lone final tile simply keeps its normal 4:5 shape and sits in column
     one — an uneven last row reads as ordinary, unlike a stretched crop. */

  .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value { border-right: 1px solid var(--line); }
  .value:nth-child(2n) { border-right: 0; }
  .value:nth-child(3) { border-right: 1px solid var(--line); }

  .principle { grid-template-columns: 3rem 1fr; }
  .principle p { grid-column: 2; }

  .signature-panel { min-height: 22rem; }

  .cta-band-inner { flex-direction: column; align-items: flex-start; }

  .map-panel { aspect-ratio: 4 / 3; }
}

@media (max-width: 640px) {
  .logo-strip,
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .team-grid,
  .criteria-grid,
  .process,
  .form-grid { grid-template-columns: 1fr; }

  .value-grid { grid-template-columns: 1fr; }
  .value,
  .value:nth-child(2n),
  .value:nth-child(3) { border-right: 0; border-bottom: 1px solid var(--line); }
  .value:last-child { border-bottom: 0; }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .hero-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }

  .metric-row { grid-template-columns: 1fr; gap: 0.5rem; }

  .copyright { flex-direction: column; }
}

/* 8. Preferences =========================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Keep the mobile menu usable without its height transition. */
  .nav { transition: none; }

  /* The looping hero video is itself a motion effect — hide it and let the
     poster frame (already set as this element's background) stand in as a
     static image. */
  .home-hero-video { display: none; }
}

/* Respect users who ask the OS for higher contrast. */
@media (prefers-contrast: more) {
  :root {
    --muted: #4a4842;
    --line: rgba(20, 20, 15, 0.3);
    --line-strong: rgba(20, 20, 15, 0.5);
  }

  .nav-link { opacity: 1; }
  body::before { display: none; }
}

@media print {
  body::before,
  .topbar,
  .footer,
  .cta-band,
  .skip-link,
  .map-panel,
  .hero-actions { display: none !important; }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .section { padding-block: 1.5rem; }

  a[href^="http"]::after {
    content: ' (' attr(href) ')';
    font-size: 9pt;
    color: #555;
  }
}

/* 9. Scroll reveal =========================================================
   Gated behind .has-reveal, which nav.js adds only after confirming
   IntersectionObserver support and that motion is not reduced. Without
   JavaScript the selectors never match and all content stays visible.
   ========================================================================== */

.has-reveal .reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.985);
  transition:
    opacity 0.85s var(--ease) var(--reveal-delay, 0ms),
    transform 0.85s var(--ease) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.has-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* Eyebrows and rules read as one beat with their heading rather than two
   separate motions, so they fade in slightly ahead of it. */
.has-reveal .reveal-fade {
  opacity: 0;
  transition: opacity 0.9s ease-out var(--reveal-delay, 0ms);
}

.has-reveal .reveal-fade.is-visible { opacity: 1; }

/* Sticky header treatment once the page has scrolled. */
.topbar.is-scrolled {
  position: sticky;
  top: 0;
  background: rgba(251, 248, 241, 0.86);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar--dark.is-scrolled {
  background: rgba(14, 14, 11, 0.82);
  border-bottom-color: var(--line-dark);
}

@media (prefers-reduced-motion: reduce) {
  .has-reveal .reveal {
    opacity: 1;
    transform: none;
  }
}

/* 10. Section rhythm corrections ===========================================
   Where a hero and the section beneath it share a background colour, their
   paddings stack into a visible dead band. Collapse the join so spacing reads
   as one deliberate interval rather than two.
   ========================================================================== */

/* The hero sits outside <main>, so the section beneath it is main's first
   child rather than the hero's sibling. Target that instead. */
.page-invest main > .section--dark:first-child {
  padding-top: clamp(2rem, 3.5vw, 3.25rem);
}

/* Light hero into a paper section: the top border already marks the join. */
main > .section--paper:first-child {
  padding-top: clamp(3rem, 5vw, 5rem);
}

/* 11. Image bands ==========================================================
   Full-bleed architectural details used as a visual pause between sections.
   Purely atmospheric — they carry no information, so they are marked
   aria-hidden with empty alt and are never announced by a screen reader.
   ========================================================================== */

.image-band {
  position: relative;
  overflow: hidden;
  /* A letterbox crop keeps these as a breath between sections rather than a
     second hero competing with the page's real content. */
  aspect-ratio: 21 / 7;
  background: var(--ink);
}

.image-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Pull the exposure down slightly so the band sits behind the type in the
     surrounding sections instead of pulling focus. */
  filter: saturate(0.92) brightness(0.94);
}

/* Feather the top and bottom edges into the adjacent section backgrounds. */
.image-band::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(20, 20, 15, 0.28) 0%,
    transparent 22%,
    transparent 78%,
    rgba(20, 20, 15, 0.28) 100%
  );
}

@media (max-width: 900px) {
  /* Taller crop on narrow screens, or the band collapses to a sliver. */
  .image-band { aspect-ratio: 16 / 9; }
}
