/* ==========================================================================
   GSEC — Global Sustainable Engineering Consultancy
   Design language modelled on the editorial construction-site reference.
   Re-skinned in the GSEC palette. No green, no em dashes, no eyebrow labels,
   no pill chips, no stat counters, no custom cursor.
   ========================================================================== */

/* ---- Fonts ---------------------------------------------------------------- */
/* Body / UI: Poppins, self-hosted (SIL OFL). Headings: Libre Baskerville, also
   self-hosted (OFL.txt in assets/fonts/libre-baskerville/). Libre Baskerville
   ships only Regular (400) and Bold (700), so the faces are declared with
   weight RANGES — 400-500 -> Regular, 600-700 -> Bold — so any 500/600 heading
   weight resolves to a real file (no faux bold). woff2 (with .ttf fallback for
   Libre Baskerville), font-display: swap. No external font CDN.
   Poppins: weights 300/400/500, latin + latin-ext subsets (matching the
   previous Google Fonts request). */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 300; font-display: swap;
  src: url('../fonts/poppins/poppins-300-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: 'Poppins'; font-style: normal; font-weight: 300; font-display: swap;
  src: url('../fonts/poppins/poppins-300-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/poppins/poppins-400-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: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/poppins/poppins-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/poppins/poppins-500-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: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/poppins/poppins-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Libre Baskerville'; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url('../fonts/libre-baskerville/LibreBaskerville-Regular.woff2') format('woff2'), url('../fonts/libre-baskerville/LibreBaskerville-Regular.ttf') format('truetype'); }
@font-face { font-family: 'Libre Baskerville'; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url('../fonts/libre-baskerville/LibreBaskerville-Bold.woff2') format('woff2'), url('../fonts/libre-baskerville/LibreBaskerville-Bold.ttf') format('truetype'); }
@font-face { font-family: 'Libre Baskerville'; font-style: italic; font-weight: 400 500; font-display: swap;
  src: url('../fonts/libre-baskerville/LibreBaskerville-Italic.woff2') format('woff2'), url('../fonts/libre-baskerville/LibreBaskerville-Italic.ttf') format('truetype'); }

/* ---- Tokens --------------------------------------------------------------- */
:root {
  --ink:    #0E2233;   /* main dark background */
  --navy:   #00335C;   /* secondary dark surface / hover */
  --accent: #3FB6DE;   /* THE accent (replaces the reference red) */
  --blue:   #0079AB;   /* secondary accent, links on light */
  --paper:  #EAF1F5;   /* light section background */
  --white:  #FFFFFF;
  --gray:   #5A6B76;   /* body text on light */

  --white-70: rgba(255, 255, 255, 0.70);
  --white-40: rgba(255, 255, 255, 0.40);
  --white-12: rgba(255, 255, 255, 0.12);
  --ink-12:   rgba(14, 34, 51, 0.12);
  --ink-60:   rgba(14, 34, 51, 0.60);

  --serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;   /* heading font (self-hosted) */
  --sans:  'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --header-h: 84px;
  --header-solid-h: 66px;

  /* ---- Motion system (mirrors the DUR/EASE tokens in main.js) ----
     One easing family, three durations, used for EVERY CSS transition:
       --ease-out   = expo.out    (entrances / reveals / hovers)
       --ease-move  = power2.inOut (positional / state movements)
       --dur-fast   0.2s  hovers, UI, feedback
       --dur-med    0.6s  content reveals (slider text, success msg)
       --dur-slow   1s    reserved hero moments */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-move: cubic-bezier(0.45, 0, 0.55, 1);
  --dur-fast: 0.2s;
  --dur-med:  0.6s;
  --dur-slow: 1s;

  --pad-x: clamp(20px, 5vw, 90px);
  --maxw: 1600px;
}

/* ---- Reset / base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; text-wrap: balance; }   /* balance auto-wrapped heading lines (no orphan words) */
p { margin: 0; }
::selection { background: var(--accent); color: var(--ink); }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Focus visibility (accessibility) */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- Typography scale ----------------------------------------------------- */
.serif { font-family: var(--serif); font-weight: 500; }

.display {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.01em;
  font-size: clamp(2.6rem, 7vw, 6.4rem);
}
.h2 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.01em;
  font-size: clamp(2rem, 4.6vw, 4rem);
}
.h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
}
.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.55;
  font-weight: 300;
}
.label {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--gray);
}
.label--light { color: var(--white-70); }

/* ---- Layout helpers ------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad-x); }
.section { padding-block: clamp(70px, 10vw, 150px); position: relative; }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--white); }
.section--navy { background: var(--navy); color: var(--white); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 100px);
  align-items: start;
}

/* ==========================================================================
   Buttons — the reference pattern: pill outline + solid accent circle w/ arrow
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 10px 10px 26px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--ink);
  background: transparent;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out),
              border-color 0.22s var(--ease-out), transform 0.14s var(--ease-out);
  overflow: hidden;
  position: relative;
}
/* !important is required: reveal buttons (.btn.rise) keep an inline transform
   from the GSAP reveal (holding them at y:0), which only !important can override
   for this transient press state. */
.btn:active { transform: scale(0.97) !important; }
.btn__icon {
  width: 34px; height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  transition: transform var(--dur-fast) var(--ease-out);
}
.btn__icon svg { width: 14px; height: 14px; display: block; transition: transform var(--dur-fast) var(--ease-out); }
.btn__icon svg path { stroke: #fff; }
.btn:hover { background: var(--ink); color: var(--white); }
/* transform hovers are gated: touch taps must not leave a stuck hover state */
@media (hover: hover) and (pointer: fine) {
  .btn:hover .btn__icon { transform: scale(1.12); }
  .btn:hover .btn__icon svg { transform: translateX(2px); }
  .row:hover .row__arrow { opacity: 1; transform: translateX(0); }
}

/* dark-surface variant */
.btn--light {
  border-color: var(--white-40);
  color: var(--white);
}
.btn--light:hover { background: var(--white); color: var(--ink); }

/* Header Contact button: no pill outline, just text + cyan arrow icon.
   Icon hover (circle scale + arrow nudge) is inherited from .btn. */
.header__right .btn {
  border-color: transparent;
  background: transparent;
  padding-left: 0;
}
.header__right .btn:hover { background: transparent; color: var(--white); }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  height: var(--header-h);
  background: transparent;
  color: var(--white);
  transition: background var(--dur-fast) var(--ease-out), height var(--dur-fast) var(--ease-out);
}
/* transparent state: soft dark gradient so white logo/nav stay readable over
   any hero (image or light). Fades out once the header turns solid. */
.header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 180px;
  background: linear-gradient(to bottom,
    rgba(14, 34, 51, 0.55) 0%,
    rgba(14, 34, 51, 0.35) 30%,
    rgba(14, 34, 51, 0) 100%);
  opacity: 1;
  transition: opacity var(--dur-fast) var(--ease-out);
  pointer-events: none;
  z-index: -1;
}
/* solid state after scroll */
.header.is-solid {
  background: var(--ink);
  height: var(--header-solid-h);
}
.header.is-solid::before { opacity: 0; }
/* pages with a light hero can force the header solid (opt-in) */
body.solid-header .header { background: var(--ink); height: var(--header-solid-h); }
body.solid-header .header::before { opacity: 0; }
body.solid-header .header__accent-line { opacity: 1; }
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-inline: var(--pad-x);
  max-width: var(--maxw);
  margin: 0 auto;
}
.header__accent-line {
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--accent);
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.header.is-solid .header__accent-line { opacity: 1; }
.brand { display: flex; align-items: center; }
.brand img { height: 47px; width: auto; }
.nav { display: flex; align-items: center; gap: 38px; }
.nav__link {
  position: relative;
  font-size: 0.92rem;
  color: var(--white);
  padding-block: 4px;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-fast) var(--ease-out);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { font-family: var(--serif); font-size: 1.05rem; }

