/* =========================================================================
   PrimeUS — "The Meridian"
   A warm establishment identity with a single brass meridian spine.
   Palette: Carbon ground · Claret brand · Brass metal · Stone paper.
   Type: Fraunces (display) · Schibsted Grotesk (body) · Geist Mono (labels)
   ========================================================================= */

:root {
  /* ---- colour — V2's paint (navy + copper + cream); a shade more navy, copper with a little life ---- */
  --carbon:        #0a1326;   /* deep navy ground (nudged further toward navy, less black) */
  --panel:         #111827;   /* navy surface / cards                              */
  --panel-2:       #1a2332;   /* elevated / hover / hairline base                  */
  --claret:        #0a0e17;   /* deep navy ink                                     */
  --claret-bright: #8b7355;   /* copper-dark — utility (invalid field)             */
  --brass:         #c9a87c;   /* copper — the metal accent                         */
  --brass-bright:  #e8d4b8;   /* copper-light — highlight                          */
  --stone:         #f5f0e8;   /* cream / dress-white — primary text                */
  --ash:           #a8a29e;   /* secondary text                                    */
  --ash-dim:       #7c756a;   /* warm muted                                        */
  --hairline:      rgba(201,168,124,0.16);  /* copper hairline                     */
  --field-bg:      #060c19;   /* form-field well — darker than the panel for contrast */
  --field-line:    #2d3d59;   /* form-field border — clearly visible against panel  */
  --on-brass:      #0a0e17;   /* dark text that sits on a copper fill              */
  --metal:         linear-gradient(176deg, #e6cd9a 0%, #cba980 48%, #ad875a 100%); /* copper foil (themed for the wordmark US) */
  --gold-plate:    linear-gradient(176deg, #e6cd9a 0%, #cba980 48%, #ad875a 100%); /* gold button face — gold in BOTH modes */

  /* ---- type ---- */
  /* one typeface — Libre Franklin (open Franklin Gothic); hierarchy from weight + spacing */
  --f-display: 'Libre Franklin', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-body:    'Libre Franklin', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono:    'Libre Franklin', system-ui, sans-serif;

  /* ---- metrics ---- */
  --content-max: 1180px;
  --gutter: clamp(1.5rem, 8vw, 7rem);
  --axis: clamp(22px, 6vw, 82px);
  --pad-section: clamp(2.75rem, 5.5vw, 4.75rem);
  --radius: 14px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---- light mode — the cream "dress-white" scheme ---- */
:root[data-theme="light"] {
  --carbon:        #f4eee2;   /* cream ground                                      */
  --panel:         #ebe3d3;   /* raised cream surface / cards                      */
  --panel-2:       #ddd2bd;   /* borders / hover                                   */
  --claret:        #16223f;   /* navy ink                                          */
  --claret-bright: #8b6b38;   /* utility                                           */
  --brass:         #9a7b42;   /* bronze — the copper, darkened to read on cream    */
  --brass-bright:  #7a5f33;
  --stone:         #18233a;   /* navy — primary text on cream                      */
  --ash:           #5c5645;   /* secondary text                                    */
  --ash-dim:       #87806d;   /* muted                                             */
  --hairline:      rgba(124,99,57,0.22);
  --field-bg:      #ffffff;   /* white field on the cream panel — clean contrast    */
  --field-line:    #c7b793;   /* defined sand border                                */
  --metal:         linear-gradient(176deg, #ab8748 0%, #91713c 100%);
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
/* fluid type root — everything is sized in rem, so the whole scale breathes with the
   viewport. Centred so a 2560-wide (1440p) monitor lands on the original 16px baseline and is
   capped there (the look you love is untouched); smaller screens ease gently down to 15px. */
html { -webkit-text-size-adjust: 100%; font-size: clamp(15px, 0.08vw + 13.95px, 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; scroll-snap-type: none; } }

body {
  font-family: var(--f-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  line-height: 1.65;
  color: var(--stone);
  background: var(--carbon);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--brass); color: var(--carbon); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 0; left: 50%; transform: translate(-50%, -120%);
  background: var(--brass); color: var(--carbon); padding: 0.6rem 1.2rem;
  border-radius: 0 0 8px 8px; font: 600 0.85rem/1 var(--f-mono);
  letter-spacing: 0.05em; z-index: 200; transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

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

/* ---------------------------------------------------------------- layout */
.page { position: relative; width: 100%; overflow-x: clip; }

/* ---- full-page Harwell backdrop with parallax drift (dark theme only) ---- */
.page-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.page-bg__img {
  position: absolute; top: -10vh; left: 0; width: 100%; height: 170vh;
  background: url(assets/bridge.jpg) center/cover no-repeat;
  opacity: 0.5; will-change: transform;
}
.page-bg__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(10,19,38,0.74) 0%, rgba(10,19,38,0.46) 32%, rgba(10,19,38,0.54) 72%, rgba(10,19,38,0.84) 100%);
}
:root[data-theme="light"] .page-bg__img { background-image: url(assets/bridge-light.jpg); opacity: 0.55; }
:root[data-theme="light"] .page-bg__veil {
  background: linear-gradient(180deg,
    rgba(244,238,226,0.72) 0%, rgba(244,238,226,0.46) 32%, rgba(244,238,226,0.54) 72%, rgba(244,238,226,0.84) 100%);
}
@media (prefers-reduced-motion: reduce) { .page-bg__img { transform: none !important; } }

main > section { position: relative; padding-block: var(--pad-section); scroll-snap-align: start; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }

.band {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-left: max(var(--gutter), calc(var(--axis) + 1.75rem));
  padding-right: var(--gutter);
}

/* ============================================================ THE SPINE */
.spine {
  position: fixed; left: clamp(16px, 3.2vw, 42px);
  top: clamp(92px, 14vh, 140px); bottom: clamp(44px, 9vh, 96px);
  width: 16px; z-index: 50;
}
.spine__base {
  position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 1px; background: var(--ash-dim); opacity: 0.4;
}
.spine__fill {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 2px; height: 0;
  background: linear-gradient(to bottom, var(--brass), var(--brass-bright));
  box-shadow: 0 0 10px rgba(201,168,124,0.45);
  transition: height 0.15s linear;
}
.spine__dot {
  position: absolute; left: 50%; width: 11px; height: 11px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--carbon); border: 1.5px solid var(--brass);
  padding: 0; cursor: pointer; appearance: none;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.spine__dot[data-section="0"] { top: 0; }
.spine__dot[data-section="1"] { top: 50%; }
.spine__dot[data-section="2"] { top: 100%; }
.spine__dot:hover { background: var(--brass); }
.spine__dot.is-contacted { background: var(--brass); }
.spine__dot.is-active { box-shadow: 0 0 12px rgba(201,168,124,0.7); }
.spine__dot:focus-visible { outline: 2px solid var(--brass-bright); outline-offset: 4px; }

/* waypoint markers sit ON the axis at each section's head */
.waypoint {
  position: absolute; top: clamp(2.4rem, 6vw, 4.4rem); left: var(--axis);
  display: flex; align-items: center; gap: 0.7rem;
  transform: translateY(-50%); z-index: 2;
}
.waypoint__node {
  flex: none; width: 9px; height: 9px;
  background: var(--carbon);
  border: 1.5px solid var(--brass);
  transform: translateX(-50%) rotate(45deg);
  margin-left: 0; /* node centred on axis via translate */
}
.waypoint__node--knot {
  width: 13px; height: 13px; background: var(--brass);
  box-shadow: 0 0 14px rgba(221,183,106,0.55);
}
.waypoint__tick { width: clamp(0.8rem, 2vw, 1.6rem); height: 1px; background: var(--brass); opacity: 0.55; }
.waypoint__label {
  font: 500 0.66rem/1 var(--f-mono);
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--ash); white-space: nowrap;
}

/* ============================================================ TYPOGRAPHY */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font: 500 0.72rem/1 var(--f-mono);
  text-transform: uppercase; letter-spacing: 0.24em;
  color: var(--brass); margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: ""; width: 1.7rem; height: 1px;
  background: var(--brass); opacity: 0.7;
}
.eyebrow--ink { color: var(--claret); }
.eyebrow--ink::before { background: var(--claret); }

.section-title {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  line-height: 1.12; letter-spacing: -0.02em; color: var(--stone);
  max-width: 18ch;
}
.section-title--wide { max-width: 24ch; }
.section-intro {
  margin-top: 1.5rem; max-width: 40ch;
  color: var(--ash); font-size: 1.08em;
}
.section-head { max-width: 760px; }
.muted { color: var(--ash); }

/* ============================================================ NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1.05rem var(--gutter);
  background: color-mix(in srgb, var(--carbon) 80%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), padding 0.3s var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: var(--hairline);
  padding-block: 0.8rem;
  background: color-mix(in srgb, var(--carbon) 92%, transparent);
}
/* ---- brand mark (bridge) gradient stops; flip per theme so the silver waves stay legible ---- */
:root {
  --brg0:#f6e8c6; --brg1:#d6b377; --brg2:#bd9854; --brg3:#8a6a34;   /* gold bridge */
  --wav0:#f4f6f9; --wav1:#cfd5de; --wav2:#aab2c0; --wav3:#7e8694;   /* silver water */
}
:root[data-theme="light"] {
  --brg0:#c79f55; --brg1:#b1863f; --brg2:#9c7536; --brg3:#7a5824;   /* deeper gold on cream */
  --wav0:#7c889f; --wav1:#5e6a82; --wav2:#4a5670; --wav3:#384359;   /* steel water on cream */
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--stone); }
.brand__mark { color: var(--brass); }
.brand__word {
  font: 600 1.18rem/1 var(--f-body); letter-spacing: -0.01em;
}
.brand__prime { color: var(--stone); }
.brand__us {
  background: var(--metal);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.nav__links {
  display: flex; gap: 1.9rem; margin-left: auto;
  font: 500 0.82rem/1 var(--f-mono);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.nav__links a { color: var(--ash); position: relative; padding-block: 0.3rem; transition: color 0.2s var(--ease); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--brass); transition: width 0.28s var(--ease);
}
.nav__links a:hover { color: var(--stone); }
.nav__links a:hover::after { width: 100%; }

/* ============================================================ BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: 500 0.82rem/1 var(--f-mono);
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 0.92rem 1.6rem; border-radius: 2px;   /* rank-bar shape, not a pill */
  border: 1px solid transparent; transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.btn--enquire { color: var(--stone); border-color: var(--hairline); background: transparent; }
.btn--enquire:hover { border-color: var(--brass); color: var(--brass-bright); }

/* theme toggle */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: transparent; border: 1px solid var(--hairline); color: var(--ash);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.theme-toggle:hover { color: var(--brass); border-color: var(--brass); }
.theme-toggle__bulb { transition: filter 0.25s var(--ease); }
.theme-toggle .bulb-rays { display: none; }
:root[data-theme="light"] .theme-toggle { color: var(--brass); border-color: color-mix(in srgb, var(--brass) 50%, transparent); }
:root[data-theme="light"] .theme-toggle .bulb-rays { display: inline; }
:root[data-theme="light"] .theme-toggle .bulb-glass { fill: color-mix(in srgb, var(--brass) 20%, transparent); }
:root[data-theme="light"] .theme-toggle__bulb { filter: drop-shadow(0 0 4px color-mix(in srgb, var(--brass) 55%, transparent)); }

.btn--primary {
  background: var(--gold-plate); color: var(--on-brass);
  border-color: rgba(93,69,31,0.55); font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,246,224,0.4), 0 8px 24px -14px rgba(0,0,0,0.45);
}
.btn--primary:hover {
  filter: brightness(1.05);
  box-shadow: inset 0 1px 0 rgba(255,246,224,0.45), 0 12px 30px -14px rgba(0,0,0,0.5);
  transform: translateY(-1px);
}
.btn--ghost { color: var(--stone); padding-inline: 0.4rem; }
.btn--ghost .btn__arr { color: var(--brass); transition: transform 0.25s var(--ease); }
.btn--ghost:hover .btn__arr { transform: translateX(4px); }

.link-underline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font: 500 0.84rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--brass-bright); padding-bottom: 3px; position: relative;
  transition: color 0.25s var(--ease);
}
.link-underline::after {           /* runs ~1.6x the text width, as if underlining something longer */
  content: ""; position: absolute; bottom: 0; left: 0; height: 1px; width: 160%;
  background: var(--brass); transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.link-underline:hover::after { transform: scaleX(1); }

/* ============================================================ HERO */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: clamp(7rem, 12vh, 9.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  padding-left: max(var(--gutter), calc(var(--axis) + 1.75rem));
  padding-right: var(--gutter);
  max-width: var(--content-max);
  margin-inline: auto; width: 100%;
}
.hero__brand { display: flex; align-items: baseline; gap: clamp(0.9rem, 2vw, 1.35rem); margin-bottom: 1.7rem; }
.hero__seal { color: var(--brass); flex: none; height: clamp(1.95rem, 1.5rem + 3vw, 3.6rem); width: auto; }
.hero__wordmark {
  font-family: var(--f-body); font-weight: 700;
  font-size: clamp(2.6rem, 2rem + 4vw, 4.8rem);
  line-height: 1; letter-spacing: -0.03em;
}
.meridian-tag {
  position: absolute; left: var(--axis); top: clamp(7rem, 16vh, 10rem);
  transform: translateX(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font: 500 0.64rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: 0.3em;
  color: var(--ash-dim);
}
.eyebrow--hero { margin-bottom: 1.8rem; }
.hero__title {
  font-family: var(--f-display);
  font-weight: 400; font-variation-settings: "opsz" 144;
  font-size: clamp(2.7rem, 1.2rem + 6vw, 5.4rem);
  line-height: 1.015; letter-spacing: -0.028em;
  color: var(--stone); text-wrap: balance;
}
.hero__line { display: block; }
.hero__line--accent {
  font-style: italic; font-weight: 380;
  color: var(--brass);
}
.hero__lede {
  margin-top: 2rem; max-width: 50ch;
  font-size: clamp(1.08rem, 1rem + 0.5vw, 1.32rem);
  color: var(--ash); line-height: 1.6;
}
.hero__actions { margin-top: 2.6rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }
.hero__poles {
  margin-top: clamp(3rem, 7vw, 5rem);
  display: flex; align-items: center; gap: 1.1rem;
  font: 500 0.7rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--ash);
}
.pole--uk { color: var(--stone); }
.pole--us { color: var(--brass); }
.pole__rule { flex: 1; max-width: 160px; height: 1px; background: linear-gradient(to right, var(--stone), var(--brass)); opacity: 0.5; }

/* hero entrance — one deliberate beat on load */
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
/* the brand holds the gradient-clipped gold "US"; a transform animation (even ending at
   none, with fill: both) welds a compositing layer onto it that dims the gradient.
   Fade the brand in with NO transform so the "US" always renders crisp. */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.hero__brand   { animation: fadeIn 0.9s var(--ease) 0.05s both; }
.eyebrow--hero { animation: rise 0.8s var(--ease) 0.22s both; }
.hero__lede    { animation: rise 0.9s var(--ease) 0.34s both; }
.hero__actions { animation: rise 0.9s var(--ease) 0.46s both; }
.hero__poles   { animation: rise 0.9s var(--ease) 0.58s both; }

/* ============================================================ THESIS */
.thesis__statement {
  font-family: var(--f-display);
  font-weight: 380; font-variation-settings: "opsz" 144;
  font-size: clamp(2rem, 1.1rem + 3.4vw, 3.7rem);
  line-height: 1.1; letter-spacing: -0.022em; color: var(--stone);
  max-width: 18ch; margin-top: 0.5rem;
}
.thesis__statement em { font-style: italic; color: var(--brass); }
.thesis__statement .muted { display: block; font-size: 0.62em; line-height: 1.3; margin-block: 0.5rem; color: var(--ash); font-style: normal; }
.thesis__cols {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem); max-width: 880px;
}
.thesis__cols p { color: var(--ash); }
.thesis__mission {
  margin-top: 1.9rem; max-width: 40ch; color: var(--ash);
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
}

