/* =====================================================================
   Luxe Web Studio — Mercury "Mountain Top Command Center" design system
   Dark, twilight palette · single Mercury Blue accent · light display type
   ===================================================================== */

:root {
  /* ---- Colors — warm "sunlit luxe" palette, matched to the hero film ----
     Token names are kept for compatibility; their roles are preserved
     (bg / elevated-bg / interactive / border / primary-text / secondary-text /
     accent), but the values are now warm + light instead of dark twilight. */
  --color-mercury-blue: #a9794b;   /* ACCENT — bronze (was mercury blue) */
  --color-ghost-blue: #e4d6c2;     /* warm tint for translucent chips */
  --color-deep-space: #ece4d6;     /* sand — body + "abyss" sections */
  --color-midnight-slate: #f5f0e8; /* cream — default sections (elevated) */
  --color-graphite: #e0d6c6;       /* stone — interactive surface */
  --color-lead: #b6a88f;           /* taupe — borders / muted lines */
  --color-starlight: #2b2420;      /* espresso — primary text */
  --color-silver: #6e6051;         /* mocha — secondary text */
  --color-pure-white: #fbf7f0;     /* warm white — text on accent/photos */
  --color-ink: #1a140e;            /* near-black espresso — max-emphasis text */

  /* ---- Typography — families (arcadia / arcadiaDisplay → Inter / Manrope) ---- */
  --font-arcadiadisplay: 'Manrope', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-arcadia: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Cormorant Garamond', 'Canela', Georgia, 'Times New Roman', serif;  /* editorial luxury serif — logo + hero */

  /* ---- Champagne accent (luxury CTA / hover / dot) ---- */
  --color-champagne: #d6c3a5;

  /* ---- Typography — scale ---- */
  --text-caption: 12px;      --leading-caption: 1.5;     --tracking-caption: 0.24px;
  --text-body-sm: 14px;      --leading-body-sm: 1.5;     --tracking-body-sm: 0.28px;
  --text-body: 16px;         --leading-body: 1.5;        --tracking-body: 0.16px;
  --text-subheading: 18px;   --leading-subheading: 1.4;
  --text-heading-sm: 21px;   --leading-heading-sm: 1.35;
  --text-heading: 32px;      --leading-heading: 1.2;
  --text-heading-lg: 49px;   --leading-heading-lg: 1.15;
  --text-display: 65px;      --leading-display: 1.1;     --tracking-display: 0.65px;

  /* ---- Typography — weights ---- */
  --font-weight-w360: 360;
  --font-weight-regular: 400;
  --font-weight-w420: 420;
  --font-weight-w480: 480;
  --font-weight-w530: 530;

  /* ---- Spacing (base unit 4px) ---- */
  --spacing-4: 4px;    --spacing-8: 8px;    --spacing-12: 12px;  --spacing-16: 16px;
  --spacing-20: 20px;  --spacing-24: 24px;  --spacing-32: 32px;  --spacing-40: 40px;
  --spacing-56: 56px;  --spacing-72: 72px;  --spacing-80: 80px;  --spacing-112: 112px;
  --spacing-128: 128px;

  /* ---- Layout ---- */
  --page-max-width: 1200px;

  /* ---- Border radius ---- */
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-3xl: 32px;
  --radius-3xl-2: 40px;
  --radius-cards: 0px;
  --radius-inputs: 32px;
  --radius-containers: 4px;

  /* ---- Surfaces ---- */
  --surface-abyss: #ece4d6;
  --surface-surface: #f5f0e8;
  --surface-interactive: #e0d6c6;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-deep-space);
  color: var(--color-starlight);
  font-family: var(--font-arcadia);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-body);
  font-weight: var(--font-weight-regular);
  font-feature-settings: "ss01" on;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }
ul { list-style: none; }

::selection {
  background: rgba(169, 121, 75, 0.28);
  color: var(--color-ink);
}

/* =====================================================================
   Layout primitives
   ===================================================================== */
.container {
  width: 100%;
  max-width: var(--page-max-width);
  margin-inline: auto;
  padding-inline: var(--spacing-24);
}

.section {
  background-color: var(--color-midnight-slate);
  padding-block: var(--spacing-112);
}
.section--abyss { background-color: var(--color-deep-space); }

/* =====================================================================
   Stone-texture background system
   Applied to the content sections AFTER the hero (the `.stone` class) —
   it excludes .hero-cinematic and .work-hscroll. Each section keeps its own
   background colour; a tinted, blurred fractal-noise grain + a soft lighting
   gradient sit BEHIND the content (z-index) and gently parallax on scroll
   (~±6px), so text/UI never move and readability is untouched. One shared
   texture, per-section tint/opacity/lighting → cohesive but distinct.
   ===================================================================== */
