/* ============================================================
   EIVAA HOMESS — Ultra-Luxury Hero · style.css
   Light Luxury Theme · Warm Architectural Cinema · Performance-First
   ============================================================ */

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=Tiro+Tamil:ital@0;1&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=switzer@1,2&display=swap');

/* ── RESET & BOX MODEL ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── DESIGN TOKENS ── */
:root {
  /* Colors - Dark Theme */
  --bg:             #0A0A0A;
  --ink:            #fdfdfd;
  --ink-muted:      #B3B0A8;
  --gold:           #D4AF37;
  --gold-light:     #E8D5AD;
  --overlay-bg:     rgba(10, 10, 10, 0.75);

  /* Colors - Light Theme */
  --bg-light:       #F9F8F6;
  --ink-dark:       #1A1A1A;
  --ink-dark-muted: rgba(26, 26, 26, 0.65);
  --ink-dark-subtle:rgba(26, 26, 26, 0.4);

  /* Typography */
  --font-display:   'Fraunces', 'Georgia', serif;
  --font-body:      'Switzer', 'General Sans', system-ui, sans-serif;
  --font-tamil:     'Tiro Tamil', serif;

  /* Tracking */
  --track-display:  -0.03em;
  --track-eyebrow:  0.18em;

  /* Spacing System */
  --space-xs:       8px;
  --space-sm:       16px;
  --space-md:       24px;
  --space-lg:       32px;
  --space-xl:       48px;
  --space-xxl:      64px;

  /* Border Radii */
  --radius-sm:      2px;
  --radius-md:      4px;
  --radius-pill:    100px;
  --radius-circle:  50%;

  /* Animation */
  --ease-luxury: cubic-bezier(0.87, 0, 0.13, 1);
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── BASE ── */
html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-height: 100%;
  overflow-x: clip; /* Use clip instead of hidden to prevent position:sticky breakage */
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─────────────────────────────────────────────────
   PRELOADER
───────────────────────────────────────────────── */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  pointer-events: all;
}

.preloader-brand {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ink-muted);
  opacity: 0;
  animation: fadeInUp 0.6s var(--ease-out) 0.2s forwards;
}

.preloader-line-wrap {
  width: 120px;
  height: 1px;
  background: rgba(253, 253, 253, 0.12);
  position: relative;
  overflow: hidden;
  border-radius: 1px;
}

.preloader-line-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  transform: scaleX(0);
  transform-origin: left center;
  border-radius: 1px;
}

.preloader-counter {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
  opacity: 0;
  animation: fadeInUp 0.6s var(--ease-out) 0.3s forwards;
}

/* ─────────────────────────────────────────────────
   HERO WRAPPER
───────────────────────────────────────────────── */
#hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
}


/* ─────────────────────────────────────────────────
   VIDEO BACKGROUND
───────────────────────────────────────────────── */
/* Horizontal film strip: two full-bleed videos side by side.
   The track is twice the viewport wide and slides between them. */
.hero-video-track {
  position: absolute;
  inset: 0;
  width: 200%;
  height: 100%;
  display: flex;
  opacity: 0; /* Fades in via JS */
  will-change: opacity, transform;
  transform: translate3d(0, 0, 0);
  transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
  pointer-events: none;
}

.hero-video {
  flex: 0 0 50%;
  width: 50%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ─────────────────────────────────────────────────
   LIGHT OVERLAY (frosted alabaster)
───────────────────────────────────────────────── */
#overlay {
  position: absolute;
  inset: 0;
background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.28) 0%,
    rgba(10, 10, 10, 0.54) 40%,
    rgba(10, 10, 10, 0.68) 100%
  );
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  will-change: opacity;
  pointer-events: none;
  z-index: 2;
}

/* ─────────────────────────────────────────────────
   HEADER NAVIGATION
───────────────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 28px 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  opacity: 0; /* Animated in via JS */
  will-change: opacity, transform, padding, background-color, backdrop-filter;
  transition: padding 0.5s var(--ease-luxury), background-color 0.4s ease, backdrop-filter 0.4s ease;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 32px;
  mix-blend-mode: difference;
}

.nav-group--right {
  justify-content: flex-end;
}

.nav-link {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff; /* White so difference mode turns it black on light backgrounds */
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.3s var(--ease-out);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: #ffffff; /* White so difference turns it to black on light backgrounds */
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease-luxury);
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* Brand Logo (center) */
.nav-logo {
  text-align: center;
}

.nav-logo a {
  text-decoration: none;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
  transition: opacity 0.3s ease, filter 0.4s ease, height 0.5s var(--ease-luxury);
}

/* ─────────────────────────────────────────────────
   SCROLLED HEADER STATE (Liquid Glass)
───────────────────────────────────────────────── */
#site-header.is-scrolled {
  padding: 12px 48px;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#site-header.is-scrolled .nav-group {
  mix-blend-mode: normal;
}

#site-header.is-scrolled .nav-link {
  color: #000000;
}

#site-header.is-scrolled .nav-link::after {
  background: #000000;
}

#site-header.is-scrolled .logo-img {
  height: 38px;
}

