/* =========================================================
   AARION CORPORATION — Light editorial
   Mobile-first. Self-hosted fonts. No build step required.
   ========================================================= */

/* --------- Fonts (self-hosted, latin subset) --------- */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('assets/fonts/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('assets/fonts/fraunces-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('assets/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =========================================================
   TOKENS
   ========================================================= */
:root {
  /* Canvas */
  --bg:       40 33% 97%;
  --surface:  40 30% 99%;
  --elevated: 0   0% 100%;

  /* Text — tuned so every pairing clears WCAG AA */
  --text:     20 14% 12%;
  --text-2:   20 10% 26%;
  --muted:    30  9% 40%;
  --stroke:   36 20% 88%;

  /* Brand */
  --coral:      354 78% 60%;
  --coral-ink:  354 72% 42%;   /* accessible coral for small text */
  --amber:       38 90% 53%;
  --coral-soft: 354 70% 95%;
  --amber-soft:  38 85% 94%;

  /* Venture accents */
  --v-teal:  #14735C;
  --v-blue:  #234F8C;
  --v-amber: #9A5E06;
  --v-earth: #664A2C;
  --v-teal-soft:  hsl(165 68% 96%);
  --v-blue-soft:  hsl(216 60% 96%);
  --v-amber-soft: hsl(32 85% 96%);
  --v-earth-soft: hsl(30 25% 95%);

  /* Ambient background. Change these to retune the hero backdrop:
     video-opacity = how much imagery shows through the tint. */
  --accent-angle: 204deg;
  --accent-intensity: 0.56;
  --video-opacity: 0.18;
  --video-sat: 0.6;
  --video-blur: 0;
  --tint-amount: 0.91;
  --accent: linear-gradient(var(--accent-angle), hsl(var(--coral)), hsl(var(--amber)));

  /* Radii */
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;

  /* Fluid rhythm — one knob for every vertical gap */
  --section-y: clamp(72px, 10vw, 140px);
  --gutter: clamp(20px, 5vw, 48px);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --nav-h: 64px;
}

[data-theme="dark"] {
  --bg:       24 10% 7%;
  --surface:  24  9% 10%;
  --elevated: 24  9% 13%;
  --text:     40 20% 94%;
  --text-2:   40 12% 80%;
  --muted:    30  8% 68%;
  --stroke:   30  8% 22%;
  --coral-ink: 354 80% 72%;
  --coral-soft: 354 30% 22%;
  --amber-soft:  38 40% 22%;
  --v-teal:  #4FCBA8;
  --v-blue:  #7BA7E8;
  --v-amber: #E8A94A;
  --v-earth: #C4A280;
  --v-teal-soft:  hsl(165 30% 14%);
  --v-blue-soft:  hsl(216 30% 16%);
  --v-amber-soft: hsl(32  40% 16%);
  --v-earth-soft: hsl(30  18% 16%);
}

/* =========================================================
   BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  /* Keep anchor targets clear of the fixed nav pill */
  scroll-padding-top: calc(var(--nav-h) + 32px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: hsl(var(--text));
  background: hsl(var(--bg));
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
/* <address> is used for real postal addresses; drop the UA italic. */
address { font-style: normal; }

em {
  font-style: italic;
  font-family: var(--font-display);
  font-weight: 400;
}

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 880px; }

/* Visually hidden but available to assistive tech */
.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 */
.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 200;
  background: hsl(var(--text)); color: hsl(var(--bg));
  padding: 12px 20px; border-radius: 0 0 12px 12px;
  font-size: 14px; font-weight: 500;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; }

/* =========================================================
   AMBIENT BACKGROUND
   ========================================================= */
.ambient {
  position: fixed; inset: 0;
  z-index: -1;
  background: hsl(var(--bg));
  overflow: hidden;
  pointer-events: none;
  contain: layout paint style;
}

/* Static poster: the instant first paint, and the only layer on mobile */
.ambient-poster {
  position: absolute; inset: 0;
  background-image: url('assets/bg/poster.webp');
  background-size: cover;
  background-position: center;
  filter: saturate(var(--video-sat));
  opacity: 0;
  transition: opacity .8s ease;
}
body[data-bg="image"] .ambient-poster { opacity: 1; }

/* Scroll-scrubbed sequence — only mounted on capable devices by app.js */
#bg-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity .8s ease;
  filter: saturate(var(--video-sat)) blur(calc(var(--video-blur) * 1px));
}
body[data-bg="sequence"] #bg-canvas { opacity: 1; }
/* Once the canvas is live the poster is redundant — drop it to save a layer */
body[data-bg="sequence"] .ambient-poster { opacity: 0; }

