/* =========================================================
   Dr Khush Sinha — Consultant Dermatologist
   V1 design system (from Paper "Merry olive")
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Colour — warm "candlelit / bookish" palette */
  --color-bone: #F4EEE6;
  --color-paper: #EFE7DB;
  --color-linen: #E7DCCC;
  --color-hairline: #DDD2C2;
  --color-white: #FFFFFF;
  --color-stone-soft: #C5BCAC;
  --color-stone: #A89F8E;
  --color-bark: #2E2722;
  --color-espresso: #3A312A;
  --color-sage: #5C5B47;
  --color-sage-deep: #494836;
  --color-clay: #B5754F;
  --color-clay-deep: #9A5E3C;

  /* Type families */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Type scale */
  --text-micro: 12px;
  --text-label: 13px;
  --text-small: 15px;
  --text-body: 17px;
  --text-lead: 21px;
  --text-h3: 24px;
  --text-h2: 34px;
  --text-h1: 44px;
  --text-display-md: 56px;
  --text-display-lg: 72px;
  --text-display-xl: 96px;

  /* Weights */
  --fw-thin: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Tracking */
  --tracking-tight: -0.02em;
  --tracking-normal: 0em;
  --tracking-wide: 0.08em;
  --tracking-wider: 0.16em;
  --tracking-widest: 0.24em;

  /* Radius */
  --radius-sm: 50px;
  --radius-md: 30px;
  --radius-pill: 999px;

  /* Layout */
  --page-pad: 80px;
  --max-content: 1440px;
  --header-h: 81px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { overflow-x: hidden; }

body {
  margin: 0;
  background: var(--color-bone);
  color: var(--color-espresso);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--color-clay); outline-offset: 3px; }

/* ---------- Typography helpers ---------- */
.display,
.serif { font-family: var(--font-display); font-weight: var(--fw-thin); letter-spacing: var(--tracking-tight); }

.eyebrow {
  font-size: var(--text-label);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.18em;
  line-height: 1.23;
  text-transform: uppercase;
  color: var(--color-clay);
}

.italic { font-style: italic; }

/* ---------- Layout primitives ---------- */
.section {
  padding-inline: var(--page-pad);
  padding-block: 100px;
}
.section--tight { padding-block: 90px; }
.section--lg { padding-block: 120px; }

.shell { max-width: var(--max-content); margin-inline: auto; }

/* Full-bleed background, but content centred in the SAME column as
   .section.shell (1440px cap minus the page-pad inset on each side).
   Use on sections that own their background (dark/tinted bands) where a
   nested .shell wrapper isn't available. */
.bleed-shell {
  padding-inline: max(var(--page-pad), calc((100% - var(--max-content)) / 2 + var(--page-pad)));
}

.divider { border: 0; border-top: 1px solid var(--color-hairline); margin: 0; }

/* Fade edge — a 120px overlay that blends paper into the bone page ground.
   .fade-edge        → pinned to the bottom, opaque paper at the edge fading
                       up to transparent.
   .fade-edge--top   → pinned to the top, reversed (paper at the top fading
                       down to transparent).
   The overlay spans the full viewport width (breaks out of any max-width/
   auto-margin container) so it is never cut off. */
.fade-edge, .fade-edge--top { position: relative; }
.fade-edge::after,
.fade-edge--top::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  height: 120px;
  pointer-events: none;
  z-index: 1;
}
.fade-edge::after {
  bottom: 0;
  background: linear-gradient(to top, var(--color-paper) 0%, rgba(239,231,219,0) 100%);
}
.fade-edge--top::after {
  top: 0;
  background: linear-gradient(to bottom, var(--color-paper) 0%, rgba(239,231,219,0) 100%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
  line-height: 1;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.btn--primary {
  background: var(--color-clay);
  color: var(--color-bone);
  padding: 16px 32px;
  font-size: var(--text-small);
}
.btn--primary:hover { background: var(--color-clay-deep); }
.btn--primary.btn--sm { padding: 12px 24px; font-size: var(--text-label); }

.btn--link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: var(--fw-semibold);
  font-size: var(--text-small);
  color: var(--color-bark);
}
.btn--link svg { transition: transform .2s ease; }
.btn--link:hover svg { transform: translateX(4px); }
.btn--link.on-dark { color: var(--color-bone); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bone);
  border-bottom: 1px solid var(--color-hairline);
  transition: transform .3s ease;
  will-change: transform;
}
/* Smart header: slides out of view on scroll down, returns on scroll up */
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner {
  max-width: var(--max-content);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--page-pad);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand > span { display: flex; flex-direction: column; gap: 2px; }
.brand__logo { width: 60px; height: 60px; flex-shrink: 0; }
.brand__name {
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: 20px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--color-bark);
}
.brand__role {
  font-size: 10px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-stone);
}

.nav { display: flex; align-items: center; gap: 44px; }
.nav__link {
  font-size: 14px;
  font-weight: var(--fw-medium);
  color: var(--color-bark);
  position: relative;
  transition: color .15s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1px;
  background: var(--color-clay);
  transition: width .2s ease;
}
.nav__link:hover { color: var(--color-clay); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { width: 100%; }
.nav__link[aria-current="page"] { color: var(--color-clay); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  margin: -8px;
}
.nav-toggle__bar {
  display: block;
  width: 24px; height: 2px;
  background: var(--color-bark);
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle__bar + .nav-toggle__bar { margin-top: 6px; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--color-bark); color: var(--color-bone); }
.site-footer__inner {
  max-width: var(--max-content);
  margin-inline: auto;
  padding: 80px 100px 48px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.footer-top {
  display: flex;
  gap: 64px;
  justify-content: space-between;
}
.footer-brand { display: flex; flex-direction: column; gap: 24px; max-width: 380px; }
.footer-brand__row { display: flex; align-items: center; gap: 14px; }
.footer-brand__logo { width: 40px; height: 40px; flex-shrink: 0; }
.footer-brand__name {
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: 22px;
  color: var(--color-bone);
}
.footer-brand__blurb {
  font-size: var(--text-small);
  line-height: 1.65;
  color: var(--color-stone-soft);
}
.footer-cols { display: flex; gap: 80px; }
.footer-col { display: flex; flex-direction: column; gap: 18px; }
.footer-col__head {
  font-size: var(--text-micro);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-stone-soft);
}
.footer-col a,
.footer-col span {
  font-size: var(--text-small);
  line-height: 1.2;
  color: var(--color-bone);
  transition: color .15s ease;
}
.footer-col a:hover { color: var(--color-clay); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--color-espresso);
  padding-top: 28px;
}
.footer-bottom span {
  font-size: var(--text-label);
  color: var(--color-stone-soft);
}

