/* =============================================================================
   BluPrint Longevity — Main Stylesheet
   WordPress/Elementor port-ready: all rules use class selectors, no IDs.
   Variables mirror the brand guide; swap hex values here only.
   ============================================================================= */

/* ---------------------------------------------------------------------------
   @font-face
   --------------------------------------------------------------------------- */
@font-face {
  font-family: 'Heading';
  src: url('../fonts/ZapfHumnst-BT.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Brooklyn';
  src: url('../fonts/Brooklyn-Normal.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Brooklyn';
  src: url('../fonts/Brooklyn-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Brooklyn';
  src: url('../fonts/Brooklyn-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Brooklyn';
  src: url('../fonts/Brooklyn-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Brooklyn';
  src: url('../fonts/Brooklyn-Heavy.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------------------------------------
   Design Tokens
   --------------------------------------------------------------------------- */
:root {
  /* Colours */
  --ivory:    #F5EFE3;
  --linen:    #EFE5D6;
  --oat:      #E8DDD0;
  --chestnut: #C4A882;
  --russet:   #8C5C35;
  --coffee:   #231508;

  /* Typography */
  --font-heading: 'Heading', 'Georgia', serif;
  --font-body:    'Brooklyn', 'Helvetica Neue', Arial, sans-serif;

  /* Spacing scale */
  --space-xs:  clamp(0.5rem,  1vw,  0.75rem);
  --space-sm:  clamp(1rem,    2vw,  1.5rem);
  --space-md:  clamp(2rem,    4vw,  3rem);
  --space-lg:  clamp(3rem,    6vw,  5rem);
  --space-xl:  clamp(5rem,    9vw,  8rem);

  /* Type scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-md:   1.125rem;
  --text-lg:   clamp(1.25rem,  2vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   3vw, 2rem);
  --text-2xl:  clamp(2rem,     4vw, 3rem);
  --text-3xl:  clamp(2.5rem,   5vw, 4rem);
  --text-hero: clamp(3rem,     7vw, 6.5rem);

  /* Motion */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout:  cubic-bezier(0.65, 0, 0.35, 1);
  --duration:    0.7s;

  /* Layout */
  --max-w: 1280px;
  --nav-h: 72px;

  /* Hero dark ground (placeholder until video lands) */
  --ink-dark: #3D2B1F;
}

/* ---------------------------------------------------------------------------
   Reset & Base
   --------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto;
}

body {
  font-family: var(--font-body);
  background-color: var(--ivory);
  color: var(--coffee);
  line-height: 1.7;
  font-size: var(--text-base);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ---------------------------------------------------------------------------
   Typography helpers
   --------------------------------------------------------------------------- */
.t-heading {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--coffee);
}

.t-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--russet);
}

/* Eyebrow with a short accent rule — gives section labels a designed anchor.
   Add class .t-label--rule to render the rule. Centered variant available. */
.t-label--rule {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.t-label--rule::before {
  content: '';
  width: clamp(24px, 4vw, 44px);
  height: 1.5px;
  background-color: var(--chestnut);
  display: inline-block;
}

/* Centered variant — rule on both sides */
.t-label--rule-center {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.t-label--rule-center::before,
.t-label--rule-center::after {
  content: '';
  width: clamp(24px, 4vw, 44px);
  height: 1.5px;
  background-color: var(--chestnut);
  display: inline-block;
}

/* ---------------------------------------------------------------------------
   Layout helpers
   --------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 5rem);
}

.section-pad {
  padding-block: var(--space-xl);
}

/* ---------------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85em 2em;
  border-radius: 2px;
  transition: background-color var(--duration) var(--ease-out),
              color var(--duration) var(--ease-out);
  cursor: pointer;
}

.btn--primary {
  background-color: var(--russet);
  color: var(--ivory);
}

.btn--primary:hover {
  background-color: var(--coffee);
}

.btn--ghost {
  background-color: transparent;
  color: var(--coffee);
  border: 1px solid var(--coffee);
}

.btn--ghost:hover {
  background-color: var(--coffee);
  color: var(--ivory);
}

.btn--ghost-light {
  background-color: transparent;
  color: var(--ivory);
  border: 1px solid rgba(245, 239, 227, 0.5);
}

.btn--ghost-light:hover {
  background-color: var(--ivory);
  color: var(--coffee);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--russet);
  position: relative;
}

.link-arrow::after {
  content: '→';
  transition: transform 0.3s var(--ease-out);
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

/* ---------------------------------------------------------------------------
   Navigation
   --------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background-color 0.4s var(--ease-out),
              box-shadow 0.4s var(--ease-out);
}

.nav.nav--scrolled {
  background-color: rgba(245, 239, 227, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(35, 21, 8, 0.08);
}

/* When the mobile menu is open, lift the whole nav above every section's
   stacking context so the full-screen overlay actually covers the page.
   Also drop backdrop-filter: it creates a containing block that would trap
   the position:fixed overlay inside the 72px nav height. */
.nav.nav--menu-open {
  z-index: 1000;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav__logo {
  flex-shrink: 0;
  z-index: 201;
  position: relative;
  display: block;
}

/* Dual-logo cross-fade: og (dark text) ↔ white (over dark hero) */
.nav__logo-img {
  height: 48px;
  width: auto;
  display: block;
  transition: opacity 0.45s ease;
}

.nav__logo-img--white {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

/* Nav over the dark hero — light links, white logo */
.nav--over-dark .nav__logo-img--og    { opacity: 0; }
.nav--over-dark .nav__logo-img--white { opacity: 1; }

.nav--over-dark .nav__link {
  color: rgba(245, 239, 227, 0.88);
}

.nav--over-dark .nav__link:hover {
  color: var(--ivory);
  opacity: 1;
}

/* Desktop link list */
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  list-style: none;
}

.nav__link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--coffee);
  opacity: 0.75;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  transition: opacity 0.2s;
}

.nav__link:hover {
  opacity: 1;
}

.nav__chevron {
  transition: transform 0.25s var(--ease-out);
  flex-shrink: 0;
}

.nav__item--has-dropdown {
  position: relative;
}

/* Desktop dropdown */
.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background-color: var(--ivory);
  border: 1px solid var(--oat);
  border-radius: 4px;
  padding: 0.5rem 0;
  min-width: 200px;
  list-style: none;
  box-shadow: 0 8px 24px rgba(35, 21, 8, 0.1);
  z-index: 210;
  /* hidden but kept in flow for accessible hover; no dead zone */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s var(--ease-out),
              transform 0.22s var(--ease-out),
              visibility 0.22s;
}

/* Invisible bridge so the cursor never crosses a gap between toggle + menu */
.nav__dropdown::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.nav__item--has-dropdown:hover .nav__dropdown,
.nav__item--has-dropdown:focus-within .nav__dropdown,
.nav__item--has-dropdown.is-open .nav__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(12px);
}

.nav__item--has-dropdown:hover .nav__chevron,
.nav__item--has-dropdown.is-open .nav__chevron {
  transform: rotate(180deg);
}

.nav__item--has-dropdown:hover .nav__link {
  opacity: 1;
}

.nav__dropdown-link {
  display: block;
  padding: 0.55rem 1.25rem;
  font-size: var(--text-sm);
  color: var(--coffee);
  opacity: 0.7;
  transition: opacity 0.15s, background-color 0.15s;
  white-space: nowrap;
}

.nav__dropdown-link:hover {
  opacity: 1;
  background-color: var(--oat);
}

.nav__item--cta {
  margin-left: 0.5rem;
}

/* Hamburger — hidden on desktop */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 201;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background-color: var(--coffee);
  transition: transform 0.3s var(--ease-out), opacity 0.25s, background-color 0.45s ease;
  transform-origin: center;
}

/* Over dark hero: hamburger lines go ivory (only when NOT open — X stays dark on ivory overlay) */
.nav--over-dark .nav__hamburger:not(.is-open) span {
  background-color: var(--ivory);
}

/* Hamburger → X when open */
.nav__hamburger.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav__hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__hamburger.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ---------------------------------------------------------------------------
   Preloader
   --------------------------------------------------------------------------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.preloader__svg {
  display: block;
  overflow: visible;
}

/* All three logo elements start hidden — GSAP sets and animates them */
.pl-fill,
.pl-dot {
  opacity: 0;
}
/* pl-stroke dashoffset is set by JS at runtime via getTotalLength() */

/* ---------------------------------------------------------------------------
   Section 1 — Hero (full-viewport, dark placeholder ground)
   --------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100dvh;
  min-height: 100vh; /* fallback for browsers without dvh */
  display: flex;
  align-items: center;
  overflow: hidden;
  /* Fallback colour while hero-bg.webp loads */
  background-color: #1A0F08;
}

/* Hero background image — Ken Burns slow zoom, face anchored right */
.hero__bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero-bg.webp') right center / cover no-repeat;
  z-index: 0;
  animation: kenBurns 25s ease-in-out infinite alternate;
  will-change: transform;
  transform-origin: center center;
}