:root {
  /* Grayscale stone: multi-octave fractal noise lit as a height-map (feDiffuseLighting)
     → realistic embossed relief/depth. Kept grayscale so the per-section multiply tint
     below preserves each section's exact colours. */
  --stone-img:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='700'%3E%3Cfilter id='s' x='0' y='0' width='100%25' height='100%25' color-interpolation-filters='linearRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.006 0.012' numOctaves='6' seed='12' stitchTiles='stitch' result='n'/%3E%3CfeDiffuseLighting in='n' surfaceScale='4.5' diffuseConstant='0.9' lighting-color='white' result='l'%3E%3CfeDistantLight azimuth='220' elevation='28'/%3E%3C/feDiffuseLighting%3E%3CfeColorMatrix in='l' type='saturate' values='0' result='g'/%3E%3CfeComponentTransfer in='g'%3E%3CfeFuncR type='linear' slope='0.78' intercept='0.10'/%3E%3CfeFuncG type='linear' slope='0.78' intercept='0.10'/%3E%3CfeFuncB type='linear' slope='0.78' intercept='0.10'/%3E%3CfeFuncA type='linear' slope='0' intercept='1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='700' height='700' filter='url(%23s)'/%3E%3C/svg%3E");
}
.stone { position: relative; isolation: isolate; }
.stone > .container { position: relative; z-index: 1; }   /* content always above the texture */

.stone-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;            /* self-clips the oversized, drifting texture */
  pointer-events: none;
  background: var(--tex-light, none);   /* soft per-section lighting gradient */
}
.stone-bg__tex {
  position: absolute;
  left: 0; right: 0; top: -40px; bottom: -40px;   /* oversized so the parallax drift never reveals an edge */
  background-image: var(--stone-img);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: var(--tex-opacity, 0.3);
  filter: blur(var(--tex-blur, 0px));
  transform: translate3d(0, var(--tex-y, 0px), 0);
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .stone-bg__tex { transform: none !important; }   /* texture stays, drift off */
}

/* Per-section identity — each section gets its own real premium stone slab. */
/* Light sections keep dark text; the stone reads as a tasteful surface. */
#services { --stone-img: url("images/stones/travertine-x.jpg");    --tex-opacity: 1; }   /* ivory travertine — full strength */
#process  { --stone-img: url("images/stones/nero-black.jpg"); --tex-opacity: 1; }          /* Nero Marquina black — dramatic on dark process */
/* Dark sections (see .stone--dark below) show the slab full-strength with light text. */
#studio   { --stone-img: url("images/stones/charcoal-slate.jpg"); }  /* unified dark finish */
#contact  { --stone-img: url("images/stones/charcoal-slate.jpg"); }  /* unified dark finish */
.footer   { --stone-img: url("images/stones/charcoal-slate.jpg"); }  /* unified dark finish */

/* ---- Dark stone panels: full-strength slab, subtle scrim, light text ---- */
.stone--dark { background-color: #14100c; }
.stone--dark .stone-bg__tex { opacity: 1; }
.stone--dark .stone-bg::after {           /* gentle scrim above the slab, below content, for legibility */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15, 11, 8, 0.46) 0%, rgba(15, 11, 8, 0.34) 50%, rgba(15, 11, 8, 0.5) 100%);
  pointer-events: none;
}
.stone--dark .eyebrow { color: var(--color-mercury-blue); }
.stone--dark h2,
.stone--dark h3,
.stone--dark .heading-lg,
.stone--dark .display,
.stone--dark .value,
.stone--dark .wordmark { color: var(--color-pure-white); }
.stone--dark p,
.stone--dark .label,
.stone--dark .footer-col a,
.stone--dark .footer-social a,
.stone--dark .footer-bottom p { color: rgba(251, 247, 240, 0.74); }
.stone--dark .footer-col h4 { color: var(--color-pure-white); }
/* process steps out-specify the generic overrides above — target them directly */
.stone--dark .process-step .num,
.stone--dark .process-step h3 { color: var(--color-pure-white); }
.stone--dark .process-step p { color: rgba(251, 247, 240, 0.78); }
/* stat values out-specify the generic overrides — target them directly */
.stone--dark .stat .value { color: var(--color-pure-white); }
.stone--dark .stat .value .unit { color: rgba(251, 247, 240, 0.55); }
.stone--dark .stat .label { color: rgba(251, 247, 240, 0.78); }
.stone--dark .footer-col a:hover,
.stone--dark .footer-social a:hover { color: var(--color-pure-white); }
.stone--dark .footer-brand p { color: rgba(251, 247, 240, 0.66); }
/* Ghost button needs a light outline on dark stone */
.stone--dark .btn-ghost-fill {
  background: transparent;
  color: var(--color-pure-white);
  border: 1px solid rgba(251, 247, 240, 0.36);
}
.stone--dark .btn-ghost-fill:hover {
  background: rgba(251, 247, 240, 0.08);
  border-color: rgba(251, 247, 240, 0.7);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
}

.section-head { max-width: 760px; margin-bottom: var(--spacing-56); }

