@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Exact Brand Logo Chemistry */
  --color-canvas: #F7F3EB;            /* Warm Sand Linen Background */
  --color-sand: #E5D7CA;              /* Official Logo Background */
  --color-sand-soft: #EFE6DC;         /* Soft Sand Surface */
  --color-sand-light: #F4ECE3;        /* Highlight Parchment */
  --color-taupe: #6B5C52;             /* Official Logo Lettering Bronze */
  --color-taupe-dark: #473B34;        /* Deep Espresso Bronze */
  --color-taupe-muted: #8A7B71;       /* Subtitle Bronze */
  --color-charcoal: #151311;          /* Deepest Charcoal Black */
  --color-white: #FFFFFF;
  
  /* CTAs (Strict High Contrast) */
  --color-gold: #D4AF37;              /* Solid Gold Call CTA */
  --color-gold-hover: #C49E26;
  --color-whatsapp: #25D366;          /* Solid WhatsApp Emerald */
  --color-whatsapp-hover: #1EBD56;

  /* Typography */
  --font-heading: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --container-max: 1240px;
  --container-narrow: 920px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1.25rem;
  --spacing-md: 2.5rem;
  --spacing-lg: 5rem;
  --spacing-xl: 8rem;

  /* Cinematic Master Easing Curve */
  --ease-cinema: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  background-color: var(--color-canvas);
}

body {
  font-family: var(--font-body);
  color: var(--color-charcoal);
  background-color: var(--color-canvas);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--dur-sm) var(--ease-drape), opacity var(--dur-sm) var(--ease-drape);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   1. MOTION SYSTEM — TIMING TOKENS
   Every reveal below is transition-driven and gated behind `html.js`, so the
   page renders complete and readable if JavaScript never runs.
   ========================================================================== */
:root {
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-glide: cubic-bezier(0.22, 1, 0.36, 1);
  /* The house curve: a long, almost weightless tail. Everything slow uses it. */
  --ease-drape: cubic-bezier(0.15, 0.9, 0.15, 1);

  /* One tempo ladder for the whole site. Nothing sets a raw duration; every
     reveal borrows a rung, so the site can be slowed or quickened in one place. */
  --dur-xs: 0.75s;    /* micro states — colour, opacity of small parts   */
  --dur-sm: 1.15s;    /* hovers, underlines, small lifts                 */
  --dur-md: 1.7s;     /* the standard reveal                            */
  --dur-lg: 2.3s;     /* travel, blur clearing, rules drawing           */
  --dur-xl: 3s;       /* photographic wipes and un-zooms                */
  --dur-2xl: 4s;      /* hero blooms                                    */

  --word-step: 96ms;        /* per-word assembly cadence */
  --char-step: 46ms;        /* per-letter cadence (page heroes) */
  --card-step: 195ms;       /* per-card stagger */
}

/* Stagger index carriers — the delay-* classes now feed calc() chains */
.delay-1 { --i: 0; }
.delay-2 { --i: 1; }
.delay-3 { --i: 2; }
.delay-4 { --i: 3; }
.delay-5 { --i: 4; }
.delay-6 { --i: 5; }

/* Legacy hook: the breathing text wrapper is now an inert passthrough */
.text-breathe { display: inline; }

/* ==========================================================================
   2. SPLIT-TEXT ASSEMBLY (words rise out of their own mask, one by one)
   ========================================================================== */
.js .split .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.12em 0.05em 0.2em;
  margin: -0.12em -0.05em -0.2em;
}

.js .split .w-i {
  display: inline-block;
  opacity: 0;
  transform: translateY(112%) rotate(2.4deg);
  filter: blur(8px);
  transition:
    transform var(--dur-lg) var(--ease-drape),
    opacity var(--dur-md) var(--ease-soft),
    filter var(--dur-md) var(--ease-soft);
  transition-delay: calc(var(--d, 0ms) + var(--wi, 0) * var(--word-step));
  will-change: transform, opacity;
}

.js .split.is-in .w-i {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
  filter: blur(0);
}

/* Letter cascade — reserved for the short, declarative page-hero titles */
.js .split-chars .c {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.42em) scale(0.84);
  filter: blur(10px);
  transition:
    transform var(--dur-lg) var(--ease-drape),
    opacity var(--dur-md) var(--ease-soft),
    filter var(--dur-md) var(--ease-soft);
  transition-delay: calc(var(--d, 0ms) + var(--ci, 0) * var(--char-step));
  will-change: transform, opacity;
}

.js .split-chars.is-in .c {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Letter-spacing condense — the creed line breathes open, then settles shut */
.js .reveal-condense {
  display: inline-block;
  opacity: 0;
  letter-spacing: 0.4em;
  transform: translateY(26px);
  filter: blur(14px);
  transition:
    opacity var(--dur-lg) var(--ease-soft),
    letter-spacing 3.4s var(--ease-drape),
    transform var(--dur-xl) var(--ease-drape),
    filter var(--dur-lg) var(--ease-soft);
  transition-delay: var(--d, 0ms);
}

.js .reveal-condense.is-in {
  opacity: 1;
  letter-spacing: -0.025em;
  transform: translateY(0);
  filter: blur(0);
}

/* Eyebrow — tracks open from tight to wide, then draws its own hairline */
.js .reveal-eyebrow {
  position: relative;
  opacity: 0;
  letter-spacing: 0.42em;
  transform: translateY(14px);
  filter: blur(6px);
  transition:
    opacity var(--dur-md) var(--ease-soft),
    letter-spacing var(--dur-lg) var(--ease-drape),
    transform var(--dur-md) var(--ease-drape),
    filter var(--dur-md) var(--ease-soft);
  transition-delay: var(--d, 0ms);
}

.js .reveal-eyebrow.is-in {
  opacity: 1;
  letter-spacing: 0.22em;
  transform: translateY(0);
  filter: blur(0);
}

.js .reveal-eyebrow::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  height: 1px;
  width: 0;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  transition: width var(--dur-xl) var(--ease-drape);
  transition-delay: calc(var(--d, 0ms) + 600ms);
}