@keyframes kenBurns {
  from { transform: scale(1.0); }
  to   { transform: scale(1.06); }
}

/* Video sits inside .hero__bg — covers the webp fallback once loaded */
.hero__video-wrap {
  position: absolute;
  inset: 0;
  opacity: 0; /* GSAP fades in once video canplay */
}

.hero__video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
}

/* Top gradient — protects nav links and logo over the video */
.hero__top-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(8, 3, 1, 0.52) 0%,
    rgba(8, 3, 1, 0.10) 20%,
    transparent 38%
  );
}

/* Drifting warm glow — amber envelope that breathes and shifts slowly */
.hero__glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
    ellipse 72% 68% at 24% 52%,
    rgba(74, 53, 39, 0.82) 0%,
    rgba(46, 29, 16, 0.55) 42%,
    transparent 70%
  );
  animation: glowDrift 14s ease-in-out infinite alternate;
  pointer-events: none;
  will-change: transform, opacity;
}

@keyframes glowDrift {
  0%   { opacity: 0.60; transform: scale(1.00) translate(  0%,    0%); }
  33%  { opacity: 0.80; transform: scale(1.04) translate( 2.5%,  -1%); }
  66%  { opacity: 0.70; transform: scale(1.02) translate(-1.5%,  1.5%); }
  100% { opacity: 0.75; transform: scale(1.06) translate( 1.5%, -0.5%); }
}