.eyebrow {
  font-family: var(--font-arcadia);
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-silver);
  margin-bottom: var(--spacing-20);
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-12);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--color-lead);
}

/* =====================================================================
   Type helpers
   ===================================================================== */
.display {
  font-family: var(--font-arcadiadisplay);
  font-weight: var(--font-weight-w360);
  font-size: var(--text-display);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
}
.heading-lg {
  font-family: var(--font-arcadiadisplay);
  font-weight: var(--font-weight-w360);
  font-size: var(--text-heading-lg);
  line-height: var(--leading-heading-lg);
  letter-spacing: 0.01em;
}
.heading {
  font-family: var(--font-arcadiadisplay);
  font-weight: var(--font-weight-w480);
  font-size: var(--text-heading);
  line-height: var(--leading-heading);
}
.subheading {
  font-size: var(--text-subheading);
  line-height: var(--leading-subheading);
  color: var(--color-silver);
  font-weight: var(--font-weight-regular);
}
.lead {
  font-size: var(--text-heading-sm);
  line-height: 1.5;
  color: var(--color-silver);
  font-weight: var(--font-weight-regular);
}

/* =====================================================================
   Buttons — luxury interaction system
   GSAP handles transform (lift, scale, magnetic). CSS handles shadows,
   colours, and the light-sweep shimmer on the primary CTA.
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-8);
  font-family: var(--font-arcadia);
  font-size: var(--text-body);
  font-weight: var(--font-weight-w480);
  letter-spacing: 0.01em;
  white-space: nowrap;
  will-change: transform;
  transition: background 0.35s ease,
              background-color 0.35s ease,
              color 0.25s ease,
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              opacity 0.25s ease;
}

/* ── Primary CTA — warm champagne gradient, near-black text, premium shadow ── */
.btn-primary {
  background: linear-gradient(160deg, #E4D4BC 0%, #D6C3A5 52%, #C4AD8D 100%);
  color: var(--color-ink);
  border-radius: 20px;
  padding: 18px 32px;
  font-size: 15px;
  letter-spacing: 0.025em;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 2px 14px rgba(168, 138, 90, 0.22),
    0 1px 3px  rgba(168, 138, 90, 0.14);
}
/* Soft light-sweep shimmer: glides across the button every ~9 s */
.btn-primary::before {
  content: '';
  position: absolute;
  top: -20%; left: -85%;
  width: 55%; height: 140%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 251, 245, 0.0) 30%,
    rgba(255, 251, 245, 0.26) 50%,
    rgba(255, 251, 245, 0.0) 70%,
    transparent 100%
  );
  transform: skewX(-18deg);
  animation: luxeShimmer 9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}