.header__right { display: flex; align-items: center; gap: 22px; }
/* Nav stays visible at every width (the mega-menu was removed); it scales
   down on small screens so the four links plus Contact still fit the bar. */
@media (max-width: 1024px) {
  .nav { gap: 26px; }
  .nav__link { font-size: 0.86rem; }
  .nav__link[aria-current="page"] { font-size: 0.96rem; }
}
@media (max-width: 640px) {
  .header__inner { gap: 12px; padding-inline: 16px; }
  .header__right { gap: 12px; }
  .nav { gap: 16px; }
  .nav__link { font-size: 0.8rem; padding-block: 2px; }
  .nav__link[aria-current="page"] { font-size: 0.86rem; }
  .header__right .btn__icon { display: none; }
  .header__right .btn { padding: 9px 15px; font-size: 0.8rem; }
}
@media (max-width: 460px) {
  .brand img { height: 36px; }
  .nav { gap: 12px; }
  .nav__link { font-size: 0.74rem; }
  /* tiny screens: drop the Contact pill so the four nav links never overflow;
     Contact stays reachable from the footer and every page's closing CTA. */
  .header__right .btn { display: none; }
}

/* ==========================================================================
   Preloader
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--ink);
  display: grid;
  place-items: center;
}
.preloader__dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  animation: bounce 0.6s var(--ease-out) infinite alternate;
}
@keyframes bounce {
  from { transform: translateY(-10px); }
  to   { transform: translateY(10px); }
}
.preloader.is-done { pointer-events: none; }

/* Page-load intro */
.intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--paper);   /* light so the area outside the frame reads as the page */
}
/* inner-page frame: small centered image that expands */
.intro__frame {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 22vw;
  height: 16.5vw;      /* 4:3 */
  overflow: hidden;
  will-change: width, height;
}
.intro__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.2);
  will-change: transform;
}

/* Homepage page-load loader: the standalone v3 loader (assets/js/loader-v3.js
   + assets/css/loader-v3.css, loaded by the block in index.html). The previous
   in-CSS loader (.intro2*) is archived in backup/loader-v2/loader-v2.css. */
body.intro-active { overflow: hidden; }

/* Page reveal wipe */
.page-reveal {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--ink);
  transform: translateY(0);
  pointer-events: none;
}

/* Page transition overlay (internal nav): a simple opacity fade to ink on the
   way out (0.3s, driven by GSAP autoAlpha in initPageTransition). */
.transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 990;
  background: var(--ink);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ==========================================================================
   Motion primitives
   ========================================================================== */
/* Line-mask reveal. Extra bottom padding (with a matching negative margin so
   layout is unaffected) keeps descenders like j, g, p, y from being clipped. */
/* Masked line reveal. overflow:hidden hides the pre-reveal offset but would clip
   serif descenders (j, g, p, y) -- Libre Baskerville's are deep -- so pad the
   bottom and pull it back with a matching negative margin (layout-neutral). */
.reveal-line { overflow: hidden; display: block; padding-bottom: 0.26em; margin-bottom: -0.26em; }
.reveal-line > span { display: block; }

/* Pre-animation hidden state, gated on html.js-anim (added pre-paint by the
   inline head script). visibility:hidden is the actual hide: it is in the
   stylesheet at first paint, hides COMPLETELY (no raw text, and no top-sliver
   leaking past the line masks the way a translateY hide does), and is immune to
   font-swap / measurement timing. The transform/opacity are only the START POSE
   each reveal animates from. With JS disabled the class is never added, so
   nothing is hidden; if JS fails after adding it, the deferred head failsafe
   removes it. Each reveal flips its own target visible in the same tick it
   animates in (autoAlpha for fades, an explicit visible-set for line masks), so
   the user only ever sees invisible -> smooth reveal, never a clipped frame. */
/* One masked-line start pose everywhere: exactly one line-height + a hair
   (110%) so the whole line sits hidden below its mask, then slides up to 0 --
   no over-travel. Fades (.rise/.ab-fade) share one 26px travel (the RISE token). */
html.js-anim .reveal-line > span { visibility: hidden; transform: translateY(110%); }
html.js-anim .rise { visibility: hidden; opacity: 0; transform: translateY(26px); }
html.js-anim .ab-line > span { visibility: hidden; transform: translateY(110%); }
html.js-anim .ab-fade { visibility: hidden; opacity: 0; transform: translateY(26px); }

/* fixed image masks (image zooms inside, no lift) */
.img-mask { position: relative; overflow: hidden; }
.img-mask img { width: 100%; height: 100%; object-fit: cover; }
.parallax-mask { position: relative; overflow: hidden; }
.parallax-mask img {
  width: 100%;
  height: 115%;
  object-fit: cover;
  will-change: transform;
}

/* ==========================================================================
   HERO — single full-bleed background video
   ========================================================================== */
.hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  color: var(--white);
  overflow: hidden;
}
/* one looping muted background video, object-fit: cover, poster = first frame */
.hero__media { position: absolute; inset: 0; z-index: 0; background: var(--ink); }
.hero__video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(14,34,51,0.55) 0%, rgba(14,34,51,0) 22%),
    linear-gradient(to top, rgba(14,34,51,0.75) 0%, rgba(14,34,51,0.15) 45%, rgba(14,34,51,0.25) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x) clamp(48px, 7vw, 90px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.hero__lead { max-width: 54ch; }
/* Libre Baskerville runs wider than the previous serif; cap the hero title so
   the long word "Engineering" and "The Global" each fit the lead width, keeping
   the headline to 3 balanced stacked lines. */
.hero__title { font-size: clamp(2.6rem, 7.5vw, 5.2rem); }
.hero__title .accent { color: var(--accent); font-style: normal; }
.hero__sub {
  margin-top: 22px;
  color: var(--white-70);
  font-weight: 300;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  max-width: 44ch;
}
.hero__btns { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.hero__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 0 0 auto;
  padding-bottom: 6px;
}
.hero__list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--white-70);
  font-size: 1rem;
  transition: color var(--dur-fast) var(--ease-out);
}
.hero__list-item .dot {
  width: 9px; height: 9px; border-radius: 50%;
  border: 1px solid var(--white-40);
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast);
}
.hero__list-item.is-active { color: var(--white); }
.hero__list-item.is-active .dot { background: var(--accent); border-color: var(--accent); }
.hero__list-item:hover { color: var(--white); }

@media (max-width: 860px) {
  .hero__inner { flex-direction: column; align-items: flex-start; justify-content: flex-end; }
  .hero__list { flex-direction: row; flex-wrap: wrap; margin-top: 26px; }
}

/* ==========================================================================
   Horizontal card slider (Our Services — homepage)
   Photo-tile cards in a row: ~3 on desktop, ~1.2 on mobile. Title always
   shown over the image; the description reveals on hover (or statically on
   touch). Circular arrows float over the left/right edges. Arrows + drag/
   swipe + trackpad + keyboard drive a transform on the track (initHSlider),
   snapping with the shared tokens (DUR.med / EASE.move).
   ========================================================================== */