/* Floating dust particles — canvas element, JS-driven */
.hero__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Film grain — tiled SVG noise, animated position for movement */
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  animation: grainShift 0.8s steps(1) infinite;
}

@keyframes grainShift {
  0%   { background-position:   0px   0px; }
  12%  { background-position: -20px -10px; }
  25%  { background-position:  15px  30px; }
  37%  { background-position: -40px   5px; }
  50%  { background-position:  10px -25px; }
  62%  { background-position: -30px  20px; }
  75%  { background-position:  35px -15px; }
  87%  { background-position: -10px  40px; }
  100% { background-position:   0px   0px; }
}

/* Vignette — deepens edges and corners for cinematic depth */
.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(
    ellipse 84% 80% at 50% 50%,
    transparent 38%,
    rgba(6, 2, 0, 0.60) 100%
  );
}

/* Scrim — keeps text readable, left-zone only */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(20, 8, 2, 0.72) 0%,
    rgba(20, 8, 2, 0.42) 38%,
    rgba(20, 8, 2, 0.00) 68%
  );
}

/* Quiet brand mark — right half, very low opacity, partially cropped */
.hero__brand-mark {
  position: absolute;
  right: -6%;
  top: 50%;
  transform: translateY(-48%);
  width: clamp(280px, 38vw, 560px);
  z-index: 3;
  opacity: 0.055;
  pointer-events: none;
  user-select: none;
}

.hero__brand-mark img {
  width: 100%;
  height: auto;
  display: block;
}

/* Content layer — .container handles horizontal alignment (same as nav).
   Horizontal padding NOT set here — comes from .container.
   TEXT COLOUR NOTE: ivory on dark bg. When video lands, adjust here only
     via .hero--light-bg override; do not change tokens.                      */
.hero__content {
  position: relative;
  z-index: 3;
  /* Vertical: clear the nav, breathe top + bottom */
  padding-top:    calc(var(--nav-h) + clamp(2.5rem, 5vh, 4rem));
  padding-bottom: clamp(3rem, 6vh, 4.5rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2.5vh, 2rem);
}

.hero__eyebrow {
  color: var(--chestnut);
  /* opacity/y set by GSAP at runtime */
}

/* Headline — masked curtain reveal per line */
.hero__headline {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ivory);
  max-width: 15ch;
}

/* The clip container — hides the line below until GSAP lifts it */
.hero__line-wrap {
  display: block;
  overflow: hidden;
  /* slight extra height so descenders aren't clipped on reveal */
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

/* The moving element GSAP animates from translateY(105%) → 0 */
.hero__line {
  display: block;
}

.hero__headline em {
  font-style: italic;
  color: var(--chestnut);
}

.hero__sub {
  font-size: clamp(0.88rem, 1.15vw, 1.02rem);
  line-height: 1.68;
  color: var(--ivory);
  opacity: 0.6;
  max-width: 46ch;
}

/* CTA — russet fill, darkens + lifts on hover, subtle glow */
.btn--cta {
  background-color: var(--russet);
  color: var(--ivory);
  padding: 0.9em 2.4em;
  transition: background-color 0.35s ease,
              transform      0.28s ease,
              box-shadow     0.35s ease;
}

.btn--cta:hover {
  background-color: var(--ink-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(139, 94, 60, 0.35);
}

/* Scroll cue — bottom-center, fades in last via GSAP */
.hero__scroll-cue {
  position: absolute;
  bottom: clamp(1.5rem, 3.5vh, 2.5rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 3;
  pointer-events: none;
  /* starts hidden — GSAP fades in */
  opacity: 0;
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 38px;
  background: var(--ivory);
  opacity: 0.35;
  transform-origin: top center;
  animation: scrollDrop 2.4s ease-in-out infinite;
}

@keyframes scrollDrop {
  0%   { transform: scaleY(0); opacity: 0.35; }
  45%  { transform: scaleY(1); opacity: 0.35; }
  80%  { transform: scaleY(1); opacity: 0;    }
  100% { transform: scaleY(0); opacity: 0;    }
}

.hero__scroll-label {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory);
  opacity: 0.32;
}

/* ---------------------------------------------------------------------------
   Section 2 — Positioning
   --------------------------------------------------------------------------- */
.positioning {
  background-color: var(--oat);
  padding-block: var(--space-xl);
  position: relative;
  overflow: hidden;
}

/* Soft warm glow in the corner so the flat oat ground has depth */
.positioning::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 50%;
  height: 140%;
  background: radial-gradient(circle at center, rgba(196, 168, 130, 0.30) 0%, rgba(196, 168, 130, 0) 65%);
  pointer-events: none;
}

.positioning > .container {
  position: relative;
  z-index: 1;
}

.positioning__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.positioning__lead {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.positioning__quote {
  font-size: var(--text-2xl);
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--russet);
  max-width: 18ch;
}

.positioning__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding-top: 0.5rem;
  position: relative;
}