/* =========================================================
   Shared section pieces
   ========================================================= */

/* Three commitments / value cards */
.value-grid { display: flex; gap: 24px; }
.value-card {
  flex: 1;
  background: var(--color-white);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;                    /* clip the bled image to the rounded card */
}
/* Image bleeds to the card edges above the padded content */
.value-card__img {
  margin: -36px -36px 8px;
  width: calc(100% + 72px);
  max-width: none;
  height: 200px;
  object-fit: cover;
  display: block;
}
.value-card__title {
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  font-size: 28px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--color-clay);
}
.value-card__body { font-size: var(--text-small); line-height: 1.6; color: var(--color-espresso); }

/* "Protect / Preserve / Prevent" minimal row on dark grounds */
.tri-row { display: flex; gap: 48px; }
.tri-row__item {
  flex: 1;
  border-top: 1px solid var(--color-clay);
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tri-row__title { font-family: var(--font-display); font-size: 22px; line-height: 1.27; color: var(--color-bone); }
.tri-row__body { font-size: var(--text-small); line-height: 1.6; color: var(--color-stone-soft); }

/* =========================================================
   Home
   ========================================================= */

/* ---- Ambient morphing blob behind the hero + film ---- */
.blob-zone {
  position: relative;
  isolation: isolate;                 /* contain the blend so it only affects this zone */
}
.blob {
  position: absolute;
  z-index: 0;                         /* behind the content, above the page bg */
  /* travel is driven by --t (0 at top → 1 as you scroll past); JS sets --t.
     Starts top-left, ends bottom-right. */
  --t: 0;
  top: calc(-8% + var(--t) * 88%);
  left: calc(-12% + var(--t) * 116%);
  width: clamp(360px, 42vw, 620px);
  aspect-ratio: 1 / 1;
  background: #74472f;
  /* morphing shape: asymmetric radii shift with travel + a slow idle wobble */
  border-radius: 62% 38% 46% 54% / 54% 42% 58% 46%;
  will-change: transform, border-radius, top, left;
  transform: translate(-50%, -50%) rotate(calc(var(--t) * 90deg));
  transition: top .3s linear, left .3s linear, transform .3s linear;
  animation: blob-morph 14s ease-in-out infinite;
  pointer-events: none;
}
@keyframes blob-morph {
  0%,100% { border-radius: 62% 38% 46% 54% / 54% 42% 58% 46%; }
  33%     { border-radius: 42% 58% 63% 37% / 46% 58% 42% 54%; }
  66%     { border-radius: 55% 45% 38% 62% / 62% 37% 63% 38%; }
}
/* Hero content sits above the blob. Text keeps its normal dark colours; a
   white clone (aria-hidden) is layered on top and masked to the blob region,
   so text only turns light exactly where the dark blob is behind it. */
.blob-zone .hero { position: relative; z-index: 1; }
.blob-zone .film-section { position: relative; z-index: 1; }

.hero__head { position: relative; }        /* anchor the white clone */
.hero__lede { position: relative; }
/* White clone layered exactly over the original text; masked so it shows only
   inside the blob's disc (--bx/--by/--br are the blob centre + radius from JS).
   Text stays its normal dark colour everywhere the mask hides the clone. */
.hero__ghost {
  position: absolute;
  inset: 0;
  margin: 0;
  pointer-events: none;
  --bx: 120%;
  --by: -20%;
  --br: 300px;
  -webkit-mask: radial-gradient(circle var(--br) at var(--bx) var(--by), #000 62%, transparent 80%);
          mask: radial-gradient(circle var(--br) at var(--bx) var(--by), #000 62%, transparent 80%);
}
/* Head clone mirrors the .hero__head flex layout so children sit exactly over
   the originals; all recoloured to the light tone. */
.hero__head > .hero__ghost { display: flex; flex-direction: column; gap: 28px; }
.hero__head > .hero__ghost > * { color: var(--color-bone) !important; }
/* Lede clone: an inline overlay spanning the paragraph box, light-coloured. */
.hero__lede > .hero__ghost { display: block; color: var(--color-bone); }
@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; transition: none; }
}

.hero { padding: 120px var(--page-pad) 100px; display: flex; flex-direction: column; gap: 48px; }
.hero__head { display: flex; flex-direction: column; gap: 28px; max-width: 1000px; }
.hero__title {
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  font-size: 104px;
  letter-spacing: -0.025em;
  line-height: 0.98;
  color: var(--color-bark);
}
.hero__subtitle {
  font-family: var(--font-display);
  font-weight: var(--fw-thin);
  font-size: 38px;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--color-clay-deep);
}
.hero__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 80px;
}
.hero__lede { font-size: var(--text-lead); line-height: 1.65; color: var(--color-espresso); max-width: 620px; }
.hero__actions { display: flex; align-items: center; gap: 28px; flex-shrink: 0; }

/* Film section — full-width wrapper that owns the vertical spacing and hosts
   the bottom fade-edge; the film card sits centred inside it. */
.film-section {
  padding-bottom: 120px;
}
/* Film / media block — a card whose visible edges align with the band's
   content (value cards): the band content box is .shell (1440px) minus the
   .section page-pad inset on each side, so cap the card to that inner width.
   On narrower screens the calc() collapses and the --page-pad gutter applies. */