.hslider { position: relative; padding-block: clamp(70px, 10vw, 150px); overflow: hidden; }

.hslider__head { margin-bottom: clamp(30px, 4vw, 54px); }
.hslider__eyebrow { color: var(--accent); font-size: 0.9rem; letter-spacing: 0.02em; margin-bottom: 14px; }
.hslider__title { color: var(--ink); }

/* stage holds the clipping viewport + the two floating arrows */
.hslider__stage { position: relative; }

/* ---- floating circular arrows (far left / right, vertically centred) ---- */
.hslider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.25);   /* almost transparent by default */
  color: #fff;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.hslider__arrow--prev { left: var(--pad-x); }     /* sits over the leftmost card's edge */
.hslider__arrow--next { right: var(--pad-x); }
.hslider__arrow svg { width: 20px; height: 20px; }
.hslider__arrow svg path { stroke: currentColor; }
@media (hover: hover) and (pointer: fine) {
  .hslider__arrow:hover:not(:disabled) { background: #fff; border-color: #fff; color: var(--ink); }
}
.hslider__arrow:active:not(:disabled) { transform: translateY(-50%) scale(0.94); }
.hslider__arrow:disabled { opacity: 0.22; cursor: not-allowed; }

/* viewport clips the track; the track is what slides */
.hslider__viewport {
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;              /* horizontal handled by JS; vertical scrolls the page */
  -webkit-user-select: none; user-select: none;
}
.hslider__viewport.is-dragging { cursor: grabbing; }
.hslider__viewport:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.hslider__track {
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  padding-inline: var(--pad-x);     /* first card aligns to the grid gutter; end gets matching pad */
  will-change: transform;
}

/* ---- photo-tile card (the whole tile is the link) ---- */
.hslider__card {
  position: relative;
  flex: 0 0 auto;
  width: min(80vw, 340px);          /* ~1.2 cards on mobile */
  aspect-ratio: 4 / 5;
  display: block;
  overflow: hidden;
  border-radius: 4px;
  color: #fff;
  background: var(--ink);
}
.hslider__card-media { position: absolute; inset: 0; overflow: hidden; }
.hslider__card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-med) var(--ease-out); }
/* permanent readability gradient so the title is legible at rest */
.hslider__card-media::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(11,27,40,0.78) 0%, rgba(11,27,40,0.18) 34%, rgba(11,27,40,0) 56%);
}
/* dark scrim that rises in on hover to carry the description */
.hslider__card-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(11,27,40,0.92) 0%, rgba(11,27,40,0.55) 44%, rgba(11,27,40,0) 80%);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);   /* hover-reveal timing (spec: 0.3–0.4s expo.out) */
}

.hslider__card-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(20px, 2vw, 32px); }
.hslider__card-title {
  font-family: var(--serif); font-weight: 500; color: #fff;
  line-height: 1.1; font-size: clamp(1.65rem, 2.3vw, 2.15rem);   /* ~27% larger */
  text-wrap: balance;                                            /* even 1-2 line wrapping */
  text-shadow: 0 1px 12px rgba(8,17,22,0.5);
  transition: transform 0.35s var(--ease-out);
}
/* collapsed by default; grows on reveal, pushing the title up to make room */
.hslider__card-reveal { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease-out); }
.hslider__card-text {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.85); font-weight: 300; font-size: 0.95rem; line-height: 1.55;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.hslider__card-more {
  margin-top: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff; font-size: 0.85rem; letter-spacing: 0.02em;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.hslider__card-more svg { width: 16px; height: 16px; }
.hslider__card-more svg path { stroke: var(--accent); }

/* Hover devices: reveal on hover AND on keyboard focus (focus-within) */
@media (hover: hover) and (pointer: fine) {
  .hslider__card:hover .hslider__card-media img,
  .hslider__card:focus-within .hslider__card-media img { transform: scale(1.05); }
  .hslider__card:hover .hslider__card-scrim,
  .hslider__card:focus-within .hslider__card-scrim { opacity: 1; }
  .hslider__card:hover .hslider__card-reveal,
  .hslider__card:focus-within .hslider__card-reveal { max-height: 16em; }
  .hslider__card:hover .hslider__card-text,
  .hslider__card:focus-within .hslider__card-text,
  .hslider__card:hover .hslider__card-more,
  .hslider__card:focus-within .hslider__card-more { opacity: 1; transform: none; }
  .hslider__card:hover .hslider__card-title,
  .hslider__card:focus-within .hslider__card-title { transform: translateY(-2px); }
}
/* Touch (no hover): show the description statically so nothing is unreachable */
@media (hover: none) {
  .hslider__card-scrim { opacity: 1; }
  .hslider__card-reveal { max-height: 16em; }
  .hslider__card-text, .hslider__card-more { opacity: 1; transform: none; }
}

.hslider__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: clamp(28px, 3.5vw, 48px);
}
/* subtle progress bar: a thin track with an accent thumb sized to the
   visible fraction; initHSlider sets the thumb width + translateX */
.hslider__progress {
  position: relative;
  flex: 0 0 auto;
  width: clamp(120px, 22vw, 260px);
  height: 2px;
  background: var(--ink-12);
  overflow: hidden;
}
.hslider__progress-thumb {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 40px;
  background: var(--accent);
  will-change: transform, width;
}

@media (min-width: 700px) {
  .hslider__card { width: 44vw; }   /* ~2 cards */
}
@media (min-width: 1100px) {
  .hslider__card { width: clamp(320px, 30vw, 440px); }   /* ~2.5-3 cards */
}
/* mobile: keep the floating arrows tappable (>=44px) and tucked to the edges */
@media (max-width: 700px) {
  .hslider__arrow { width: 46px; height: 46px; }
  .hslider__arrow--prev { left: 8px; }
  .hslider__arrow--next { right: 8px; }
}

/* ==========================================================================
   Intro / editorial two-column
   ========================================================================== */
.intro__grid { align-items: start; }
.intro__body { display: flex; flex-direction: column; gap: 26px; }
.intro__btns { display: flex; gap: 14px; flex-wrap: wrap; }
.intro__photo {
  margin-top: clamp(48px, 7vw, 90px);
  aspect-ratio: 16 / 8;
  border-radius: 4px;
}

@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Academy / team band
   ========================================================================== */
.band {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.band__bg { position: absolute; inset: 0; }
.band__bg img { width: 100%; height: 115%; object-fit: cover; }
.band__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(14,34,51,0.92) 0%, rgba(14,34,51,0.55) 45%, rgba(14,34,51,0.15) 100%);
}
.band__inner {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(70px, 9vw, 130px) var(--pad-x);
  width: 100%;
}
.band__content { max-width: 54ch; }
.band__text { color: var(--white-70); font-weight: 300; margin: 24px 0 32px; font-size: 1.1rem; }

/* Light band variant: flat paper background, ink heading, gray body */
.band--light { background: var(--paper); color: var(--ink); min-height: auto; }
.band--light .band__text { color: var(--gray); }

/* Decorative logo-icon watermark (right side, cropped by the section edge) */
.band__watermark {
  position: absolute;
  right: clamp(-56px, -3vw, -24px);
  top: 50%;
  transform: translateY(-50%);
  width: min(40vw, 480px);
  height: auto;
  opacity: 0.07;
  filter: grayscale(1);
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 860px) {
  .band__watermark { width: min(62vw, 360px); opacity: 0.05; }
}