/* Quiet accent bar to the left of the body copy */
.positioning__body::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 0.6rem;
  width: 3px;
  height: 3.5rem;
  background: linear-gradient(180deg, var(--russet), transparent);
}

.positioning__text {
  font-size: var(--text-md);
  line-height: 1.8;
  opacity: 0.85;
}

/* ---------------------------------------------------------------------------
   Section 3 — The Metamorphosis (two-column sticky-scroll)
   --------------------------------------------------------------------------- */
/* ---------------------------------------------------------------------------
   Section 3 — Metamorphosis (CSS-sticky right panel, scroll-driven highlight)
   Left column scrolls; right panel is sticky so it stays in view the whole time.
   Desktop: heading + two-column grid (left list / right square video panel).
   Mobile: stacked, each stage shows its .webp still.
   --------------------------------------------------------------------------- */
.metamorphosis {
  background-color: var(--ivory);
  padding-top: calc(var(--nav-h) + clamp(2rem, 4vh, 3rem));
  padding-bottom: clamp(4rem, 8vh, 6rem);
  position: relative;
}

/* Faint butterfly watermark anchored inside the section — no overflow clipping needed */
.metamorphosis::before {
  content: '';
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 340px;
  height: 340px;
  background: url('../images/logo/logo-mini-white.png') center / contain no-repeat;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

/* Keep content above the watermark */
.metamorphosis > .container {
  position: relative;
  z-index: 1;
}

/* Section head — eyebrow + heading grouped */
.metamorphosis__head {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: clamp(3rem, 7vh, 5rem);
}

/* Section heading — quiet, restrained sub-heading (matches the reference:
   small, muted, not the dominant page-scale serif) */
.metamorphosis__heading {
  font-size: var(--text-xl);
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.3;
  color: rgba(35, 21, 8, 0.6);
  margin-bottom: 0;
}

/* Two-column grid: left scrolls (inside container), right sticks + bleeds right */
.metamorphosis__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start; /* must be start for sticky to work */
}

/* Left: stacked stages with enough height to scroll through */
.metamorphosis__left {
  display: flex;
  flex-direction: column;
}

/* Each stage — tall enough for a deliberate scroll moment */
.metamorphosis__stage {
  min-height: 48vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(2rem, 4vh, 3.5rem);
  border-top: 1px solid rgba(140, 92, 53, 0.14);
  transition: opacity 0.45s ease;
}

.metamorphosis__stage:first-child {
  border-top: none;
}

/* Mobile-only inline still — hidden on desktop */
.meta-stage__visual {
  display: none;
  position: relative;
  margin-bottom: var(--space-md);
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background-color: var(--oat);
}

.meta-stage__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Video sits over the still and fades in once it can play */
.meta-stage__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.meta-stage__video.is-playing {
  opacity: 1;
}

.meta-stage__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--russet);
  margin-bottom: 0.4rem;
}

.meta-stage__text {
  font-size: var(--text-md);
  line-height: 1.75;
  max-width: 44ch;
  color: var(--coffee);
}

/* Right: sticky cell — contained height (gaps above & below like the reference),
   bled to the screen's right edge via negative margin so the panel fills it and
   the dots anchor to the true edge. */
.metamorphosis__right {
  position: sticky;
  top: clamp(2rem, 8vh, 6rem);
  align-self: start;
  height: clamp(420px, 78vh, 760px);
  /* widen rightward to the viewport edge: gutter = (100vw - container)/2 */
  margin-right: calc((100vw - min(100vw, var(--max-w))) / -2);
}

/* Contained panel — fills the (bled) sticky cell edge to edge.
   width extends by the same gutter the cell was bled, reaching the screen edge. */
.meta__panel {
  position: relative;
  width: calc(100% + (100vw - min(100vw, var(--max-w))) / 2);
  height: 100%;
  min-height: 240px;
  border-radius: 14px 0 0 14px;
  overflow: hidden;
  background-color: var(--oat);
  box-shadow: -24px 0 60px rgba(35, 21, 8, 0.12);
}

/* Warm gradient scrim — gives the pale media depth + brand tone.
   Darker at the bottom-left where the caption sits. */
.meta__panel-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to top right, rgba(35, 21, 8, 0.78) 0%, rgba(35, 21, 8, 0.30) 38%, rgba(35, 21, 8, 0) 68%),
    linear-gradient(to top, rgba(35, 21, 8, 0.45) 0%, rgba(35, 21, 8, 0) 45%);
}

/* Faint brand mark, top-left */
.meta__panel-mark {
  position: absolute;
  top: clamp(1.5rem, 3vw, 2.5rem);
  left: clamp(1.5rem, 3vw, 2.5rem);
  width: clamp(48px, 6vw, 72px);
  aspect-ratio: 168 / 182;
  background: url('../images/logo/logo-mini-white.png') center / contain no-repeat;
  opacity: 0.55;
  z-index: 3;
  pointer-events: none;
}