.film {
  width: calc(100% - var(--page-pad) * 2);
  max-width: calc(var(--max-content) - var(--page-pad) * 2);
  margin: 0 auto;
  position: relative;
  height: 560px;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(135deg, #b07a55 0%, #8a5b3f 45%, #5e4a3c 100%);
}
.film__scrim {
  position: absolute;
  inset: 0;
  /* Film still image, warmed with a brown tint and a dark scrim gradient
     at the bottom for legibility (layers top-to-bottom). */
  background:
    linear-gradient(0deg, rgba(46,39,34,.55) 0%, rgba(46,39,34,.05) 55%),
    linear-gradient(0deg, rgba(154,94,60,.45), rgba(154,94,60,.45)),
    url('../assets/images/services-stages-2%202.jpg') center / cover no-repeat;
}
.film__tag {
  position: absolute;
  top: 40px; left: 40px;
  font-size: var(--text-micro);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-bone);
}
.film__inner {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px;
  gap: 24px;
}
.film__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--fw-thin);
  font-size: 44px;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--color-bone);
}
.film__play { display: flex; align-items: center; gap: 18px; }
.film__play-btn {
  width: 72px; height: 72px;
  border: 1px solid var(--color-bone);
  border-radius: var(--radius-pill);
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  flex-shrink: 0;
  transition: background-color .2s ease, transform .2s ease;
}
.film__play-btn svg path { fill: var(--color-bone); transition: fill .2s ease; }
.film__play-btn:hover { background: var(--color-bone); transform: scale(1.04); }
.film__play-btn:hover svg path { fill: var(--color-clay-deep); }
.film__play-label {
  font-size: var(--text-label);
  font-weight: var(--fw-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-bone);
}

/* Section heading block */
.band { background: var(--color-paper); border-top: 1px solid var(--color-hairline); border-bottom: 1px solid var(--color-hairline); }
.lead-head { display: flex; flex-direction: column; gap: 28px; margin-bottom: 56px; }
.lead-head__title {
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  font-size: 52px;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--color-bark);
  max-width: 620px;
}
.lead-head__body { font-size: var(--text-body); line-height: 1.65; color: var(--color-espresso); max-width: 560px; }

/* Journey — interlocking outlined arrow blocks (process flow).
   Each stage is an arrow shape pointing right; outline only (no fill) with
   the page background showing through. The outline is built from two clipped
   layers: the block is the border colour, an inset ::before is the bg colour. */
.journey {
  --tip: 26px;            /* depth of each arrow point / notch */
  --line: 1px;           /* outline thickness */
  display: flex;
  /* Round the outer corners of the whole strip (only the first block's flat
     left edge has square corners to round; the strip ends in a point). */
  border-radius: var(--radius-md);
  /* Scroll horizontally rather than squashing the stages when the row is
     wider than its container. */
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.journey__col {
  position: relative;
  flex: 1 0 160px;        /* grow to fill, but never shrink below a readable width */
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  /* room for the right-hand point and (on non-first) the left notch */
  padding: 24px calc(var(--tip) + 20px) 24px 42px;
  clip-path: polygon(
    0 0,
    calc(100% - var(--tip)) 0,
    100% 50%,
    calc(100% - var(--tip)) 100%,
    0 100%,
    var(--tip) 50%
  );
}
/* First block is flat on the left (no incoming notch) */
.journey__col:first-child {
  padding-left: 28px;
  clip-path: polygon(
    0 0,
    calc(100% - var(--tip)) 0,
    100% 50%,
    calc(100% - var(--tip)) 100%,
    0 100%
  );
}
/* Tessellate: each block (after the first) nests its notch over the
   previous block's point, and sits above it so the overlap reads cleanly */
.journey__col:not(:first-child) { margin-left: calc(var(--tip) * -1); }
.journey__col:nth-child(1) { z-index: 6; }
.journey__col:nth-child(2) { z-index: 5; }
.journey__col:nth-child(3) { z-index: 4; }
.journey__col:nth-child(4) { z-index: 3; }
.journey__col:nth-child(5) { z-index: 2; }
.journey__col:nth-child(6) { z-index: 1; }
/* Inner fill (page background) inset by the outline thickness, same shape */
.journey__col::before {
  content: "";
  position: absolute;
  inset: var(--line);
  background: #ffe2d1;
  clip-path: inherit;
  z-index: 0;
}
.journey__col > * { position: relative; z-index: 1; }
.journey__title { font-family: var(--font-display); font-size: 21px; line-height: 1.2; color: var(--color-clay); }
.journey__body { font-size: 13px; line-height: 1.5; color: var(--color-stone); }
.journey__cta { margin-top: 56px; }

/* Why Dr Sinha — split with credentials list (content capped via .bleed-shell) */
.why {
  position: relative;
  isolation: isolate;                 /* contain the bg/tint stacking context */
  background: var(--color-clay-deep);
  color: var(--color-bone);
  display: flex;
  flex-direction: column;
  gap: 56px;
  overflow: hidden;                   /* clip the full-bleed image layers */
}
/* Full-bleed cross-fading greyscale photo backdrop (one layer per centre) */
.why__bg { position: absolute; inset: 0; z-index: -2; }
.why__bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(1) contrast(1.02);
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.1s ease, transform 7s ease;
}
.why__bg-img.is-active { opacity: 1; transform: scale(1); }
/* Translucent clay wash over the greyscale photo (below content) so the image
   reads as a monochrome, clay-toned backdrop while text stays legible. The
   `multiply` blend tints the photo brown rather than just darkening it. */
.why::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(154,94,60,.80) 0%, rgba(74,72,54,.86) 100%);
  mix-blend-mode: multiply;
}
/* An extra darkening veil keeps body copy readable over busy photos */
.why::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(58,38,26,.34);
}
/* Before JS reveals the photo, fall back to the solid clay ground */
.why:not(.why--has-bg)::before { background: var(--color-clay-deep); mix-blend-mode: normal; }
.why:not(.why--has-bg)::after { background: none; }
.why__intro { display: flex; flex-direction: column; gap: 24px; max-width: 720px; }
.why__eyebrow { color: var(--color-linen); }
.why__statement {
  font-family: var(--font-display);
  font-weight: var(--fw-thin);
  font-size: 32px;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--color-bone);
}
.why__note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lead);
  line-height: 1.4;
  color: var(--color-stone-soft);
}