.js .section-header .reveal-eyebrow::after,
.js .philosophy-banner .reveal-eyebrow::after,
.js .cta-banner .reveal-eyebrow::after {
  left: 50%;
  transform: translateX(-50%);
}

.js .section-header .reveal-eyebrow.is-in::after,
.js .philosophy-banner .reveal-eyebrow.is-in::after,
.js .cta-banner .reveal-eyebrow.is-in::after {
  width: 128px;
}

.js .hero-content .reveal-eyebrow::after,
.js .page-hero .reveal-eyebrow::after,
.js .manifesto-body .reveal-eyebrow::after,
.js .about-text .reveal-eyebrow::after,
.js .contact-info-card .reveal-eyebrow::after {
  left: 0;
  background: linear-gradient(90deg, var(--color-gold), transparent);
}

.js .hero-content .reveal-eyebrow.is-in::after,
.js .page-hero .reveal-eyebrow.is-in::after,
.js .manifesto-body .reveal-eyebrow.is-in::after,
.js .about-text .reveal-eyebrow.is-in::after,
.js .contact-info-card .reveal-eyebrow.is-in::after {
  width: 92px;
}

/* ==========================================================================
   3. HEAD GROUPS — eyebrow → title words → paragraph → buttons, in sequence
   The per-element delays (--d, --pd, --cd) are computed in script.js from the
   real word count of each title, so every section gets its own timing.
   ========================================================================== */
.js .blur-slide-head.head-group {
  opacity: 1;
  transform: none;
  filter: none;
  transition: none;
}

.js .head-group > p,
.js .head-group > blockquote + p,
.js .page-hero > .container > p {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(8px);
  transition:
    opacity var(--dur-md) var(--ease-soft),
    transform var(--dur-lg) var(--ease-drape),
    filter var(--dur-md) var(--ease-soft);
  transition-delay: var(--pd, 0ms);
}

.js .head-group.is-in > p,
.js .page-hero.is-in > .container > p {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.js .head-group > .cta-group > .btn {
  opacity: 0;
  transform: translateY(28px) scale(0.96);
  transition:
    opacity var(--dur-md) var(--ease-soft),
    transform var(--dur-lg) var(--ease-drape);
}

.js .head-group > .cta-group > .btn:nth-child(1) { transition-delay: var(--cd, 0ms); }
.js .head-group > .cta-group > .btn:nth-child(2) { transition-delay: calc(var(--cd, 0ms) + 220ms); }
.js .head-group > .cta-group > .btn:nth-child(3) { transition-delay: calc(var(--cd, 0ms) + 440ms); }

.js .head-group.is-in > .cta-group > .btn {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ==========================================================================
   4. BLOCK REVEALS — heads, cards, photographs
   ========================================================================== */
.js .blur-slide-head {
  opacity: 0;
  transform: translateY(56px);
  filter: blur(11px);
  transition:
    opacity var(--dur-md) var(--ease-soft),
    transform var(--dur-lg) var(--ease-drape),
    filter var(--dur-md) var(--ease-soft);
  will-change: transform, opacity;
}

.js .blur-slide-head.is-in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.js .blur-slide-card {
  opacity: 0;
  transform: translateY(70px) scale(0.972);
  filter: blur(10px);
  transition:
    opacity var(--dur-md) var(--ease-soft),
    transform var(--dur-lg) var(--ease-drape),
    filter var(--dur-md) var(--ease-soft),
    box-shadow var(--dur-sm) var(--ease-cinema);
  transition-delay: calc(var(--d, 0ms) + var(--i, 0) * var(--card-step));
  will-change: transform, opacity;
}

.js .blur-slide-card.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Photographic blocks — the frame settles while the image un-zooms behind it */
.js .blur-slide-photo {
  opacity: 0;
  transform: translateY(58px) scale(0.985);
  transition:
    opacity var(--dur-md) var(--ease-soft),
    transform var(--dur-xl) var(--ease-drape);
  transition-delay: calc(var(--d, 0ms) + var(--i, 0) * var(--card-step));
}

.js .blur-slide-photo.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.js .blur-slide-photo img {
  transform: scale(1.24);
  clip-path: inset(0 0 100% 0);
  transition:
    transform 3.6s var(--ease-drape),
    clip-path var(--dur-xl) var(--ease-drape);
  transition-delay: calc(var(--d, 0ms) + var(--i, 0) * var(--card-step) + 260ms);
}

.js .blur-slide-photo.is-in img {
  transform: scale(1);
  clip-path: inset(0 0 0 0);
}

/* ==========================================================================
   5. DIRECTIONAL CURTAIN REVEAL (portfolio + journal rows)
   The card itself drifts a few pixels; the photograph is wiped open from the
   row's own direction while un-zooming. Nothing flies across the viewport.
   ========================================================================== */
.js .slide-from-right,
.js .slide-from-left {
  opacity: 0;
  transition:
    opacity var(--dur-md) var(--ease-soft),
    transform var(--dur-xl) var(--ease-drape),
    box-shadow var(--dur-sm) var(--ease-cinema);
  transition-delay: calc(var(--d, 0ms) + var(--i, 0) * var(--card-step));
}

.js .slide-from-right { transform: translateX(54px) scale(0.985); }
.js .slide-from-left  { transform: translateX(-54px) scale(0.985); }

.js .slide-from-right.is-in,
.js .slide-from-left.is-in {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.js .slide-from-right > img,
.js .slide-from-left > img {
  transform: scale(1.3);
  transition:
    transform 3.4s var(--ease-drape),
    clip-path var(--dur-xl) var(--ease-drape);
  transition-delay: calc(var(--d, 0ms) + var(--i, 0) * var(--card-step) + 180ms);
}

.js .slide-from-right > img { clip-path: inset(0 0 0 100%); }
.js .slide-from-left  > img { clip-path: inset(0 100% 0 0); }

.js .slide-from-right.is-in > img,
.js .slide-from-left.is-in > img {
  transform: scale(1);
  clip-path: inset(0 0 0 0);
}

/* ==========================================================================
   6. AMBIENT & HOVER KEYFRAMES
   ========================================================================== */
@keyframes heroBloom {
  0%   { opacity: 0; transform: scale(1.14); filter: blur(26px); }
  100% { opacity: 1; transform: scale(1.0);  filter: blur(0px); }
}

@keyframes ambientHeroBreathe {
  0%   { transform: scale(1.0); }
  50%  { transform: scale(1.05); }
  100% { transform: scale(1.0); }
}

@keyframes heroLightSweep {
  0%   { transform: translateX(-130%) skewX(-14deg); opacity: 0; }
  22%  { opacity: 1; }
  100% { transform: translateX(130%) skewX(-14deg); opacity: 0; }
}

@keyframes scrollCuePulse {
  0%   { transform: translateY(-100%); opacity: 0; }
  25%  { opacity: 1; }
  75%  { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}

@keyframes ctaGoldPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(212, 175, 55, 0.22); }
  50%      { box-shadow: 0 10px 28px rgba(212, 175, 55, 0.42); }
}

@keyframes ctaWAPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.22); }
  50%      { box-shadow: 0 10px 28px rgba(37, 211, 102, 0.42); }
}