/* ─────────────────────────────────────────────────
   HERO CENTER CONTENT
───────────────────────────────────────────────── */
#hero-center {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  text-align: left;
  padding: clamp(64px, 12vh, 120px) clamp(24px, 5vw, 64px);
  pointer-events: none;
}

/* Tagline above headline */
.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.48em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  opacity: 0;  /* controlled by JS */
  will-change: opacity, transform;
}

/* Main Headline */
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.6vw, 76px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.05;
  color: var(--ink);
  max-width: 1200px;
  margin-bottom: 32px;
  opacity: 0;  /* controlled by JS */
  will-change: opacity, transform;
}

.hero-headline em {
  font-style: normal;
  display: block;
  font-weight: 400;
  font-size: clamp(32px, 4.8vw, 68px);
  color: var(--gold);
}

/* Subtext */
.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(13px, 1.15vw, 15px);
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  max-width: 620px;
  margin-bottom: 48px;
  opacity: 0;  /* controlled by JS */
  will-change: opacity, transform;
}

/* Central Play Button */
.hero-cta {
  pointer-events: all;
  opacity: 0;  /* controlled by JS */
  will-change: opacity, transform;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 14px 32px;
  border: 1px solid rgba(44, 42, 40, 0.25);
  border-radius: 100px;
  position: relative;
  overflow: hidden;
  transition:
    color 0.45s var(--ease-luxury),
    border-color 0.45s var(--ease-luxury);
  background: transparent;
  cursor: pointer;
}

.cta-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  border-radius: 100px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.55s var(--ease-luxury);
  z-index: 0;
}

.cta-btn:hover::before {
  transform: scaleX(1);
}

.cta-btn:hover {
  color: var(--bg);
  border-color: var(--ink);
}

.cta-btn span,
.cta-btn svg {
  position: relative;
  z-index: 1;
}

.cta-arrow {
  width: 12px;
  height: 12px;
  transition: transform 0.35s var(--ease-out);
}

.cta-btn:hover .cta-arrow {
  transform: translateX(4px);
}

/* ─────────────────────────────────────────────────
   BOTTOM BAR
───────────────────────────────────────────────── */
#bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 48px 36px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
  opacity: 0; /* controlled by JS */
  will-change: opacity, transform;
}

/* Central Play Video Button */
.play-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  color: var(--ink);
}

.play-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(253, 253, 253, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.4s ease, transform 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.play-circle::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--ink);
  transform: scale(0);
  transition: transform 0.45s var(--ease-luxury);
}

.play-btn:hover .play-circle {
  transform: scale(1.05);
  border-color: var(--gold);
}

.play-circle svg {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 18px;
  transition: color 0.3s ease;
  margin-left: 4px; /* visual center for triangle */
}

.play-btn:hover .play-circle svg path {
  fill: var(--gold);
  stroke: var(--gold);
}

.play-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color 0.3s ease;
}

.play-btn:hover .play-label {
  color: var(--gold);
}

/* Scroll Indicator (bottom-right) */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.scroll-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-muted);
  writing-mode: horizontal-tb;
}

.scroll-arrow {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--ink-muted), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-arrow::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: scrollPulse 2s var(--ease-out) infinite 2s;
}

@keyframes scrollPulse {
  0% {
    top: -100%;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

/* ============================================================
   HERO FILM CONTROLS (play/pause + Aurora/Antara switch)
   Fixed bottom-centre; stays visible in cinematic video mode.
   ============================================================ */
/* Absolute → lives inside #hero (which clips + scrolls it away).
   Hidden by default; only revealed in cinematic "Watch Film" mode. */
.hero-vid-controls {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 40px;
  background: rgba(16, 16, 16, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(253, 253, 253, 0.16);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease, transform 0.8s var(--ease-luxury);
}

body.video-playing .hero-vid-controls {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.hvc-btn {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(253, 253, 253, 0.28);
  background: transparent;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.hvc-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.hvc-icon-play { margin-left: 1px; }
.hvc-icon-play { display: none; }
.hero-vid-controls.is-paused .hvc-icon-pause { display: none; }
.hero-vid-controls.is-paused .hvc-icon-play { display: block; }

.hvc-seg {
  position: relative;
  flex: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.hvc-seg-name {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(253, 253, 253, 0.5);
  transition: color 0.3s ease;
}

.hvc-seg:hover .hvc-seg-name,
.hvc-seg.is-active .hvc-seg-name {
  color: var(--ink);
}

.hvc-seg-rail {
  display: block;
  width: 52px;
  height: 2px;
  border-radius: 2px;
  background: rgba(253, 253, 253, 0.2);
  overflow: hidden;
}

.hvc-seg-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--gold);
}

@media (max-width: 600px) {
  .hero-vid-controls {
    bottom: 92px; /* clear of the bottom-left SOUND toggle */
    gap: 2px;
    padding: 7px 10px;
  }
  .hvc-btn { width: 30px; height: 30px; }
  .hvc-seg { padding: 4px 9px; }
  .hvc-seg-rail { width: 40px; }
}

/* ============================================================
   GLOBAL AUDIO TOGGLE
   ============================================================ */
.audio-toggle {
  position: fixed;
  bottom: 40px;
  left: 48px;
  right: auto;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: #000000; /* Fixed color for visibility */
  height: 44px;
  padding: 0 20px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .audio-toggle {
    bottom: 24px;
    left: 24px;
    right: auto;
    height: 40px;
    padding: 0 16px;
  }
}

.audio-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border-color: #C9A96E; /* var(--gold) */
}

.audio-text {
  font-family: var(--font-body, 'Switzer', sans-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #000000;
}

.audio-toggle svg {
  width: 16px;
  height: 16px;
  fill: #000000;
  transition: fill 0.3s ease;
}

.audio-toggle:hover svg,
.audio-toggle:hover .audio-text {
  color: #C9A96E; /* var(--gold) */
  fill: #C9A96E;
}




.audio-toggle.is-muted::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 1px;
  background: currentColor;
  transform: rotate(-45deg);
}

body.video-playing .audio-toggle {
  opacity: 0;
  pointer-events: none;
}

/* ─────────────────────────────────────────────────
   CLOSE BUTTON (Video Play Mode)
───────────────────────────────────────────────── */
#close-btn {
  position: fixed;
  top: 32px;
  right: 48px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  background: none;
  border: 1.5px solid rgba(248, 245, 240, 0.5);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    border-color 0.3s ease,
    transform 0.3s var(--ease-out),
    background 0.3s ease;
  will-change: opacity;
}

#close-btn:hover {
  border-color: rgba(248, 245, 240, 0.9);
  background: rgba(248, 245, 240, 0.1);
  transform: rotate(90deg);
}

#close-btn svg {
  width: 14px;
  height: 14px;
  stroke: rgba(248, 245, 240, 0.85);
  transition: stroke 0.3s ease;
}