/* Provenance — three centres of excellence in a bordered grid */
.provenance {
  display: flex;
  align-items: stretch;
  padding: 0;
  border: 1px solid var(--color-clay);
  background: var(--color-clay-deep);
  overflow: hidden;
  border-radius: var(--radius-md);
}
.prov {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 32px;
  border-right: 1px solid var(--color-clay);
  overflow: hidden;                   /* clip the progress bar to the block */
  transition: background-color .5s ease;
}
.prov:last-child { border-right: 0; }
/* Active block reads slightly lifted from the grid */
.prov.is-active { background: rgba(255,255,255,.05); }
/* White loading bar along the bottom — fills over the cycle duration.
   Driven by a keyframe animation so JS can restart it (re-add .is-active)
   and the whole grid can pause it on hover via animation-play-state. */
.prov__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--color-bone);
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
}
.prov.is-active .prov__bar {
  opacity: 1;
  animation: prov-fill var(--dur, 5s) linear forwards;
}
/* Pause the fill while a block is hover-pinned */
.provenance.is-paused .prov.is-active .prov__bar { animation-play-state: paused; }
@keyframes prov-fill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
/* Institution logo — shown by default; fades out (crossfading with the
   name + meta) when the block is active. Absolutely centred so swapping it
   doesn't shift the block's height (name + meta stay in flow to reserve it). */
.prov__logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: 64px;
  max-width: 210px;
  object-fit: contain;
  opacity: 0.92;
  transition: opacity .55s ease;
  pointer-events: none;
}
.prov.is-active .prov__logo { opacity: 0; }
/* In the interactive showcase (home page), name + meta are hidden by default
   and fade in when the block becomes active. The plain static provenance
   (e.g. publications) has no showcase attribute, so its text stays visible. */
[data-provenance] .prov__name,
[data-provenance] .prov__meta { opacity: 0; transition: opacity .45s ease; }
[data-provenance] .prov.is-active .prov__name,
[data-provenance] .prov.is-active .prov__meta { opacity: 1; }
.prov__name {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  line-height: 1.2;
  color: var(--color-bone);
}
.prov__meta { font-size: var(--text-small); line-height: 1.5; color: var(--color-linen); }

.why__link { align-self: flex-start; }

/* Contact / enquiry */
.contact { display: flex; gap: 96px; align-items: flex-start; }
.contact__intro { flex: 1.2; display: flex; flex-direction: column; gap: 32px; }
.contact__title {
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  font-size: 52px;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--color-bark);
}
.contact__body { font-size: 19px; line-height: 1.6; color: var(--color-espresso); max-width: 440px; }
.contact__details { display: flex; flex-direction: column; gap: 18px; padding-top: 8px; font-size: 16px; color: var(--color-bark); }

.enquiry {
  flex: 1;
  background: var(--color-linen);
  border-radius: var(--radius-md);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.enquiry__title { font-family: var(--font-display); font-size: 24px; line-height: 1.25; color: var(--color-bark); }
.enquiry__note { font-size: 14px; line-height: 1.5; color: var(--color-espresso); margin-top: 8px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label {
  font-size: var(--text-micro);
  font-weight: var(--fw-medium);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-stone);
}
.field input,
.field textarea {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--color-bark);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--color-stone);
  padding: 0 0 12px;
  width: 100%;
  resize: none;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--color-stone-soft); }
.field input:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--color-clay); }
.field--invalid input,
.field--invalid textarea { border-bottom-color: var(--color-clay-deep); }
.field__error { font-size: 12px; color: var(--color-clay-deep); display: none; }
.field--invalid .field__error { display: block; }
.form-status { font-size: 14px; color: var(--color-clay-deep); min-height: 1em; }

/* =========================================================
   About
   ========================================================= */
.about-hero { display: flex; gap: 80px; }
.about-hero__text { flex: 1.2; display: flex; flex-direction: column; gap: 36px; justify-content: center; }
.about-hero__title {
  font-family: var(--font-display);
  font-weight: var(--fw-thin);
  font-size: 56px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-bark);
}
.about-hero__lede { font-size: 18px; line-height: 1.65; color: var(--color-espresso); max-width: 560px; }
.about-hero__media {
  flex: 1;
  min-height: 560px;
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, #cdb49a 0%, #a9794f 50%, #5f4632 100%);
}

.split { display: flex; gap: 96px; }
.split__aside { flex-basis: 280px; flex-shrink: 0; }
.split__aside-title { font-family: var(--font-display); font-size: 32px; letter-spacing: -0.015em; line-height: 1.15; color: var(--color-bark); }
.split__body { flex: 1; display: flex; flex-direction: column; gap: 28px; max-width: 740px; }
.prose { font-size: 19px; line-height: 1.7; color: var(--color-espresso); }
.prose--sm { font-size: 18px; }

.feature { display: flex; gap: 96px; }
.feature__col { flex: 1; display: flex; flex-direction: column; gap: 24px; }
.pullquote {
  flex-basis: 360px;
  flex-shrink: 0;
  background: var(--color-bone);
  border-left: 2px solid var(--color-clay);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
  line-height: 1.35;
  color: var(--color-bark);
}
/* Inside an About card, stack the pullquote beneath the text (full width) */
.stack-card .feature { flex-direction: column; gap: 40px; }
.stack-card .feature .pullquote {
  flex-basis: auto;
  border-left: 0;
  border-top: 2px solid var(--color-clay);
}

.section-head { display: flex; flex-direction: column; gap: 24px; max-width: 720px; margin-bottom: 64px; }
.section-head__title {
  font-family: var(--font-display);
  font-size: 44px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--color-bark);
}