/* ==========================================================================
   7. SECTION-SPECIFIC ACCENTS
   ========================================================================== */

/* Stats — hairline dividers grow out of nothing between the figures */
.stat-item { position: relative; }

.js .stats-grid .stat-item:not(:first-child)::before {
  content: '';
  position: absolute;
  left: calc(var(--spacing-md) / -2);
  top: 12%;
  width: 1px;
  height: 0;
  background: linear-gradient(180deg, transparent, rgba(107, 92, 82, 0.4), transparent);
  transition: height var(--dur-xl) var(--ease-drape);
  transition-delay: calc(var(--i, 0) * var(--card-step) + 620ms);
}

.js .stats-grid .stat-item.is-in:not(:first-child)::before { height: 76%; }

.js .stat-item h3,
.js .stat-item > p {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--dur-md) var(--ease-soft),
    transform var(--dur-lg) var(--ease-drape);
  transition-delay: calc(var(--i, 0) * var(--card-step) + 300ms);
}

.js .stat-item > p { transition-delay: calc(var(--i, 0) * var(--card-step) + 520ms); }

.js .stat-item.is-in h3,
.js .stat-item.is-in > p {
  opacity: 1;
  transform: translateY(0);
}

/* Services — a gold rule draws across the top edge as each card lands */
.services-grid { perspective: 1600px; }
.service-card { overflow: hidden; }

.js .service-card {
  transform: translateY(70px) scale(0.97) rotateX(7deg);
  transform-origin: 50% 100%;
}

.js .service-card.is-in { transform: translateY(0) scale(1) rotateX(0deg); }

.js .service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--color-gold), rgba(212, 175, 55, 0));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-xl) var(--ease-drape);
  transition-delay: calc(var(--i, 0) * var(--card-step) + 760ms);
}

.js .service-card.is-in::before { transform: scaleX(1); }

.js .service-number {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur-md) var(--ease-soft), transform var(--dur-lg) var(--ease-drape);
  transition-delay: calc(var(--i, 0) * var(--card-step) + 560ms);
}

.js .service-card.is-in .service-number { opacity: 0.45; transform: translateY(0); }

/* Pillars — a vertical accent grows down the left edge of each promise */
.pillar-card { position: relative; overflow: hidden; }

.js .pillar-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2.6rem;
  bottom: 2.6rem;
  width: 2px;
  background: linear-gradient(180deg, var(--color-gold), rgba(212, 175, 55, 0));
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 2.6s var(--ease-drape);
  transition-delay: calc(var(--i, 0) * var(--card-step) + 700ms);
}

.js .pillar-card.is-in::before { transform: scaleY(1); }

/* Manifesto — the quotation is held by a rule that draws top to bottom */
.manifesto-quote { position: relative; padding-left: 2.2rem; }

.js .manifesto-quote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35em;
  bottom: 0.35em;
  width: 2px;
  background: linear-gradient(180deg, var(--color-taupe), rgba(107, 92, 82, 0));
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 3s var(--ease-drape) 0.35s;
}

.js .manifesto-quote.is-in::before { transform: scaleY(1); }

/* Journal strip — cards settle out of a slight rotation as they wipe open */
.js .insta-card { transform-origin: 50% 100%; }
.js .insta-card.slide-from-right { transform: translateX(46px) rotate(1.4deg); }
.js .insta-card.slide-from-right.is-in { transform: translateX(0) rotate(0deg); }

/* Reading-progress hairline across the very top of the page */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--color-gold), var(--color-taupe));
  z-index: 1200;
  pointer-events: none;
}