/* Overlaid stage caption — bottom-left */
.meta__panel-caption {
  position: absolute;
  left: clamp(1.75rem, 3.5vw, 3rem);
  bottom: clamp(1.75rem, 3.5vw, 3rem);
  z-index: 3;
  pointer-events: none;
}

.meta__panel-stage {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--chestnut);
  margin-bottom: 0.5rem;
}

.meta__panel-name {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  line-height: 1.1;
  color: var(--ivory);
  /* subtle fade/slide when the stage changes (toggled via .is-switching) */
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out);
}

.meta__panel-name.is-switching {
  opacity: 0;
  transform: translateY(8px);
}

/* Slides: stacked, cross-fade via opacity */
.meta__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.meta__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Still image — always visible as base layer */
.meta__slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Video on top — fades in on canplay; img stays as fallback if no mp4 */
.meta__slide-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0;
  transition: opacity 1s ease;
}

.meta__slide-video.is-playing {
  opacity: 1;
}

/* Dots — bottom-centre of panel (default horizontal) */
.meta__indicator {
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 4;
}

/* Vertical variant — stacked on the right edge, vertically centred */
.meta__indicator--vertical {
  flex-direction: column;
  left: auto;
  bottom: auto;
  top: 50%;
  right: clamp(1rem, 2vw, 2rem);
  transform: translateY(-50%);
  gap: 10px;
}

.meta__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: rgba(245, 239, 227, 0.4);
  box-shadow: 0 0 0 1px rgba(35, 21, 8, 0.25);
  transition: background-color 0.35s, transform 0.35s, box-shadow 0.35s;
}

.meta__dot.is-active {
  background-color: var(--chestnut);
  box-shadow: 0 0 0 2px rgba(245, 239, 227, 0.5);
  transform: scale(1.6);
}

/* ---------------------------------------------------------------------------
   Section 4 — Services
   --------------------------------------------------------------------------- */
.services {
  background-color: var(--linen);
  background-image: linear-gradient(180deg, var(--ivory) 0%, var(--linen) clamp(60px, 10vh, 140px));
  padding-block: var(--space-xl);
  position: relative;
  overflow: hidden;
}

.services > .container {
  position: relative;
  z-index: 1;
}

.services__header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.services__intro {
  font-size: var(--text-lg);
  max-width: 60ch;
  margin-inline: auto;
  margin-top: var(--space-sm);
  opacity: 0.8;
  line-height: 1.7;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.service-tile {
  position: relative;
  background-color: var(--ivory);
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  border: 1px solid var(--oat);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out),
              box-shadow 0.4s var(--ease-out),
              border-color 0.4s var(--ease-out);
}

/* Accent bar that wipes across the top on hover */
.service-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--russet), var(--chestnut));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.service-tile:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 18px 44px rgba(35, 21, 8, 0.10), 0 4px 12px rgba(35, 21, 8, 0.05);
}

.service-tile:hover::before {
  transform: scaleX(1);
}

.service-tile__number {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--chestnut);
  line-height: 1;
  user-select: none;
  transition: color 0.4s var(--ease-out);
}

.service-tile:hover .service-tile__number {
  color: var(--russet);
}

.service-tile__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  line-height: 1.2;
  color: var(--coffee);
}

.service-tile__body {
  font-size: var(--text-base);
  line-height: 1.75;
  opacity: 0.8;
  flex: 1;
}

/* ---------------------------------------------------------------------------
   Section 6 — Concierge Care
   --------------------------------------------------------------------------- */
.concierge {
  background-color: var(--ivory);
  background-image: linear-gradient(180deg, var(--linen) 0%, var(--ivory) clamp(60px, 10vh, 140px));
  padding-block: var(--space-xl);
  position: relative;
  overflow: hidden;
}

.concierge > .container {
  position: relative;
  z-index: 1;
}

.concierge__header {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-lg);
  align-items: center;
  margin-bottom: var(--space-lg);
}

.concierge__header-text {
  max-width: 52ch;
}

.concierge__panel {
  min-height: clamp(180px, 24vh, 240px);
}

.concierge__lead {
  font-size: var(--text-xl);
  font-family: var(--font-heading);
  margin-top: var(--space-sm);
  line-height: 1.35;
}

.concierge__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  counter-reset: concierge;
}

.concierge-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding-top: var(--space-md);
  border-top: 2px solid var(--oat);
  transition: border-color 0.4s var(--ease-out);
}

/* Numbered marker that sits on the top border */
.concierge-item::before {
  counter-increment: concierge;
  content: '0' counter(concierge);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
  color: var(--chestnut);
  margin-bottom: 0.25rem;
  transition: color 0.4s var(--ease-out);
}

.concierge-item:hover {
  border-color: var(--russet);
}

.concierge-item:hover::before {
  color: var(--russet);
}

.concierge-item__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--coffee);
  line-height: 1.2;
}

.concierge-item__body {
  font-size: var(--text-sm);
  line-height: 1.75;
  opacity: 0.75;
}