/* ==========================================================================
   Closing CTA
   ========================================================================== */
.cta { text-align: left; padding-bottom: clamp(46px, 6vw, 80px); }
.cta__title { font-size: clamp(2.6rem, 7vw, 6rem); }
.cta__text { color: var(--gray); font-weight: 300; max-width: 46ch; margin: 26px 0 34px; font-size: 1.15rem; }

/* ==========================================================================
   Inner page hero
   ========================================================================== */
.page-hero {
  position: relative;
  height: 74svh;
  min-height: 480px;
  color: var(--white);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.page-hero__bg { position: absolute; inset: 0; }
.page-hero__bg img { width: 100%; height: 115%; object-fit: cover; transform: scale(1.05); }
.page-hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(14,34,51,0.6) 0%, rgba(14,34,51,0) 22%),
    linear-gradient(to top, rgba(14,34,51,0.8), rgba(14,34,51,0.2));
}
.page-hero__inner {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--pad-x) clamp(44px, 6vw, 80px);
  width: 100%;
}
.page-hero__title { font-size: clamp(3rem, 9vw, 7rem); }
.page-hero__intro { color: var(--white-70); font-weight: 300; max-width: 60ch; margin-top: 20px; font-size: 1.15rem; }

/* ==========================================================================
   Academy hero: centered GSU Academy logo on a light background
   ========================================================================== */
.academy-hero {
  background: var(--white);
  text-align: center;
  padding-top: calc(var(--header-solid-h) + clamp(50px, 9vw, 120px));
  padding-bottom: clamp(50px, 9vw, 120px);
}
.academy-hero .wrap { display: flex; flex-direction: column; align-items: center; }
.academy-hero__logo { width: min(480px, 78vw); height: auto; }
.academy-hero__tag {
  margin-top: clamp(24px, 4vw, 40px);
  max-width: 52ch;
  color: var(--gray);
  font-weight: 300;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
}

/* ==========================================================================
   Editorial alternating sections (sectors.html)
   ========================================================================== */
.editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
  padding-block: clamp(60px, 9vw, 130px);
}
.editorial--reverse .editorial__media { order: 2; }
.editorial--reverse .editorial__text { order: 1; }
.editorial__media { aspect-ratio: 4 / 3.2; border-radius: 4px; }
.editorial__title { margin-bottom: 22px; }
.editorial__prose { color: var(--gray); margin-bottom: 30px; font-size: 1.08rem; }

@media (max-width: 860px) {
  .editorial { grid-template-columns: 1fr; }
  .editorial--reverse .editorial__media { order: 0; }
  .editorial--reverse .editorial__text { order: 0; }
}

/* ==========================================================================
   Services page (services.html) — compact anchor index + tight, side-by-side
   alternating service blocks. No pinned/scrubbed sections; free brisk scroll.
   ========================================================================== */
.svc-index-sec { padding-block: clamp(48px, 6vw, 90px); }
.svc-index__heading { color: var(--ink); margin-bottom: clamp(24px, 3vw, 40px); }
.svc-index {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(32px, 5vw, 80px);
  border-top: 1px solid var(--ink-12);
}
.svc-index__item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: clamp(13px, 1.6vw, 19px) 4px;
  border-bottom: 1px solid var(--ink-12);
  color: var(--ink);
  transition: padding-left var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.svc-index__num { font-family: var(--serif); color: var(--accent); font-size: 0.95rem; flex: 0 0 auto; }
.svc-index__label { font-size: clamp(1rem, 1.3vw, 1.15rem); }
@media (hover: hover) and (pointer: fine) {
  .svc-index__item:hover { padding-left: 12px; color: var(--blue); }
}
@media (max-width: 700px) { .svc-index { grid-template-columns: 1fr; } }

.svc-list { padding-block: clamp(20px, 3vw, 40px); }
.svc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(34px, 4.5vw, 58px);
  border-top: 1px solid var(--ink-12);
  scroll-margin-top: 88px;          /* clear the fixed header when jumping to an anchor */
}
.svc:first-child { border-top: none; }
.svc--reverse .svc__media { order: 2; }
.svc__media { aspect-ratio: 3 / 2; border-radius: 4px; overflow: hidden; }
.svc__media img { width: 100%; height: 100%; object-fit: cover; }
.svc__num { display: block; font-family: var(--serif); color: var(--accent); font-size: clamp(1.3rem, 2.2vw, 1.9rem); line-height: 1; margin-bottom: 14px; }
.svc__title { font-family: var(--serif); font-weight: 500; color: var(--ink); line-height: 1.1; letter-spacing: -0.01em; font-size: clamp(1.55rem, 2.6vw, 2.35rem); margin-bottom: 18px; }
.svc__text {
  color: var(--gray); font-weight: 300; font-size: 1.05rem; line-height: 1.65; max-width: 54ch;
  text-align: justify; -webkit-hyphens: auto; hyphens: auto;
}
@media (max-width: 860px) {
  .svc { grid-template-columns: 1fr; gap: 18px; padding-block: clamp(30px, 7vw, 44px); }
  .svc--reverse .svc__media { order: 0; }
  .svc__media { aspect-ratio: 16 / 10; }
}

/* ==========================================================================
   Divider-line link lists (capabilities / programs)
   ========================================================================== */
.linklist { border-top: 1px solid var(--ink-12); }
.linklist--light { border-top-color: var(--white-12); }
.linklist__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--ink-12);
  transition: padding var(--dur-fast) var(--ease-out), color var(--dur-fast);
}
.linklist--light .linklist__row { border-bottom-color: var(--white-12); }
.linklist__row span { font-size: 1.1rem; }

/* ==========================================================================
   Numbered editorial rows (services.html / academy groups)
   ========================================================================== */
.rows { border-top: 1px solid var(--ink-12); }
.rows--light { border-top-color: var(--white-12); }
.row {
  display: grid;
  grid-template-columns: 120px 1fr 40px;
  gap: clamp(20px, 4vw, 60px);
  align-items: start;
  padding: clamp(26px, 4vw, 46px) clamp(6px, 2vw, 24px);
  border-bottom: 1px solid var(--ink-12);
  position: relative;
  transition: background var(--dur-fast) var(--ease-out), padding-left var(--dur-fast) var(--ease-out);
}
.rows--light .row { border-bottom-color: var(--white-12); }
.row:hover { background: var(--paper); }
.rows--light .row:hover { background: var(--navy); }
.row__num { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.2rem); color: var(--ink); line-height: 1; }
.rows--light .row__num { color: var(--white); }
.row__title { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 2rem); margin-bottom: 12px; }
.row__desc { color: var(--gray); max-width: 62ch; }
.rows--light .row__desc { color: var(--white-70); }
.row__arrow {
  width: 26px; height: 26px;
  align-self: center;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.row__arrow path { stroke: var(--accent); }
/* .row:hover .row__arrow reveal is gated under @media (hover: hover) — see .btn hover block */

/* Static content rows (no link, no arrow): no arrow column, no hover state */
.row--static { grid-template-columns: 120px 1fr; }
.row--static:hover { background: none; padding-left: clamp(6px, 2vw, 24px); }
@media (max-width: 640px) { .row--static { grid-template-columns: 60px 1fr; } }

@media (max-width: 640px) {
  .row { grid-template-columns: 60px 1fr; }
  .row__arrow { display: none; }
}

/* ==========================================================================
   Clients (services.html)
   ========================================================================== */
/* Our Clients: light, architectural, square-edged numbered columns */
.clients { background: var(--paper); color: var(--ink); }
.clients__head { margin-bottom: clamp(36px, 5vw, 60px); }
.clients__heading { color: var(--blue); }
.clients__grid { display: grid; grid-template-columns: 1fr 1fr; }
.clients__col { border-top: 1px solid var(--ink); padding-top: clamp(24px, 3vw, 40px); }
.clients__col:first-child { padding-right: clamp(28px, 4vw, 64px); }
.clients__col:nth-child(2) { border-left: 1px solid var(--ink-12); padding-left: clamp(28px, 4vw, 64px); }
.clients__num { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 3.2vw, 2.8rem); color: var(--accent); line-height: 1; margin-bottom: 22px; }
.clients__label { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray); margin-bottom: 12px; }
.clients__title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.4rem, 2.3vw, 2rem); color: var(--ink); line-height: 1.12; margin-bottom: 18px; }
.clients__text { color: var(--gray); font-weight: 300; line-height: 1.7; }
@media (max-width: 760px) {
  .clients__grid { grid-template-columns: 1fr; }
  .clients__col:nth-child(2) { border-left: none; padding-left: 0; }
  .clients__col:first-child { padding-right: 0; }
}