#close-btn:hover svg {
  stroke: #fff;
}

/* ─────────────────────────────────────────────────
   GENERAL KEYFRAMES
───────────────────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─────────────────────────────────────────────────
   VIDEO PLAY MODE STATE
   (Class toggled by JS — not GSAP opacity control)
───────────────────────────────────────────────── */
body.video-playing #close-btn {
  pointer-events: all;
}

/* ═══════════════════════════════════════════════════════
   SECTION 2 — PINNED SCROLLYTELLING
════════════════════════════════════════════════════════ */

/* Outer container — provides scroll room */
#section2 {
  position: relative;
  height: 320vh;
  background: #F8F5F0;
}

/* Inner sticky pin — stays at top for 320vh of scroll */
.s2-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* NOTE: overflow:hidden here breaks sticky — do NOT add it */
}

/* Each phase is absolutely centered */
.s2-phase {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 48px;
  text-align: center;
  will-change: opacity, transform, filter;
  opacity: 0;
  pointer-events: none;
}

/* Allow click on Play btn in phase 3 */
#s2-p3 {
  pointer-events: all;
  align-items: center;
  flex-direction: column;
  gap: 0;
}

/* ── Phase 1 & 2 : Short Statement Lines ── */
.s2-statement {
  font-family: var(--font-display); /* Fraunces — same as hero headline */
  font-size: clamp(32px, 5.5vw, 76px);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.1;
  color: #2C2A28;
  max-width: 860px;
}

/* Emphasis word in statement */
.s2-statement em {
  font-style: normal;
  font-weight: 600;
  color: #C9A96E; /* gold accent */
}

/* ── Phase 3 : Scrub Paragraph ── */
.s2-paragraph {
  font-family: var(--font-body);
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: 0.01em;
  max-width: 1000px;
  text-align: center;
  color: #2C2A28;
}

/* Individual word spans — start muted, scrub to full ink */
.s2-word {
  display: inline;
  opacity: 0.22; /* visible but clearly muted; scrubs to 1.0 */
  will-change: opacity;
  transition: none; /* GSAP controls this */
}

/* Section 2 divider above */
.s2-eyebrow {
  position: absolute;
  top: 10vh;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.48em;
  text-transform: uppercase;
  color: #C9A96E;
  white-space: nowrap;
  opacity: 0;
}

/* Progress scrubline at bottom of s2 */
.s2-progress-line {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 1px;
  background: rgba(44,42,40,0.12);
  overflow: hidden;
}

.s2-progress-fill {
  position: absolute;
  inset: 0;
  background: #C9A96E;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

/* ── Responsive Section 2 ── */
@media (max-width: 768px) {
  .s2-statement {
    font-size: clamp(26px, 6.5vw, 48px);
  }
  .s2-paragraph {
    font-size: clamp(18px, 4.5vw, 28px);
    line-height: 1.6;
  }
}

@media (max-width: 520px) {
  .s2-phase {
    padding: 0 24px;
  }
  .s2-statement {
    font-size: clamp(24px, 7vw, 36px);
  }
  .s2-paragraph {
    font-size: 18px;
    line-height: 1.65;
  }
  .s2-eyebrow {
    font-size: 8px;
    letter-spacing: 0.36em;
  }
}

/* ─────────────────────────────────────────────────
   RESPONSIVE — TABLET (768px)
───────────────────────────────────────────────── */
@media (max-width: 768px) {
  #site-header {
    padding: 22px 28px;
  }

  .nav-group {
    gap: 20px;
  }

  .nav-link {
    font-size: 10.5px;
  }

  .logo-img {
    height: 40px;
  }

  #site-header.is-scrolled {
    padding: 12px 28px;
  }

  #site-header.is-scrolled .logo-img {
    height: 32px;
  }

  .hero-sub {
    max-width: 480px;
  }

  #bottom-bar {
    padding: 0 28px 28px;
  }
}