.concierge__footer {
  margin-top: var(--space-lg);
}

/* ---------------------------------------------------------------------------
   Section 7 — Who This Is For
   --------------------------------------------------------------------------- */
.audience {
  background-color: var(--linen);
  padding-block: var(--space-xl);
}

.audience__inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--space-lg);
  align-items: start;
}

.audience__aside {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.audience__heading {
  font-size: var(--text-2xl);
  font-family: var(--font-heading);
  line-height: 1.2;
}

.audience__panel {
  min-height: clamp(220px, 30vh, 320px);
}

.audience__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.audience__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: audience;
}

.audience__item {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  padding-block: clamp(1.25rem, 3vh, 1.75rem);
  border-bottom: 1px solid var(--oat);
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--coffee);
  transition: padding-left 0.4s var(--ease-out), color 0.4s var(--ease-out);
}

.audience__item:first-child {
  border-top: 1px solid var(--oat);
}

/* Large serif index instead of a small dot */
.audience__item::before {
  counter-increment: audience;
  content: '0' counter(audience);
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: var(--text-md);
  color: var(--chestnut);
  letter-spacing: 0.05em;
  margin: 0;
  transition: color 0.4s var(--ease-out);
}

.audience__item:hover {
  padding-left: 0.75rem;
}

.audience__item:hover::before {
  color: var(--russet);
}

.audience__closing {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--russet);
  font-style: italic;
  margin-top: var(--space-md);
}

/* ---------------------------------------------------------------------------
   Section 9 — Enquiry / Closing CTA + Form
   --------------------------------------------------------------------------- */
.enquiry {
  background-color: var(--coffee);
  /* Subtle layered texture: soft warm glow + fine diagonal weave */
  background-image:
    radial-gradient(120% 80% at 85% 0%, rgba(140, 92, 53, 0.28) 0%, rgba(140, 92, 53, 0) 55%),
    radial-gradient(90% 70% at 0% 100%, rgba(196, 168, 130, 0.10) 0%, rgba(196, 168, 130, 0) 50%),
    repeating-linear-gradient(45deg, rgba(245, 239, 227, 0.018) 0px, rgba(245, 239, 227, 0.018) 1px, transparent 1px, transparent 9px);
  padding-block: var(--space-xl);
  position: relative;
  overflow: hidden;
}

/* Faint brand mark, bleeding off the top-left of the CTA */
.enquiry::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -6%;
  width: clamp(260px, 30vw, 480px);
  aspect-ratio: 168 / 182;
  background: url('../images/logo/logo-mini-white.png') center / contain no-repeat;
  opacity: 0.04;
  transform: rotate(-12deg);
  pointer-events: none;
}

.enquiry > .container {
  position: relative;
  z-index: 1;
}

.enquiry__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.enquiry__left {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding-top: var(--space-sm);
}

.enquiry__label {
  color: var(--russet);
}

.enquiry__headline {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--ivory);
  line-height: 1.2;
}

.enquiry__body {
  font-size: var(--text-md);
  color: var(--ivory);
  opacity: 0.7;
  line-height: 1.8;
  max-width: 44ch;
}

.enquiry__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory);
  opacity: 0.6;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background-color: rgba(245, 239, 227, 0.06);
  border: 1px solid rgba(245, 239, 227, 0.15);
  border-radius: 2px;
  padding: 0.8em 1em;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--ivory);
  outline: none;
  transition: border-color 0.25s;
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(245, 239, 227, 0.3);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--russet);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C4A882' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1em center;
  padding-right: 2.5em;
  cursor: pointer;
}