@keyframes luxeShimmer {
  0%, 60%  { left: -85%; opacity: 0; }
  63%      { opacity: 1; }
  84%      { left: 150%; opacity: 0; }
  100%     { left: 150%; opacity: 0; }
}
.btn-primary:hover {
  background: linear-gradient(160deg, #EAD9C4 0%, #DCCAAF 52%, #CCBA9A 100%);
  box-shadow:
    0 10px 32px rgba(168, 138, 90, 0.32),
    0 3px  10px rgba(168, 138, 90, 0.2);
}

/* ── Header pill — refined translucent warm tint, dark text on the light bar ── */
.btn-header {
  background-color: rgba(169, 121, 75, 0.12);
  color: var(--color-starlight);
  border-radius: var(--radius-3xl-2);
  padding: var(--spacing-8) var(--spacing-20);
  font-size: var(--text-body-sm);
  border: 1px solid rgba(169, 121, 75, 0.18);
}
.btn-header:hover {
  background-color: rgba(169, 121, 75, 0.2);
  border-color: rgba(169, 121, 75, 0.32);
  box-shadow: 0 4px 16px rgba(169, 121, 75, 0.12);
}

/* ── Secondary outlined — elegant, understated, never competes with primary ── */
.btn-ghost-fill {
  background: transparent;
  color: var(--color-starlight);
  border: 1px solid var(--color-lead);
  border-radius: var(--radius-3xl);
  padding: var(--spacing-16) var(--spacing-24);
}
.btn-ghost-fill:hover {
  background: rgba(120, 102, 78, 0.06);
  border-color: var(--color-silver);
  box-shadow: 0 4px 18px rgba(120, 102, 78, 0.11);
}

/* Ghost nav link — fades to champagne with a center-out underline on hover */
.nav-link {
  position: relative;
  font-family: var(--font-arcadia);
  font-size: var(--text-body-sm);
  font-weight: var(--font-weight-w420);
  color: var(--color-starlight);
  padding: var(--spacing-8) var(--spacing-12);
  transition: color 0.35s cubic-bezier(.16, 1, .3, 1);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%; right: 50%;
  bottom: 2px;
  height: 1px;
  background: var(--color-champagne);
  transition: left 0.35s cubic-bezier(.16, 1, .3, 1), right 0.35s cubic-bezier(.16, 1, .3, 1);
}
.nav-link:hover { color: var(--color-mercury-blue); }
.nav-link:hover::after { left: var(--spacing-12); right: var(--spacing-12); }
/* Over the dark video scrim at the top, keep the hover text light. */
.nav.is-hero-top .nav-link:hover { color: #f0e2c8; }

/* =====================================================================
   Navigation
   ===================================================================== */
/* ---- Full-width header — spans the viewport; transparent at top, solidifies on scroll ---- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background-color: rgba(245, 240, 232, 0);
  backdrop-filter: blur(0px);
  transition: background-color .35s ease, backdrop-filter .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background-color: rgba(245, 240, 232, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(120, 102, 78, 0.18);
}
/* Header sitting over the cinematic video at the very top — light text + a soft scrim so
   it stays legible against the bright footage (applied only on the desktop video path). */
.nav.is-hero-top {
  background: linear-gradient(180deg, rgba(20, 14, 8, 0.45) 0%, rgba(20, 14, 8, 0) 100%);
}
.nav.is-hero-top .wordmark,
.nav.is-hero-top .nav-link,
.nav.is-hero-top .btn-header {
  color: var(--color-pure-white);
}
.nav.is-hero-top .btn-header {
  background-color: rgba(255, 251, 245, 0.16);
  border-color: rgba(255, 251, 245, 0.24);
}
.nav.is-hero-top .nav-toggle span {
  background-color: var(--color-pure-white);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
/* Logo — editorial serif (kept from the typography pass) */
.wordmark {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--color-starlight);
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-12);
}
/* Brushed champagne-gold dot — metallic gradient, soft glow, slow pulse. */
.wordmark .mark {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f3e7cf 0%, #d6c3a5 46%, #b29a72 100%);
  box-shadow:
    inset 0 1px 1px rgba(255, 250, 240, 0.6),
    0 0 0 3px rgba(214, 195, 165, 0.12),
    0 0 9px rgba(214, 195, 165, 0.4);
  animation: dotPulse 9s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% {
    box-shadow:
      inset 0 1px 1px rgba(255, 250, 240, 0.6),
      0 0 0 3px rgba(214, 195, 165, 0.1),
      0 0 8px rgba(214, 195, 165, 0.32);
  }
  50% {
    box-shadow:
      inset 0 1px 1px rgba(255, 250, 240, 0.7),
      0 0 0 4px rgba(214, 195, 165, 0.18),
      0 0 17px rgba(214, 195, 165, 0.7);
  }
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 52px);   /* refined spacing */
}
.nav-actions { display: flex; align-items: center; gap: var(--spacing-16); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--spacing-8);
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--color-starlight);
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: var(--spacing-4);
  padding: var(--spacing-16) var(--spacing-24) var(--spacing-32);
  background-color: rgba(245, 240, 232, 0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(120, 102, 78, 0.18);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  padding: var(--spacing-12) 0;
  font-size: var(--text-subheading);
  color: var(--color-starlight);
  border-bottom: 1px solid rgba(120, 102, 78, 0.16);
}
.mobile-nav .btn { margin-top: var(--spacing-16); }

/* =====================================================================
   Hero — full-bleed, Three.js canvas behind atmospheric gradient
   ===================================================================== */
.hero-cinematic {
  --hero-start-scale: 0.42;
  position: relative;
  background: var(--color-deep-space);
}
/* The pinned stage — everything animates inside this while it holds for the scroll. */
.hero-stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 4%, rgba(169, 121, 75, 0.08) 0%, rgba(245, 240, 232, 0) 46%),
    linear-gradient(180deg, #f7f2ea 0%, #f1ebe0 55%, var(--color-midnight-slate) 100%);
}

/* ---- Cinematic fly-in video: full-bleed curtain that lifts to reveal the site ---- */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 5;                 /* above the live site until it lifts away */
  overflow: hidden;
  transform-origin: 50% 50%;  /* clip ends full-screen, so settle from centre */
  will-change: transform, opacity, filter;
  background: var(--color-deep-space); /* warm base shows before the video paints */
}
#hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;          /* full-bleed; no letterbox bars on the portrait clip */
  display: block;
}
.hero-video-tint { /* subtle cinematic vignette over the footage */
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 53% 50%, rgba(23,23,33,0) 40%, rgba(23,23,33,0.45) 100%),
    linear-gradient(180deg, rgba(23,23,33,0.30) 0%, rgba(23,23,33,0) 28%, rgba(23,23,33,0.55) 100%);
}