/* Expertise (dark) — content capped via .bleed-shell */
.expertise { background: var(--color-clay-deep); color: var(--color-bone); display: flex; flex-direction: column; gap: 56px; }
.expertise__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 64px; }
.expertise__title {
  font-family: var(--font-display);
  font-weight: var(--fw-thin);
  font-size: 44px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--color-bone);
  max-width: 560px;
}
.expertise__quote { font-family: var(--font-display); font-style: italic; font-size: 20px; line-height: 1.4; color: var(--color-linen); max-width: 380px; }
.expertise__grid { display: flex; gap: 24px; }
.expertise__item {
  flex: 1;
  border-top: 1px solid var(--color-clay);
  padding-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.expertise__item-title { font-family: var(--font-display); font-size: 21px; line-height: 1.24; color: var(--color-bone); }
.expertise__item-body { font-size: 14px; line-height: 1.55; color: var(--color-linen); }
.expertise__note {
  background: var(--color-white);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md);
  padding: 32px 36px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-espresso);
}
.expertise__outro { font-size: 17px; line-height: 1.7; color: var(--color-linen); max-width: 720px; }

/* Expertise on a light card (About stacked cards): recolour for the light ground */
.stack-card .expertise__item-title { color: var(--color-bark); }
.stack-card .expertise__item-body { color: var(--color-stone); }
.stack-card .expertise__item { border-top-color: var(--color-hairline); }
.expertise__quote--light { color: var(--color-clay-deep); }
.expertise__outro--light { color: var(--color-espresso); }
/* Vertical rhythm for the expertise content inside the card (the flex-column
   .expertise gap no longer applies once it's a plain card block). */
.stack-card .expertise__head { margin-bottom: 40px; }
.stack-card .expertise__grid { margin-bottom: 40px; }
.stack-card .expertise__note { margin-bottom: 28px; }

/* Leadership credentials */
.leadership { display: flex; gap: 96px; }
.leadership__intro { flex: 1; display: flex; flex-direction: column; gap: 28px; }
.leadership__title { font-family: var(--font-display); font-size: 38px; letter-spacing: -0.02em; line-height: 1.15; color: var(--color-bark); }
.leadership__list { flex-basis: 260px; flex-shrink: 0; display: flex; flex-direction: column; }
.lead-item {
  border-top: 1px solid var(--color-hairline);
  padding: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lead-item:last-child { border-bottom: 1px solid var(--color-hairline); }
.lead-item__role { font-family: var(--font-display); font-size: 20px; line-height: 1.3; color: var(--color-bark); }
.lead-item__org { font-size: 14px; line-height: 1.28; color: var(--color-stone); }

/* Philosophy centered quote */
.philosophy { background: var(--color-paper); border-top: 1px solid var(--color-hairline); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 28px; padding-block: 120px; }
/* Tighten the eyebrow → quote pairing */
.philosophy .eyebrow { margin-bottom: -8px; }
.philosophy__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--fw-thin);
  font-size: 64px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-bark);
  max-width: 1000px;
}
.philosophy__body { font-size: 18px; line-height: 1.7; color: var(--color-espresso); max-width: 640px; }
.philosophy__lead {
  font-size: var(--text-label);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-clay);
  padding-top: 8px;
}
.philosophy__pair { display: flex; align-items: center; justify-content: center; gap: 28px; padding-top: 24px; }
.philosophy__pair span { font-size: 15px; font-weight: var(--fw-medium); color: var(--color-stone); }
.philosophy__pair .bar { width: 1px; height: 32px; background: var(--color-clay); flex-shrink: 0; }

.aim-quote {
  font-family: var(--font-display);
  font-size: 44px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--color-bark);
  max-width: 680px;
  margin-bottom: 48px;
}
.aim-close { font-size: 18px; line-height: 1.7; color: var(--color-espresso); max-width: 620px; margin-top: 48px; }
.aim-sign {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lead);
  line-height: 1.4;
  color: var(--color-clay-deep);
  max-width: 620px;
  margin-top: 24px;
}

/* =========================================================
   Services
   ========================================================= */
.svc-hero { display: flex; flex-direction: column; gap: 40px; }
.svc-hero__title {
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  font-size: 72px;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--color-bark);
  max-width: 760px;
}
.svc-hero__lede { font-size: var(--text-body); line-height: 1.65; color: var(--color-espresso); max-width: 480px; }

/* Stepper */
.stepper { position: relative; display: flex; align-items: flex-start; margin-top: 16px; }
/* Continuous baseline rule behind the dots */
.stepper::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 8.333%;            /* centre of first dot (1/12) */
  right: 8.333%;           /* centre of last dot */
  height: 1px;
  background: var(--color-hairline);
}
/* Animated progress fill, width driven by --progress (0–1) via JS */
.stepper__progress {
  position: absolute;
  top: 9px;
  left: 8.333%;
  height: 1px;
  width: calc((100% - 16.666%) * var(--progress, 0));
  background: var(--color-clay);
  transition: width .45s cubic-bezier(.4,0,.2,1);
  z-index: 1;
}
.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
  background: none;
  border: 0;
  padding: 0 4px;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.step__dot {
  width: 18px; height: 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-stone-soft);
  background: var(--color-bone);
  position: relative;
  z-index: 1;
  transition: background-color .35s ease, border-color .35s ease, box-shadow .35s ease, transform .35s ease;
}
.step:hover .step__dot { border-color: var(--color-clay); }
/* Visited (already passed) dots fill clay; active dot adds a halo */
.step--done .step__dot { background: var(--color-clay); border-color: var(--color-clay); }
.step--active .step__dot {
  background: var(--color-clay);
  border-color: var(--color-clay);
  box-shadow: 0 0 0 4px rgba(181,117,79,.18);
  transform: scale(1.12);
}
.step__label { font-size: 12px; color: var(--color-stone); text-align: center; transition: color .3s ease; }
.step:hover .step__label { color: var(--color-bark); }
.step--active .step__label { color: var(--color-bark); font-weight: var(--fw-medium); }