/* Warm tint that lifts text legibility over the imagery */
.ambient-tint {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
  background: linear-gradient(180deg,
    hsl(var(--bg) / calc((1 - var(--video-opacity)) * var(--tint-amount))) 0%,
    hsl(var(--bg) / calc((1 - var(--video-opacity) * 0.85) * var(--tint-amount))) 40%,
    hsl(var(--bg) / calc((1 - var(--video-opacity) * 0.5) * var(--tint-amount))) 75%,
    hsl(var(--bg) / calc((1 - var(--video-opacity) * 0.2) * var(--tint-amount))) 100%);
}
body[data-bg="image"] .ambient-tint,
body[data-bg="sequence"] .ambient-tint { opacity: 1; }

/* Fallback wash when no imagery loads at all */
.ambient-wash {
  position: absolute; inset: 0;
  background:
    radial-gradient(60vmax 60vmax at 10% -10%, hsl(var(--coral) / .10), transparent 70%),
    radial-gradient(55vmax 55vmax at 110% 20%, hsl(var(--amber) / .10), transparent 70%),
    radial-gradient(45vmax 45vmax at 40% 110%, hsl(350 85% 80% / .10), transparent 70%);
}

/* Film grain — a tiled data-URI, far cheaper than a full-viewport SVG filter */
.noise {
  position: absolute; inset: 0;
  opacity: .035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 120px 120px;
}
[data-theme="dark"] .noise { mix-blend-mode: screen; opacity: .05; }

/* =========================================================
   NAVBAR
   ========================================================= */
.nav-wrap {
  position: fixed; inset: 0 0 auto 0; top: 12px;
  display: flex; justify-content: center; z-index: 50;
  padding: 0 12px;
  pointer-events: none;
}
@media (min-width: 768px) { .nav-wrap { top: 24px; padding: 0 16px; } }

.nav-pill {
  pointer-events: auto;
  display: flex; align-items: center; gap: 8px;
  width: 100%; max-width: 100%;
  padding: 8px 8px 8px 14px;
  border-radius: 999px;
  background: hsl(var(--surface) / 0.78);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border: 1px solid hsl(var(--stroke));
  transition: box-shadow .3s ease, background .3s ease;
}
@media (min-width: 900px) { .nav-pill { width: auto; } }

.nav-wrap.is-scrolled .nav-pill {
  background: hsl(var(--surface));
  box-shadow: 0 10px 40px -20px hsl(var(--text) / 0.25);
}

.nav-logo {
  display: inline-flex; align-items: center;
  padding: 4px 12px 4px 2px;
  margin-right: 2px;
  flex: 0 0 auto;
}
.nav-logo img { height: 20px; width: 54px; }
@media (min-width: 900px) {
  .nav-logo { border-right: 1px solid hsl(var(--stroke)); padding-right: 14px; margin-right: 6px; }
}

/* ---- Desktop links ---- */
.nav-links {
  list-style: none; display: none; gap: 2px;
  margin: 0; padding: 0; align-items: center;
}
@media (min-width: 900px) { .nav-links { display: flex; } }

.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px;
  font-size: 14px; color: hsl(var(--text-2));
  border-radius: 999px;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.nav-link:hover { color: hsl(var(--text)); background: hsl(var(--text) / 0.05); }
.nav-link.is-active { background: hsl(var(--coral) / 0.10); color: hsl(var(--coral-ink)); }
.nav-link > svg { transition: transform .25s ease; flex: 0 0 auto; }
.has-menu.is-open > .nav-link > svg { transform: rotate(180deg); }