/* ---- Handwritten welcome greeting, overlaid on the footage at the start ---- */
.hero-greeting {
  position: absolute;
  inset: 0;
  z-index: 6;                 /* above the video + its tint */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-8);
  padding: 0 var(--spacing-24);
  text-align: center;
  pointer-events: none;
  will-change: transform, opacity;
}
.hero-greeting-hello {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: clamp(4rem, 10vw, 8.5rem);
  line-height: 0.92;
  color: var(--color-pure-white);
  text-shadow: 0 4px 30px rgba(20, 14, 8, 0.5), 0 1px 4px rgba(20, 14, 8, 0.4);
}
.hero-greeting-sub {
  font-family: "Caveat", cursive;
  font-weight: 600;
  font-size: clamp(1.7rem, 3.6vw, 3.1rem);
  line-height: 1.1;
  color: var(--color-pure-white);
  text-shadow: 0 3px 22px rgba(20, 14, 8, 0.5), 0 1px 3px rgba(20, 14, 8, 0.35);
}
.hero-greeting-sub {
  font-family: "Caveat", cursive;
  font-weight: 600;
  font-size: clamp(1.7rem, 3.6vw, 3.1rem);
  line-height: 1.1;
  color: var(--color-pure-white);
  text-shadow: 0 3px 22px rgba(20, 14, 8, 0.5), 0 1px 3px rgba(20, 14, 8, 0.35);
}

/* ---- The live website the camera flies into (sits beneath the video) ---- */
.hero-zoom {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}
.hero-screen {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    /* dark scrim keeps the white headline legible over the stone */
    linear-gradient(180deg, rgba(20, 15, 10, 0.65) 0%, rgba(20, 15, 10, 0.5) 55%, rgba(20, 15, 10, 0.7) 100%),
    url("images/stones/taupe-limestone.jpg");
  background-size: cover;
  background-position: center;
}
.hero-screen::after { /* faint warm sheen */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255,251,245,0.10) 0%, rgba(255,251,245,0) 28%, rgba(255,251,245,0) 72%, rgba(255,251,245,0.05) 100%);
}
.hero-screen-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--page-max-width);
  padding: 0 var(--spacing-24);
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-8);
  padding: var(--spacing-8) var(--spacing-16);
  border: 1px solid rgba(120, 102, 78, 0.32);
  border-radius: var(--radius-3xl-2);
  font-size: var(--text-caption);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(251, 247, 240, 0.86);
  margin-bottom: var(--spacing-32);
  border-color: rgba(251, 247, 240, 0.3);
  background: rgba(255, 251, 245, 0.1);
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-mercury-blue);
}
.hero-screen-content h1 {
  margin-inline: auto;
  max-width: 16ch;
  margin-bottom: var(--spacing-24);
  color: var(--color-pure-white);
}
.hero-screen-content h1 .soft { color: rgba(251, 247, 240, 0.62); }
.hero-sub {
  font-size: var(--text-heading-sm);
  line-height: 1.5;
  font-weight: var(--font-weight-regular);
  color: rgba(251, 247, 240, 0.8);
  max-width: 52ch;
  margin: 0 auto var(--spacing-40);
}

/* Hero email capture — input joined to primary button */
.email-capture {
  display: flex;
  align-items: stretch;
  max-width: 480px;
  margin-inline: auto;
  border: 1px solid rgba(251, 247, 240, 0.32);
  border-radius: var(--radius-inputs);
  background: rgba(9, 16, 12, 0.4);
  overflow: hidden;
  transition: border-color .25s ease;
}
.email-capture:focus-within { border-color: rgba(251, 247, 240, 0.6); }
.email-capture input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--color-pure-white);
  font-size: var(--text-body);
  padding: var(--spacing-16) var(--spacing-24);
  border-radius: var(--radius-inputs) 0 0 var(--radius-inputs);
}
.email-capture input::placeholder { color: rgba(251, 247, 240, 0.6); opacity: 1; }
.email-capture .btn-primary {
  border-radius: 0 var(--radius-inputs) var(--radius-inputs) 0;
  flex-shrink: 0;
}
.hero-note {
  margin-top: var(--spacing-16);
  font-size: var(--text-body-sm);
  color: rgba(251, 247, 240, 0.66);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: var(--spacing-32);
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-8);
  font-size: var(--text-caption);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-silver);
}
.scroll-cue .line {
  width: 1px; height: 44px;
  background: linear-gradient(180deg, var(--color-lead), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue .line::after {
  content: "";
  position: absolute;
  top: -50%; left: 0;
  width: 100%; height: 50%;
  background: var(--color-starlight);
  animation: cueDrop 2.2s cubic-bezier(.7,0,.3,1) infinite;
}
@keyframes cueDrop {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(300%); }
}

/* =====================================================================
   Logo / trust strip
   ===================================================================== */
.trust {
  background-color: var(--color-deep-space);
  padding-block: var(--spacing-56);
  border-bottom: 1px solid rgba(120, 102, 78, 0.14);
}
.trust p {
  text-align: center;
  font-size: var(--text-caption);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-silver);
  margin-bottom: var(--spacing-32);
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-56);
}
.trust-row span {
  font-family: var(--font-arcadiadisplay);
  font-weight: var(--font-weight-w480);
  font-size: var(--text-heading-sm);
  color: var(--color-lead);
  letter-spacing: 0.02em;
  transition: color .3s ease;
}
.trust-row span:hover { color: var(--color-silver); }