/* Stage rows */
.stage {
  display: flex;
  gap: 96px;
  padding: 90px var(--page-pad);
  border-top: 1px solid var(--color-hairline);
}
.stage--alt { background: var(--color-paper); }
.stage__aside { flex-basis: 360px; flex-shrink: 0; display: flex; flex-direction: column; gap: 16px; }
.stage--flip { flex-direction: row-reverse; }
.stage--flip .stage__aside { text-align: right; align-items: flex-end; }
.stage__tag {
  font-size: var(--text-micro);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-clay);
}
.stage__title { font-family: var(--font-display); font-size: var(--text-h2); letter-spacing: -0.015em; line-height: 1.15; color: var(--color-bark); }
.stage__desc { font-size: 18px; line-height: 1.4; color: var(--color-stone); max-width: 360px; }
.stage__list { flex: 1; }
.svc-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--color-hairline);
}
.svc-item:first-child { border-top: 0; }
.stage:not(.stage--alt) .svc-item:first-child,
.stage--alt .svc-item:first-child { border-top: 1px solid var(--color-hairline); }
.svc-item__num {
  flex-shrink: 0;
  width: 24px;
  font-size: var(--text-lead);
  line-height: 1;
  color: var(--color-clay);
}
.svc-item__name { font-size: var(--text-body); color: var(--color-bark); }

/* ---- Per-stage media (parallax image) ---- */
.stage__media {
  flex-basis: 420px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(160deg, #cdb49a 0%, #a9794f 55%, #5f4632 100%);
}
.stage__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  will-change: transform;
}
/* In the static fallback the media is a normal banner above the text */
.stage-scroll:not(.is-enhanced) .stage { flex-direction: column; gap: 40px; }
.stage-scroll:not(.is-enhanced) .stage__media { flex-basis: auto; width: 100%; height: 280px; }
.stage-scroll:not(.is-enhanced) .stage__body { display: flex; gap: 96px; width: 100%; }
.stage-scroll:not(.is-enhanced) .stage__body .stage__aside { flex-basis: 360px; flex-shrink: 0; }

/* ---- Scroll-driven stage track ---- */
.stage-scroll { position: relative; }
.stage-scroll__sticky {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 64px var(--page-pad);
  max-width: var(--max-content);
  margin-inline: auto;
}
/* Fallback (no JS): stages just stack as a readable list */
.stage-stack > .stage {
  border-top: 1px solid var(--color-hairline);
}
.stage-scroll:not(.is-enhanced) .stage-stack > .stage:first-child { border-top: 0; }
.stage-scroll:not(.is-enhanced) .stepper__progress { display: none; }

/* Enhanced (JS on): pin the stepper + one panel; the tall track drives scroll */
.stage-scroll.is-enhanced .stage-scroll__sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  justify-content: center;
  padding-block: clamp(72px, 11vh, 130px);
}
.stage-scroll.is-enhanced .stepper { flex-shrink: 0; }

.stage-scroll.is-enhanced .stage-stack {
  position: relative;
  flex: 1;
  /* height is set by JS to the tallest stage's natural content height */
  display: flex;
  align-items: stretch;
  overflow: hidden;            /* clip slide-in motion */
}
.stage-scroll.is-enhanced .stage-stack > .stage {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 64px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(48px);
  transition: opacity .55s ease, transform .6s cubic-bezier(.22,1,.36,1), visibility 0s linear .6s;
  pointer-events: none;
}
.stage-scroll.is-enhanced .stage-stack > .stage.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  transition: opacity .55s ease, transform .6s cubic-bezier(.22,1,.36,1), visibility 0s;
  pointer-events: auto;
}
/* Already-passed panels slide out to the left */
.stage-scroll.is-enhanced .stage-stack > .stage.is-prev { transform: translateX(-48px); }

/* Two-column inside each enhanced panel: [ media | body ] */
.stage-scroll.is-enhanced .stage__media {
  flex-basis: 46%;
  align-self: flex-start;      /* pin the media to the top of the panel */
  aspect-ratio: 4 / 3;         /* keep the media close to square */
  position: relative;          /* anchor the oversized parallax image */
}
.stage-scroll.is-enhanced .stage__img {
  /* image is wider than the frame (overscans both sides) so it can pan
     horizontally for parallax without ever exposing the frame edge */
  position: absolute;
  top: 0;
  bottom: 0;
  left: -120px;
  width: calc(100% + 240px);
  max-width: none;            /* defeat the global img { max-width:100% } cap */
  height: 100%;
  transform: translateX(var(--parallax, 0px));
}
.stage-scroll.is-enhanced .stage__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
  justify-content: center;
}
.stage-scroll.is-enhanced .stage__body .stage__aside { flex-basis: auto; gap: 16px; }
.stage-scroll.is-enhanced .stage__list { width: 100%; }

/* Services CTA band */
.cta {
  background: var(--color-clay-deep);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding-block: 120px;
}
.cta__title {
  font-family: var(--font-display);
  font-weight: var(--fw-thin);
  font-size: 48px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-bone);
  max-width: 640px;
}
.cta .btn--primary { background: var(--color-clay); }
.cta .btn--primary:hover { background: var(--color-bone); color: var(--color-clay-deep); }

/* =========================================================
   Publications
   ========================================================= */
.pub-hero { display: flex; flex-direction: column; gap: 40px; }
.pub-hero__title {
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  font-size: 72px;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--color-bark);
  max-width: 900px;
}
.pub-hero__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 80px;
  border-top: 1px solid var(--color-hairline);
  padding-top: 48px;
}
.pub-hero__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
  line-height: 1.4;
  color: var(--color-clay-deep);
  max-width: 560px;
}
.pub-hero__note { font-size: var(--text-body); line-height: 1.65; color: var(--color-espresso); max-width: 420px; }