.has-menu { position: relative; }
.nav-dropdown {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translate(-50%, 6px);
  width: 380px; max-width: calc(100vw - 32px);
  background: hsl(var(--elevated));
  border: 1px solid hsl(var(--stroke));
  border-radius: 24px;
  padding: 8px;
  box-shadow: 0 20px 60px -20px hsl(var(--text) / 0.25);
  opacity: 0; visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-menu.is-open > .nav-dropdown,
.has-menu:focus-within > .nav-dropdown {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
/* Hover only where a real pointer exists — touch uses the click toggle */
@media (hover: hover) and (pointer: fine) {
  .has-menu:hover > .nav-dropdown {
    opacity: 1; visibility: visible; transform: translate(-50%, 0);
  }
}

.dd-row {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 16px;
  transition: background .2s ease;
}
.dd-row:hover { background: hsl(var(--bg)); }
.dd-row:hover .dd-chev { transform: translateX(3px); }
.dd-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.dd-row[data-accent="teal"]  .dd-dot { background: var(--v-teal); }
.dd-row[data-accent="blue"]  .dd-dot { background: var(--v-blue); }
.dd-row[data-accent="amber"] .dd-dot { background: var(--v-amber); }
.dd-row[data-accent="earth"] .dd-dot { background: var(--v-earth); }
.dd-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dd-title { font-size: 14px; font-weight: 600; color: hsl(var(--text)); }
.dd-sub { font-size: 12px; color: hsl(var(--muted)); }
.dd-chev { color: hsl(var(--muted)); transition: transform .2s ease; }

/* ---- CTA ---- */
.nav-cta {
  display: none;
  align-items: center; gap: 6px;
  padding: 10px 16px;
  font-size: 13px; font-weight: 500;
  background: hsl(var(--text));
  color: hsl(var(--bg));
  border-radius: 999px;
  position: relative;
  white-space: nowrap;
  margin-left: auto;
  transition: transform .2s ease;
}
@media (min-width: 900px) { .nav-cta { display: inline-flex; } }
.nav-cta::before {
  content: ""; position: absolute; inset: -1px;
  border-radius: 999px; padding: 1px;
  background: var(--accent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .2s ease;
}
.nav-cta:hover::before { opacity: 1; }
.nav-cta:hover { transform: translateY(-1px); }

/* ---- Hamburger (mobile only) ---- */
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center;
  gap: 5px;
  margin-left: auto;
  width: 44px; height: 44px;
  padding: 0 10px;
  border: 0; background: none; cursor: pointer;
  border-radius: 999px;
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 900px) { .nav-toggle { display: none; } }
.nav-toggle span {
  display: block; height: 1.5px; width: 100%;
  background: hsl(var(--text));
  border-radius: 2px;
  transition: transform .3s cubic-bezier(.2,.65,.3,1), opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

/* ---- Mobile drawer ---- */
.nav-scrim {
  position: fixed; inset: 0; z-index: 55;
  background: hsl(var(--text) / .35);
  backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s;
}
body.nav-open .nav-scrim { opacity: 1; visibility: visible; }
@media (min-width: 900px) { .nav-scrim { display: none; } }

.nav-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 56;
  width: min(360px, 86vw);
  background: hsl(var(--surface));
  border-left: 1px solid hsl(var(--stroke));
  padding: 24px 24px calc(24px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .38s cubic-bezier(.2,.75,.25,1), visibility .38s;
  overflow-y: auto;
  overscroll-behavior: contain;
}
body.nav-open .nav-drawer { transform: none; visibility: visible; }
@media (min-width: 900px) { .nav-drawer { display: none; } }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px;
}
.drawer-head img { height: 22px; width: 59px; }
.drawer-close {
  width: 44px; height: 44px;
  border: 1px solid hsl(var(--stroke)); background: none;
  border-radius: 50%; cursor: pointer;
  font-size: 20px; line-height: 1; color: hsl(var(--text));
  display: grid; place-items: center;
}

.drawer-nav { list-style: none; margin: 0 0 auto; padding: 0; display: flex; flex-direction: column; }
.drawer-nav > li { border-bottom: 1px solid hsl(var(--stroke)); }
.drawer-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 4px;
  font-family: var(--font-display);
  font-size: 26px; line-height: 1.2;
  color: hsl(var(--text));
}
.drawer-nav a small {
  font-family: var(--font-body);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: hsl(var(--muted));
}
.drawer-sub { list-style: none; margin: 0 0 16px; padding: 0 0 0 4px; display: flex; flex-direction: column; gap: 2px; }
.drawer-sub a {
  font-family: var(--font-body);
  font-size: 15px; padding: 11px 0;
  color: hsl(var(--text-2));
  display: flex; align-items: center; justify-content: flex-start; gap: 10px;
}
.drawer-sub .dd-dot { width: 7px; height: 7px; flex: 0 0 auto; }
.drawer-sub li[data-accent="teal"]  .dd-dot { background: var(--v-teal); }
.drawer-sub li[data-accent="blue"]  .dd-dot { background: var(--v-blue); }
.drawer-sub li[data-accent="amber"] .dd-dot { background: var(--v-amber); }
.drawer-sub li[data-accent="earth"] .dd-dot { background: var(--v-earth); }
.drawer-foot { padding-top: 28px; }
.drawer-foot .btn { width: 100%; justify-content: center; }
.drawer-meta {
  margin: 18px 0 0; font-size: 12px; line-height: 1.7;
  color: hsl(var(--muted));
}
.drawer-meta a { color: hsl(var(--text-2)); text-decoration: underline; text-underline-offset: 3px; }

body.nav-open { overflow: hidden; }

/* =========================================================
   REVEAL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.2,.65,.3,1),
              transform .8s cubic-bezier(.2,.65,.3,1);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; will-change: auto; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100svh;
  padding: calc(var(--nav-h) + 56px) 0 96px;
  display: flex; align-items: center;
  position: relative;
}
.hero-inner { max-width: 980px; width: 100%; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border: 1px solid hsl(var(--stroke));
  background: hsl(var(--surface) / 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: clamp(9.5px, 2.2vw, 11px);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: hsl(var(--muted));
  margin-bottom: 28px;
  max-width: 100%;
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }

.eyebrow-sm {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0; border: none; background: none; backdrop-filter: none;
  margin-bottom: 16px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.25em;
  color: hsl(var(--muted));
}
.eyebrow-sm .rule { width: 28px; height: 1px; background: currentColor; display: inline-block; flex: 0 0 auto; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 8.5vw, 104px);
  line-height: 1.03;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  font-variation-settings: "opsz" 96;
  color: hsl(var(--text));
  text-wrap: balance;
}
.dot-coral { color: hsl(var(--coral)); }
.emph { font-style: italic; font-variation-settings: "opsz" 144; }

.hero-sub {
  font-size: clamp(15px, 1.3vw, 17px);
  color: hsl(var(--text-2));
  margin: 0 0 14px;
}

/* Inline word rotator. A grid stack keeps the box exactly as wide as the
   widest word, so the trailing full stop never drifts. */
.rotator {
  display: inline-grid;
  vertical-align: bottom;
  text-align: left;
}
.rotator-word {
  grid-area: 1 / 1;
  opacity: 0; transform: translateY(10px);
  transition: opacity .45s ease, transform .45s ease;
  color: hsl(var(--coral-ink));
  font-weight: 600;
  white-space: nowrap;
}
.rotator-word.is-active { opacity: 1; transform: none; }
/* The widest word holds the box open without being seen */
.rotator-word.is-sizer { opacity: 0; visibility: hidden; position: static; }

.hero-desc {
  max-width: 580px;
  font-size: clamp(14.5px, 1.1vw, 15px);
  color: hsl(var(--muted));
  line-height: 1.7;
  margin: 0 0 40px;
}

.hero-cta { display: flex; align-items: center; gap: clamp(16px, 4vw, 24px); flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px;
  min-height: 48px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  transition: transform .2s ease, background .2s ease, color .2s ease;
  position: relative;
  text-align: center;
}
.btn > span { display: inline-block; transition: transform .2s ease; }
.btn:hover > span { transform: translateX(3px); }

.btn-primary { background: hsl(var(--text)); color: hsl(var(--bg)); }
.btn-primary::before {
  content: ""; position: absolute; inset: -1px; border-radius: 999px;
  padding: 1px; background: var(--accent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .25s ease;
}
.btn-primary:hover { background: transparent; color: hsl(var(--text)); }
.btn-primary:hover::before { opacity: 1; }

.btn-ghost {
  color: hsl(var(--text-2));
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 15px 4px;
}
.btn-ghost:hover { color: hsl(var(--text)); }

.scroll-hint {
  position: absolute; left: 50%; bottom: 28px;
  transform: translateX(-50%);
  display: none; flex-direction: column; align-items: center; gap: 10px;
  color: hsl(var(--muted));
}
@media (min-width: 768px) and (min-height: 620px) { .scroll-hint { display: flex; } }
.scroll-label { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; }
.scroll-line { width: 1px; height: 48px; background: hsl(var(--stroke)); position: relative; overflow: hidden; }
.scroll-dot {
  position: absolute; top: 0; left: 50%; margin-left: -2px;
  width: 4px; height: 8px; border-radius: 2px;
  background: hsl(var(--coral));
  animation: scroll-hint 1.8s ease-in-out infinite;
}
@keyframes scroll-hint {
  0%   { top: -8px; opacity: 0; }
  40%  { opacity: 1; }
  100% { top: 48px; opacity: 0; }
}

/* =========================================================
   ABOUT
   ========================================================= */
.about { padding: var(--section-y) 0; position: relative; }
.lede {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(19px, 2.4vw, 26px);
  line-height: 1.5;
  color: hsl(var(--text-2));
  margin: 0 0 20px;
  text-wrap: pretty;
}
.lede:last-of-type { margin-bottom: clamp(32px, 5vw, 48px); }

.stats {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid hsl(var(--stroke));
  padding: 0;
}
.stat {
  padding: 24px 0;
  border-bottom: 1px solid hsl(var(--stroke));
  display: flex; align-items: baseline; gap: 20px;
}
.stat-num {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: clamp(40px, 11vw, 72px);
  line-height: 1;
  color: hsl(var(--text));
  font-weight: 400;
  position: relative;
  flex: 0 0 auto;
}
.stat-num::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1s ease .3s;
}
.stats.is-in .stat-num::after { transform: scaleX(1); }
.stat-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em;
  color: hsl(var(--muted));
}