/* ============================================================ MODEL */
.marks {
  list-style: none; padding: 0; margin-top: clamp(3rem, 6vw, 5rem);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.75rem, 5vw, 4rem);
}
.mark { padding-top: 1.6rem; border-top: 1px solid var(--hairline); }
.mark__title {
  font-family: var(--f-display); font-weight: 460; font-variation-settings: "opsz" 70;
  font-size: 1.6rem; line-height: 1.15; letter-spacing: -0.01em; color: var(--stone);
  margin-bottom: 0.9rem;
}
.mark__body { color: var(--ash); max-width: 26ch; }

/* ============================================================ AUDIENCES (investors emphasised) */
.duo__band {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2.75rem); align-items: stretch;
  position: relative; isolation: isolate;
  overflow: hidden;   /* crop the arch glow to the two tiles + the middle gap; nothing spills outside */
}
/* arch glow: an inverse-circular glow inside each tile that meets at the seam to form a golden
   bridge spanning over a blue arch-hole (revealed on Enquire hover) */
.duo__panel::before {
  content: ""; position: absolute; bottom: -6px; width: 1300px; height: 700px;
  pointer-events: none; opacity: 0; z-index: -1; transition: opacity 0.7s var(--ease);
  filter: blur(6px);
}
/* wide, flattened arch — ~5x horizontal reach, ~2.5x vertical (ellipse), so the bridge spans
   both tiles while the crown stays low; % stops scale concentrically with the ellipse */