/* =====================================================================
   Services — interactive feature list (1px Lead bottom borders)
   ===================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--spacing-80);
  align-items: start;
}
.feature-list { border-top: 1px solid var(--color-lead); }
.feature-item {
  border-bottom: 1px solid var(--color-lead);
}
.feature-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--spacing-24);
  text-align: left;
  padding: var(--spacing-32) 0;
  transition: padding .3s ease;
}
.feature-index {
  font-family: var(--font-arcadia);
  font-size: var(--text-body-sm);
  color: var(--color-lead);
  width: 2.5ch;
  flex-shrink: 0;
}
.feature-title {
  font-family: var(--font-arcadiadisplay);
  font-weight: var(--font-weight-w480);
  font-size: 28px;
  line-height: 1.2;
  color: var(--color-starlight);
  flex: 1;
  transition: color .3s ease;
}
.feature-plus {
  position: relative;
  width: 18px; height: 18px;
  flex-shrink: 0;
}
.feature-plus::before,
.feature-plus::after {
  content: "";
  position: absolute;
  background: var(--color-silver);
  transition: transform .35s ease, background-color .3s ease;
}
.feature-plus::before { top: 50%; left: 0; width: 100%; height: 1.5px; transform: translateY(-50%); }
.feature-plus::after  { left: 50%; top: 0; width: 1.5px; height: 100%; transform: translateX(-50%); }
.feature-item.is-open .feature-plus::after { transform: translateX(-50%) scaleY(0); }

.feature-panel {
  overflow: hidden;
  height: 0;
  opacity: 0;
  transition: height .4s cubic-bezier(.65,0,.35,1), opacity .35s ease;
}
.feature-panel-inner {
  padding: 0 0 var(--spacing-32) calc(2.5ch + var(--spacing-24));
}
.feature-panel p {
  color: var(--color-silver);
  font-size: var(--text-body);
  line-height: 1.6;
  max-width: 52ch;
}
.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-8);
  margin-top: var(--spacing-20);
}
.feature-tags li {
  font-size: var(--text-caption);
  letter-spacing: 0.04em;
  color: var(--color-silver);
  padding: var(--spacing-4) var(--spacing-12);
  border: 1px solid rgba(120, 102, 78, 0.35);
  border-radius: var(--radius-3xl);
}
.feature-item:hover .feature-title { color: var(--color-ink); }
.feature-item.is-open .feature-title { color: var(--color-ink); }
.feature-item.is-open .feature-plus::before { background: var(--color-starlight); }

.services-aside {
  position: sticky;
  top: 112px;
}
.services-aside .heading-lg { margin-bottom: var(--spacing-24); }

/* =====================================================================
   Work — horizontal scroll showcase (GSAP-pinned)
   The section pins; the .work-track translates X as the user scrolls Y.
   ===================================================================== */
.work-hscroll {
  position: relative;
  background-color: var(--color-deep-space);
  overflow: hidden; /* clip the off-screen slides */
}
/* The horizontal rail. Width is set in JS to (slideCount * 100vw). */
.work-track {
  display: flex;
  height: 100vh;
  height: 100svh;
  will-change: transform;
}
.work-slide {
  position: relative;
  flex: 0 0 100vw;
  width: 100vw;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* ---- Slide media + parallax ---- */
.work-slide-bg {
  position: absolute;
  inset: 0;
  /* extra width so the inner parallax shift never reveals an edge */
  width: 118%;
  left: -9%;
  background-size: cover;
  background-position: center;
  will-change: transform;
  transform: scale(1.04);
}
.work-slide-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(34,25,17,0.90) 0%, rgba(34,25,17,0.55) 38%, rgba(34,25,17,0.15) 70%, rgba(34,25,17,0.45) 100%),
    linear-gradient(180deg, rgba(34,25,17,0.22) 0%, rgba(34,25,17,0) 35%, rgba(34,25,17,0.62) 100%);
}