/* Research intro paragraphs beneath the publications hero */
.pub-intro {
  padding-top: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.pub-intro .prose { max-width: 760px; }

.pub {
  display: flex;
  gap: 96px;
  /* Block padding for rhythm; inline padding matches .bleed-shell so the
     alternating tint stays full-bleed while content sits in the shared column. */
  padding-block: 90px;
  padding-inline: max(var(--page-pad), calc((100% - var(--max-content)) / 2 + var(--page-pad)));
  border-top: 1px solid var(--color-hairline);
}
.pub--alt { background: var(--color-paper); }

/* ---- Stacked sticky cards (shared by Publications + About) ---- */
/* Block flow (not flex) so position: sticky stacks predictably — in a flex
   column, pinning a later card can nudge earlier ones. */
.card-stack {
  /* horizontal gutter so the contained cards sit in the shared column */
  padding-inline: max(var(--page-pad), calc((100% - var(--max-content)) / 2 + var(--page-pad)));
  padding-block: 40px 120px;
}
.stack-card {
  /* Each card pins just below the sticky header, then the next slides over it.
     Stagger the pin offset per card so the stack's top edges peek through. */
  position: sticky;
  top: calc(var(--header-h) + 28px);
  padding: 56px;
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md);
  background: var(--color-bone);
  box-shadow: 0 -1px 0 var(--color-hairline), 0 24px 48px -32px rgba(46,39,34,.45);
}
.stack-card + .stack-card { margin-top: 40px; }
.stack-card:nth-child(2) { top: calc(var(--header-h) + 42px); }
.stack-card:nth-child(3) { top: calc(var(--header-h) + 56px); }
.stack-card:nth-child(4) { top: calc(var(--header-h) + 70px); }
/* Alternate the card tint for rhythm */
.stack-card:nth-child(odd) { background: var(--color-paper); }
/* Flow variant — cards keep the card styling but don't pin (for content-heavy
   stacks like About, where cards are taller than the viewport). */
.card-stack--flow .stack-card { position: static; top: auto; box-shadow: none; }
.pub__aside { flex-basis: 320px; flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; }
.pub__tag {
  font-size: var(--text-micro);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-clay);
}
.pub__title { font-family: var(--font-display); font-size: var(--text-h2); letter-spacing: -0.015em; line-height: 1.15; color: var(--color-bark); }
.pub__quote { font-family: var(--font-display); font-style: italic; font-size: 18px; line-height: 1.4; color: var(--color-stone); }
.pub__main { flex: 1; display: flex; flex-direction: column; gap: 32px; }
.pub__intro { font-size: 18px; line-height: 1.7; color: var(--color-espresso); max-width: 600px; }

/* Featured publication card */
.feat {
  background: var(--color-bone);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.feat__tag {
  font-size: var(--text-micro);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-stone);
}
.feat__title { font-family: var(--font-display); font-size: 21px; line-height: 1.35; color: var(--color-bark); }
.feat__authors { font-size: 15px; line-height: 1.2; color: var(--color-espresso); }
.feat__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--color-hairline);
  padding-top: 18px;
  font-size: var(--text-label);
  font-weight: var(--fw-medium);
  color: var(--color-stone);
}
.feat__dot { width: 3px; height: 3px; border-radius: var(--radius-pill); background: var(--color-stone); flex-shrink: 0; }

/* Plain publication list */
.pub-list { display: flex; flex-direction: column; }
.pub-row {
  border-top: 1px solid var(--color-hairline);
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pub-row:last-child { border-bottom: 1px solid var(--color-hairline); }
.pub-row__title { font-family: var(--font-display); font-size: 18px; line-height: 1.4; color: var(--color-bark); }
.pub-row__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: var(--text-label); line-height: 1.23; }
.pub-row__authors { color: var(--color-espresso); }
.pub-row__journal { color: var(--color-stone); }

/* Publications closing band */
.closer { background: var(--color-clay-deep); color: var(--color-bone); display: flex; flex-direction: column; gap: 56px; }
.closer__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 64px; }
.closer__title {
  font-family: var(--font-display);
  font-weight: var(--fw-thin);
  font-size: 44px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-bone);
  max-width: 560px;
}
.closer__quote { font-family: var(--font-display); font-style: italic; font-size: 20px; line-height: 1.4; color: var(--color-stone-soft); max-width: 360px; }

/* =========================================================
   Responsive
   ========================================================= */

/* Tablet / small desktop */
@media (max-width: 1100px) {
  :root { --page-pad: 48px; }
  .hero__title { font-size: 80px; }
  .hero__subtitle { font-size: 32px; }
  .philosophy__quote { font-size: 52px; }
  .svc-hero__title, .pub-hero__title { font-size: 56px; }
  .why, .contact, .split, .feature, .leadership { gap: 56px; }
  .site-footer__inner { padding-inline: 48px; }
}