.duo__band > .duo__panel:first-child::before {
  right: -22px;
  background: radial-gradient(1225px 612px at 100% 100%,
    transparent 0 28%, rgba(201,168,124,0.55) 100%);
  /* rake the glow: full at the outboard (left) edge, fading toward the centre seam (right) */
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.35) 0, #000 480px);
  mask-image: linear-gradient(to left, rgba(0,0,0,0.35) 0, #000 480px);
}
.duo__band > .duo__panel:last-child::before {
  left: -22px;
  background: radial-gradient(1225px 612px at 0% 100%,
    transparent 0 28%, rgba(201,168,124,0.55) 100%);
  /* mirrored: full at the outboard (right) edge, fading toward the centre seam (left) */
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.35) 0, #000 480px);
  mask-image: linear-gradient(to right, rgba(0,0,0,0.35) 0, #000 480px);
}
.duo__band:has(.link-underline:hover) .duo__panel::before { opacity: 0.33; }
.duo__panel {
  display: flex; flex-direction: column; position: relative; isolation: isolate;
  padding: clamp(1.6rem, 3vw, 2.6rem) clamp(1.5rem, 2.4vw, 2.3rem);
  border-top: 2px solid var(--hairline);
  border-radius: 0 0 var(--radius) var(--radius);
  background: color-mix(in srgb, var(--panel) 62%, var(--carbon));
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.duo__panel .link-underline { margin-top: auto; }   /* links sit on one line at the bottom */
/* the mouse decides which tile is highlighted — investors by default, swaps to whichever is hovered */
.duo__band > .duo__panel:first-child,
.duo__band > .duo__panel:hover {
  background: var(--panel); border-top-color: var(--brass);
}
.duo__band:has(> .duo__panel:last-child:hover) > .duo__panel:first-child {
  background: color-mix(in srgb, var(--panel) 62%, var(--carbon)); border-top-color: var(--hairline);
}

/* ===== "the arch": eyebrows & links at the corners; blurbs hug the OUTER edge and taper
   toward the centre (top lines long → bottom short) so the two inner edges arch up ===== */
.duo__band > .duo__panel:first-child .eyebrow { align-self: flex-end; flex-direction: row-reverse; }
.duo__band > .duo__panel:first-child .link-underline { align-self: flex-start; }
.duo__band > .duo__panel:last-child .eyebrow { align-self: flex-start; }
/* entrepreneurs: same underline, mirrored to fill right → left */
.duo__band > .duo__panel:last-child .link-underline { align-self: flex-end; }
.duo__band > .duo__panel:last-child .link-underline::after { left: auto; right: 0; transform-origin: right; }

.duo__band > .duo__panel:first-child .duo__body { width: 100%; max-width: none; text-align: left; }
.duo__band > .duo__panel:first-child .duo__body::before {
  content: ""; float: right; width: 52%; height: 9em;
  shape-outside: polygon(100% 0, 100% 100%, 0 100%);
}
.duo__band > .duo__panel:last-child .duo__body { width: 100%; max-width: none; text-align: right; }
.duo__band > .duo__panel:last-child .duo__body::before {
  content: ""; float: left; width: 52%; height: 9em;
  shape-outside: polygon(0 0, 0 100%, 100% 100%);
}
@media (max-width: 900px) { .duo__body::before { display: none; } }   /* let mobile reflow */

.duo__body {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.42rem); line-height: 1.38;
  letter-spacing: -0.008em; margin-block: 0.8rem 1.5rem; color: var(--stone); max-width: 30ch;
}