/* Hero scroll cue */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 2.4rem;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  opacity: 0;
  transition: opacity 1.4s var(--ease-soft) var(--d, 2.4s);
}

.hero.is-in .scroll-cue { opacity: 1; }

.scroll-cue-label {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.scroll-cue-line {
  position: relative;
  width: 1px;
  height: 62px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.scroll-cue-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, var(--color-gold), transparent);
  animation: scrollCuePulse 4.6s var(--ease-soft) infinite;
}

/* ==========================================================================
   4. HERO SECTION SETUP
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
  background-color: var(--color-charcoal);
  perspective: 1000px;
}

.hero-img {
  position: absolute;
  /* Oversized on purpose: the parallax drift needs headroom to travel into,
     otherwise the charcoal behind it would show at the top edge. */
  top: -14%;
  left: 0;
  width: 100%;
  height: 128%;
  object-fit: cover;
  z-index: 1;
  animation: heroBloom var(--dur-2xl) var(--ease-drape) 0s both, ambientHeroBreathe 34s ease-in-out infinite alternate var(--dur-2xl) !important;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(21, 19, 17, 0.86) 0%, rgba(21, 19, 17, 0.62) 100%);
  z-index: 2;
  overflow: hidden;
}

/* A single slow bar of light crosses the hero once, as the title assembles */
.js .hero-overlay::after {
  content: '';
  position: absolute;
  top: -20%;
  left: 0;
  width: 45%;
  height: 140%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 244, 214, 0.16) 50%, rgba(255, 255, 255, 0) 100%);
  animation: heroLightSweep 5.4s var(--ease-soft) 2.2s both;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero-content {
  max-width: 880px;
  color: var(--color-white);
}

.hero-content .eyebrow {
  color: var(--color-sand);
}

.hero-title-line {
  display: block;
}

.hero-content h1 {
  color: var(--color-white);
  margin-bottom: 1.6rem;
  line-height: 1.12;
  text-shadow: 0 4px 24px rgba(0,0,0,0.4);
  font-family: var(--font-heading) !important;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.hero-subtitle {
  font-size: clamp(1.15rem, 1.4vw, 1.4rem);
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 2.5rem;
  line-height: 1.75;
  font-weight: 400;
  max-width: 760px;
  font-family: var(--font-body);
}

/* Hero copy follows the headline: subtitle lifts out of a blur, then the
   buttons arrive one after the other. Delays are set in script.js from the
   real word count of the headline so the chain never overlaps itself. */
.js .hero-subtitle {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(9px);
  transition:
    opacity 1.3s var(--ease-soft),
    transform 1.4s var(--ease-cinema),
    filter 1.3s var(--ease-soft);
  transition-delay: var(--pd, 1.2s);
}

.js .hero.is-in .hero-subtitle {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.js .hero-content .cta-group > .btn {
  opacity: 0;
  transform: translateY(26px) scale(0.96);
  transition:
    opacity 0.9s var(--ease-soft),
    transform 1.1s var(--ease-cinema);
}

.js .hero-content .cta-group > .btn:nth-child(1) { transition-delay: var(--cd, 1.5s); }
.js .hero-content .cta-group > .btn:nth-child(2) { transition-delay: calc(var(--cd, 1.5s) + 160ms); }

.js .hero.is-in .cta-group > .btn {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ==========================================================================
   5. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading) !important;
  font-weight: 700;
  line-height: 1.18;
  color: var(--color-charcoal);
  font-style: normal;
  letter-spacing: -0.025em;
  text-transform: none;
}

h1 {
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

h4 {
  font-family: var(--font-body) !important;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--color-taupe);
}

p {
  margin-bottom: var(--spacing-sm);
  font-size: clamp(1.02rem, 1.1vw, 1.15rem);
  color: var(--color-taupe);
  font-weight: 400;
  line-height: 1.75;
  font-style: normal;
}

.text-lead {
  font-size: clamp(1.2rem, 1.5vw, 1.45rem);
  line-height: 1.65;
  color: var(--color-charcoal);
  font-weight: 500;
  font-style: normal;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: var(--color-taupe);
  display: block;
  margin-bottom: 1rem;
}

/* Container & Sections */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  width: 100%;
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  width: 100%;
}

.section {
  padding: var(--spacing-xl) 0;
  position: relative;
}

.section-header {
  max-width: 860px;
  margin: 0 auto var(--spacing-lg);
  text-align: center;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.15rem;
  color: var(--color-taupe);
  line-height: 1.7;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(247, 243, 235, 0.98);
  padding: 1.35rem 0;
  z-index: 1000;
  transition: padding var(--dur-sm) var(--ease-drape), background-color var(--dur-sm) var(--ease-drape), box-shadow var(--dur-sm) var(--ease-drape), transform var(--dur-sm) var(--ease-drape);
}

.navbar.scrolled {
  padding: 0.9rem 0;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(21, 19, 17, 0.04);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 2.6rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-charcoal);
  position: relative;
  padding: 0.35rem 0;
}

/* Navigation underline draws itself in from the left */
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-taupe));
  transition: right var(--dur-lg) var(--ease-drape);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  right: 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-taupe-dark);
}

.nav-actions {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 42px;
  height: 34px;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-charcoal);
  transition: transform var(--dur-sm) var(--ease-drape), opacity var(--dur-xs) ease;
}