.form-select option {
  background-color: var(--coffee);
  color: var(--ivory);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.form-submit {
  margin-top: var(--space-xs);
  align-self: flex-start;
}

.form-note {
  font-size: var(--text-xs);
  color: var(--ivory);
  opacity: 0.4;
  letter-spacing: 0.05em;
}

/* ---------------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------------- */
.footer {
  /* Deeper than the CTA's coffee, with a warm russet accent strip on top so
     the two dark sections read as distinct bands rather than one block. */
  background-color: #1A0F05;
  border-top: 3px solid var(--russet);
  padding-block: var(--space-lg);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-md);
  align-items: start;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(245, 239, 227, 0.08);
  margin-bottom: var(--space-md);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__logo img {
  height: 46px;
  width: auto;
}

.footer__tagline {
  font-size: var(--text-sm);
  color: var(--ivory);
  opacity: 0.45;
  max-width: 28ch;
  line-height: 1.6;
}

.footer__col-title {
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--chestnut);
  margin-bottom: var(--space-sm);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__link {
  font-size: var(--text-sm);
  color: var(--ivory);
  opacity: 0.55;
  transition: opacity 0.2s;
}

.footer__link:hover {
  opacity: 1;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: var(--text-sm);
  color: var(--ivory);
  opacity: 0.55;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.footer__icon {
  flex-shrink: 0;
  margin-top: 0.15em;
  color: var(--chestnut);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copy {
  font-size: var(--text-xs);
  color: var(--ivory);
  opacity: 0.3;
  letter-spacing: 0.04em;
}

/* ---------------------------------------------------------------------------
   Brand watermark — large, single, non-repeating mini-logo mark.
   Uses the SVG as a mask so colour + opacity are controllable. Bleeds off an
   edge so it reads as quiet texture, never a centred stamp.
   --------------------------------------------------------------------------- */
.brand-watermark {
  position: absolute;
  width: clamp(280px, 34vw, 560px);
  aspect-ratio: 168 / 182;
  background: url('../images/logo/logo-mini-og.png') center / contain no-repeat;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

.brand-watermark--right {
  top: 50%;
  right: clamp(-120px, -6vw, -40px);
  transform: translateY(-50%) rotate(8deg);
}

.brand-watermark--left {
  bottom: -8%;
  left: clamp(-120px, -6vw, -40px);
  transform: rotate(-10deg);
}

/* ---------------------------------------------------------------------------
   Brand panel — animated gradient + logo-pattern block used to fill empty
   columns. A warm gradient ground, a drifting radial glow, a large centred
   brand mark that breathes, and a faint tiled logo texture on top.
   --------------------------------------------------------------------------- */
.brand-panel {
  position: relative;
  width: 100%;
  min-height: clamp(280px, 38vh, 420px);
  border-radius: 10px;
  overflow: hidden;
  background:
    linear-gradient(140deg, var(--russet) 0%, var(--coffee) 75%);
  isolation: isolate;
}

/* Drifting amber glow */
.brand-panel::before {
  content: '';
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 30% 30%, rgba(196, 168, 130, 0.55) 0%, rgba(196, 168, 130, 0) 55%);
  animation: panel-drift 14s ease-in-out infinite alternate;
  z-index: 0;
}

/* Faint tiled logo texture */
.brand-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/logo/logo-mini-white.png') repeat;
  background-size: 90px;
  opacity: 0.04;
  z-index: 0;
}

/* Centred breathing brand mark */
.brand-panel__mark {
  position: absolute;
  top: 38%;
  left: 50%;
  width: clamp(72px, 10vw, 120px);
  aspect-ratio: 168 / 182;
  transform: translate(-50%, -50%);
  background: url('../images/logo/logo-mini-white.png') center / contain no-repeat;
  opacity: 0.92;
  animation: mark-breathe 6s ease-in-out infinite;
  z-index: 1;
}

/* When the panel has a caption, pull the mark up so the two never collide */
.brand-panel:has(.brand-panel__caption) .brand-panel__mark {
  top: 34%;
}

/* Optional caption sitting at the bottom of the panel */
.brand-panel__caption {
  position: absolute;
  left: clamp(1.25rem, 3vw, 2rem);
  bottom: clamp(1.25rem, 3vw, 2rem);
  right: clamp(1.25rem, 3vw, 2rem);
  color: rgba(245, 239, 227, 0.92);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  line-height: 1.3;
  z-index: 2;
}

.brand-panel__caption span {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--chestnut);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

@keyframes panel-drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(12%, 10%) scale(1.15); }
}

@keyframes mark-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.85; }
  50%      { transform: translate(-50%, -50%) scale(1.06); opacity: 1; }
}

/* Animated gradient hairline — a thin moving accent for empty rows */
.gradient-rule {
  width: 100%;
  height: 2px;
  border: none;
  background: linear-gradient(90deg, transparent, var(--chestnut), var(--russet), var(--chestnut), transparent);
  background-size: 200% 100%;
  animation: rule-shift 6s linear infinite;
  opacity: 0.6;
}

@keyframes rule-shift {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-panel::before,
  .brand-panel__mark,
  .gradient-rule { animation: none; }
}

/* ---------------------------------------------------------------------------
   Decorative / Utility
   --------------------------------------------------------------------------- */
.divider-line {
  width: 100%;
  height: 1px;
  background-color: var(--oat);
}

.section-heading {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  line-height: 1.1;
  color: var(--coffee);
}

/* Scroll-reveal utility (used by GSAP) */
.reveal {
  opacity: 0;
  transform: translateY(20px);
}

/* Staggered group items — JS sets initial state, but guard for no-JS */
.reveal-item {
  opacity: 0;
  transform: translateY(24px);
}

/* If JS/GSAP is unavailable, never hide content */
.no-anim .reveal,
.no-anim .reveal-item {
  opacity: 1 !important;
  transform: none !important;
}