/* Side-by-side once there is room for three columns */
@media (min-width: 620px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid hsl(var(--stroke));
    padding: 32px 0;
  }
  .stat {
    padding: 0 24px;
    border-bottom: none;
    border-left: 1px solid hsl(var(--stroke));
    flex-direction: column; align-items: flex-start; gap: 8px;
  }
  .stat:first-child { border-left: none; padding-left: 0; }
  .stat-num { font-size: clamp(40px, 6vw, 72px); }
}

/* =========================================================
   VENTURES
   ========================================================= */
.ventures { padding: var(--section-y) 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; margin-bottom: clamp(36px, 6vw, 56px); flex-wrap: wrap;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: hsl(var(--text));
  max-width: 760px;
  text-wrap: balance;
}
.section-sub {
  color: hsl(var(--muted));
  max-width: 560px;
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}
.section-link {
  color: hsl(var(--text));
  font-size: 14px;
  padding: 10px 0;
  border-bottom: 1px solid hsl(var(--stroke));
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.section-link:hover { color: hsl(var(--coral-ink)); border-color: hsl(var(--coral)); }

.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 2vw, 24px);
}
@media (min-width: 640px)  { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .bento { grid-template-columns: repeat(12, 1fr); } }

.card {
  background: hsl(var(--elevated));
  border: 1px solid hsl(var(--stroke));
  border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 44px);
  min-height: clamp(300px, 42vw, 380px);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .35s cubic-bezier(.2,.65,.3,1),
              box-shadow .35s ease,
              background .35s ease;
  color: hsl(var(--text));
}
@media (min-width: 1000px) {
  .card[data-span="7"] { grid-column: span 7; }
  .card[data-span="5"] { grid-column: span 5; }
}
@media (hover: hover) {
  .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 30px 80px -40px hsl(var(--text) / 0.35);
    background: var(--v-soft);
  }
  .card:hover .card-title { letter-spacing: -0.025em; }
  .card:hover .card-link { border-color: var(--v); }
  .card:hover .card-glyph { opacity: 0.08; }
}
.card:focus-visible { background: var(--v-soft); }