/* about — thesis + audiences + collaboration on one compact panel */
.about__lead {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(1.12rem, 1rem + 0.75vw, 1.5rem); line-height: 1.5;
  letter-spacing: -0.005em; color: var(--stone); max-width: 46ch;
}
.about .duo__band { margin-top: clamp(2rem, 4vw, 3.25rem); }
.about__closer {
  margin-top: clamp(1.75rem, 3.5vw, 2.75rem); max-width: 46ch; margin-left: auto;
  font-family: var(--f-display); font-weight: 450; text-align: right;
  font-size: clamp(1.12rem, 1rem + 0.75vw, 1.5rem); line-height: 1.5;
  color: color-mix(in srgb, var(--ash) 66%, var(--stone) 34%);
}

/* ============================================================ COLLABORATION */
.collab__line {
  font-family: var(--f-display); font-weight: 360; font-variation-settings: "opsz" 120;
  font-size: clamp(1.7rem, 1.1rem + 2.2vw, 3rem); line-height: 1.2;
  letter-spacing: -0.02em; color: var(--stone); max-width: 22ch;
}
.collab__line span { font-style: italic; }

/* ============================================================ CONTACT */
.contact { background: transparent; justify-content: flex-start; }
.contact__band {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start; align-content: center; flex: 1 1 auto; width: 100%;
}
.contact__address {
  margin-top: clamp(1.75rem, 3.5vw, 2.75rem); font-style: normal;
  color: var(--ash); font-size: 0.98em; line-height: 1.65;
}