/* ─────────────────────────────────────────────────
   RESPONSIVE — MOBILE (900px) — Hamburger Menu
───────────────────────────────────────────────── */
@media (max-width: 900px) {
  /* Switch header to a 3-col grid: [logo area] [logo] [burger area] */
  #site-header {
    grid-template-columns: 1fr auto 1fr;
    padding: 18px 24px;
  }

  /* Hide both nav groups */
  .nav-group--left,
  .nav-group--right {
    display: none !important;
    visibility: hidden;
  }

  /* Show & place the burger button in the right column */
  .menu-toggle {
    display: flex !important;
    grid-column: 3;
    justify-self: end;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    mix-blend-mode: normal; /* disable difference mode for burger lines */
  }

  .logo-img {
    height: 36px;
  }

  #site-header.is-scrolled {
    padding: 10px 24px;
  }

  .hero-headline {
    font-size: clamp(34px, 8vw, 52px);
  }
}

/* ─────────────────────────────────────────────────
   RESPONSIVE — SMALL MOBILE (480px)
───────────────────────────────────────────────── */
@media (max-width: 480px) {
  #site-header {
    padding: 16px 20px;
  }

  .logo-img {
    height: 32px;
  }

  #site-header.is-scrolled {
    padding: 10px 20px;
  }

  .hero-headline {
    font-size: clamp(30px, 7vw, 42px);
  }

  .hero-headline em {
    font-size: clamp(28px, 7vw, 38px);
  }

  .hero-sub {
    font-size: 13px;
    max-width: 320px;
    line-height: 1.7;
    margin-bottom: 36px;
  }
  .cta-btn {
    font-size: 10.5px;
    padding: 12px 24px;
  }

  #bottom-bar {
    padding: 0 20px 24px;
    align-items: flex-end;
  }

  .play-label {
    font-size: 9.5px;
  }

  .scroll-arrow {
    height: 28px;
  }

  #close-btn {
    top: 20px;
    right: 20px;
  }
}

/* ═══════════════════════════════════════════════════════
   SHARED — blurred CTA background (used by about.html / projects.html)
════════════════════════════════════════════════════════ */
.s4-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.s4-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(22px);
  transform: scale(1.08); /* prevents blur edge bleed */
}

/* Warm frosted-glass overlay */
.s4-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

/* ═══════════════════════════════════════════════════════
   WORD MASK — shared reveal primitive for sections 3 & 4
   Each word sits inside an overflow:hidden sleeve so it can
   be lifted into view instead of faded in.
════════════════════════════════════════════════════════ */
.msk {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.msk-i {
  display: inline-block;
  will-change: transform;
}

/* ═══════════════════════════════════════════════════════
   SECTION 3 — OUR PHILOSOPHY
   Sticky title · dimming pillar track · clip-revealed image pane
════════════════════════════════════════════════════════ */
#section3 {
  /* aligned to the site's editorial light palette (see Section 2) */
  --paper:     #F8F5F0;   /* warm cream, matches #section2 */
  --paper-2:   #ECE6DC;   /* slightly deeper cream for media wells */
  --ink-warm:  #2C2A28;   /* primary editorial ink */
  --ink-soft:  rgba(44, 42, 40, 0.62);  /* muted secondary text */
  --clay:      #C9A96E;   /* soft gold accent — the site's editorial gold */
  --line-warm: rgba(44, 42, 40, 0.12);  /* hairline dividers */

  position: relative;
  background: var(--paper);
  color: var(--ink-warm);
}

.ph-grid {
  display: grid;
  gap: 4rem;
  padding: 7rem clamp(24px, 5vw, 48px);
}

@media (min-width: 1024px) {
  .ph-grid {
    grid-template-columns: 1.05fr 1.2fr 0.95fr;
    gap: 3.5rem;
    padding: 10rem clamp(32px, 4vw, 64px);
  }
}

/* ─── LEFT — sticky title ─── */
@media (min-width: 1024px) {
  .ph-lead-inner {
    position: sticky;
    top: 8rem;
  }
}

.ph-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--clay);
}

.ph-rule {
  display: inline-block;
  flex: none;
  width: 2rem;
  height: 1px;
  background: var(--clay);
}

.ph-title {
  margin-top: 1.75rem;
  max-width: 16ch;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.2vw, 3.2rem);
  line-height: 1.16;
  letter-spacing: 0;
  font-optical-sizing: auto;
}

.ph-title em,
.cf-title em {
  font-style: normal;
  font-weight: 600;
  color: var(--clay);
}

.ph-intro {
  margin-top: 1.75rem;
  max-width: 38ch;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-soft);
}

.ph-intro em {
  font-style: normal;
  font-weight: 600;
  color: var(--ink-warm);
}

/* ─── CENTRE — the pillars ─── */
.ph-list {
  position: relative;
}

@media (min-width: 1024px) {
  .ph-list {
    padding-left: 2.5rem;
  }
}

.ph-track {
  display: none;
}

@media (min-width: 1024px) {
  .ph-track {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 1px;
    background: var(--line-warm);
  }
}