/* CTA Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.2rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 2px;
  transition: transform var(--dur-md) var(--ease-drape), box-shadow var(--dur-md) var(--ease-drape), background-color var(--dur-sm) var(--ease-drape);
  cursor: pointer;
  border: none;
  white-space: nowrap;
  gap: 0.6rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* A band of light passes through the button on hover */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 22%, rgba(255, 255, 255, 0.5) 50%, transparent 78%);
  transform: translateX(-130%);
  transition: transform 1.7s var(--ease-drape);
}

.btn:hover::after {
  transform: translateX(130%);
}

.btn:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22) !important;
}

.btn-sm {
  padding: 0.65rem 1.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.btn-call {
  background-color: var(--color-gold);
  color: var(--color-charcoal);
  animation: ctaGoldPulse 8s ease-in-out infinite;
}

.btn-call:hover {
  background-color: var(--color-gold-hover);
  color: var(--color-charcoal);
}

.btn-whatsapp {
  background-color: var(--color-whatsapp);
  color: var(--color-white);
  animation: ctaWAPulse 8s ease-in-out infinite 4s;
}

.btn-whatsapp:hover {
  background-color: var(--color-whatsapp-hover);
  color: var(--color-white);
}

.cta-group {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Page Hero for Subpages */
.page-hero {
  position: relative;
  height: 50vh;
  min-height: 380px;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: var(--color-charcoal);
  overflow: hidden;
}

.page-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(21, 19, 17, 0.82) 0%, rgba(21, 19, 17, 0.62) 100%);
  z-index: 2;
}

.page-hero .container {
  position: relative;
  z-index: 3;
}

.page-hero h1 {
  color: var(--color-white);
  margin-bottom: 0.8rem;
  font-family: var(--font-heading) !important;
  font-weight: 700;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.2rem;
  max-width: 700px;
  line-height: 1.6;
  font-family: var(--font-body);
}

/* Sub-page heroes: script.js lifts the inline background onto this layer so the
   photograph can bloom out of a blur and then breathe, without touching text. */
.js .page-hero::before {
  content: '';
  position: absolute;
  inset: -16% 0;   /* headroom for the parallax drift */
  background-image: var(--hero-bg, none);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 1;
  animation:
    heroBloom 4.2s var(--ease-drape) both,
    ambientHeroBreathe 36s ease-in-out 4.2s infinite alternate;
}

/* Live Stats Strip */
.stats-section {
  background-color: var(--color-sand);
  padding: 4.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
  text-align: center;
}

.stat-item {
  transition: transform var(--dur-md) var(--ease-drape);
}


.stat-item:hover {
  transform: translateY(-6px) !important;
}

.stat-item h3 {
  font-family: var(--font-heading) !important;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  color: var(--color-taupe-dark);
  margin-bottom: 0.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.stat-item p {
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-taupe);
  margin-bottom: 0;
  font-weight: 600;
  font-family: var(--font-body);
}

/* Editorial Manifesto / Narrative Split */
.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4.5rem;
  align-items: center;
}

.manifesto-quote {
  font-family: var(--font-heading) !important;
  font-size: clamp(1.75rem, 2.6vw, 2.4rem);
  line-height: 1.35;
  color: var(--color-charcoal);
  font-style: normal;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.manifesto-body p {
  font-size: 1.12rem;
  line-height: 1.85;
  margin-bottom: 1.4rem;
  font-family: var(--font-body);
}

/* Services / Disciplines Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
}

.service-card {
  background-color: var(--color-white);
  padding: 3rem 2rem;
  border-radius: 4px;
  position: relative;
  transition: transform var(--dur-md) var(--ease-drape), box-shadow var(--dur-md) var(--ease-drape), background-color var(--dur-sm) var(--ease-drape);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(71, 59, 52, 0.04);
}

.service-card:hover {
  transform: translateY(-14px) !important;
  box-shadow: 0 24px 48px rgba(71, 59, 52, 0.14) !important;
  background-color: #FFFFFF;
}

.service-number {
  font-family: var(--font-heading) !important;
  font-size: 1.6rem;
  color: var(--color-taupe);
  opacity: 0.45;
  margin-bottom: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: opacity var(--dur-sm) var(--ease-drape), transform var(--dur-md) var(--ease-drape);
}

.service-card:hover .service-number {
  opacity: 0.95;
  transform: scale(1.08);
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.9rem;
  color: var(--color-charcoal);
  font-family: var(--font-heading) !important;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.service-card p {
  font-size: 0.98rem;
  color: var(--color-taupe);
  line-height: 1.75;
  margin-bottom: 0;
  font-family: var(--font-body);
}

/* Portfolio & Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.4rem;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4/5;
  background-color: var(--color-sand);
  box-shadow: 0 8px 24px rgba(21, 19, 17, 0.06);
  transition: transform var(--dur-md) var(--ease-drape), box-shadow var(--dur-md) var(--ease-drape);
}

.project-card:hover {
  transform: translateY(-12px) !important;
  box-shadow: 0 24px 50px rgba(21, 19, 17, 0.18) !important;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 2.8s var(--ease-drape);
}

.project-card:hover img {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(21, 19, 17, 0.94) 0%, rgba(21, 19, 17, 0.3) 55%, rgba(21, 19, 17, 0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.4rem 2rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-md) var(--ease-drape), transform var(--dur-md) var(--ease-drape);
}

.project-card:hover .project-overlay {
  opacity: 1;
  transform: translateY(0);
}

.project-overlay h3 {
  color: var(--color-white);
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
  font-family: var(--font-heading) !important;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.project-overlay p {
  color: var(--color-sand);
  font-size: 0.92rem;
  margin-bottom: 0;
  letter-spacing: 0.02em;
  font-family: var(--font-body);
}

.section-cta {
  text-align: center;
  margin-top: var(--spacing-lg);
}

/* Philosophy Banner */
.philosophy-banner {
  background-color: var(--color-sand);
  text-align: center;
  padding: 7rem 0;
}

.philosophy-quote {
  font-family: var(--font-heading) !important;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  font-style: normal;
  font-weight: 700;
  color: var(--color-taupe-dark);
  max-width: 960px;
  margin: 0 auto 1.6rem;
  line-height: 1.28;
  letter-spacing: -0.025em;
}

.philosophy-banner p {
  max-width: 740px;
  margin: 0 auto;
  font-size: 1.18rem;
  color: var(--color-taupe);
  line-height: 1.8;
  font-style: normal;
  font-family: var(--font-body);
}

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.pillar-card {
  background-color: var(--color-white);
  padding: 3.4rem 2.4rem;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(71, 59, 52, 0.04);
  transition: transform var(--dur-md) var(--ease-drape), box-shadow var(--dur-md) var(--ease-drape);
}

.pillar-card:hover {
  transform: translateY(-12px) !important;
  box-shadow: 0 20px 44px rgba(71, 59, 52, 0.12) !important;
}

.pillar-tag {
  font-family: var(--font-heading) !important;
  font-size: 2.2rem;
  color: var(--color-taupe);
  opacity: 0.5;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pillar-card h3 {
  font-size: 1.45rem;
  color: var(--color-charcoal);
  margin-bottom: 1rem;
  font-family: var(--font-heading) !important;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.pillar-card p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-taupe);
  margin-bottom: 0;
  font-family: var(--font-body);
}

/* Instagram Feed */
.insta-feed {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1.2rem 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-taupe) transparent;
}