.enquiry {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem 1.4rem;
  background: var(--panel); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.6rem);
}
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font: 500 0.68rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ash);
}
.field input, .field textarea {
  font-family: var(--f-body); font-size: 1rem; color: var(--stone);
  background: var(--field-bg); border: 1px solid var(--field-line);
  border-radius: 9px; padding: 0.8rem 0.9rem; width: 100%;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  resize: vertical;
}
.field input::placeholder { color: var(--ash-dim); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brass);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.12), 0 0 0 3px rgba(199,154,75,0.2);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--claret-bright); }
:root[data-theme="light"] .field input,
:root[data-theme="light"] .field textarea { box-shadow: inset 0 1px 2px rgba(70,55,25,0.06); }
/* "I'm enquiring as" — segmented role toggle; the two Enquire links pre-select their side */
.enquiry__role { display: flex; flex-direction: column; gap: 0.55rem; }
.enquiry__role-label {
  font: 500 0.68rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ash);
}
.seg {
  display: inline-flex; align-self: start; max-width: 100%;
  border: 1px solid var(--field-line); border-radius: 9px; overflow: hidden; background: var(--field-bg);
}
.seg input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.seg label {
  cursor: pointer; padding: 0.72rem 1.1rem; font-size: 0.8rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--stone); white-space: nowrap; border-left: 1px solid var(--field-line);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.seg > input:first-child + label { border-left: 0; }