.ph-marker {
  position: absolute;
  top: 0;
  left: -1px;
  width: 2px;
  height: 25%;
  background: var(--clay);
}

.ph-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem 0;
}

.ph-item:first-of-type { padding-top: 0; }
.ph-item:last-of-type  { padding-bottom: 0; }

@media (min-width: 1024px) {
  .ph-item {
    min-height: 62vh;
    padding: 2.5rem 0;
  }
}

.ph-num-mask {
  display: block;
  overflow: hidden;
}

.ph-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3.2rem, 5vw, 5rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(44, 42, 40, 0.38);
}

.ph-item-title {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: 0;
}

.ph-item-body {
  margin-top: 1rem;
  max-width: 44ch;
  font-size: 0.97rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-soft);
}

.ph-tamil {
  margin-top: 1.25rem;
}

.ph-tamil-line {
  display: block;
  font-family: var(--font-tamil);
  font-size: 1.05rem;
  color: var(--clay);
}

.ph-tamil-meta {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: rgba(44, 42, 40, 0.5);
}

/* inline media — mobile / tablet only */
.ph-item-media {
  margin-top: 2rem;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-2);
}

@media (min-width: 1024px) {
  .ph-item-media { display: none; }
}

/* ─── RIGHT — sticky image pane ─── */
.ph-pane-wrap {
  display: none;
}

@media (min-width: 1024px) {
  .ph-pane-wrap { display: block; }
}

.ph-pane-sticky {
  position: sticky;
  top: 8rem;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-2);
}

.ph-pane {
  position: absolute;
  inset: 0;
}

.ph-item-media img,
.ph-pane img,
.ph-vastu {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ph-vastu {
  background: var(--paper-2);
  font-family: var(--font-body);
}

/* ═══════════════════════════════════════════════════════
   SECTION 4 — CRAFTED FOR YOUR LIFE
   Default DOM is a vertical stack (mobile + reduced motion);
   JS adds .cf-horizontal on desktop to turn the track into a
   pinned sideways film strip.
════════════════════════════════════════════════════════ */
#section4 {
  /* cinematic dark ground — the film strip needs the dark surround
     to hold the screen (matches #ab-section4 on the About page) */
  --paper:      #FDFDFD;   /* primary light text on dark */
  --espresso:   #0A0A0A;   /* near-black section ground */
  --clay:       #C9A96E;   /* soft gold accent */
  --line-dark:  rgba(253, 253, 253, 0.14);

  /* caption tones — overridable per page (see #ab-section4 in about.css) */
  --cf-ink-soft:   rgba(253, 253, 253, 0.72);
  --cf-ink-mute:   rgba(253, 253, 253, 0.62);
  --cf-ink-stroke: rgba(253, 253, 253, 0.42);
  --cf-scrim:      rgba(10, 10, 10, 0.72);

  position: relative;
  overflow: hidden;
  background: var(--espresso);
  color: var(--paper);
}

.cf-viewport {
  padding: 6rem clamp(24px, 5vw, 48px);
}

.cf-track {
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
}

.cf-eyebrow {
  color: var(--clay);
}

.cf-title {
  margin-top: 1.75rem;
  max-width: 15ch;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 3.6vw, 3.6rem);
  line-height: 1.14;
  letter-spacing: 0;
  font-optical-sizing: auto;
}

.cf-intro-text {
  margin-top: 1.75rem;
  max-width: 40ch;
  font-weight: 300;
  line-height: 1.75;
  color: var(--cf-ink-soft);
}

.cf-frame {
  margin: 0;
}

.cf-mask {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--espresso);
}

.cf-mask img {
  position: absolute;
  top: 0;
  left: -8%;
  width: 116%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

/* Scrim so the overlapping caption stays legible on any frame. On the
   light ground it is kept short and firm — a clean fade into the page at
   the exact overlap zone, rather than a haze across the whole photo. */
.cf-mask::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 22%;
  background: linear-gradient(to top, var(--cf-scrim), transparent);
  pointer-events: none;
}

.cf-cap {
  position: relative;
  z-index: 2;
  margin-top: -2rem;
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  padding: 0 0.75rem;
}

.cf-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3.6rem, 6vw, 6.4rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--cf-ink-stroke);
}

.cf-cap-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.cf-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2vw, 2rem);
  line-height: 1;
  letter-spacing: 0;
}

.cf-sub {
  max-width: 38ch;
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.4;
  color: var(--cf-ink-mute);
}

/* journey progress — only shown in horizontal mode */
.cf-progress {
  display: none;
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  width: 11rem;
  transform: translateX(-50%);
  pointer-events: none;
}

.cf-progress-rail {
  height: 1px;
  width: 100%;
  background: var(--line-dark);
}

.cf-progress-bar {
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: var(--clay);
}

/* ─── horizontal mode (desktop, motion allowed) ─── */
.cf-horizontal .cf-viewport {
  position: relative;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
}

.cf-horizontal .cf-track {
  flex-direction: row;
  align-items: center;
  gap: 7vw;
  width: max-content;
  padding: 0 10vw;
}

.cf-horizontal .cf-intro {
  flex: none;
  width: 40vw;
  min-width: 420px;
  max-width: 620px;
}