.card[data-accent="teal"]  { --v: var(--v-teal);  --v-soft: var(--v-teal-soft); }
.card[data-accent="blue"]  { --v: var(--v-blue);  --v-soft: var(--v-blue-soft); }
.card[data-accent="amber"] { --v: var(--v-amber); --v-soft: var(--v-amber-soft); }
.card[data-accent="earth"] { --v: var(--v-earth); --v-soft: var(--v-earth-soft); }

.card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  margin-bottom: auto;
}
.card-icon { color: var(--v); display: inline-flex; }
.card-tag {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em;
  color: hsl(var(--muted));
  padding: 6px 10px;
  border: 1px solid hsl(var(--stroke));
  border-radius: 999px;
  white-space: nowrap;
}

.card-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(26px, 4.4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: clamp(40px, 7vw, 80px) 0 16px;
  color: hsl(var(--text));
  transition: letter-spacing .35s ease;
  text-wrap: balance;
  max-width: 15ch;
}

.card-desc {
  color: hsl(var(--muted));
  font-size: 14px;
  max-width: 40ch;
  margin: 0 0 24px;
}
.card-foot { margin-top: auto; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--v);
  font-weight: 500; font-size: 14px;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}

.card-glyph {
  position: absolute; right: -40px; bottom: -40px;
  width: 280px; height: 280px;
  color: var(--v);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}