/* Stack two-column layouts */
@media (max-width: 900px) {
  .section, .stage, .pub { padding-block: 72px; }
  .section--lg { padding-block: 88px; }

  .hero__foot { flex-direction: column; align-items: flex-start; gap: 32px; }
  .film { height: 420px; }
  .film__title { font-size: 32px; }

  .why, .contact, .split, .feature, .leadership,
  .about-hero, .pub, .stage { flex-direction: column; gap: 40px; }
  /* Cards are taller than the viewport once stacked — drop the sticky stacking
     and let them flow as normal cards on small screens. */
  .stack-card { position: static; top: auto; padding: 40px; }
  .stack-card + .stack-card { margin-top: 24px; }
  .card-stack { padding-block: 24px 88px; }
  .stage--flip { flex-direction: column; }
  .stage--flip .stage__aside { text-align: left; align-items: flex-start; }
  .leadership__list, .split__aside, .pub__aside,
  .contact__intro, .enquiry, .feature__col, .pullquote, .stage__aside { flex-basis: auto; }
  .about-hero__media { min-height: 340px; }
  .pullquote { border-left: 0; border-top: 2px solid var(--color-clay); padding-inline: 0; }

  /* Provenance stacks into a bordered column */
  .provenance { flex-direction: column; }
  .prov { flex: 0 0 auto; border-right: 0; border-bottom: 1px solid var(--color-clay); }
  .prov:last-child { border-bottom: 0; }

  /* Journey arrows stack vertically (pointing down) on narrow screens.
     Blocks tessellate: each block's top notch nests over the previous block's
     bottom point (negative margin), so there are no dead triangular gaps. */
  .journey { flex-direction: column; gap: 0; --line: 1px; }
  .journey__col,
  .journey__col:first-child,
  .journey__col:not(:first-child) {
    flex: none;
    min-height: 0;
    margin: 0;
    padding: calc(var(--tip) + 18px) 28px calc(var(--tip) + 18px) 28px;
    align-items: flex-start;
    text-align: left;
    clip-path: polygon(
      0 0,
      50% var(--tip),
      100% 0,
      100% calc(100% - var(--tip)),
      50% 100%,
      0 calc(100% - var(--tip))
    );
  }
  /* Overlap so the point sits inside the next notch (no gap between fills) */
  .journey__col:not(:first-child) { margin-top: calc(var(--tip) * -1); }
  .journey__col:nth-child(1) { z-index: 6; }
  .journey__col:nth-child(2) { z-index: 5; }
  .journey__col:nth-child(3) { z-index: 4; }
  .journey__col:nth-child(4) { z-index: 3; }
  .journey__col:nth-child(5) { z-index: 2; }
  .journey__col:nth-child(6) { z-index: 1; }
  /* Expertise + tri-row become 2-up grids */
  .expertise__head, .closer__head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .expertise__grid, .value-grid, .tri-row { flex-wrap: wrap; gap: 24px; }
  .expertise__item, .value-card, .tri-row__item { flex: 0 0 calc(50% - 12px); }

  .stepper { flex-wrap: wrap; gap: 20px 0; }
  .step { flex: 0 0 33.333%; }
  .stepper::before, .stepper__progress { display: none; }

  /* On tablet/mobile the pinned-panel UX is cramped — revert to a static
     stacked list even if JS enhanced it on a wider viewport. */
  .stage-scroll.is-enhanced { height: auto !important; }
  .stage-scroll.is-enhanced .stage-scroll__sticky {
    position: static;
    min-height: 0;
    padding-block: 0;
  }
  .stage-scroll.is-enhanced .stage-stack {
    position: static;
    display: block;
    min-height: 0;
  }
  .stage-scroll.is-enhanced .stage-stack > .stage {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    border-top: 1px solid var(--color-hairline);
    padding: 56px 0;
    flex-direction: column;
    gap: 40px;
  }
  /* Neutralise the enhanced media/parallax so it becomes a static banner */
  .stage-scroll.is-enhanced .stage__media {
    flex-basis: auto;
    width: 100%;
    height: 280px;
    min-height: 0;
  }
  /* No parallax on smaller screens — the image is a plain cover-fit element
     filling the media frame (reset the overscan/absolute positioning). */
  .stage-scroll.is-enhanced .stage__img {
    position: static;
    left: auto;
    width: 100%;
    max-width: 100%;
    height: 100%;
    transform: none;
  }
  .stage-scroll.is-enhanced .stage__body { display: flex; flex-direction: column; gap: 40px; width: 100%; }

  .footer-top { flex-direction: column; gap: 40px; }
}

/* Phone */
@media (max-width: 640px) {
  :root { --page-pad: 22px; }

  /* Mobile nav */
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-bone);
    border-bottom: 1px solid var(--color-hairline);
    padding: 8px var(--page-pad) 24px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .2s ease;
    box-shadow: 0 16px 28px -20px rgba(46,39,34,.4);
  }
  .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__link { padding: 16px 0; border-bottom: 1px solid var(--color-hairline); font-size: 16px; }
  .nav__link::after { display: none; }
  .nav .btn--primary { margin-top: 16px; }
  body.nav-open { overflow: hidden; }
  .nav-toggle.is-active .nav-toggle__bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.is-active .nav-toggle__bar:nth-child(2) { opacity: 0; }
  .nav-toggle.is-active .nav-toggle__bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .brand__logo { width: 48px; height: 48px; }

  /* Single column everything */
  .journey__col, .expertise__item, .value-card, .tri-row__item { flex: 0 0 100%; }

  /* Hide the journey stepper on mobile */
  .stepper { display: none; }
  .tri-row { gap: 0; }
  .tri-row__item { border-top: 1px solid var(--color-clay); padding-block: 28px; }

  .hero { padding-top: 64px; }
  .hero__title { font-size: 52px; }
  .hero__subtitle { font-size: 26px; }
  .hero__actions { flex-direction: column; align-items: flex-start; gap: 18px; }
  .hero__lede, .about-hero__lede { font-size: 18px; }

  .film-section { padding-bottom: 72px; }
  .film { height: 320px; }
  .film__inner { flex-direction: column; align-items: flex-start; gap: 28px; }
  .film__title { font-size: 26px; }

  .lead-head__title, .contact__title { font-size: 36px; }
  .about-hero__title { font-size: 38px; }
  .svc-hero__title, .pub-hero__title { font-size: 40px; }
  .philosophy { padding-block: 88px; }
  .philosophy__quote { font-size: 34px; }
  .philosophy__pair { flex-direction: column; gap: 16px; text-align: center; }
  .philosophy__pair .bar { display: none; }
  .aim-quote, .cta__title, .closer__title, .expertise__title,
  .leadership__title, .feat__title { font-size: 30px; }
  .stage__title, .pub__title { font-size: 28px; }
  .why__statement { font-size: 24px; }
  .provenance { flex-direction: column; gap: 0; }
  .prov { flex: 0 0 100%; padding: 28px; }
  /* Stage body stacks on phones (both static + JS-reverted paths) */
  .stage-scroll .stage__body,
  .stage-scroll:not(.is-enhanced) .stage__body { flex-direction: column; gap: 28px; }
  .stage-scroll .stage__media { height: 220px; }
  .stage-scroll:not(.is-enhanced) .stage__body .stage__aside { flex-basis: 0; }
  /* Stage vertical rhythm on mobile */
  .stage,
  .stage-scroll:not(.is-enhanced) .stage-stack > .stage,
  .stage-scroll.is-enhanced .stage-stack > .stage { padding: 90px 0; }

  .pub-hero__foot { flex-direction: column; align-items: flex-start; gap: 24px; }
  .site-footer__inner { padding: 56px var(--page-pad) 40px; }
  .footer-cols { flex-direction: column; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .feat { padding: 24px; }
}