.cf-horizontal .cf-frame {
  flex: none;
  width: min(108svh, 74vw);
}

.cf-horizontal .cf-mask {
  aspect-ratio: auto;
  height: 60svh;
  width: 100%;
}

.cf-horizontal .cf-cap {
  margin-top: -3rem;
}

.cf-horizontal .cf-progress {
  display: block;
}


/* ═══════════════════════════════════════════════════════
   SECTION 5 — PROJECTS & COMMUNITIES
════════════════════════════════════════════════════════ */

#section5 {
  background: #F9F8F6;
  padding: 6vh 0 0;
  font-family: var(--font-body);
  color: #1A1A1A;
  overflow-x: clip;
}

/* ── Intro block ── */
.s5-intro {
  max-width: 820px;
  margin: 0 0 6vh;
  padding: 0 clamp(24px, 4vw, 60px) 0 clamp(24px, 5vw, 72px);
  text-align: left;
}

.s5-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.8vw, 54px);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: #1A1A1A;
  margin-bottom: 18px;
}

.s5-intro-text {
  font-size: clamp(17px, 1.9vw, 26px);
  font-weight: 300;
  line-height: 1.75;
  color: rgba(26, 26, 26, 0.78);
  letter-spacing: 0.01em;
}

/* ── Main sticky + scroll layout ── */
.s5-stacking-arena {
  position: relative;
  width: 100%;
}

.s5-project {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  margin-bottom: 0;
  /* z-index set progressively by JS */
}

/* ── Sticky container fills each project ── */
.s5-sticky-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* Image background */
.s5-img-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #1A1A1A;
}

.s5-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* Will be animated by GSAP from scale 1.15 down to 1 */
  will-change: transform;
}

/* Cinematic scrim — darkens the bottom-left where the text lives so the
   title stays legible over bright skies and pale facades alike. */
.s5-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 7, 5, 0) 34%, rgba(8, 7, 5, 0.30) 62%, rgba(8, 7, 5, 0.82) 100%),
    linear-gradient(75deg, rgba(8, 7, 5, 0.62) 0%, rgba(8, 7, 5, 0.12) 42%, rgba(8, 7, 5, 0) 66%);
}

/* Overlay for Title and Meta — anchored bottom-left, editorial */
.s5-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 0 clamp(24px, 5vw, 72px) clamp(56px, 10vh, 116px);
  z-index: 10;
  pointer-events: none;
}

/* Eyebrow — gold, tracked, with a hairline tick (top of the hierarchy) */
.s5-proj-meta {
  order: -1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(14px, 1.6vw, 22px);
}

.s5-proj-cat {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body, 'Switzer', sans-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #E4C486; /* soft gold, legible on the scrim */
}

.s5-proj-cat::before {
  content: '';
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.85;
}

.s5-proj-loc {
  font-family: var(--font-body, 'Switzer', sans-serif);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.s5-proj-loc::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 3px;
  margin-right: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  vertical-align: middle;
}

.s5-proj-title {
  display: block;
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: clamp(44px, 8vw, 128px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 0.98;
  color: #FFFFFF;
  margin-bottom: clamp(20px, 2.6vw, 34px);
  text-shadow: 0 14px 50px rgba(0, 0, 0, 0.45);
}

/* ── Clickable project cards ── */
.s5-proj-link {
  cursor: pointer;
}

.s5-proj-link .s5-img-wrap img {
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.s5-proj-link:hover .s5-img-wrap img {
  transform: scale(1.04);
}

.s5-view-btn {
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
  font-family: var(--font-body, 'Switzer', sans-serif);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.3s ease;
  pointer-events: none;
}

/* hairline underline that draws in from the left on hover */
.s5-view-btn::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.4);
  transform-origin: left center;
  opacity: 0.6;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
}

.s5-proj-link:hover .s5-view-btn {
  color: #E4C486;
}

.s5-proj-link:hover .s5-view-btn::after {
  transform: scaleX(1);
  opacity: 1;
}

/* ── Outro block ── */
.s5-outro-wrap {
  position: relative;
  background: #F9F8F6; /* Covers sticky elements underneath */
  z-index: 10;
}

.s5-outro {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12vh 0 6vh;
  gap: 32px;
}

.s5-outro-text {
  font-family: var(--font-body);
  font-size: clamp(18px, 2.2vw, 28px);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(26, 26, 26, 0.55);
  text-align: center;
}

.s5-outro-line {
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, rgba(26,26,26,0.25), transparent);
}

/* ── Mobile responsive ── */
@media (max-width: 768px) {
  .s5-overlay {
    justify-content: flex-end;
    padding-bottom: 12vh;
  }
}



/* ============================================================
   SECTION CTA — FINAL CALL TO ACTION
   ============================================================ */

#section-cta {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #F9F8F6;
}

/* ── Animated background (Reusing .s4-bg classes from Section 4) ── */

/* ── CTA Card (Floating frosted glass) ── */
.cta-card {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(24px, 3vh, 40px);
  padding: clamp(32px, 4vw, 64px) clamp(28px, 5vw, 80px);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(26, 26, 26, 0);
  box-shadow:
    0 4px  12px rgba(0, 0, 0, 0.03),
    0 16px 40px rgba(0, 0, 0, 0.05),
    0 40px 80px rgba(0, 0, 0, 0.04);
  max-width: 680px;
  width: 90vw;
  text-align: center;
  /* Scroll entrance — starts hidden */
  opacity: 0;
  transform: translateY(50px);
  transition:
    opacity 1s cubic-bezier(0.25, 1, 0.5, 1),
    transform 1s cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow 0.4s ease;
  will-change: transform, opacity;
}