/* What We Offer: designed index rows on a subtle dark gradient */
.offer { background: linear-gradient(165deg, var(--ink) 0%, #0a1a2b 100%); color: #fff; overflow: hidden; }
.offer__head { margin-bottom: clamp(28px, 4vw, 50px); }
.offer__eyebrow { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.offer__title { color: #fff; will-change: transform; }
.offer__list { border-top: 1px solid rgba(255,255,255,0.16); }
.offer__row { display: flex; align-items: baseline; gap: clamp(18px, 3vw, 46px); padding: clamp(22px, 3.4vw, 40px) 0; border-bottom: 1px solid rgba(255,255,255,0.16); transition: border-color var(--dur-fast) var(--ease-out); }
.offer__num { font-family: var(--serif); font-weight: 400; font-size: clamp(1.3rem, 2.2vw, 1.9rem); color: var(--accent); line-height: 1; flex: 0 0 auto; min-width: 2.4ch; }
.offer__label { font-family: var(--serif); font-weight: 500; font-size: clamp(1.25rem, 2.4vw, 2rem); color: #fff; line-height: 1.15; flex: 1 1 auto; will-change: transform; transition: transform var(--dur-fast) var(--ease-out); }
.offer__arrow { flex: 0 0 auto; width: 30px; height: 30px; color: var(--accent); opacity: 0; transform: translateX(-10px); align-self: center; transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.offer__arrow svg { width: 100%; height: 100%; }
.offer__arrow svg path { stroke: currentColor; }
@media (hover: hover) and (pointer: fine) {
  .offer__row:hover { border-bottom-color: var(--accent); }
  .offer__row:hover .offer__label { transform: translateX(14px); }
  .offer__row:hover .offer__arrow { opacity: 1; transform: translateX(0); }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}
/* Left: contact details */
.contact__heading { margin-bottom: clamp(18px, 2.2vw, 26px); }
.contact__note {
  color: var(--gray);
  font-weight: 300;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 42ch;
  margin-bottom: clamp(30px, 4vw, 46px);
}
.contact__detail { margin-bottom: clamp(20px, 2.6vw, 30px); }
.contact__detail-label { color: var(--gray); font-size: 0.85rem; margin-bottom: 5px; }
.contact__detail-val { font-size: 1.3rem; color: var(--ink); }
.contact__detail-val a {
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: color var(--dur-fast) var(--ease-out);
}
.contact__detail-val a:hover { color: var(--blue); }

/* Right: form (square edges, boxed fields) */
.form { display: flex; flex-direction: column; gap: clamp(18px, 2vw, 24px); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.85rem; color: var(--gray); }
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--ink-12);
  border-radius: 0;
  padding: 13px 15px;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--accent); }
.form__submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 0;
  padding: 16px 28px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}
.form__submit:hover { background: var(--blue); }
.form__submit svg { width: 20px; height: 20px; stroke: currentColor; }
.form__success { color: var(--blue); font-size: 1.05rem; margin-top: 18px; opacity: 0; transition: opacity var(--dur-med) var(--ease-out); }
.form__success.is-shown { opacity: 1; }

@media (max-width: 860px) {
  .contact__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
/* A touch darker than the ink CTA above it, with a thin divider at the top,
   so the footer reads as a distinct block rather than blending into the CTA. */
.footer {
  background: #0A1A26;
  color: var(--white);
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.footer__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(74px, 8vw, 120px) var(--pad-x) 40px;
}
.footer__cols {
  display: grid;
  grid-template-columns: 1.7fr repeat(4, minmax(0, 1fr));
  column-gap: clamp(28px, 3.5vw, 56px);
  row-gap: 40px;
  align-items: start;
}
.footer__intro { align-self: start; max-width: 320px; }
.footer__brand { display: inline-block; }
.footer__brand img { height: 62px; width: auto; display: block; }
.footer__tagline {
  margin-top: 20px;
  color: var(--white-70);
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 34ch;
}
.footer__col h4 { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 20px; }
.footer__col a { display: block; color: var(--white-70); padding: 5px 0; transition: color var(--dur-fast) var(--ease-out); }
.footer__col a:hover { color: var(--accent); }
.footer__office p { color: var(--white-70); font-weight: 300; margin-bottom: 8px; }
.footer__linkedin {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--white-40);
  border-radius: 999px;
  padding: 8px 18px;
  margin-top: 14px;
  font-size: 0.88rem;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast);
}
.footer__linkedin:hover { background: var(--white); color: var(--ink); }
.footer__monogram {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(6rem, 18vw, 16rem);
  line-height: 0.8;
  text-align: right;
  margin-top: 20px;
  color: var(--white);
}
.footer__monogram .dot { color: var(--accent); }
.footer__legal {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--white-12);
  padding-top: 24px;
  margin-top: 10px;
  color: var(--white-70);
  font-size: 0.85rem;
}

@media (max-width: 1024px) {
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .footer__intro { grid-column: 1 / -1; max-width: 46ch; }
}
@media (max-width: 560px) {
  .footer__cols { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  /* Neutralise movement but keep gentle opacity/colour feedback: replacing every
     element's transition with an opacity/colour-only list drops transform/size
     transitions (they snap, no motion) while fades still read as feedback. */
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition: opacity 200ms ease, color 200ms ease,
                background-color 200ms ease, border-color 200ms ease !important;
    scroll-behavior: auto !important;
  }
  .reveal-line > span, .rise, .ab-line > span, .ab-fade { transform: none !important; opacity: 1 !important; visibility: visible !important; }
  .page-hero__bg img { transform: none !important; }
  .page-reveal, .transition-overlay { display: none; }
}

/* ==========================================================================
   HOME v2 — temporary cinematic scroll preview (home2.html only)
   Scoped under .page-home2 so it never affects the rest of the site.
   ========================================================================== */
.page-home2 { background: var(--paper); }
.page-home2 .header__accent-line { display: none; }