.insta-feed::-webkit-scrollbar {
  height: 4px;
}

.insta-feed::-webkit-scrollbar-thumb {
  background-color: var(--color-taupe);
}

.insta-card {
  flex: 0 0 290px;
  scroll-snap-align: start;
  aspect-ratio: 1/1;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  background-color: var(--color-sand);
  transition: transform var(--dur-md) var(--ease-drape);
}

.insta-card:hover {
  transform: translateY(-8px) !important;
}

.insta-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 2.6s var(--ease-drape);
}

.insta-card:hover img {
  transform: scale(1.08);
}

/* Story Section */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.about-text h2 {
  margin-bottom: 1.5rem;
  font-family: var(--font-heading) !important;
}

.about-text p {
  margin-bottom: 1.3rem;
  font-size: 1.08rem;
  line-height: 1.85;
  font-family: var(--font-body);
}

.about-img {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background-color: var(--color-sand);
  box-shadow: 0 10px 30px rgba(21, 19, 17, 0.08);
}

.about-img:hover {
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 2.8s var(--ease-drape);
}

.about-img:hover img {
  transform: scale(1.04);
}

/* Leadership Card */
.owner-card {
  background-color: var(--color-white);
  border-radius: 4px;
  padding: 3.8rem 3.2rem;
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 8px 28px rgba(71, 59, 52, 0.06);
  transition: transform var(--dur-md) var(--ease-drape), box-shadow var(--dur-md) var(--ease-drape);
}

.owner-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 20px 48px rgba(71, 59, 52, 0.12) !important;
}