.cta-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cta-card:hover {
  box-shadow:
    0 8px  20px rgba(0, 0, 0, 0.05),
    0 24px 60px rgba(0, 0, 0, 0.08),
    0 60px 120px rgba(0, 0, 0, 0.06);
}

/* ── Editorial text (eyebrow & tagline) ── */
.cta-eyebrow,
.cta-tagline {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: clamp(9px, 0.9vw, 11px);
  font-weight: 300;
  letter-spacing: 0.25em;
  line-height: 1.7;
  color: #1A1A1A;
  text-transform: uppercase;
}

/* ── Portrait image container ── */
.cta-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  max-height: 42vh;
  background: #e8e3db;
  display: block;
}

.cta-img {
  width: 100%;
  height: 110%;
  object-fit: cover;
  display: block;
  transition: transform 1.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
  transform: scale(1.05) translateY(-2%);
}

/* ── Overlay button (Get In Touch) ── */
.cta-img-wrap .cta-btn {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: #F9F8F6;
  border: 1px solid #1A1A1A;
  border-radius: 4px;
  padding: 14px 24px;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: clamp(10px, 0.9vw, 11px);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #1A1A1A;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  overflow: hidden;
  pointer-events: none; /* Let clicks pass through to the wrapper link */
}

/* ── Hover fill animation ── */
.cta-img-wrap .cta-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #1A1A1A;
  border-radius: 4px; /* Fix the inherited oval border-radius */
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 0;
}

.cta-img-wrap:hover .cta-btn::before {
  transform: scaleY(1);
}

.cta-btn-text {
  position: relative;
  z-index: 1;
  transition: color 0.4s ease;
}

.cta-img-wrap:hover .cta-btn-text {
  color: #F9F8F6;
}

.cta-img-wrap:hover .cta-img {
  transform: scale(1.09) translateY(-2%);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .cta-card {
    padding: 28px 20px;
    max-width: 92vw;
    gap: 20px;
  }
  .cta-img-wrap {
    max-height: 46vh;
  }
}


/* ============================================================
   GLOBAL FOOTER
   ============================================================ */

#site-footer {
  position: relative;
  background: #F9F8F6;
  color: #1A1A1A;
  padding: 10vh 6vw 0;
  overflow: hidden;
  /* Curtain reveal: footer sits sticky at bottom, previous sections scroll over it */
  /* Note: sticky-below-scroll achieved via body stacking context */
}