/* =========================================================
   PRESENCE
   ========================================================= */
.presence {
  padding: var(--section-y) 0;
  background: hsl(var(--surface));
  position: relative;
}
.presence-grid { display: grid; gap: clamp(40px, 6vw, 64px); grid-template-columns: 1fr; }
@media (min-width: 960px) {
  .presence-grid { grid-template-columns: 360px 1fr; gap: 80px; }
  .presence-sticky { position: sticky; top: calc(var(--nav-h) + 64px); }
}
.presence-legal {
  margin-top: 24px;
  font-size: 12px; color: hsl(var(--muted));
  padding-top: 20px; border-top: 1px solid hsl(var(--stroke));
  max-width: 340px;
}

.presence-list { display: flex; flex-direction: column; gap: clamp(14px, 2vw, 24px); }
.region {
  position: relative;
  background: hsl(var(--elevated));
  border: 1px solid hsl(var(--stroke));
  border-radius: var(--r-lg);
  padding: clamp(26px, 4.5vw, 48px);
  overflow: hidden;
  min-height: clamp(260px, 38vw, 340px);
  display: flex; flex-direction: column;
}
.region[data-accent="coral"] { --rc: hsl(var(--coral)); }
.region[data-accent="amber"] { --rc: hsl(var(--amber)); }
.region[data-accent="mid"]   { --rc: hsl(var(--text-2)); }

.region-head {
  display: flex; align-items: center; gap: 12px;
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.18em;
  color: hsl(var(--muted));
  margin-bottom: clamp(20px, 4vw, 32px);
  flex-wrap: wrap;
}
.region-flag { font-size: 18px; letter-spacing: 0; }
.region-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 8vw, 80px);
  line-height: 1;
  margin: 0 0 24px;
  color: hsl(var(--text));
  letter-spacing: -0.02em;
}
.region-addr {
  font-size: clamp(14px, 1.2vw, 15px); color: hsl(var(--text-2));
  margin: 0 0 16px;
  max-width: 400px;
}
.region-phones {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 2px;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
}
.region-phones a {
  color: hsl(var(--muted));
  display: inline-block; padding: 5px 0;
  transition: color .2s ease;
}
.region-phones a:hover { color: hsl(var(--coral-ink)); }

.region-topo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  color: var(--rc);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}
.region > *:not(.region-topo) { position: relative; z-index: 1; }

/* =========================================================
   CTA
   ========================================================= */
.cta {
  position: relative;
  padding: var(--section-y) 0;
  overflow: hidden;
  isolation: isolate;
}
.cta-wash {
  position: absolute; inset: 0; z-index: -1;
  background: var(--accent);
  opacity: calc(0.15 * var(--accent-intensity));
}
.cta-wash::after {
  content: ""; position: absolute; inset: 0;
  background: hsl(var(--bg));
  opacity: 0.82;
}
.cta-inner { text-align: center; max-width: 880px; }
.cta-inner .eyebrow-sm { justify-content: center; }
.cta-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 7.5vw, 88px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: hsl(var(--text));
  text-wrap: balance;
}
.cta-title em { font-size: 1.06em; }
.cta-sub {
  color: hsl(var(--text-2));
  max-width: 580px; margin: 0 auto 40px;
  font-size: clamp(15px, 1.2vw, 16px);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: hsl(var(--text));
  color: hsl(var(--bg));
  padding: clamp(64px, 9vw, 100px) 0 28px;
  position: relative;
}
/* Stacked on phones, so the whole footer centres on its own axis.
   The multi-column rules below put it back to flush-left. */