/* scroll progress line under the header */
.h2-progress { position: fixed; left: 0; top: var(--header-solid-h); height: 3px; width: 100%; z-index: 901; pointer-events: none; }
.h2-progress > span { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left center; }

.h2-main { position: relative; }

/* Uniform containment: every scene wrapper is a positioned, isolated stacking
   context and each pinned inner clips its overflow, so no scene's content can
   ever bleed over its neighbours. */
.h2-intro, .h2-video, .h2-carousel, .h2-grid {
  position: relative; z-index: 0; isolation: isolate;
}
.h2-intro__pin, .h2-video__stage, .h2-carousel__pin, .h2-grid__pin { overflow: hidden; }

/* ---- "Our Approach": video background + chapters that AUTO-ROTATE on a timer.
   No pin, no scrub — the section scrolls past normally (initApproach in main.js
   drives the rotation and pauses it off-screen). Two modes: the default is a
   static stacked fallback (no JS / reduced motion); .is-rotate (added by JS)
   turns it into one full-viewport cross-rotating scene. ---- */
.h2-video { position: relative; background: #0b1b28; }
.h2-video__stage { position: relative; overflow: hidden; background: #0b1b28; }
.h2-video__media { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; background: #0b1b28; filter: brightness(0.62); z-index: 0; }
.h2-chapters { position: relative; z-index: 2; }
.h2-chapter {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: clamp(56px, 12vh, 130px) clamp(20px, 6vw, 90px);
}
/* strong, wide, feathered scrim centered behind the text block so the copy
   stays readable even over the brightest moments of the background video */
.h2-chapter::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(90% 82% at 50% 50%, rgba(8,22,36,0.94) 0%, rgba(8,22,36,0.82) 30%, rgba(8,22,36,0.5) 56%, rgba(8,22,36,0.2) 74%, rgba(8,22,36,0) 88%); }
.h2-label { color: var(--accent); font-size: 1rem; margin-bottom: 16px; text-shadow: 0 1px 12px rgba(8,22,36,0.85); }
.h2-ch-title { font-family: var(--serif); font-weight: 500; color: #fff; font-size: clamp(3rem, 8vw, 7rem); line-height: 1; margin-bottom: 18px; text-shadow: 0 2px 30px rgba(8,22,36,0.85), 0 1px 4px rgba(8,22,36,0.7); }
/* masked slide-up wrapper for the title (clips the inner span as it rises) */
.h2-ch-mask { display: inline-block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; vertical-align: bottom; }
.h2-ch-mask > span { display: block; }
.h2-ch-text { color: #fff; font-weight: 300; font-size: clamp(1.05rem, 1.5vw, 1.3rem); max-width: 46ch; margin: 0 auto; text-shadow: 0 1px 16px rgba(8,22,36,0.9), 0 1px 3px rgba(8,22,36,0.7); }

/* progress indicator: four thin bars, active one fills over the display time */
.h2-video__dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: clamp(24px, 5vh, 54px); display: flex; justify-content: center; gap: 12px; }
.h2-video__dot { position: relative; width: clamp(34px, 5vw, 52px); height: 3px; background: rgba(255,255,255,0.28); overflow: hidden; padding: 0; cursor: pointer; }
.h2-video__dot::after { content: ""; position: absolute; inset: -15px 0; }   /* larger touch target */
.h2-video__dot-fill { display: block; width: 100%; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left center; }
.h2-video__dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* ROTATE mode (JS): one viewport-tall stage; chapters overlay and cross-rotate */
.h2-video.is-rotate .h2-video__stage { height: 100svh; min-height: 560px; }
.h2-video.is-rotate .h2-chapters { position: absolute; inset: 0; }
.h2-video.is-rotate .h2-chapter { position: absolute; inset: 0; padding-inline: clamp(20px, 6vw, 90px); }

/* STATIC fallback (no JS / reduced motion): chapters stacked, no dots */
.h2-video:not(.is-rotate) .h2-video__dots { display: none; }

/* ---- Scene D: sector carousel ---- */
/* own stacking context + opaque bg so the pinned scene can never bleed over
   its neighbours, and overflow clips the wide translated track */
.h2-carousel { position: relative; z-index: 0; isolation: isolate; background: #D8E4EE; }
.h2-carousel__pin { position: relative; z-index: 1; height: 100vh; overflow: hidden; display: flex; align-items: center; background: #D8E4EE; }
.h2-carousel__track { display: flex; gap: 2vw; height: 100%; align-items: center; padding: 0 2vw; will-change: transform; }
/* each panel shows a smaller contained photo with the paper background around it */
.h2-panel { position: relative; flex: 0 0 64vw; height: 82vh; display: grid; place-items: center; background: #D8E4EE; }
.h2-panel__img { position: relative; display: block; width: 86%; height: 76%; overflow: hidden; }
.h2-panel__img img { width: 100%; height: 100%; object-fit: cover; }
/* permanent subtle gradient in the lower-left corner so the white word reads */
.h2-panel__img::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(14,34,51,0.55), rgba(14,34,51,0) 42%),
              linear-gradient(to right, rgba(14,34,51,0.35), rgba(14,34,51,0) 45%);
}
/* stronger overlay across the lower part, revealed on hover for the description */
.h2-panel__img::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(14,34,51,0.80), rgba(14,34,51,0.15) 55%, rgba(14,34,51,0) 72%);
  opacity: 0; transition: opacity var(--dur-fast) var(--ease-out);
}
.h2-panel:hover .h2-panel__img::after,
.h2-panel.is-hover .h2-panel__img::after { opacity: 1; }
/* caption sits fully inside the photo, lower-left */
.h2-panel__cap {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: 12px;
  padding: clamp(18px, 2.2vw, 36px);
}
.h2-panel__word {
  font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 6vw, 6rem); line-height: 0.9;
  color: #fff;
}
/* longer full names: scale down and allow wrapping so they stay inside the photo */
.h2-panel__word--long { font-size: clamp(1.7rem, 3.6vw, 3.4rem); line-height: 1.02; }
.h2-panel__desc {
  color: #fff; font-weight: 300; font-size: clamp(0.95rem, 1.15vw, 1.15rem); line-height: 1.45;
  max-width: 34ch;
  opacity: 0; transform: translateY(14px);
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.h2-panel:hover .h2-panel__desc,
.h2-panel.is-hover .h2-panel__desc { opacity: 1; transform: translateY(0); }
/* touch devices (no hover): show the description permanently */
@media (hover: none) {
  .h2-panel__img::after { opacity: 1; }
  .h2-panel__desc { opacity: 1; transform: none; }
}

/* ---- Scene 6: grid wall (two rows, ~80vh, heading centred over it) ---- */
.h2-grid { position: relative; background: var(--paper); }
.h2-grid__pin { position: relative; min-height: 80vh; overflow: hidden; display: grid; place-items: center; }
.h2-grid__wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 12px; width: 100%; }
.h2-grid__wall img { width: 100%; height: 40vh; object-fit: cover; }
.h2-grid__center { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; text-align: center; padding: 20px; background: radial-gradient(70% 62% at 50% 50%, rgba(234,241,245,0.95), rgba(234,241,245,0.6) 66%, rgba(234,241,245,0.25)); }
.h2-grid__title { font-family: var(--serif); font-weight: 500; color: var(--ink); font-size: clamp(2rem, 5vw, 4.5rem); line-height: 1.02; max-width: 16ch; }

/* ---- Static fallback (reduced motion / small screens): normal stacked sections ---- */
.h2-static .h2-carousel__pin, .h2-static .h2-grid__pin { height: auto; }
.h2-static .h2-carousel__pin { display: block; height: auto; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.h2-static .h2-carousel__track { height: 60vh; }
.h2-static .h2-panel { flex-basis: 78vw; }
.h2-static .h2-grid__pin { min-height: 0; height: auto; display: block; position: relative; overflow: hidden; }
.h2-static .h2-grid__wall { position: relative; top: auto; transform: none !important; }
/* keep the heading overlaid on the wall (as on desktop), not stacked below it —
   inherits the base radial scrim from .h2-grid__center for contrast */
.h2-static .h2-grid__center { position: absolute; inset: 0; margin: 0; }

@media (max-width: 860px) {
  .h2-panel { flex-basis: 86vw; }
  /* 2-col wall (8 imgs -> 4 rows) with even gaps/padding so nothing touches the
     screen edge; tiles sized so the whole section stays ~one screen tall */
  .h2-grid__wall { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 10px; }
  .h2-grid__wall img { height: 22vh; }
}

/* ---- HOME v2 Scene 1b: intro statement (pinned, scrubbed line reveal) ---- */
.h2-intro { position: relative; background: var(--paper); }
.h2-intro__pin { position: relative; height: 100vh; display: grid; place-items: center; }
.h2-intro__grid { align-items: center; width: 100%; }
.h2-intro__title {
  font-family: var(--serif); font-weight: 500; color: var(--ink);
  font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 1.06; letter-spacing: -0.01em;
}
.h2-intro__body { display: flex; flex-direction: column; gap: 26px; }
.h2-intro__body .lead { color: var(--gray); }
.h2-intro__body .intro__btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* static fallback */
.h2-static .h2-intro__pin { height: auto; padding: 12vh 0; }

/* ---- HOME v2 Scene 4: quiet editorial statement (light, no pin) ---- */
.h2-pause {
  background: var(--paper);
  min-height: 56vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: clamp(60px, 8vw, 110px);
}
.h2-pause .wrap { display: flex; flex-direction: column; align-items: center; gap: clamp(28px, 4vw, 46px); }
.h2-pause__title {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.h2-pause__title .reveal-line { white-space: nowrap; }   /* each line stays on one line */
.h2-pause__title .accent { color: var(--accent); font-style: normal; }

/* ---- HOME v2: "Four sectors." lead-in panel inside the carousel ---- */
.h2-panel--lead { flex: 0 0 100vw; height: 100%; display: grid; place-items: center; background: #D8E4EE; }
.h2-lead__title { font-family: var(--serif); font-weight: 500; color: var(--ink); font-size: clamp(3rem, 11vw, 10.5rem); line-height: 0.9; letter-spacing: -0.02em; text-align: center; }
.h2-static .h2-panel--lead { flex-basis: 86vw; }

/* ==========================================================================
   ABOUT PAGE (body.page-about) — cinematic, scroll-driven story
   Motion in initAbout(); reveals default VISIBLE (no-JS / reduced-motion safe).
   Whole page sits on the site's light background; the hero keeps its photo +
   scrim. No scroll-driven background colour tween.
   ========================================================================== */
/* Whole page on the site's light background; no scroll-driven colour tween. */
.page-about { background: var(--paper); }
.ab-bg { position: fixed; inset: 0; z-index: 0; background: var(--paper); }
.ab-main { position: relative; z-index: 1; }
.ab-footer { position: relative; z-index: 1; }

/* masked-line reveal primitive */
.ab-line { display: block; overflow: hidden; padding-bottom: 0.26em; margin-bottom: -0.26em; }
.ab-line > span { display: block; will-change: transform; }
.ab-fade { will-change: transform, opacity; }

.ab-h2 { font-family: var(--serif); font-weight: 500; line-height: 1.04; font-size: clamp(2.4rem, 5.5vw, 4.6rem); }
.ab-eyebrow { font-size: 1rem; letter-spacing: .04em; color: var(--accent); margin-bottom: 20px; }

.ab-who .wrap, .ab-statement .wrap, .ab-deliver .wrap, .ab-ceo .wrap { position: relative; z-index: 2; }

/* full-bleed photo/video section background with a subtle, even dark scrim for
   text readability. Crisp edges (no white/feathered bands) -- the footage runs
   edge to edge. */
.ab-secbg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.ab-secbg img, .ab-secbg video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ab-secbg__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg,
  rgba(8,17,22,0.62) 0%, rgba(8,17,22,0.5) 50%, rgba(8,17,22,0.62) 100%); }

/* 1. HERO */
.ab-hero { position: relative; height: 100vh; min-height: 600px; overflow: hidden; }
.ab-hero__media { position: absolute; inset: -15% 0; will-change: transform; }
.ab-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; }
.ab-hero__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,17,22,.55), rgba(8,17,22,.22) 42%, rgba(8,17,22,.7)); }
.ab-hero__inner { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 clamp(20px, 7vw, 120px); z-index: 2; }
.ab-hero__title { font-family: var(--serif); font-weight: 500; color: #fff; max-width: 24ch; font-size: clamp(2.3rem, 6vw, 4.8rem); line-height: 1.08; text-wrap: balance; text-shadow: 0 2px 34px rgba(8,17,22,.45); will-change: transform; }

/* shared section padding */
.ab-who, .ab-statement, .ab-deliver, .ab-ceo { position: relative; padding: clamp(90px, 15vh, 200px) 0; }

/* 2. WHO WE ARE (light) */
.ab-who { color: var(--ink); }
.ab-who__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.ab-who__title { color: var(--ink); }
.ab-who__body { display: grid; gap: 18px; }
.ab-who__body p { color: var(--gray); font-weight: 300; line-height: 1.7; }
.ab-who__body .ab-lead { font-size: clamp(1.1rem, 1.5vw, 1.35rem); color: var(--ink); }

/* 3. HOW WE WORK — full-width serif statement over a dark-scrimmed video bg */
.ab-statement { color: #fff; overflow: hidden; }
.ab-statement .ab-eyebrow { color: var(--accent); text-shadow: 0 1px 14px rgba(8,17,22,.5); }
.ab-statement__inner { max-width: 820px; }
.ab-phil__lines { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 2.4vw, 2.15rem); line-height: 1.36; color: #fff; text-shadow: 0 2px 24px rgba(8,17,22,.55); }

/* 4. PRINCIPLES (light) */
.ab-principles { position: relative; padding: clamp(90px, 14vh, 180px) 0; color: var(--ink); }
.ab-principles__title { color: var(--ink); margin-bottom: clamp(40px, 6vh, 70px); }
.ab-principles__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
.ab-principle__icon { display: inline-flex; width: 52px; height: 52px; color: var(--blue); }
.ab-principle__icon svg { width: 100%; height: 100%; stroke: currentColor; }
.ab-principle__title { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; margin: 18px 0 10px; color: var(--ink); }
.ab-principle__text { color: var(--gray); font-weight: 300; line-height: 1.6; }

/* 5. WHAT WE DELIVER (light editorial) */
.ab-deliver { color: var(--ink); }
.ab-deliver__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.ab-deliver__media { aspect-ratio: 4/3.2; border-radius: 4px; overflow: hidden; }
.ab-deliver__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ab-deliver__title { color: var(--ink); margin-bottom: 20px; }
.ab-deliver__text { color: var(--gray); font-weight: 300; line-height: 1.7; margin-bottom: 18px; }

/* 6. CEO MESSAGE (light) */
.ab-ceo { color: var(--ink); }
.ab-ceo__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.ab-ceo__title { color: var(--ink); margin-bottom: 26px; }
.ab-ceo__quote { font-family: var(--serif); font-weight: 500; font-size: clamp(1.3rem, 2vw, 1.9rem); line-height: 1.4; color: var(--navy); margin: 0 0 28px; }
.ab-ceo__name { font-weight: 500; letter-spacing: .04em; color: var(--ink); margin-bottom: 4px; }
.ab-ceo__role { color: var(--gray); }
.ab-ceo__photo { aspect-ratio: 4/5; border-radius: 4px; overflow: hidden; }
.ab-ceo__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* responsive */
@media (max-width: 1000px) {
  .ab-principles__grid { grid-template-columns: repeat(2, 1fr); }
  .ab-who__grid, .ab-deliver__grid, .ab-ceo__grid { grid-template-columns: 1fr; }
  .ab-ceo__photo { max-width: 360px; }
  .ab-deliver--reverse .ab-deliver__media { order: -1; }
}
@media (max-width: 600px) {
  .ab-principles__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   MOBILE POLISH (below ~900px) — responsive pass
   A single, self-contained block. Nothing here affects the desktop layout
   (every rule is inside a max-width query or gated on a JS-added class).
   Sections:
     1. Mobile navigation (hamburger + full-screen overlay)
     2. Scroll-story ("Our Approach") stacked mobile fallback
     3. Per-page spacing / type / overflow fixes
   ========================================================================== */

/* ---- 1. MOBILE NAVIGATION ------------------------------------------------ *
 * initMobileNav() (main.js) builds the toggle + overlay from the existing nav
 * links and adds html.mnav-ready. Gating the hide of the inline nav on that
 * class means that if JS never runs the original inline nav stays in place
 * (degraded, but usable) instead of leaving the user with no navigation. */
.mnav-toggle { display: none; }
.mnav { display: none; }

@media (max-width: 899px) {
  /* hide the inline desktop nav + contact pill, reveal the hamburger */
  html.mnav-ready .nav,
  html.mnav-ready .header__right { display: none; }

  html.mnav-ready .mnav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-right: -10px;           /* optical align the bars to the bar edge */
    color: var(--white);
    -webkit-tap-highlight-color: transparent;
    z-index: 2;
  }
  .mnav-toggle__box { position: relative; width: 26px; height: 14px; }
  .mnav-toggle__bar {
    position: absolute; left: 0;
    width: 100%; height: 2px;
    background: currentColor; border-radius: 2px;
    transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
  }
  .mnav-toggle__bar:nth-child(1) { top: 0; }
  .mnav-toggle__bar:nth-child(2) { top: 6px; }
  .mnav-toggle__bar:nth-child(3) { top: 12px; }
  .mnav-toggle.is-open .mnav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .mnav-toggle.is-open .mnav-toggle__bar:nth-child(2) { opacity: 0; }
  .mnav-toggle.is-open .mnav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* the full-screen overlay */
  html.mnav-ready .mnav {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 1001;
    flex-direction: column;
    padding: calc(var(--header-h) + 22px) var(--pad-x) max(28px, env(safe-area-inset-bottom));
    background: var(--ink);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    visibility: hidden;            /* JS/GSAP flips this on open */
  }
  /* keep the header (logo + close button) above the overlay while open, so the
     header establishes a higher stacking context than the z:1001 overlay */
  html.mnav-open .header { z-index: 1002; background: transparent; height: var(--header-h); }
  html.mnav-open .header::before { opacity: 0; }
  html.mnav-open .header__accent-line { opacity: 0; }
  /* CSS-only open state (no-GSAP / reduced-motion fallback) */
  html.mnav-ready .mnav.is-open { visibility: visible; }

  .mnav__list { display: flex; flex-direction: column; gap: clamp(2px, 1.2vh, 14px); }
  .mnav__link {
    display: inline-flex;
    align-items: baseline;
    gap: 16px;
    padding: 10px 0;               /* ≥44px touch target with the line-height */
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(1.9rem, 8.5vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--white);
  }
  .mnav__idx {
    font-family: var(--sans);
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--accent);
    letter-spacing: 0.04em;
  }
  .mnav__link[aria-current="page"] { color: var(--accent); }

  .mnav__foot { margin-top: auto; padding-top: clamp(24px, 5vh, 48px); }
  .mnav__cta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 13px 13px 13px 26px;
    border: 1px solid var(--white-40);
    border-radius: 999px;
    color: var(--white);
    font-size: 1rem;
  }
  .mnav__cta .btn__icon { width: 36px; height: 36px; flex: 0 0 36px; }
  .mnav__contact {
    margin-top: 22px;
    color: var(--white-70);
    font-size: 0.92rem;
  }
  .mnav__contact a { color: var(--white); border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
}

/* ---- 3. PER-PAGE SPACING / TYPE / OVERFLOW FIXES ------------------------- */
@media (max-width: 640px) {
  /* Homepage "Delivering Lasting Impact" — the nowrap lines overflow narrow
     screens; let them wrap and tighten the leading. */
  .h2-pause__title .reveal-line { white-space: normal; }
  .h2-pause__title { line-height: 1.16; }

  /* Grid-wall closing scene: heading overlaid on the wall; keep tiles compact
     so the four rows sit behind the centred title within ~one screen */
  .h2-grid__wall img { height: 21vh; }
  .h2-grid__title { font-size: clamp(1.9rem, 7.5vw, 2.6rem); max-width: 14ch; }

  /* Sector carousel (static horizontal scroll): show a hint of the next card */
  .h2-static .h2-panel { flex-basis: 82vw; }
  .h2-static .h2-panel--lead { flex-basis: 82vw; }
  .h2-lead__title { font-size: clamp(2.8rem, 20vw, 6rem); }

  /* Inner-page hero: keep titles from crowding the top of the copy */
  .page-hero__title { font-size: clamp(2.6rem, 13vw, 4rem); }
  .page-hero__intro { font-size: 1.05rem; }
  .page-hero { min-height: 420px; height: 66svh; }
  .page-hero__bg img { object-position: center 30%; }

  /* Editorial (sectors): comfortable media aspect + spacing on stack */
  .editorial__media { aspect-ratio: 4 / 3; }
  .editorial__title { margin-bottom: 16px; }
  .linklist__row span { font-size: 1rem; }

  /* Contact detail value: avoid oversized links wrapping awkwardly */
  .contact__detail-val { font-size: 1.15rem; }

  /* Academy hero logo scale */
  .academy-hero__logo { width: min(360px, 82vw); }
}

@media (max-width: 480px) {
  /* Hero (home): keep the headline to a tidy block, tighten sub + buttons */
  .hero__title { font-size: clamp(2.4rem, 11vw, 3.4rem); }
  .hero__sub { font-size: 1rem; margin-top: 18px; }
  .hero__btns { gap: 12px; width: 100%; }
  .hero__btns .btn { flex: 1 1 auto; justify-content: space-between; }

  /* Give stacked buttons room so 44px targets never sit edge-to-edge */
  .intro__btns, .hero__btns { row-gap: 12px; }

  /* Footer: comfortable single column, smaller monogram */
  .footer__inner { padding-top: clamp(56px, 12vw, 74px); }
}