/* ── Top tier grid ── */
.ft-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  padding-bottom: 6vh;
}
.ft-col--nav {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* ── Column label ── */
.ft-col-label {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: clamp(9px, 0.8vw, 10px);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #1A1A1A;
  margin-bottom: 20px;
}

/* ── Newsletter sub-text ── */
.ft-col-subtext {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: clamp(12px, 1vw, 13px);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(26, 26, 26, 0.55);
  margin-bottom: 28px;
  max-width: 340px;
}

/* ── Minimalist form ── */
.ft-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ft-field {
  position: relative;
  width: 100%;
}

.ft-field input {
  width: 100%;
  background: rgba(26, 26, 26, 0.03);
  border: 1px solid rgba(26, 26, 26, 0.12);
  border-radius: 4px;
  outline: none;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: clamp(12px, 1vw, 13px);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #1A1A1A;
  padding: 12px 16px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.ft-field input::placeholder {
  color: rgba(26, 26, 26, 0.4);
  font-weight: 300;
}

.ft-field input:focus {
  border-color: #1A1A1A;
  background: #fff;
}

/* ── Submit button ── */
.ft-submit {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  background: transparent;
  border: 1px solid #1A1A1A;
  border-radius: 4px;
  cursor: pointer;
  padding: 14px 24px;
  margin-top: 8px;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: clamp(10px, 0.9vw, 11px);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #1A1A1A;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
}

.ft-submit::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #1A1A1A;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 0;
}

.ft-submit:hover::before {
  transform: scaleY(1);
}

.ft-submit span {
  position: relative;
  z-index: 1;
  transition: color 0.4s ease;
}

.ft-submit:hover span {
  color: #F9F8F6;
}

.ft-submit .ft-submit-line {
  display: none;
}

/* ── Navigation & Social lists ── */
.ft-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ft-nav-list a {
  display: inline-block;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: clamp(10px, 0.9vw, 11px);
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #1A1A1A;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.ft-nav-list a:hover { opacity: 0.4; }

/* ── Divider ── */
.ft-divider {
  width: 100%;
  height: 1px;
  background: rgba(26, 26, 26, 0.12);
  margin-bottom: 0;
}

/* ── Brand logo (top of footer, usual placement) ── */
.ft-brand {
  margin-bottom: clamp(28px, 4vh, 48px);
}

.ft-brand-logo {
  display: block;
  height: clamp(38px, 3.4vw, 50px);
  width: auto;
  max-width: 100%;
}

/* ── Legal bar ── */
.ft-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0 22px;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: clamp(9px, 0.75vw, 10px);
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(26, 26, 26, 0.4);
}

/* ── Staggered entrance items ── */
.ft-reveal-item {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.9s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}

.ft-reveal-item.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.ft-reveal-item:nth-child(1) { transition-delay: 0.05s; }
.ft-reveal-item:nth-child(2) { transition-delay: 0.18s; }
.ft-reveal-item:nth-child(3) { transition-delay: 0.30s; }

/* ── Responsive ── */
@media (max-width: 768px) {
  #site-footer { padding: 8vh 5vw 0; }
  .ft-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .ft-legal {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}

/* ============================================================
   MOBILE MENU — Burger Icon + Full-Screen Overlay
   Triggered by .is-active and .is-open from menu.js
   ============================================================ */

/* ── Burger Button (hidden on desktop) ── */
.menu-toggle {
  display: none; /* Shown only at ≤900px via media query above */
  background: transparent;
  border: none;
  width: 44px;
  height: 44px;
  cursor: pointer;
  z-index: 1010;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.burger-line {
  display: block;
  width: 26px;
  height: 1.5px;
  background: #ffffff;
  border-radius: 2px;
  transform-origin: center;
  transition:
    transform 0.4s cubic-bezier(0.87, 0, 0.13, 1),
    opacity 0.3s ease;
}

/* When header has scrolled (light bg), make lines dark */
#site-header.is-scrolled .burger-line {
  background: #1A1A1A;
}

/* X animation on open */
.menu-toggle.is-active .burger-line:nth-child(1) {
  transform: translateY(3.75px) rotate(45deg);
}
.menu-toggle.is-active .burger-line:nth-child(2) {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* When menu is open, always show dark X (overlay is light) */
.menu-toggle.is-active .burger-line {
  background: #1A1A1A !important;
}

/* ── Full-Screen Overlay ── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: #F9F8F6;
  z-index: 1000;

  /* Hidden state */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  /* CSS slide-down animation */
  transform: translateY(-100%);
  transition: transform 0.7s cubic-bezier(0.87, 0, 0.13, 1);

  /* Prevent interaction when closed */
  pointer-events: none;
}

.mobile-menu.is-open {
  transform: translateY(0);
  pointer-events: auto;
}

/* ── Nav Links inside overlay ── */
.mobile-menu-inner {
  text-align: center;
  width: 100%;
  padding: 0 40px;
}

.menu-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-link-wrap {
  overflow: hidden;
  display: block;
}

.menu-nav-link {
  display: block;
  font-family: 'Fraunces', 'Georgia', serif;
  font-size: clamp(32px, 9vw, 60px);
  font-weight: 400;
  color: #1A1A1A;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 8px 0;
  transition: color 0.3s ease, letter-spacing 0.4s ease;

  /* Slide-up from below (staggered by CSS only) */
  transform: translateY(40px);
  opacity: 0;
  transition:
    transform 0.6s cubic-bezier(0.87, 0, 0.13, 1),
    opacity 0.5s ease,
    color 0.3s ease;
}

.mobile-menu.is-open .menu-nav-link {
  transform: translateY(0);
  opacity: 1;
}

/* Stagger delays for each link */
.mobile-menu.is-open .menu-nav-list li:nth-child(1) .menu-nav-link { transition-delay: 0.25s; }
.mobile-menu.is-open .menu-nav-list li:nth-child(2) .menu-nav-link { transition-delay: 0.35s; }
.mobile-menu.is-open .menu-nav-list li:nth-child(3) .menu-nav-link { transition-delay: 0.45s; }
.mobile-menu.is-open .menu-nav-list li:nth-child(4) .menu-nav-link { transition-delay: 0.55s; }

.menu-nav-link:hover {
  color: rgba(26, 26, 26, 0.45);
  letter-spacing: 0.06em;
}

.menu-nav-link.active {
  color: #1A1A1A;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 8px;
}

/* Explicit Close Button inside Menu */
.mobile-close-btn {
  margin-top: 48px;
  background: transparent;
  border: 1px solid rgba(26, 26, 26, 0.15);
  padding: 12px 36px;
  border-radius: 100px;
  font-family: var(--font-body, 'Switzer', sans-serif);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: #1A1A1A;
  cursor: pointer;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(20px);
}

.mobile-close-btn:hover {
  background: #1A1A1A;
  color: #F9F8F6;
  border-color: #1A1A1A;
}

.mobile-menu.is-open .mobile-close-btn {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease 0.65s, transform 0.6s cubic-bezier(0.87, 0, 0.13, 1) 0.65s, background 0.4s, color 0.4s;
}

/* ─────────────────────────────────────────────────
   ACCESSIBILITY: Keyboard Focus (WCAG 2.2)
───────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

/* Remove default focus if mouse-clicked to preserve luxury aesthetic */
:focus:not(:focus-visible) {
  outline: none;
}

/* ============================================================
   ACCESSIBILITY UTILITIES (site-wide)
   ============================================================ */

/* Visible to screen readers, hidden on screen. */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Keyboard focus should always be visible. */
:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid var(--gold, #d4af37);
  outline-offset: 3px;
}