.seg input:checked + label { background: var(--gold-plate); color: var(--on-brass); }
.seg input:focus-visible + label { box-shadow: inset 0 0 0 2px var(--brass); }
.enquiry__foot {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem;
  margin-top: 0.4rem;
}
.enquiry__note { font: 500 0.84rem/1.4 var(--f-mono); color: var(--brass-bright); margin: 0; }
.enquiry__note.is-error { color: var(--claret-bright); }
.enquiry.is-sent { /* hook for success state styling if needed */ }

/* ============================================================ FOOTER */
.footer {
  flex: 0 0 auto; width: 100%; position: relative;
  padding: clamp(1.4rem, 2.5vw, 2rem) var(--gutter);
  padding-left: max(var(--gutter), calc(var(--axis) + 1.75rem));
  border-top: 1px solid var(--hairline);
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 2rem;
  max-width: var(--content-max); margin-inline: auto;
}
.footer__brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--stone); }
.footer__meta {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; margin-left: auto;
  font: 500 0.72rem/1.5 var(--f-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ash-dim);
}

/* ============================================================ MOBILE MENU */
.nav__toggle { display: none; }
.mobile-menu { display: none; }
/* mobile-only components — hidden on desktop, activated in the ≤900px panel layout */
.audience-toggle, .hero__cue, .footer__address, .thesis-reveal { display: none; }

/* ============================================================ REVEAL — intentionally none.
   Content is always present; only the hero entrance and the meridian spine animate. */