/* ---- Slide copy ---- */
.work-slide-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding-inline: clamp(var(--spacing-24), 8vw, 140px);
  will-change: transform, opacity;
}
.work-slide-tag {
  display: inline-block;
  font-size: var(--text-caption);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(251, 247, 240, 0.85);
  padding: var(--spacing-8) var(--spacing-16);
  border: 1px solid rgba(251, 247, 240, 0.35);
  border-radius: var(--radius-3xl-2);
  margin-bottom: var(--spacing-24);
  background: rgba(34, 25, 17, 0.35);
}
.work-slide-title {
  font-family: var(--font-arcadiadisplay);
  font-weight: var(--font-weight-w360);
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: 0.01em;
  color: #fbf7f0;            /* cream — sits on the photo, not the page bg */
  margin-bottom: var(--spacing-24);
}
.work-slide-desc {
  font-size: var(--text-subheading);
  line-height: 1.5;
  color: rgba(251, 247, 240, 0.82);
  max-width: 44ch;
  margin-bottom: var(--spacing-40);
}
/* Giant ghost number, lower-right of each slide */
.work-slide-num {
  position: absolute;
  right: clamp(var(--spacing-24), 6vw, 96px);
  bottom: clamp(var(--spacing-24), 5vw, 64px);
  z-index: 2;
  font-family: var(--font-arcadiadisplay);
  font-weight: var(--font-weight-w360);
  font-size: clamp(80px, 16vw, 220px);
  line-height: 0.8;
  color: rgba(251, 247, 240, 0.10);
  letter-spacing: 0.02em;
  pointer-events: none;
  user-select: none;
}

/* ---- Intro slide ---- */
.work-slide--intro {
  background-color: var(--color-deep-space);
}
.work-intro-bg {
  position: absolute;
  inset: 0;
  background:
    /* dark scrim — stronger on the left where the heading sits — for text legibility */
    linear-gradient(90deg, rgba(18, 13, 8, 0.82) 0%, rgba(18, 13, 8, 0.55) 38%, rgba(18, 13, 8, 0.2) 70%, rgba(18, 13, 8, 0.35) 100%),
    url("images/work/intro-bg.jpg");
  background-size: cover;
  background-position: center;
}
.work-intro-content {
  position: relative;
  z-index: 2;
  padding-inline: clamp(var(--spacing-24), 8vw, 140px);
  max-width: 720px;
  will-change: transform, opacity;
}
.work-intro-content .eyebrow { margin-bottom: var(--spacing-24); color: var(--color-mercury-blue); }
.work-intro-content .heading-lg { margin-bottom: var(--spacing-24); color: var(--color-pure-white); }
.work-intro-sub {
  font-size: var(--text-subheading);
  color: rgba(251, 247, 240, 0.82);
  max-width: 40ch;
  margin-bottom: var(--spacing-56);
}
.work-scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-16);
  font-size: var(--text-caption);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(251, 247, 240, 0.7);
}
.work-scroll-arrow {
  display: inline-block;
  font-size: var(--text-subheading);
  color: var(--color-pure-white);
  animation: workArrow 1.8s cubic-bezier(.7,0,.3,1) infinite;
}
@keyframes workArrow {
  0%, 100% { transform: translateX(0); opacity: .65; }
  50% { transform: translateX(8px); opacity: 1; }
}
.work-intro-count {
  position: absolute;
  right: clamp(var(--spacing-24), 6vw, 96px);
  bottom: clamp(var(--spacing-24), 5vw, 64px);
  z-index: 2;
  font-family: var(--font-arcadiadisplay);
  font-weight: var(--font-weight-w360);
  font-size: clamp(80px, 16vw, 220px);
  line-height: 0.8;
  color: rgba(169, 121, 75, 0.18);
  pointer-events: none;
  user-select: none;
}

/* Buttons on dark photo slides need white text */
.work-slide .btn-ghost-fill {
  color: var(--color-pure-white);
  border-color: rgba(251, 247, 240, 0.5);
}
.work-slide .btn-ghost-fill:hover {
  background: rgba(251, 247, 240, 0.1);
  border-color: rgba(251, 247, 240, 0.8);
}

/* ---- Scroll progress bar (bottom of pinned section) ---- */
.work-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: rgba(120, 102, 78, 0.2);
  z-index: 5;
}
.work-progress-fill {
  width: 0%;
  height: 100%;
  background: var(--color-mercury-blue);
  transform-origin: left center;
}

/* =====================================================================
   Process — numbered steps
   ===================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-40);
  counter-reset: step;
}
.process-step {
  padding-top: var(--spacing-24);
  border-top: 1px solid var(--color-lead);
}
.process-step .num {
  font-family: var(--font-arcadiadisplay);
  font-weight: var(--font-weight-w360);
  font-size: var(--text-heading);
  color: var(--color-starlight);
  display: block;
  margin-bottom: var(--spacing-20);
}
.process-step h3 {
  font-family: var(--font-arcadiadisplay);
  font-weight: var(--font-weight-w480);
  font-size: var(--text-subheading);
  color: var(--color-starlight);
  margin-bottom: var(--spacing-8);
}
.process-step p { color: var(--color-silver); font-size: var(--text-body-sm); line-height: 1.6; }

/* =====================================================================
   Stats / metrics
   ===================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-40);
}
.stat { text-align: left; }
.stat .value {
  font-family: var(--font-arcadiadisplay);
  font-weight: var(--font-weight-w360);
  font-size: var(--text-heading-lg);
  line-height: 1;
  color: var(--color-starlight);
  letter-spacing: 0.01em;
}
.stat .value .unit { color: var(--color-lead); }
.stat .label {
  margin-top: var(--spacing-16);
  color: var(--color-silver);
  font-size: var(--text-body-sm);
  max-width: 22ch;
}

/* =====================================================================
   CTA band
   ===================================================================== */