.owner-card h3 {
  font-size: 2.1rem;
  margin-bottom: 0.35rem;
  font-family: var(--font-heading) !important;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.owner-title {
  font-family: var(--font-body);
  color: var(--color-taupe);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.86rem;
  margin-bottom: 1.6rem;
}

.owner-quote {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-style: normal;
  color: var(--color-taupe-dark);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

.owner-contact {
  display: flex;
  justify-content: center;
  gap: 2.8rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
}

.owner-contact p {
  font-size: 0.98rem;
  margin-bottom: 0;
  font-family: var(--font-body);
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info-card {
  background-color: var(--color-white);
  border-radius: 4px;
  padding: 3.5rem 3rem;
  box-shadow: 0 4px 20px rgba(71, 59, 52, 0.05);
}

.contact-info-card:hover {
}

.info-item {
  margin-bottom: 2rem;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-item h4 {
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
}

.info-item p, .info-item a {
  font-size: 1.12rem;
  color: var(--color-charcoal);
  line-height: 1.75;
  font-family: var(--font-body);
}

.info-item a:hover {
  color: var(--color-gold);
}

.map-card {
  background-color: var(--color-white);
  border-radius: 4px;
  overflow: hidden;
  min-height: 500px;
  box-shadow: 0 4px 20px rgba(71, 59, 52, 0.05);
}

.map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 500px;
  border: 0;
  display: block;
}

/* Large CTA Banner */
.cta-banner {
  background-color: var(--color-sand);
  text-align: center;
  padding: 6.5rem 0;
}

.cta-banner h2 {
  margin-bottom: 1.1rem;
  font-family: var(--font-heading) !important;
  font-weight: 700;
}

.cta-banner p {
  max-width: 660px;
  margin: 0 auto 2.5rem;
  font-size: 1.22rem;
  color: var(--color-taupe);
  font-style: normal;
  font-family: var(--font-body);
}

.cta-banner .cta-group {
  justify-content: center;
}

/* Luxury Footer */
footer {
  background-color: var(--color-charcoal);
  color: var(--color-white);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.2fr 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-logo {
  max-width: 220px;
  margin-bottom: 1.3rem;
  border-radius: 2px;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.96rem;
  line-height: 1.75;
  font-family: var(--font-body);
}

.footer-col h4 {
  color: var(--color-sand);
  margin-bottom: 1.4rem;
  font-family: var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.86rem;
  font-weight: 600;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.96rem;
  transition: color var(--dur-sm) var(--ease-drape), padding-left var(--dur-sm) var(--ease-drape);
  font-family: var(--font-body);
}

.footer-col ul li a:hover {
  color: var(--color-gold);
  padding-left: 4px;
}

.footer-col address {
  font-style: normal;
}

.footer-col address p {
  margin-bottom: 0.55rem;
  font-family: var(--font-body);
}

.footer-col address a {
  color: rgba(255, 255, 255, 0.85);
}

.footer-col address a:hover {
  color: var(--color-gold);
}

.footer-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-body);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-bottom a:hover {
  color: var(--color-gold);
}

/* ==========================================================================
   8. THE SLOW LAYER
   Everything below is built and driven by script.js. Nothing here is required
   for the page to be readable — if the script never runs, none of these
   elements exist and the site simply renders without them.
   ========================================================================== */

/* --- The entrance curtain ------------------------------------------------
   Deliberately built from two pseudo-elements driven by keyframes rather than
   from script-created nodes: an animation with `both` fill lifts itself and
   stays lifted, so a failed or blocked script can never leave a visitor
   staring at a covered page. -------------------------------------------- */
@keyframes veilLift {
  0%, 40% { transform: translateY(0); }
  100%    { transform: translateY(-101%); }
}

@keyframes veilMark {
  0%   { opacity: 0; letter-spacing: 0.62em; text-indent: 0.62em; transform: translateY(12px); }
  16%  { opacity: 1; letter-spacing: 0.40em; text-indent: 0.40em; transform: translateY(0); }
  42%  { opacity: 1; letter-spacing: 0.34em; text-indent: 0.34em; transform: translateY(0); }
  52%  { opacity: 0; letter-spacing: 0.34em; text-indent: 0.34em; }
  100% { opacity: 0; transform: translateY(-101vh); }
}

.js body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-color: var(--color-charcoal);
  z-index: 5000;
  pointer-events: none;
  animation: veilLift 3s var(--ease-drape) both;
}

.js body::after {
  content: 'The Society 18';
  position: fixed;
  inset: 0;
  z-index: 5001;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(0.72rem, 1.5vw, 0.95rem);
  text-transform: uppercase;
  color: var(--color-sand);
  animation: veilMark 3s var(--ease-drape) both;
}

/* --- The exit curtain: script-built, drops back down before we navigate --- */
.page-veil {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background-color: var(--color-charcoal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  pointer-events: none;
  transform: translateY(0);
  transition: transform 1.75s var(--ease-drape);
  will-change: transform;
}

/* Lifted clear of the viewport — where the exit curtain waits before it drops */
.page-veil.is-open { transform: translateY(-101%); }

/* Leaving is quicker than arriving: the page under it is already on its way.
   It also takes the clicks, so a second link cannot fire mid-transition. */
.page-veil.is-exiting {
  transition-duration: 0.95s;
  pointer-events: auto;
}

.page-veil-mark {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(0.72rem, 1.5vw, 0.95rem);
  text-transform: uppercase;
  letter-spacing: 0.62em;
  text-indent: 0.62em;
  color: var(--color-sand);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 1.3s var(--ease-soft),
    letter-spacing 2.4s var(--ease-drape),
    transform 1.4s var(--ease-drape);
}

.page-veil.is-ready .page-veil-mark {
  opacity: 0.94;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  transform: translateY(0);
}

.page-veil.is-open .page-veil-mark {
  opacity: 0;
  transition-duration: 0.6s;
}

.page-veil-rule {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  transition: width 2.2s var(--ease-drape) 0.3s;
}

.page-veil.is-ready .page-veil-rule { width: 140px; }

/* While the veil is down nothing underneath should be scrollable */
html.veiled, html.veiled body { overflow: hidden; }

/* --- Inertia scrolling: the engine owns the scroll position --------------- */
html.inertia { scroll-behavior: auto; }

/* --- Parallax: photographs drift a little slower than the page ----------- */
.js .hero-img,
.js .page-hero::before,
.js .about-img img {
  will-change: translate;
}

.js .page-hero::before { translate: 0 var(--hero-shift, 0px); }

/* --- Navbar: drops in once, then tucks away while you read downward ------ */
@keyframes navDrop {
  from { transform: translateY(-102%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

.js .navbar { animation: navDrop 1.6s var(--ease-drape) 0.4s both; }
.js .navbar.nav-settled { animation: none; }
.js .navbar.is-tucked { transform: translateY(-102%); }

/* --- Footer: the columns rise in the same cadence as the page above ------ */
.js .reveal-footer .footer-col,
.js .reveal-footer .footer-bottom {
  opacity: 0;
  transform: translateY(42px);
  filter: blur(7px);
  transition:
    opacity var(--dur-md) var(--ease-soft),
    transform var(--dur-lg) var(--ease-drape),
    filter var(--dur-md) var(--ease-soft);
}

.js .reveal-footer .footer-col:nth-child(1) { transition-delay: 0ms; }
.js .reveal-footer .footer-col:nth-child(2) { transition-delay: 170ms; }
.js .reveal-footer .footer-col:nth-child(3) { transition-delay: 340ms; }
.js .reveal-footer .footer-col:nth-child(4) { transition-delay: 510ms; }
.js .reveal-footer .footer-bottom           { transition-delay: 700ms; }

.js .reveal-footer.is-in .footer-col,
.js .reveal-footer.is-in .footer-bottom {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* A hairline draws itself across the footer rule as the columns settle */
.js .reveal-footer .footer-bottom {
  border-top-color: rgba(255, 255, 255, 0);
  transition:
    opacity var(--dur-md) var(--ease-soft),
    transform var(--dur-lg) var(--ease-drape),
    filter var(--dur-md) var(--ease-soft),
    border-top-color 2.4s var(--ease-drape) 0.9s;
}

.js .reveal-footer.is-in .footer-bottom { border-top-color: rgba(255, 255, 255, 0.08); }

/* --- Contact card: each line of the address arrives on its own beat ------ */
.js .contact-info-card .info-item {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
  transition:
    opacity var(--dur-md) var(--ease-soft),
    transform var(--dur-lg) var(--ease-drape),
    filter var(--dur-md) var(--ease-soft);
}

.js .contact-info-card .info-item:nth-child(2) { transition-delay: 620ms; }
.js .contact-info-card .info-item:nth-child(3) { transition-delay: 780ms; }
.js .contact-info-card .info-item:nth-child(4) { transition-delay: 940ms; }
.js .contact-info-card .info-item:nth-child(5) { transition-delay: 1100ms; }
.js .contact-info-card .info-item:nth-child(6) { transition-delay: 1260ms; }
.js .contact-info-card .info-item:nth-child(7) { transition-delay: 1420ms; }

.js .contact-info-card.is-in .info-item {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* --- Cursor ring: a slow gold circle that trails the pointer ------------- */
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 4000;
  opacity: 0;
  transition:
    opacity 1s var(--ease-soft),
    scale 1.1s var(--ease-drape),
    border-color 1.1s var(--ease-drape),
    background-color 1.1s var(--ease-drape);
  will-change: transform;
}

.cursor-ring.is-live { opacity: 1; }

.cursor-ring.is-hot {
  scale: 1.85;
  border-color: rgba(212, 175, 55, 0.85);
  background-color: rgba(212, 175, 55, 0.07);
}

/* Anchors land clear of the fixed navbar */
[id] { scroll-margin-top: 110px; }

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
  .manifesto-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-actions { display: none; }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 380px;
    height: 100vh;
    background-color: var(--color-canvas);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 4rem 3rem;
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.15);
    transition: right var(--dur-md) var(--ease-drape);
    z-index: 999;
  }
  
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1.25rem; }
  
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; gap: var(--spacing-md); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
  
  .hero-content h1 { font-size: 2.4rem; }
  .owner-card { padding: 2.8rem 1.6rem; }
  .owner-contact { flex-direction: column; gap: 0.8rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
}

@media (max-width: 480px) {
  .projects-grid, .gallery-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .cta-group { flex-direction: column; width: 100%; }
  .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Motion tuning for small screens: shorter travel, no vertical stat rules.
   The tempo stays slow — only the distance travelled and the stagger tighten,
   so a phone never has to wait out a cadence built for a wide desktop grid. */
@media (max-width: 768px) {
  :root {
    --word-step: 72ms;
    --char-step: 34ms;
    --card-step: 145ms;
    --dur-lg: 2s;
    --dur-xl: 2.5s;
  }
  .js .stats-grid .stat-item::before { display: none; }
  .js .slide-from-right { transform: translateX(30px) scale(0.99); }
  .js .slide-from-left  { transform: translateX(-30px) scale(0.99); }
  .js .blur-slide-card  { transform: translateY(48px) scale(0.985); }
  .js .service-card     { transform: translateY(50px) scale(0.985) rotateX(0deg); }
  .scroll-cue { display: none; }
  .cursor-ring { display: none; }

  /* The drawer's links arrive one after another behind the panel itself */
  .js .nav-links a {
    opacity: 0;
    transform: translateX(30px);
    transition:
      opacity var(--dur-sm) var(--ease-soft),
      transform var(--dur-md) var(--ease-drape),
      color var(--dur-sm) var(--ease-drape);
  }

  .js .nav-links.open a { opacity: 1; transform: translateX(0); }
  .js .nav-links.open a:nth-child(1) { transition-delay: 0.24s; }
  .js .nav-links.open a:nth-child(2) { transition-delay: 0.36s; }
  .js .nav-links.open a:nth-child(3) { transition-delay: 0.48s; }
  .js .nav-links.open a:nth-child(4) { transition-delay: 0.60s; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .blur-slide-head, .blur-slide-card, .blur-slide-photo, .slide-from-right, .slide-from-left,
  .hero-title-line, .text-breathe, .hero-subtitle, .page-hero p,
  .split .w-i, .split-chars .c, .reveal-condense, .reveal-eyebrow,
  .head-group > p, .head-group > .cta-group > .btn, .hero-content .cta-group > .btn,
  .stat-item h3, .stat-item > p, .service-number,
  .slide-from-right > img, .slide-from-left > img, .blur-slide-photo img {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
    letter-spacing: inherit;
    animation: none !important;
  }
  .service-card::before, .pillar-card::before, .manifesto-quote::before { transform: none !important; }
  .reveal-eyebrow { letter-spacing: 0.22em !important; }
  .scroll-cue, .scroll-progress, .hero-overlay::after { display: none !important; }

  /* The slow layer stands down entirely */
  .page-veil, .cursor-ring { display: none !important; }
  body::before, body::after { display: none !important; animation: none !important; }
  .navbar { animation: none !important; transform: none !important; opacity: 1 !important; }
  .reveal-footer .footer-col, .reveal-footer .footer-bottom,
  .contact-info-card .info-item, .nav-links a {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .reveal-footer .footer-bottom { border-top-color: rgba(255, 255, 255, 0.08) !important; }
  .page-hero::before, .hero-img, .about-img img { translate: none !important; }
  html.veiled, html.veiled body { overflow: visible !important; }
}