/* ============================================================ RESPONSIVE */
@media (max-width: 900px) {
  /* ====================================================================
     MOBILE — built mobile-up: content flows naturally with an even rhythm
     (no forced full-screen sections), a hero that sits just below the nav,
     an Investor/Entrepreneur tap toggle, and large thumb-sized buttons.
     ==================================================================== */

  /* LIGHT MODE on phones: `cover` zooms the bridge into a dense strip that muddies the
     cream, so keep the image a whisper and let a clean warm cream→sand wash carry it. */
  :root[data-theme="light"] .page-bg__img { opacity: 0.08; }
  :root[data-theme="light"] .page-bg__veil {
    background: linear-gradient(180deg, rgba(245,240,230,0.93) 0%, rgba(237,227,209,0.9) 100%);
  }

  /* --- nav: brand + hamburger only --- */
  .nav__links { display: none; }
  .theme-toggle { margin-left: auto; }
  .nav__toggle {
    display: inline-flex; flex-direction: column; gap: 5px; margin-left: 0.6rem;
    background: transparent; border: 0; padding: 0.4rem;
  }
  .nav__toggle span { width: 24px; height: 1.6px; background: var(--stone); transition: all 0.3s var(--ease); }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

  .mobile-menu {
    position: fixed; inset: 0; z-index: 90; display: flex;
    flex-direction: column; justify-content: center; gap: 1.4rem;
    padding: var(--gutter);
    background: color-mix(in srgb, var(--carbon) 97%, transparent);
    backdrop-filter: blur(8px);
  }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu a {
    font-family: var(--f-display); font-size: 2rem; color: var(--stone);
    font-variation-settings: "opsz" 100;
  }

  /* --- sections flow to their own content with one even, comfortable rhythm.
         (Forcing every section to 100svh was cramming the busy one and voiding the
         empty one — content now fits instead of fighting the container.) --- */
  main > section {
    min-height: 0;
    justify-content: flex-start;
    padding-block: clamp(1.85rem, 4.5vh, 2.5rem);
    padding-inline: var(--gutter);
  }
  /* the hero logo simply fades out as you scroll while the nav fades in (script.js).
     No transform / will-change on the brand — those promoted it to a GPU layer and
     dimmed the gradient-clipped gold "US". */
  .nav { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav.is-scrolled { background: transparent; }
  .band, .contact__band { width: 100%; max-width: none; padding: 0; }

  /* no page dots / no scroll rail on mobile — just clean free scroll */
  .spine { display: none; }

  /* ---------- HERO — a full-screen cover: brand centred, logo prominent ---------- */
  .hero {
    align-items: center; text-align: center;
    min-height: 100svh; justify-content: center;
    /* symmetric inline padding — the desktop rule pads-left to clear the meridian axis, but the
       spine is hidden on mobile, so that asymmetry just shoved the centred brand to the right */
    padding: clamp(5rem, 13vh, 7rem) var(--gutter) clamp(3rem, 8vh, 4.5rem);
  }
  .hero__brand { flex-direction: column; align-items: center; gap: 0.95rem; }
  .hero__seal { height: clamp(56px, 17vw, 82px); width: auto; }
  .hero__wordmark { font-size: clamp(3.2rem, 17.5vw, 4.8rem); line-height: 0.92; }
  .eyebrow--hero { font-size: 0.66rem; letter-spacing: 0.18em; margin-top: 1.4rem; margin-bottom: 0; }
  .eyebrow--hero::before { display: none; }   /* drop the single dash when centred */
  .hero__lede { font-size: clamp(1.1rem, 4.4vw, 1.38rem); line-height: 1.55; margin: 1.7rem auto 0; max-width: 30ch; }
  .hero__actions { margin-top: 2.3rem; width: 100%; max-width: 21rem; }
  .hero__actions .btn { width: 100%; justify-content: center; padding-block: 1.05rem; font-size: 0.8rem; }
  /* the "more" cue existed only to fill a forced full-screen hero — natural flow shows
     the next section peeking instead, which is a better invitation to scroll */
  .hero__cue { display: none; }

  /* ---------- ABOUT — two tiles: the thesis, and the audience module ---------- */
  /* the thesis ("industrial revolution") is its own tile (reduced-motion / fallback flow) */
  .about__lead {
    font-size: clamp(1.18rem, 4.9vw, 1.46rem); line-height: 1.4; max-width: none;
    background: var(--panel); border: 1px solid var(--hairline);
    border-radius: 14px; padding: 1.5rem 1.4rem;
  }
  /* the two words that carry the argument, gilded (mobile only) */
  .lead-key { color: var(--brass); font-weight: 500; }

  /* the toggle + audiences + collaboration line are ONE cohesive card module: select a side,
     read the offer, enquire — with the collaboration line as the card's quiet footer. */
  .audience-module {
    margin-top: 1.15rem; background: var(--panel); border: 1px solid var(--hairline);
    border-radius: 16px; padding: clamp(1.4rem, 5.2vw, 1.75rem);
    box-shadow: 0 16px 38px -26px rgba(0,0,0,0.5);
  }

  /* the choice — two clearly-tappable buttons framed by audience ("For investors" / "For
     entrepreneurs"). The selected side fills gold; the other stays gold-outlined and pressable. */
  .audience-toggle { display: flex; gap: 0.6rem; margin-top: 0; }
  .audience-toggle__btn {
    flex: 1; cursor: pointer; padding: 0.85rem 0.3rem; font-weight: 600; white-space: nowrap;
    font-family: var(--f-body); font-size: clamp(0.66rem, 2.9vw, 0.8rem); letter-spacing: 0.04em;
    text-transform: uppercase; color: var(--brass); background: transparent;
    border: 1.5px solid color-mix(in srgb, var(--brass) 58%, transparent); border-radius: 9px;
    transition: background 0.28s var(--ease), color 0.28s var(--ease), border-color 0.28s var(--ease);
  }
  .about[data-audience="investor"]     .audience-toggle__btn[data-audience="investor"],
  .about[data-audience="entrepreneur"] .audience-toggle__btn[data-audience="entrepreneur"] {
    background: var(--gold-plate); color: var(--on-brass); border-color: transparent;
    box-shadow: 0 7px 18px -9px rgba(120,90,40,0.65);
  }

  /* one audience at a time, driven by the toggle */
  .duo__band { display: block; margin-top: 1.35rem; }
  .duo__panel { padding: 0; border: 0; }
  .about[data-audience="investor"]     .duo__panel:nth-child(2) { display: none; }
  .about[data-audience="entrepreneur"] .duo__panel:nth-child(1) { display: none; }
  .duo__panel .eyebrow { display: none; }
  .duo__body { font-size: clamp(1.06rem, 4.5vw, 1.32rem); line-height: 1.5; text-align: left; max-width: none; }
  .duo__band > .duo__panel:last-child .duo__body { text-align: right; }   /* entrepreneurs read right; investors left (echoes the desktop arch) */

  .duo__panel .link-underline {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    margin-top: 1.45rem; width: 100%; padding: 1.05rem 0.9rem; white-space: nowrap;
    background: var(--gold-plate); color: var(--on-brass);
    border-radius: 2px; border: 1px solid rgba(93,69,31,0.55);
    font-family: var(--f-mono); font-size: clamp(0.7rem, 2.95vw, 0.78rem); letter-spacing: 0.07em;
    text-transform: uppercase; text-decoration: none;
  }
  .duo__panel .link-underline > span { color: var(--on-brass); }
  .duo__panel .link-underline::after { display: none; }

  /* collaboration line — neat + unobtrusive at the foot of the module */
  .about__closer {
    text-align: left; margin-left: 0; margin-top: 1.5rem;
    padding-top: 1.25rem; border-top: 1px solid var(--hairline);
    font-size: 0.85rem; line-height: 1.5; color: var(--ash); max-width: none;
  }

  /* ---------- CONTACT (tall — top-aligned) ---------- */
  .contact { justify-content: flex-start; }
  .contact__address { display: none; }   /* the address moves to the footer on mobile */
  .contact__band { display: grid; grid-template-columns: 1fr; gap: 1.7rem; }
  .seg label { padding-inline: 0.85rem; }   /* tighten so uppercase "AN ENTREPRENEUR" fits the card */
  .section-title { font-size: clamp(1.95rem, 8.5vw, 2.7rem); }
  .section-intro { max-width: none; }
  .enquiry { grid-template-columns: 1fr; }
  .btn--submit { width: 100%; justify-content: center; padding-block: 1.05rem; }

  /* footer (mobile): show the address, drop "A transatlantic deep-tech programme" */
  .footer__tag { display: none; }
  .footer__address { display: block; font-style: normal; line-height: 1.6; font-size: 0.72rem; color: var(--ash-dim); }

  .thesis__cols, .marks, .sectors { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  :root { --gutter: clamp(1.25rem, 6.5vw, 2rem); }
  .nav { padding-inline: 1.25rem; }
}

/* ============================================================ MOBILE COVER-LIFT
   The landing page is an opaque "blind" (z30) that lifts away on scroll (driven in
   script.js), revealing the thesis as a single-screen "window" (z10) on the backdrop;
   the rest (z20) then rises up over it. Reduced-motion users keep the normal stacked flow. */
@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
  /* the cover ("blind"): opaque, fills the real viewport, lifts away on scroll (script.js) */
  .hero { position: fixed; inset: 0; z-index: 30; background: var(--carbon); }

  /* the thesis "window": a sticky panel inside a tall track. It pins (revealed beneath the
     lifting blind), then RELEASES and scrolls away as you continue — all normal flow, so the
     rest simply follows it (no fixed-layer trapping things behind it). */
  .thesis-reveal { display: block; height: 280svh; }
  .thesis-window {
    position: sticky; top: 0; height: 100svh; z-index: 5;
    display: flex; align-items: center; padding: 0 var(--gutter);
  }
  .about__lead { display: none; }   /* the .thesis-window is the thesis on transition phones */

  /* editorial treatment — no card; large light statement with a gold "meridian" rule */
  .thesis-window__text {
    margin: 0; max-width: 33rem; position: relative;
    padding-left: clamp(1.1rem, 4.5vw, 1.5rem);
    font-size: clamp(1.5rem, 6.3vw, 2.05rem); line-height: 1.34; font-weight: 350;
    letter-spacing: -0.012em; color: var(--stone);
  }
  .thesis-window__text::before {
    content: ""; position: absolute; left: 0; top: 0.16em; bottom: 0.16em; width: 2px;
    background: linear-gradient(var(--brass), color-mix(in srgb, var(--brass) 14%, transparent));
  }

  /* --- the i/e section rises UP and OVER the pinned thesis. It's an opaque carbon field sitting
     ABOVE the thesis (z6), overlapping the last screen of the thesis track (margin-top:-100svh).
     As you scroll past the reveal it slides up and covers the centred thesis from the bottom — the
     incoming section fills the space, so there's no empty gap — carrying the cohesive card with it. --- */
  .about {
    position: relative; z-index: 6; margin-top: -100svh; background: var(--carbon);
    padding-top: clamp(4rem, 11vh, 6rem); padding-bottom: clamp(2.5rem, 7vh, 3.5rem);
    box-shadow: 0 -24px 46px -14px rgba(4, 9, 20, 0.6);   /* the rising edge casts onto the thesis */
  }
  :root[data-theme="light"] .about { box-shadow: 0 -22px 42px -16px rgba(120, 96, 58, 0.34); }
}

/* ---- short viewports (laptops: wide but not tall): tighten vertical rhythm so each
       full-height section sits closer to one clean screen ---- */
@media (min-width: 901px) and (max-height: 880px) {
  .hero__lede { margin-top: 1.4rem; }
  .about__lead { font-size: 1.22rem; line-height: 1.4; }
  .about .duo__band { margin-top: 1.3rem; }
  .duo__panel { padding-block: 1.35rem; }
  .duo__body { line-height: 1.45; }
  .about__closer { margin-top: 1rem; font-size: 1.16rem; line-height: 1.4; }
  .section-intro { margin-top: 1rem; }
  .contact__address { margin-top: 1rem; }
  .enquiry { padding: 1.5rem; gap: 0.85rem 1.2rem; }
}

/* ============================================================ MOTION PREF */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .spine__draw { box-shadow: none; }
  .spine__fix { display: none; }
}