.cta {
  background-color: var(--color-deep-space);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 120% at 50% 0%, rgba(169,121,75,0.13) 0%, rgba(236,228,214,0) 55%);
  pointer-events: none;
}
.cta .container { position: relative; }
.cta h2 { max-width: 18ch; margin: 0 auto var(--spacing-24); }
.cta p { max-width: 46ch; margin: 0 auto var(--spacing-40); color: var(--color-silver); font-size: var(--text-heading-sm); }

/* =====================================================================
   Footer
   ===================================================================== */
.footer {
  background-color: var(--color-deep-space);
  border-top: 1px solid rgba(120, 102, 78, 0.16);
  padding-block: var(--spacing-80) var(--spacing-40);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--spacing-56) var(--spacing-40);
  padding-bottom: var(--spacing-56);
  border-bottom: 1px solid rgba(120, 102, 78, 0.16);
}
.footer-brand .wordmark { margin-bottom: var(--spacing-20); }
.footer-brand p { color: var(--color-silver); font-size: var(--text-body-sm); max-width: 34ch; }
.footer-col h4 {
  font-family: var(--font-arcadia);
  font-size: var(--text-caption);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-silver);
  margin-bottom: var(--spacing-20);
}
.footer-col a {
  display: block;
  color: var(--color-silver);
  font-size: var(--text-body-sm);
  padding-block: var(--spacing-8);
  transition: color .2s ease;
}
.footer-col a:hover { color: var(--color-starlight); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-16);
  padding-top: var(--spacing-32);
  flex-wrap: wrap;
}
.footer-bottom p { color: var(--color-silver); font-size: var(--text-caption); }
.footer-social { display: flex; gap: var(--spacing-24); }
.footer-social a { color: var(--color-silver); font-size: var(--text-body-sm); transition: color .2s ease; }
.footer-social a:hover { color: var(--color-starlight); }

/* =====================================================================
   Scroll-reveal base states (GSAP toggles .is-in)
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
[data-reveal-stagger] > * { opacity: 0; transform: translateY(24px); }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: 1fr; gap: var(--spacing-40); }
  .services-aside { position: static; }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: var(--spacing-32); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--spacing-32); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  :root {
    --text-display: 42px;
    --text-heading-lg: 32px;
    --text-heading: 28px;
  }
  .nav { top: 16px; left: 16px; right: 16px; border-radius: 18px; }
  .nav.is-scrolled { top: 10px; left: 12px; right: 12px; }
  .nav-inner { height: 66px; padding-inline: var(--spacing-20); }
  .nav.is-scrolled .nav-inner { height: 56px; }
  .nav-links { display: none; }
  .nav-actions .btn-header { display: none; }
  .nav-toggle { display: flex; }
  .section { padding-block: var(--spacing-72); }
  .feature-title { font-size: 24px; }
  .footer-top { grid-template-columns: 1fr; gap: var(--spacing-32); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  /* On phones the scroll-scrubbed flight is disabled (see script.js): show a normal hero. */
  .hero-video-wrap { display: none; } /* no scroll-scrub video on phones */
  .hero-greeting { display: none; }   /* greeting belongs to the cinematic flight only */
  .hero-zoom { transform: none !important; opacity: 1 !important; visibility: visible !important; }
  .hero-screen-content { padding-block: 120px 80px; }
  .scroll-cue { display: none; } /* no cinematic "enter" on phones */

  /* Horizontal work scroll → vertical stack on phones (no pin/scrub). */
  .work-track {
    flex-direction: column;
    height: auto;
    transform: none !important;
  }
  .work-slide {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    min-height: 78vh;
  }
  .work-slide-content,
  .work-intro-content { transform: none !important; opacity: 1 !important; }
  .work-progress { display: none; }
}

@media (max-width: 460px) {
  :root { --text-display: 36px; }
  .email-capture { flex-direction: column; border-radius: var(--radius-md); }
  .email-capture input { border-radius: 0; text-align: center; }
  .email-capture .btn-primary { border-radius: 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* =====================================================================
   Reduced motion
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  [data-reveal-stagger] > * { opacity: 1; transform: none; }
  /* No scroll-scrub flight: present a static, full-screen live hero. */
  .hero-video-wrap { display: none; }
  .hero-greeting { display: none; }
  .hero-zoom { transform: none !important; opacity: 1 !important; visibility: visible !important; }

  /* Horizontal work scroll → static vertical stack. */
  .work-track { flex-direction: column; height: auto; transform: none !important; }
  .work-slide { flex: 0 0 auto; width: 100%; height: auto; min-height: 70vh; }
  .work-slide-content, .work-intro-content { transform: none !important; opacity: 1 !important; }
  .work-progress { display: none; }
}