.footer-grid {
  display: grid; gap: clamp(32px, 5vw, 48px);
  grid-template-columns: 1fr;
  margin-bottom: clamp(44px, 7vw, 64px);
  text-align: center;
}
.f-brand { display: flex; flex-direction: column; align-items: center; }
.footer ul, .f-emails { align-items: center; }
.f-sub { padding-left: 0 !important; }

@media (min-width: 560px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); text-align: left; }
  .f-brand { display: block; }
  .footer ul, .f-emails { align-items: flex-start; }
  .f-sub { padding-left: 12px !important; }
}
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.3fr 1.2fr; } }

.footer h4 {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.25em;
  color: hsl(var(--bg) / 0.72);
  margin: 0 0 20px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; font-size: 14px; }
.footer li > a { display: inline-block; padding: 7px 0; }
.footer a { color: hsl(var(--bg) / 0.88); transition: color .2s ease; }
.footer a:hover { color: hsl(var(--bg)); }
.f-sub { padding-left: 12px !important; color: hsl(var(--bg) / 0.66) !important; font-size: 13px; }

.f-brand { min-width: 0; }
.footer-mark { height: 40px; width: 108px; margin-bottom: 16px; }
.footer-tag {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.3;
  color: hsl(var(--bg) / 0.92);
  max-width: 260px;
  margin: 0;
}

.f-addr, .f-legal {
  font-size: 13px; line-height: 1.65;
  color: hsl(var(--bg) / 0.78);
  margin: 0 0 16px;
  overflow-wrap: break-word;
}
.f-addr b, .f-legal b {
  display: block;
  color: hsl(var(--bg)); font-weight: 500;
  letter-spacing: 0.06em; font-size: 11px; text-transform: uppercase;
  margin-bottom: 2px;
}
.f-emails {
  font-size: 13px;
  color: hsl(var(--bg) / 0.78);
  margin: 20px 0 0;
  display: flex; flex-direction: column; gap: 6px;
  overflow-wrap: anywhere;
}

.footer-ack {
  border-top: 1px solid hsl(var(--bg) / 0.15);
  padding: 36px var(--gutter);
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.footer-ack p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13.5px; line-height: 1.7;
  color: hsl(var(--bg) / 0.78);
  margin: 0;
}

.footer-base {
  display: flex; justify-content: center; align-items: center;
  padding-top: 28px;
  border-top: 1px solid hsl(var(--bg) / 0.15);
  font-size: 12px;
  color: hsl(var(--bg) / 0.66);
  flex-wrap: wrap; gap: 8px 16px;
  text-align: center;
}
.footer-policy { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

@media (min-width: 560px) {
  .footer-base { justify-content: space-between; text-align: left; }
  .footer-policy { justify-content: flex-start; }
}
.footer-policy a { color: hsl(var(--bg) / 0.72); }

/* =========================================================
   FOCUS
   ========================================================= */
:focus-visible {
  outline: 2px solid hsl(var(--coral));
  outline-offset: 3px;
  border-radius: 4px;
}
.footer :focus-visible { outline-color: hsl(var(--amber)); }

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal.is-in { opacity: 1 !important; transform: none !important; }
  .stats .stat-num::after { transform: scaleX(1) !important; }
  /* Collapse the rotator to a plain, static list */
  .rotator-word { display: none; }
  .rotator::after {
    content: "Healthcare, Mobility, Goods & Real Estate.";
    color: hsl(var(--coral-ink)); font-weight: 600;
  }
  .rotator { display: inline; }
}

/* =========================================================
   PRINT
   ========================================================= */
@media print {
  .ambient, .nav-wrap, .nav-drawer, .nav-scrim, .scroll-hint, .cta-wash { display: none !important; }
  body { background: #fff; color: #000; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .footer { background: #fff; color: #000; }
  .footer a, .f-addr, .f-legal, .footer h4, .footer-ack p, .footer-base { color: #000 !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 11px; }
}