/* ---------------------------------------------------------------------------
   Responsive — Tablet (≤ 1024px)
   --------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .concierge__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .concierge__header {
    grid-template-columns: 1fr;
  }

  .audience__inner {
    grid-template-columns: 1fr;
  }

  .audience__aside {
    position: static;
  }

  .audience__panel {
    max-width: 480px;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

/* ---------------------------------------------------------------------------
   Responsive — Mobile (≤ 768px)
   --------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --nav-h: 60px;
  }

  /* Nav mobile — full-screen overlay, content top-anchored and left-aligned */
  .nav__links {
    display: none;
    position: fixed;
    inset: 0;
    background-color: var(--ivory);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    z-index: 205; /* above .nav bar (200) but below the logo+hamburger (see below) */
    overflow-y: auto;
    /* clear the nav bar so the logo + X at the top stay visible above the list */
    padding: calc(var(--nav-h) + var(--space-md)) clamp(1.5rem, 6vw, 2.5rem) var(--space-lg);
  }

  .nav__links.is-open {
    display: flex;
  }

  /* List items: left-aligned rows with hairline separators */
  .nav__links > li {
    width: 100%;
    border-bottom: 1px solid rgba(140, 92, 53, 0.14);
  }

  .nav__links > li:first-child {
    border-top: 1px solid rgba(140, 92, 53, 0.14);
  }

  /* When the overlay is open, links are always dark on the ivory ground,
     even if the nav is in its over-dark (light-text) state at the top. */
  .nav__link,
  .nav--over-dark .nav__link {
    font-size: var(--text-lg);
    opacity: 1;
    justify-content: space-between; /* label left, chevron right */
    color: var(--coffee);
    width: 100%;
    padding-block: clamp(1rem, 2.6vh, 1.4rem);
    letter-spacing: 0.02em;
  }

  /* Keep the nav bar's full logo + hamburger above the overlay so they read
     as the menu's header (logo top-left, X top-right). */
  .nav.nav--menu-open .nav__logo { z-index: 207; }

  .nav__hamburger {
    z-index: 207;
    display: flex;
  }

  /* Once open, the X is always dark on the ivory overlay */
  .nav--over-dark .nav__hamburger.is-open span {
    background-color: var(--coffee);
  }

  /* When the menu is open, force the dark (og) logo so it reads on ivory */
  .nav.nav--menu-open .nav__logo-img--og    { opacity: 1; }
  .nav.nav--menu-open .nav__logo-img--white { opacity: 0; }

  /* Services mobile dropdown — inline accordion, smooth height reveal */
  .nav__item--has-dropdown {
    display: block;
  }

  .nav__dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    padding: 0;
    /* animate open via max-height */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: max-height 0.4s var(--ease-out), opacity 0.3s ease, padding 0.4s var(--ease-out);
  }

  .nav__item--has-dropdown.is-open .nav__dropdown {
    max-height: 320px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    padding-bottom: 0.75rem;
  }

  /* Rotate chevron when open */
  .nav__item--has-dropdown.is-open .nav__chevron {
    transform: rotate(180deg);
  }

  .nav__dropdown-link {
    font-size: var(--text-base);
    padding: 0.55rem 0 0.55rem 1rem;
    opacity: 0.7;
    border-left: 2px solid var(--oat);
    margin-left: 0.25rem;
  }

  .nav__item--cta {
    margin-left: 0;
    margin-top: var(--space-md);
    border-bottom: none !important;
  }

  /* CTA button fills width and sits left-aligned in the column */
  .nav__item--cta .btn {
    width: 100%;
    text-align: center;
  }

  /* Hero — mobile: static mobile background image, no video */
  .hero__video-wrap {
    display: none;
  }

  .hero__bg {
    background-image: url('../images/main-bg-mob.webp');
    background-position: center center;
    animation: none; /* no ken-burns on the mobile still */
  }

  .hero__headline {
    font-size: clamp(2.2rem, 9vw, 3rem);
  }

  .hero__scrim {
    background: linear-gradient(
      to top,
      rgba(30, 12, 5, 0.85) 0%,
      rgba(30, 12, 5, 0.45) 55%,
      rgba(30, 12, 5, 0.00) 100%
    );
  }

  /* Positioning */
  .positioning__inner {
    grid-template-columns: 1fr;
  }

  /* Metamorphosis — no pin on mobile; stack with stills above each stage text */
  .metamorphosis {
    padding-top: calc(var(--nav-h) + var(--space-md));
  }

  .metamorphosis__heading {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-md);
  }

  .metamorphosis__layout {
    grid-template-columns: 1fr;
  }

  .metamorphosis__right {
    display: none;
  }

  .meta-stage__visual {
    display: block;
    max-width: min(420px, 100%);
  }

  .metamorphosis__stage {
    min-height: auto;
    padding-block: var(--space-md);
    border-top: 1px solid rgba(140, 92, 53, 0.14);
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .metamorphosis__stage:first-child {
    border-top: none;
  }

  /* Services */
  .services__grid {
    grid-template-columns: 1fr;
  }

  /* Audience */
  .audience__inner {
    grid-template-columns: 1fr;
  }

  .audience__heading {
    position: static;
  }

  /* Enquiry */
  .enquiry__inner {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer__inner {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

/* ---------------------------------------------------------------------------
   Reduced motion
   --------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hero__eyebrow,
  .hero__headline,
  .hero__sub,
  .hero__cta,
  .hero__video-wrap {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Freeze all hero atmosphere animations */
  .hero__bg,
  .hero__glow,
  .hero__grain {
    animation: none !important;
    transform: none !important;
  }

  .metamorphosis__stage,
  .metamorphosis__heading {
    opacity: 1 !important;
    transform: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
