/* ============================================================
   InternalWalls — Design System v3
   Dark/Light theme-aware · Vanilla CSS · No build step
   ============================================================ */

/* ─── Reset & Box Model ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; }
address { font-style: normal; }

/* ─── Design Tokens (Light Mode Defaults) ───────────────────── */
:root {
  /* Brand palette — strict (Graphite / Sandstone / Terracotta) */
  --color-graphite:   #2D2D2D;   /* Primary / Discipline */
  --color-sandstone:  #D9C5B2;   /* Secondary / Warmth   */
  --color-terracotta: #A64B2A;   /* Accent / The Art     */

  /* Legacy aliases — repointed to the brand palette so the existing
     cascade keeps working. New code should reference the brand tokens. */
  --color-cream:       #D9C5B2;
  --color-cream-mid:   #C4AE94;
  --color-warm-white:  #F5EFE7;
  --color-ink:         #2D2D2D;
  --color-ink-mid:     #3A3A3A;
  --color-body:        #4A4A4A;
  --color-muted:       #7A7A7A;
  --color-rule:        #D9C5B2;
  --color-gold:        #A64B2A;
  --color-gold-light:  #C25E3A;
  --color-gold-dark:   #8A3D20;

  /* ── Semantic theme tokens (swap with [data-theme="dark"]) ── */
  --bg-page:        #F5EFE7;             /* light-section backgrounds          */
  --bg-surface:     #FBF8F4;             /* statement / testimonials surface   */
  --bg-elevated:    #EDE0D1;             /* cards, raised elements             */
  --text-primary:   #2D2D2D;             /* headings, prominent text           */
  --text-body:      rgba(45,45,45,.78);  /* paragraph text                     */
  --text-subtle:    rgba(45,45,45,.55);  /* captions, labels, muted            */
  --border-color:   rgba(45,45,45,.12);  /* dividers, borders                  */

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(45,45,45,.05), 0 1px 2px rgba(45,45,45,.04);
  --shadow-md: 0 4px 20px rgba(45,45,45,.07), 0 2px 6px rgba(45,45,45,.04);
  --shadow-lg: 0 8px 40px rgba(45,45,45,.10), 0 4px 12px rgba(45,45,45,.06);

  /* Nav scrolled */
  --nav-scrolled-bg:     rgba(245,239,231,.95);
  --nav-scrolled-border: rgba(166,75,42,.12);
  --nav-scrolled-shadow: 0 1px 0 rgba(45,45,45,.06), 0 4px 20px rgba(45,45,45,.04);

  /* Border-radius scale */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   20px;
  --radius-pill: 999px;

  /* Type — Syne everywhere; serif token aliased to Syne so legacy refs cascade. */
  --font-serif: 'Syne', system-ui, sans-serif;
  --font-sans:  'Syne', system-ui, sans-serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  6rem;
  --space-xxl: 9rem;

  /* Container */
  --container:      1200px;
  --container-wide: 1440px;
  --container-pad:  clamp(1.5rem, 5vw, 4rem);

  /* Easing — organic cubic-bezier throughout */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --duration:    0.7s;

  --nav-height: 76px;   /* pill height ~58px + top offset ~18px */
}

/* ─── Dark Mode Overrides ────────────────────────────────────── */
[data-theme="dark"] {
  /* Graphite (#2D2D2D) equals the dark-mode page bg, so any element using
     it would vanish. Re-point to a near-black so brand-dark surfaces (e.g.
     the chatbot FAB) still read as the darkest layer above the page. */
  --color-graphite: #111111;

  --bg-page:        #2D2D2D;
  --bg-surface:     #353535;
  --bg-elevated:    #404040;
  --text-primary:   #D9C5B2;
  --text-body:      rgba(217,197,178,.78);
  --text-subtle:    rgba(217,197,178,.5);
  --border-color:   rgba(217,197,178,.15);

  --shadow-sm: 0 2px 8px rgba(0,0,0,.22), 0 1px 2px rgba(0,0,0,.14);
  --shadow-md: 0 4px 20px rgba(0,0,0,.32), 0 2px 6px rgba(0,0,0,.18);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.48), 0 4px 12px rgba(0,0,0,.26);

  --nav-scrolled-bg:     rgba(45,45,45,.97);
  --nav-scrolled-border: rgba(166,75,42,.18);
  --nav-scrolled-shadow: 0 1px 0 rgba(0,0,0,.5), 0 4px 20px rgba(0,0,0,.30);
}

/* ─── Smooth Theme Transitions ───────────────────────────────── */
/* Applied to containers that change color between themes.
   Intentionally NOT applied to hover-animated elements to avoid
   sluggish hover states. */
body,
.statement, .heritage, .process, .showcase, .testimonials, .intro,
.gallery, .nri, .faq,
.process__step, .testimonial, .contact__form-wrap {
  transition: background-color .35s ease, color .35s ease;
}
.section-heading, .section-body, .section-label,
.intro__eyebrow, .intro__headline, .intro__subline,
.stat__number, .stat__label,
.statement__text, .statement__attribution, .statement__label,
.heritage__stats,
.process__step-heading, .process__step-body,
.testimonial__text, .testimonial__name, .testimonial__project,
.footer__nav-link, .footer__address, .footer__phone, .footer__email,
.footer__copy, .footer__legal-link,
.gallery__tab, .nri__feature-heading, .nri__feature-body,
.faq__question, .faq__answer {
  transition: color .35s ease, border-color .35s ease;
}

/* ─── Base Typography ────────────────────────────────────────── */
body {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-page);
  overflow-x: hidden;
}

/* ─── Scroll Reveal (initial state for GSAP) ─────────────────── */
[data-reveal] { will-change: transform, opacity; }

/* ─── Accessibility: Focus Rings ────────────────────────────── */
/* Visible ring on keyboard focus; hidden on mouse click */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
:focus:not(:focus-visible) { outline: none; }

/* ─── Layout Utilities ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.container--wide { max-width: var(--container-wide); }

/* ─── Typography Utilities ───────────────────────────────────── */
.section-label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
  display: block;
}
.section-label--light { color: var(--color-gold-light); }

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-md);
}
.section-heading--light { color: var(--text-primary); }
.section-heading em { font-style: normal; font-weight: 700; color: var(--color-terracotta); }
.section-heading--light em { color: var(--color-terracotta); }

.section-body {
  font-size: 1.1875rem;
  line-height: 1.8;
  color: var(--text-body);
  max-width: 52ch;
  margin-bottom: var(--space-md);
}
.section-body--light  { color: var(--text-body); }
.section-body--wide   { max-width: 68ch; }
.section-body--center { text-align: center; margin-inline: auto; }

/* ─── Button System ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.9em 2.25em;
  /* Design decision: pill shape for all buttons — modern, friendly,
     contrasts elegantly with the serif headline typography. */
  border-radius: var(--radius-pill);
  transition: background-color 0.3s ease, color 0.3s ease,
              border-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}
/* Hover: lift */
.btn:hover { transform: translateY(-2px); }
/* Active: slight press-down feedback */
.btn:active { transform: scale(0.97) translateY(0); }

.btn--primary {
  background-color: var(--color-gold);
  color: var(--color-warm-white);
  border: 1px solid var(--color-gold);
}
.btn--primary:hover {
  background-color: var(--color-gold-dark);
  border-color: var(--color-gold-dark);
  /* Warm gold glow on hover — matches brand accent */
  box-shadow: 0 8px 32px rgba(166,75,42,.40);
}

.btn--ghost {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.btn--ghost:hover {
  background-color: var(--bg-elevated);
  border-color: var(--text-primary);
}

.btn--outline-gold {
  background-color: transparent;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
}
.btn--outline-gold:hover {
  background-color: rgba(166,75,42,.08);
  border-color: var(--color-gold-dark);
  color: var(--color-gold-dark);
  box-shadow: 0 4px 16px rgba(166,75,42,.20);
}

.btn--lg { padding: 1.1em 3em; font-size: 0.8125rem; }
.btn--full { width: 100%; justify-content: center; }
.btn__arrow { transition: transform 0.3s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(5px); }

/* ─── NAVIGATION — Floating pill (Eight Sleep style) ─────────── */
/* Design decision: the nav is a self-contained frosted-glass pill
   that floats above the page at all times. It is always dark so
   link/logo colours are always cream — no scroll-state colour flip. */
.nav {
  position: fixed;
  top: clamp(0.6rem, 1.5vw, 1.1rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - clamp(1.5rem, 4vw, 4rem));
  max-width: 1400px;
  height: auto;
  /* Always-on frosted-glass dark background */
  background: rgba(14, 10, 7, 0.68);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(247, 242, 236, 0.09);
  border-radius: var(--radius-lg);        /* 16 px — matches the Eight Sleep look */
  transition: background-color 0.4s var(--ease-out),
              box-shadow 0.4s var(--ease-out),
              border-color 0.4s var(--ease-out);
}
/* Scrolled: darker + stronger shadow for depth.
   Nav is always dark → graphite pill regardless of theme. */
.nav.nav--scrolled {
  background: rgba(45, 45, 45, 0.92);
  box-shadow: 0 6px 28px rgba(0,0,0,.35), 0 1px 0 rgba(217,197,178,.06);
  border-color: rgba(247, 242, 236, 0.12);
}
/* Nav is always dark → keep all colours sandstone regardless of scroll.
   The logo SVG mark keeps its own color (terracotta/sandstone via theme). */
.nav.nav--scrolled .nav__link              { color: rgba(217,197,178,.88); }
.nav.nav--scrolled .nav__link:hover,
.nav.nav--scrolled .nav__link.is-active   { color: var(--color-terracotta); }
.nav.nav--scrolled .nav__logo-text        { color: rgba(217,197,178,.92); }
.nav.nav--scrolled .nav__cta              { color: rgba(217,197,178,.88); border-color: rgba(217,197,178,.4); }
.nav.nav--scrolled .nav__hamburger span   { background-color: var(--color-cream); }
.nav.nav--scrolled .nav__theme-toggle     { color: rgba(217,197,178,.72); }

.nav__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: auto;
  padding: 0.8rem clamp(1.25rem, 3vw, 2.5rem);
  gap: 1rem;
}

/* Mobile socials row */
.nav__mobile-socials {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.nav__mobile-social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(217,197,178,.45);
  transition: color 0.2s;
}
.nav__mobile-social-link:hover { color: var(--color-gold-light); }

/* Logo — pentagon-knot SVG mark + two-line wordmark (INTERNAL / WALLS). */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: opacity 0.25s;
  flex-shrink: 0;
}
.nav__logo:hover { opacity: 0.82; }

.nav__logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  color: var(--color-terracotta);  /* SVG fill via currentColor */
  transition: color 0.3s;
}
.nav__logo-mark svg { width: 100%; height: 100%; display: block; }

/* Dark theme: mark switches to sandstone per brand reference */
[data-theme="dark"] .nav__logo-mark { color: var(--color-sandstone); }

.nav__logo-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(217,197,178,.92);    /* nav pill is always dark → sandstone */
  line-height: 1.05;
  transition: color 0.3s;
}
.nav__logo-line { display: block; }

/* Nav links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 2.75rem;
}
.nav__link {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(217,197,178,.88);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.25s;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background-color: var(--color-gold);
  transition: width 0.3s var(--ease-out);
}
.nav__link:hover,
.nav__link.is-active { color: var(--color-gold-light); }
.nav__link:hover::after,
.nav__link.is-active::after { width: 100%; }

/* CTA pill */
.nav__cta {
  font-size: 0.75rem;
  padding: 0.6em 1.5em;
  letter-spacing: 0.16em;
  color: rgba(217,197,178,.88);
  border-color: rgba(217,197,178,.4);
}

/* ── Theme Toggle Button ── */
/* Design decision: icon-only circular button, low-profile but findable.
   Sun icon = switch to light; Moon icon = switch to dark. */
.nav__theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: rgba(217,197,178,.72);
  background: transparent;
  flex-shrink: 0;
  transition: color 0.2s, background-color 0.2s;
}
.nav__theme-toggle:hover {
  background: rgba(166,75,42,.14);
  color: var(--color-gold);
}

/* Icon cluster: theme toggle + Instagram sit in a tight flex wrapper */
.nav__icons {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-shrink: 0;
}

/* Instagram icon in nav */
.nav__instagram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: rgba(217,197,178,.72);
  flex-shrink: 0;
  transition: color 0.2s, background-color 0.2s;
}
.nav__instagram:hover {
  background: rgba(166,75,42,.14);
  color: var(--color-gold);
}

/* Show correct icon based on active theme */
[data-theme="light"] .icon-sun  { display: none; }
[data-theme="light"] .icon-moon { display: block; }
[data-theme="dark"]  .icon-moon { display: none; }
[data-theme="dark"]  .icon-sun  { display: block; }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.nav__hamburger span {
  display: block;
  width: 22px; height: 1px;
  background-color: var(--color-cream);
  transition: transform 0.35s var(--ease-out), opacity 0.25s;
}
.nav--menu-open .nav__hamburger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav--menu-open .nav__hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav--menu-open .nav__hamburger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu — full-screen overlay with fade */
.nav__mobile {
  position: fixed;
  inset: 0;
  background-color: rgba(16,11,7,.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Top/bottom padding reserves space for the absolutely-positioned
     logo header (~4.5rem) and footer bar (~4.5rem) so the link list
     never overlaps them on any phone size. */
  padding: 4.5rem var(--container-pad);
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease-out);
  /* z-index must exceed nav (100) — menu now lives outside <nav> so
     it has its own stacking context and covers everything correctly. */
  z-index: 150;
}
.nav__mobile.is-open { opacity: 1; pointer-events: all; }

.nav__mobile-logo {
  position: absolute;
  top: 1.5rem; left: var(--container-pad);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
/* Mobile menu uses the same SVG mark, scaled up */
.nav__logo-mark--mobile { width: 52px; height: 52px; }
.nav__mobile-links { display: flex; flex-direction: column; gap: 0; text-align: center; }
.nav__mobile-link {
  display: block;
  padding: 0.7rem 0;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 4.5vw, 1.75rem);
  font-weight: 300;
  color: rgba(217,197,178,.7);
  border-bottom: 1px solid rgba(217,197,178,.07);
  transition: color 0.25s;
  line-height: 1.2;
}
.nav__mobile-link:hover { color: var(--color-gold-light); }

/* CTA pill — centered with constrained width so the text sits in the middle. */
.nav__mobile-cta-wrap {
  margin-top: 1.75rem;
  display: flex;
  justify-content: center;
}
.nav__mobile-cta {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  justify-content: center;
  min-width: 220px;
}

/* Top-right action cluster: theme toggle + close X.
   Replaces the previously-absolute close button so the two share a row. */
.nav__mobile-top-actions {
  position: absolute;
  top: 1.25rem; right: var(--container-pad);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav__mobile-close {
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(217,197,178,.55);
  font-size: 1.6rem;
  line-height: 1;
  transition: color 0.2s;
}
.nav__mobile-close:hover { color: var(--color-gold-light); }

/* Mobile theme toggle: icon-only, 44px tap target, eye-catching gold accent. */
.nav__mobile-theme-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-gold);
  background: rgba(166,75,42,.10);
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.nav__mobile-theme-btn:hover {
  background: rgba(166,75,42,.22);
  color: var(--color-gold-light);
  transform: rotate(15deg);
}
.nav__mobile-theme-btn svg { width: 22px; height: 22px; }

/* Mobile menu footer: just centered social icons now. */
.nav__mobile-footer {
  position: absolute;
  bottom: 1.5rem; left: var(--container-pad); right: var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(217,197,178,.07);
}
.nav__mobile-instagram {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.5rem 0;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(217,197,178,.45);
  transition: color 0.2s;
}
.nav__mobile-instagram:hover { color: var(--color-gold-light); }

/* ─── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  height: 100vh; /* fallback for browsers without svh */
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-ink);
}

/* Gradient base — visible while video loads */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(166,75,42,.1) 0%, transparent 65%),
              linear-gradient(165deg, #2D2D2D 0%, #1A1A1A 55%, #2D2D2D 100%);
  z-index: 0;
}

/* Video — full-screen cinematic background */
.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.hero__video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.62) saturate(1.05);
  animation: kenBurns 32s ease-in-out infinite;
  transform-origin: center center;
  will-change: transform;
}

/* Three.js canvas slot (hero.js — currently not wired in HTML) */
.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.hero__canvas canvas { width: 100% !important; height: 100% !important; display: block; }


/* Grain overlay — subtle cinematic texture */
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.04;
  mix-blend-mode: overlay;
}

/* ── Hero Overlay Content — centered headline + CTA ──
   Design decision: centered layout (Apple/Linear aesthetic).
   Three staggered entrance animations, no secondary CTAs.
   Subline deliberately light/muted — headline does the work. */
.hero__overlay-content {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-inline: var(--container-pad);
  padding-bottom: var(--nav-height); /* Shift visual centre slightly upward — hero h1 sits above true-centre, text never hides behind pill */
  max-width: 900px;
}

.hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 9vw, 7.5rem);
  font-weight: 300;
  line-height: 1.02;
  color: var(--color-cream);
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: heroIn 1.1s 0.35s var(--ease-out) forwards;
}
.hero__headline em {
  font-style: normal;
  font-weight: 700;
  color: var(--color-terracotta);
  display: block;
}

.hero__subline {
  font-family: var(--font-sans);
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  font-weight: 300;
  color: rgba(217,197,178,.50);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2.75rem;
  opacity: 0;
  transform: translateY(18px);
  animation: heroIn 1s 0.65s var(--ease-out) forwards;
}

.hero__cta-btn {
  opacity: 0;
  transform: translateY(14px);
  animation: heroIn 0.9s 0.9s var(--ease-out) forwards;
}

@keyframes heroIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes kenBurns {
  0%   { transform: scale(1.0) translate(0,0); }
  33%  { transform: scale(1.06) translate(-0.8%,-0.5%); }
  66%  { transform: scale(1.04) translate(0.5%, 0.8%); }
  100% { transform: scale(1.0) translate(0,0); }
}

/* Scroll cue — centered bottom */
.hero__scroll-cue {
  position: absolute;
  bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: heroIn 1s 1.3s var(--ease-out) forwards;
}
.hero__scroll-line {
  width: 1px; height: 52px;
  background: linear-gradient(to bottom, transparent, rgba(166,75,42,.65));
  animation: scrollPulse 2.2s ease-in-out infinite 1.5s;
}
@keyframes scrollPulse {
  0%,100% { opacity: 1; transform: scaleY(1) translateY(0); }
  50%      { opacity: 0.3; transform: scaleY(0.6) translateY(4px); }
}
.hero__scroll-label {
  font-family: var(--font-sans);
  font-size: 0.575rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(166,75,42,.6);
  writing-mode: vertical-lr;
}

/* ─── BRAND HERO — Full-screen dark typographic section ─────── */
/* Design decision: sits between the video hero and the intro.
   Pure typography on dark — mirrors the user's reference screenshot.
   Uses same grain texture as hero for visual continuity. */
.brand-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-page);
  background-image: radial-gradient(ellipse at 65% 40%, rgba(166,75,42,.09) 0%, transparent 60%),
                    radial-gradient(ellipse at 25% 80%, rgba(166,75,42,.05) 0%, transparent 50%);
  overflow: hidden;
  transition: background-color .35s ease;
}
.brand-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.04;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.brand-hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-xxl) var(--container-pad);
  max-width: 1100px;
}
.brand-hero__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 2.2;
  text-transform: uppercase;
  color: rgba(166,75,42,.65);
  display: block;
  margin-bottom: 3.5rem;
}
.brand-hero__headline {
  font-family: var(--font-sans);              /* Syne */
  font-size: clamp(3.5rem, 10vw, 8.5rem);
  font-weight: 500;
  line-height: 1.05;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 4.5rem;
}
.brand-hero__headline em {
  font-style: normal;                         /* Syne has no italic */
  font-weight: 700;
  color: var(--color-terracotta);
  display: block;
}
.brand-hero__cta {
  font-size: 0.8rem;
  padding: 1.1em 3.5em;
  letter-spacing: 0.18em;
}


/* ─── INTRO — Brand Statement Section ───────────────────────── */
/* Design decision: asymmetric 55/45 split. Image fades left-edge
   into the page background via ::before gradient overlay so the
   split feels organic, not cut off. */
.intro {
  display: grid;
  grid-template-columns: 55% 45%;
  min-height: 100vh;
  background-color: var(--bg-page);
  overflow: hidden;
}
.intro__text {
  display: flex;
  align-items: center;
  padding: var(--space-xxl) clamp(3rem, 9vw, 9rem);
}
.intro__text-inner { max-width: 640px; }

.intro__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 2.2;
  text-transform: uppercase;
  color: var(--color-gold);
  display: block;
  margin-bottom: 2.25rem;
}
.intro__headline {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 6.5vw, 7rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 2rem;
}
.intro__headline em {
  font-style: normal;
  font-weight: 700;
  color: var(--color-terracotta);
  display: block;
}
.intro__subline {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-body);
  max-width: 44ch;
  margin-bottom: 2.75rem;
  letter-spacing: 0.01em;
}
.intro__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Image panel — rounded left corners, image fades to page bg */
.intro__media {
  position: relative;
  overflow: hidden;
  /* Rounded corners on the left edge only on desktop */
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
}
.intro__image {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1.2s var(--ease-out), filter 0.7s ease;
}
.intro__media:hover .intro__image { filter: brightness(1.06); }
/* Left-edge gradient fade — image dissolves into text section bg */
.intro__media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg-page) 0%, transparent 18%);
  z-index: 1;
  pointer-events: none;
  transition: background 0.35s ease;
}

/* ─── STATEMENT ──────────────────────────────────────────────── */
/* Design decision: subtle diagonal gradient instead of flat color
   adds depth without a border or heavy visual separator. */
.statement {
  position: relative;
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
  padding: calc(var(--space-xxl) * 1.1) 0;
  overflow: hidden;
  transition: background .35s ease;
}
/* Organic blob accent — gold radial suggestion, barely perceptible */
.statement::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  top: -120px; right: -120px;
  background: radial-gradient(circle, rgba(166,75,42,.07) 0%, transparent 70%);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  pointer-events: none;
  z-index: 0;
}
.statement__inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}
.statement__label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 2rem;
}
.statement__text {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 300;
  line-height: 1.4;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 2.75rem;
}
.statement__text em { font-style: normal; font-weight: 700; color: var(--color-terracotta); }
.statement__rule {
  width: 48px; height: 1px;
  background-color: var(--color-gold);
  margin: 0 auto 1.75rem;
}
.statement__attribution {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-subtle);
}

/* ─── HERITAGE ───────────────────────────────────────────────── */
.heritage {
  padding: var(--space-xxl) 0;
  background-color: var(--bg-page);
  overflow: hidden;
}
.heritage__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
  padding-inline: var(--container-pad);
}

/* Image — rounded corners, gradient fade toward content column */
.heritage__media { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.heritage__image {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
}
/* Fade right edge of image into page background */
.heritage__media::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 22%;
  background: linear-gradient(to left, var(--bg-page), transparent);
  z-index: 1;
  pointer-events: none;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  transition: background 0.35s ease;
}
.heritage__media-caption {
  position: absolute;
  bottom: var(--radius-lg);
  left: 0;
  background-color: var(--color-gold);
  padding: 0.5rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-warm-white);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  z-index: 2;
}
.heritage__stats {
  display: flex;
  gap: 2.5rem;
  margin: 2.5rem 0 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-color);
}
.stat__number {
  display: block;
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}
.stat__label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

/* ─── PHILOSOPHY ────────────────────────────────────────────── */
.philosophy {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background-color: var(--bg-surface);
  transition: background-color .35s ease;
}
.philosophy__header {
  max-width: 760px;
  margin: 0 auto var(--space-xl);
  text-align: center;
}
.philosophy__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  max-width: var(--container);
  margin: 0 auto;
}
.philosophy__pillar {
  border-left: 2px solid var(--color-gold);
  padding-left: var(--space-md);
}
.philosophy__pillar-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
}
.philosophy__essence {
  position: relative;
  margin: var(--space-xl) auto 0;
  max-width: 600px;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  color: var(--text-subtle);
}
.philosophy__essence::before {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  background-color: var(--color-gold);
  margin: 0 auto var(--space-md);
}
@media (max-width: 900px) {
  .philosophy__grid { grid-template-columns: 1fr; }
}

/* ─── MATERIALS ──────────────────────────────────────────────── */
/* Design decision: cards get border-radius + gap instead of 1px
   grid gap — softer, more modern, still rhythmic. */
.materials { background-color: var(--bg-page); overflow: hidden; transition: background-color .35s ease; }
.materials__intro { padding: var(--space-xxl) 0 var(--space-lg); }
.materials__intro-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.materials__intro-inner .section-body { margin-left: auto; margin-right: auto; }
.materials__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  /* Bottom padding kept light — .process top-padding provides the section gap.
     With materials+process both on --bg-page, doubled xxl creates a dead void. */
  padding: 0 var(--container-pad) var(--space-md);
}
.material-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: default;
  background-color: var(--bg-elevated);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.material-card__media { aspect-ratio: 4/5; overflow: hidden; flex-shrink: 0; }
.material-card__image {
  width: 100%; height: 100%;
  object-fit: cover;
  transform-origin: center;
  animation: kenBurns 16s ease-in-out infinite;
  will-change: transform;
}
.material-card:hover .material-card__image { animation-play-state: paused; }
.material-card__body {
  padding: 1.75rem 1.75rem 2.25rem;
  background-color: var(--bg-surface);
  border-top: 1px solid rgba(166,75,42,.12);
  flex: 1;
}
.material-card__number {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 300;
  color: rgba(166,75,42,.18);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.material-card__heading {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}
.material-card__text { font-size: 1.125rem; line-height: 1.75; color: var(--text-body); }

/* ─── PROCESS ────────────────────────────────────────────────── */
/* Design decision: each step is a floating card with soft shadow
   replacing the original hard border-rule grid. Gap replaces borders.
   Background gradient adds depth to the section without using a
   distinct contrasting color. */
.process {
  padding: var(--space-xxl) 0;
  background: linear-gradient(180deg, var(--bg-page) 0%, var(--bg-surface) 100%);
}
.process__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}
.process__header .section-heading { margin-inline: auto; }
.process__steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
/* 3-column variant used when there are exactly 3 steps */
.process__steps--3col {
  grid-template-columns: repeat(3, 1fr);
}
.process__step {
  padding: 2.75rem 2.5rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1.25rem;
  align-items: start;
}
.process__step-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--text-primary);
  opacity: 0.4;
  line-height: 1;
  padding-top: 0.1em;
}
.process__step-heading {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.process__step-body { font-size: 1.125rem; line-height: 1.8; color: var(--text-body); }

/* ─── SPACES ─────────────────────────────────────────────────── */
.spaces { background-color: var(--bg-page); overflow: hidden; transition: background-color .35s ease; }
.spaces__header { padding: var(--space-xxl) 0 var(--space-xl); }
.spaces__mosaic {
  display: grid;
  /* Large item gets 2fr width, two columns of equal 1fr right of it */
  grid-template-columns: 2fr 1fr 1fr;
  /* Fixed heights eliminate auto-sizing irregularities */
  grid-template-rows: 420px 420px;
  gap: 4px;
  background-color: var(--bg-page);
}
/* Rounded corners on grid items */
.spaces__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}
.spaces__item--large {
  grid-column: 1;
  grid-row: 1 / 3;   /* span both fixed-height rows */
}
.spaces__item--wide  { grid-column: 1 / -1; }
.spaces__image {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: kenBurns 22s ease-in-out infinite;
  will-change: transform;
}
.spaces__item--wide .spaces__image { min-height: 380px; }
.spaces__item:hover .spaces__image  { animation-play-state: paused; }
.spaces__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.75rem 1.5rem 1.25rem;
  background: linear-gradient(to top, rgba(20,14,8,.92) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}
.spaces__type {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold-light);
}
.spaces__name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-cream);
}

/* ─── SHOWCASE ───────────────────────────────────────────────── */
/* Design decision: image fades toward the text column using a
   ::after gradient overlay matching the page bg. Rounded corners
   on images soften the rectangular cut. */
.showcase {
  padding: var(--space-lg) 0 var(--space-xxl);
  background-color: var(--bg-page);
  overflow: hidden;
}
.showcase__item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 8rem);
  align-items: center;
  padding-inline: var(--container-pad);
  margin-bottom: clamp(4rem, 10vw, 10rem);
}
.showcase__item:last-child { margin-bottom: 0; }
.showcase__item--reversed { direction: rtl; }
.showcase__item--reversed > * { direction: ltr; }

.showcase__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.showcase__image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  transition: transform 0.9s var(--ease-out), filter 0.7s ease;
}
.showcase__media:hover .showcase__image { filter: brightness(1.06); }

/* Gradient fade toward text side */
.showcase__item:not(.showcase__item--reversed) .showcase__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, var(--bg-page) 0%, transparent 28%);
  pointer-events: none;
  border-radius: var(--radius-lg);
  transition: background 0.35s ease;
}
.showcase__item--reversed .showcase__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg-page) 0%, transparent 28%);
  pointer-events: none;
  border-radius: var(--radius-lg);
  transition: background 0.35s ease;
}

/* ─── STUDIO ─────────────────────────────────────────────────── */
/* Light theme: solid bg (image washes out under any readable overlay,
   and matches the rhythm of .materials / .spaces).
   Dark theme: image with dark overlay returns the cinematic feel. */
.studio {
  position: relative;
  padding: var(--space-xxl) 0;
  overflow: hidden;
  background-color: var(--bg-page);
  transition: background-color .35s ease;
}
.studio__bg { position: absolute; inset: 0; z-index: 0; display: none; }
[data-theme="dark"] .studio__bg { display: block; }
.studio__bg-image { width: 100%; height: 100%; object-fit: cover; }
.studio__bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(20,14,8,.94) 0%, rgba(45,45,45,.88) 100%);
}
.studio .container { position: relative; z-index: 1; }
.studio__content {
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}
.studio__feature-body { text-align: left; }
.studio__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin: 3rem 0 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-color);
}
.studio__feature-icon { color: var(--color-gold-light); margin-bottom: 1.25rem; }
.studio__feature-heading {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}
.studio__feature-body { font-size: 1.125rem; line-height: 1.75; color: var(--text-body); }

/* ─── TESTIMONIALS ───────────────────────────────────────────── */
/* Design decision: cards replace ruled-divider layout. Each
   testimonial is a floating card on a gradient background — more
   visually distinct and better for skim-reading. */
.testimonials {
  padding: var(--space-xxl) 0;
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-page) 100%);
  transition: background .35s ease;
}
.testimonials__header { margin-bottom: var(--space-xl); }
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.testimonial {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.testimonial__quote { color: var(--color-gold); margin-bottom: 1.5rem; opacity: 0.5; }
.testimonial__text {
  font-family: var(--font-sans);
  font-size: 1.1875rem;
  font-weight: 400;
  line-height: 1.85;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  flex: 1;
}
.testimonial__author {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}
.testimonial__name {
  display: block;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}
.testimonial__project {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text-subtle);
  letter-spacing: 0.03em;
}

/* ─── CONTACT ────────────────────────────────────────────────── */
.contact {
  background-color: var(--bg-page);
  padding: var(--space-xxl) 0;
  overflow: hidden;
  position: relative;
  transition: background-color .35s ease;
}
/* Grain texture on dark section — same SVG as hero grain */
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(166,75,42,.05) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(166,75,42,.04) 0%, transparent 50%),
              url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: auto, auto, 200px 200px;
  opacity: 1;
  mix-blend-mode: normal;
  pointer-events: none;
}
.contact::before { opacity: 0.06; mix-blend-mode: overlay; }

.contact__inner {
  display: grid;
  grid-template-columns: 42% 58%;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: start;
  position: relative;
  z-index: 1;
}

/* ── Left: info column ── */
.contact__heading { max-width: 11ch; }
.contact__desc {
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--text-body);
  max-width: 40ch;
  margin-bottom: 2.5rem;
}
.contact__rule {
  width: 48px; height: 1px;
  background: linear-gradient(to right, var(--color-gold), transparent);
  margin-bottom: 2.5rem;
}
.contact__details { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2.5rem; }
.contact__detail { display: flex; align-items: flex-start; gap: 1rem; }
.contact__detail-icon {
  color: var(--color-gold);
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.8;
}
.contact__detail-text {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-body);
  transition: color 0.2s;
}
a.contact__detail-text:hover { color: var(--color-gold-light); }

.contact__social { display: flex; gap: 1.25rem; margin-bottom: 3rem; }
.contact__social-link {
  color: var(--text-subtle);
  transition: color 0.25s, transform 0.2s;
}
.contact__social-link:hover { color: var(--color-gold); transform: translateY(-2px); }

.contact__quote {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 500;
  color: rgba(166,75,42,.85);
  line-height: 1.6;
  border-left: 2px solid rgba(166,75,42,.3);
  padding-left: 1.25rem;
  max-width: 32ch;
}

/* ── Right: form column ── */
/* Design decision: rounded form container replaces hard-edged box.
   Soft elevated surface lifts the form from the page background. */
.contact__form-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: clamp(2rem, 4vw, 3.5rem);
  position: relative;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.contact__form { display: flex; flex-direction: column; gap: 0; }

.contact__form-title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

/* Floating label fields */
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.form__row .form__field { margin-bottom: 0; }
.form__field {
  position: relative;
  padding-top: 1.4rem;
  margin-bottom: 2rem;
}
.form__field:last-child { margin-bottom: 0; }

.form__input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.6rem 0;
  outline: none;
  transition: border-color 0.3s var(--ease-out);
  border-radius: 0;
  -webkit-appearance: none;
}
.form__input::placeholder { color: transparent; }
.form__input:focus { border-bottom-color: var(--color-gold); }

.form__label {
  position: absolute;
  top: 1.4rem; left: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-subtle);
  transition: top 0.28s var(--ease-out), font-size 0.28s var(--ease-out),
              letter-spacing 0.28s, color 0.28s;
  pointer-events: none;
  line-height: 1.7;
}
.form__input:focus ~ .form__label,
.form__input:not(:placeholder-shown) ~ .form__label {
  top: 0;
  font-size: 0.5875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  line-height: 1;
}

.form__select {
  cursor: pointer;
  color: var(--text-subtle);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23A64B2A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  padding-right: 2rem;
}
.form__select.has-value,
.form__select:focus { color: var(--text-primary); }
.form__select option { background-color: var(--bg-elevated); color: var(--text-primary); }
.form__select.has-value ~ .form__label,
.form__select:focus ~ .form__label {
  top: 0;
  font-size: 0.5875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  line-height: 1;
}

.form__textarea { resize: vertical; min-height: 100px; line-height: 1.7; }

.form__submit { margin-top: 2.5rem; }
.btn--submit {
  width: 100%;
  justify-content: center;
  padding: 1.1em 2em;
  font-size: 0.75rem;
  position: relative;
  overflow: hidden;
}
.btn--submit::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; right: 100%; bottom: 0;
  background: rgba(255,255,255,.08);
  transition: left 0.4s var(--ease-out), right 0.4s var(--ease-out);
}
.btn--submit:hover::before { left: 0; right: 0; }
.btn--submit.is-loading { pointer-events: none; opacity: 0.7; }

/* Success state */
.contact__success {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem;
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out);
}
.contact__success.is-visible { opacity: 1; pointer-events: all; }
.contact__success-icon {
  width: 64px; height: 64px;
  border: 1px solid var(--color-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-gold);
  margin: 0 auto 1.5rem;
}
.contact__success h3 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 1rem;
}
.contact__success p { font-size: 1rem; color: var(--text-body); max-width: 32ch; }

.form__error { font-size: 0.75rem; color: #e07b6a; margin-top: 0.5rem; letter-spacing: 0.05em; }

/* ─── FOOTER ─────────────────────────────────────────────────── */
.footer {
  background-color: var(--bg-page);
  padding: var(--space-xl) 0 var(--space-md);
  border-top: 1px solid var(--border-color);
  transition: background-color .35s ease;
}
.footer__top {
  display: grid;
  grid-template-columns: 280px 1fr 220px;
  gap: 4rem;
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border-color);
}
.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  transition: opacity 0.2s;
}
.footer__logo:hover { opacity: 0.7; }
/* Footer logo mark — same pentagon-knot SVG as nav, scaled to footer size */
.footer__logo-mark {
  width: 44px;
  height: 44px;
  /* color inherited from .nav__logo-mark base rule (terracotta light / sandstone dark) */
}
.footer__tagline {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-body);
  margin-bottom: 1.75rem;
}
.footer__social { display: flex; gap: 1.25rem; }
.footer__social-link { color: var(--text-subtle); transition: color 0.2s, transform 0.2s; }
.footer__social-link:hover { color: var(--color-gold); transform: translateY(-2px); }

.footer__nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer__nav-heading {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 1.5rem;
}
.footer__nav-link {
  display: block;
  font-size: 1rem;
  color: var(--text-body);
  padding: 0.3rem 0;
  transition: color 0.2s, padding-left 0.25s var(--ease-out);
}
.footer__nav-link:hover { color: var(--text-primary); padding-left: 0.3rem; }
.footer__address { font-size: 1rem; line-height: 1.8; color: var(--text-body); margin-bottom: 1.25rem; }
.footer__phone, .footer__email {
  display: block;
  font-size: 1rem;
  color: var(--text-body);
  margin-bottom: 0.4rem;
  transition: color 0.2s;
}
.footer__phone:hover, .footer__email:hover { color: var(--color-gold-light); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
}
.footer__copy { font-size: 0.875rem; color: var(--text-subtle); letter-spacing: 0.04em; }
.footer__legal { display: flex; gap: 1.75rem; }
.footer__legal-link {
  font-size: 0.875rem;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.footer__legal-link:hover { color: var(--text-body); }

/* ─── FLOATING CTA ───────────────────────────────────────────── */
.cta-float {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.9em 1.75em;
  background-color: var(--color-gold);
  color: var(--color-warm-white);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-pill);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease,
              background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(166,75,42,0);
}
.cta-float.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
  box-shadow: 0 6px 28px rgba(166,75,42,.3);
}
.cta-float:hover {
  background-color: var(--color-gold-dark);
  box-shadow: 0 10px 36px rgba(166,75,42,.45);
  transform: translateY(-2px) !important;
}
.cta-float__arrow { transition: transform 0.3s var(--ease-out); }
.cta-float:hover .cta-float__arrow { transform: translateX(4px); }

/* ─── GALLERY ────────────────────────────────────────────────── */
.gallery {
  padding: var(--space-xxl) 0 var(--space-md);
  background-color: var(--bg-page);
  overflow: hidden;
  transition: background-color .35s ease;
}
.gallery__header {
  text-align: center;
  margin-bottom: var(--space-lg);
}
.gallery__header .section-heading { margin-inline: auto; }
.gallery__header .section-body { margin-inline: auto; }

/* Filter tab bar */
.gallery__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: var(--space-lg);
}
.gallery__tab {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55em 1.4em;
  border-radius: var(--radius-pill);
  color: var(--text-subtle);
  border: 1px solid var(--border-color);
  background: transparent;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
  cursor: pointer;
}
.gallery__tab:hover {
  color: var(--color-gold);
  border-color: var(--color-gold);
}
.gallery__tab.is-active {
  background-color: var(--color-gold);
  color: var(--color-warm-white);
  border-color: var(--color-gold);
  box-shadow: 0 4px 16px rgba(166,75,42,.3);
}

/* ── Gallery: category sections + 2 horizontal scroll rows ── */
.gallery__body { margin-top: var(--space-sm); }

.gallery__section { margin-bottom: var(--space-xl); }
.gallery__section-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-subtle);
  padding: 0 var(--container-pad);
  margin-bottom: 1.1rem;
}
.gallery__body.is-filtered .gallery__section-label { display: none; }

/* Horizontal scroll row */
.gallery__row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 0 var(--container-pad) 14px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(166,75,42,.35) transparent;
}
.gallery__row::-webkit-scrollbar { height: 4px; }
.gallery__row::-webkit-scrollbar-track { background: transparent; }
.gallery__row::-webkit-scrollbar-thumb {
  background: rgba(166,75,42,.35);
  border-radius: 2px;
}
.gallery__row + .gallery__row { margin-top: 14px; }

/* Individual card (button for a11y) */
.gallery__card {
  flex: 0 0 auto;
  width: 480px;
  height: 340px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  border: none;
  padding: 0;
  background: var(--bg-elevated);
  transition: box-shadow 0.3s, transform 0.3s;
}
.gallery__card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.gallery__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}
.gallery__card:hover img { transform: scale(1.06); }
.gallery__card-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.4rem 1.2rem 0.9rem;
  background: linear-gradient(to top, rgba(20,14,8,.88) 0%, transparent 100%);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
}
.gallery__card:hover .gallery__card-caption { opacity: 1; transform: translateY(0); }
.gallery__card-tag {
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold-light);
}

/* ── Lightbox ───────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.is-open { opacity: 1; pointer-events: all; }
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8,4,2,0.93);
  cursor: pointer;
}
.lightbox__img {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 96px rgba(0,0,0,0.7);
}
.lightbox__close {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  z-index: 2;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(166,75,42,.15);
  border: 1px solid rgba(166,75,42,.35);
  color: var(--color-cream);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox__close:hover { background: rgba(166,75,42,.35); }

@media (max-width: 768px) {
  .gallery__card { width: 340px; height: 260px; }
}
@media (max-width: 480px) {
  .gallery__card { width: 280px; height: 210px; }
}

/* ─── NRI SERVICES ───────────────────────────────────────────── */
.nri {
  padding: var(--space-xxl) 0;
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
  overflow: hidden;
  transition: background .35s ease;
}
.nri__inner {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
  padding-inline: var(--container-pad);
}
.nri__content { max-width: 640px; }
.nri__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 2.5rem;
  margin: 2.5rem 0 3rem;
}
.nri__feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.nri__feature-icon {
  color: var(--color-gold);
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.85;
}
.nri__feature-heading {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}
.nri__feature-body {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text-body);
}

/* Image panel */
.nri__media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.nri__image {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
  transition: transform 1.2s var(--ease-out), filter 0.7s ease;
}
.nri__media:hover .nri__image { filter: brightness(1.06); }
/* Subtle fade toward the content side */
.nri__media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg-surface) 0%, transparent 15%);
  z-index: 1;
  pointer-events: none;
  transition: background 0.35s ease;
}

/* ─── CONTACT EXTRAS (map, reviews) ─────────────────────────── */
.contact__detail-phones {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.contact__reviews {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.contact__reviews-stars {
  color: var(--color-terracotta);
  font-size: 1rem;
  letter-spacing: 0.05em;
}
.contact__reviews-text {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text-body);
}
.contact__reviews-text strong { color: var(--text-primary); }
.contact__map {
  margin-bottom: 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.contact__map iframe { display: block; }


/* ─── FAQ ────────────────────────────────────────────────────── */
.faq {
  padding: var(--space-xxl) 0;
  background: var(--bg-surface);
  transition: background .35s ease;
}
.faq__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-xl);
}
.faq__header .section-heading { margin-bottom: 0; }
.faq__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 3rem;
  margin-bottom: var(--space-xl);
}
.faq__item {
  border-bottom: 1px solid var(--border-color);
  transition: border-color .35s ease;
}
.faq__item:first-child { border-top: 1px solid var(--border-color); }
.faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 0;
  font-family: var(--font-sans);
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  transition: color .25s ease;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after {
  content: '+';
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 300;
  color: var(--color-gold);
  flex-shrink: 0;
  line-height: 1;
  transition: color .25s ease;
}
.faq__item[open] > .faq__question::after { content: '−'; }
.faq__item[open] > .faq__question { color: var(--color-gold); }
.faq__answer {
  padding-bottom: 1.4rem;
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--text-body);
  transition: color .35s ease;
}
.faq__cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.faq__cta > p {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
}

/* ─── FOOTER AREAS ───────────────────────────────────────────── */
.footer__areas {
  padding: var(--space-sm) 0;
  border-top: 1px solid var(--border-color);
  margin-top: var(--space-md);
}
.footer__areas-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-subtle);
  cursor: pointer;
  list-style: none;
  padding: 0.35rem 0;
  transition: color .2s ease;
}
.footer__areas-heading::-webkit-details-marker { display: none; }
.footer__areas-heading::after {
  content: '+';
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0;
  color: var(--text-subtle);
  transition: color .2s ease;
}
.footer__areas[open] > .footer__areas-heading { color: var(--color-gold-light); }
.footer__areas[open] > .footer__areas-heading::after { content: '−'; color: var(--color-gold-light); }
.footer__areas-heading:hover { color: var(--text-body); }
.footer__areas .footer__areas-grid { margin-top: var(--space-md); }
.footer__areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 2rem;
}
.footer__area-link {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 2.1;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s ease;
}
.footer__area-link:hover { color: var(--color-gold-light); }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .materials__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__contact-info { grid-column: 1 / -1; }
  .footer__nav { grid-template-columns: repeat(3, 1fr); grid-column: 1 / -1; }
  .contact__inner { grid-template-columns: 1fr; gap: 4rem; }
  .contact__heading { max-width: none; }
  .contact__desc { max-width: none; }
  /* Intro: stack */
  .intro { grid-template-columns: 1fr; min-height: auto; }
  .intro__text { padding: var(--space-xxl) var(--container-pad); }
  .intro__media {
    height: 55vw; min-height: 380px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .intro__media::before {
    background: linear-gradient(to bottom, var(--bg-page) 0%, transparent 20%);
  }
  /* Gallery: tabs stay centered on tablet */
  /* NRI: stack */
  .nri__inner { grid-template-columns: 1fr; gap: 3rem; }
  .nri__media { max-width: 600px; }
  .nri__media::before { display: none; }
  /* Process 3-col: drop to 2 */
  .process__steps--3col { grid-template-columns: repeat(2, 1fr); }
  .process__steps--3col .process__step:last-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --space-xl: 4rem; --space-xxl: 6rem; }
  .heritage__grid { grid-template-columns: 1fr; gap: 3rem; }
  .heritage__media { max-width: 600px; }
  .heritage__media::after { display: none; }
  .showcase__item { grid-template-columns: 1fr; gap: 2.5rem; }
  .showcase__item--reversed { direction: ltr; }
  .showcase__image { aspect-ratio: 16/9; }
  .showcase__item:not(.showcase__item--reversed) .showcase__media::after,
  .showcase__item--reversed .showcase__media::after { display: none; }
  .process__steps { grid-template-columns: 1fr; }
  .process__steps--3col { grid-template-columns: 1fr; }
  .process__steps--3col .process__step:last-child { grid-column: auto; }
  .process__step { grid-template-columns: 56px 1fr; padding: 2rem 2rem; }
  .studio__features { grid-template-columns: 1fr; gap: 2rem; }
  .testimonials__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .spaces__mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .spaces__item--large { grid-column: 1 / -1; grid-row: auto; }
  .spaces__item--large .spaces__image { min-height: 380px; }
  .spaces__item--wide  { grid-column: 1 / -1; }
  /* NRI features: 1 column */
  .nri__features { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 768px) {
  :root { --nav-height: 68px; --space-xl: 3rem; --space-xxl: 5rem; }
  /* On mobile the pill goes nearly edge-to-edge */
  .nav { width: calc(100% - 1.5rem); top: 0.5rem; }
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
  .nav__icons { display: none; }
  .hero__headline { font-size: clamp(2.6rem, 10vw, 4.5rem); }
  .hero__cta-btn { width: auto; }
  .intro__headline { font-size: clamp(3rem, 10vw, 5rem); }
  .intro__actions { flex-direction: column; }
  .intro__actions .btn { width: 100%; justify-content: center; }
  .cta-float { bottom: 1.25rem; right: 1.25rem; font-size: 0.65rem; padding: 0.85em 1.4em; min-height: 44px; }
  .materials__grid { grid-template-columns: 1fr 1fr; }
  .spaces__mosaic { grid-template-columns: 1fr; }
  .spaces__item--large, .spaces__item--wide { grid-column: auto; }
  .heritage__stats { flex-wrap: wrap; gap: 1.5rem; }
  .footer__top { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer__nav { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer__bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .footer__legal { flex-wrap: wrap; justify-content: center; gap: 1rem; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .gallery__tabs { gap: 0.4rem; }
  .gallery__tab { font-size: 0.75rem; padding: 0.5em 1.1em; }
  .faq__grid { grid-template-columns: 1fr; gap: 0; }
  .faq__col:last-child .faq__item:first-child { border-top: none; }
  .footer__areas-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer__areas-grid { grid-template-columns: 1fr; }
}

/* ─── CHATBOT ─────────────────────────────────────────────── */

/* --- Container (fixed anchor) --- */
.chatbot {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 120;
}

/* --- Launcher button --- */
@keyframes chatbot-pulse {
  0%   { transform: scale(1);    opacity: 0.55; }
  65%  { transform: scale(1.65); opacity: 0;    }
  100% { transform: scale(1.65); opacity: 0;    }
}

.chatbot__launcher {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--color-graphite);   /* graphite in light theme, near-black in dark theme */
  border: 2px solid rgba(166,75,42,.7);
  color: var(--color-terracotta);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  /* warm gold glow makes it visible on any section background */
  box-shadow: 0 0 0 0 rgba(166,75,42,.0),
              0 6px 28px rgba(0,0,0,.28),
              0 2px 8px rgba(0,0,0,.14),
              0 0 18px rgba(166,75,42,.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
/* pulsing ring — stops when panel is open */
.chatbot__launcher::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(166,75,42,.7);
  animation: chatbot-pulse 2.6s ease-out infinite;
  pointer-events: none;
}
.chatbot__launcher[aria-expanded="true"]::before {
  animation: none;
  opacity: 0;
}
.chatbot__launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(166,75,42,.35),
              0 10px 36px rgba(0,0,0,.32),
              0 4px 12px rgba(0,0,0,.16);
}

/* Icon cross-fade on open/close */
.chatbot__launcher-icon {
  position: absolute;
  transition: opacity 0.2s ease, transform 0.25s ease;
}
.chatbot__launcher-icon--close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.7);
}
.chatbot__launcher[aria-expanded="true"] .chatbot__launcher-icon--chat  {
  opacity: 0;
  transform: rotate(90deg) scale(0.7);
}
.chatbot__launcher[aria-expanded="true"] .chatbot__launcher-icon--close {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Unread badge dot */
.chatbot__badge {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--color-terracotta);
  border: 2.5px solid var(--color-graphite);   /* matches launcher bg */
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out);
}
.chatbot__badge.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* --- Chat panel --- */
.chatbot__panel {
  position: absolute;
  bottom: calc(100% + 0.875rem);
  left: 0;
  width: 340px;
  max-height: 520px;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  pointer-events: none;
  transform-origin: bottom left;
  transition: opacity 0.3s ease, transform 0.35s var(--ease-out);
}
.chatbot__panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* --- Header --- */
.chatbot__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.125rem;
  background-color: var(--bg-elevated);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}
.chatbot__header-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.chatbot__header-mark {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--color-gold);
  color: var(--color-cream);
  font-family: var(--font-serif);
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chatbot__header-title {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}
.chatbot__header-subtitle {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-top: 2px;
  opacity: 0.8;
}
.chatbot__close {
  background: none;
  border: none;
  color: var(--text-subtle);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
  transition: color 0.2s;
  border-radius: var(--radius-sm);
}
.chatbot__close:hover { color: var(--text-primary); }

/* --- Messages area --- */
.chatbot__messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.125rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  scroll-behavior: smooth;
  min-height: 0;
}
.chatbot__messages::-webkit-scrollbar { width: 4px; }
.chatbot__messages::-webkit-scrollbar-track { background: transparent; }
.chatbot__messages::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.chatbot__message { display: flex; }
.chatbot__message--bot  { justify-content: flex-start; }
.chatbot__message--user { justify-content: flex-end; }

.chatbot__bubble {
  max-width: 84%;
  padding: 0.65rem 0.875rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  line-height: 1.7;
  border-radius: var(--radius-md);
}
.chatbot__message--bot .chatbot__bubble {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-radius: 4px var(--radius-md) var(--radius-md) var(--radius-md);
}
.chatbot__message--user .chatbot__bubble {
  background: var(--color-gold);
  color: var(--color-cream);
  border-radius: var(--radius-md) 4px var(--radius-md) var(--radius-md);
}

/* Inline CTA link inside fallback message */
.chatbot__inline-cta {
  color: var(--color-gold);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}
.chatbot__message--bot .chatbot__inline-cta {
  color: var(--color-gold);
}

/* --- Quick-reply chips --- */
.chatbot__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
}
.chatbot__chip {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.375em 0.85em;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-body);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.chatbot__chip:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background: rgba(166,75,42,.07);
}

/* --- Input area --- */
.chatbot__input-area {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
}
.chatbot__input {
  flex: 1;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-primary);
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
  min-width: 0;
}
.chatbot__input::placeholder { color: var(--text-subtle); }
.chatbot__send {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-cream);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.chatbot__send:hover {
  background: var(--color-gold-dark);
  transform: scale(1.08);
}

/* ─── CHATBOT RESPONSIVE ───────────────────────────────────── */
@media (max-width: 768px) {
  .chatbot { bottom: 1.25rem; left: 1.25rem; }
  .chatbot__panel {
    width: calc(100vw - 2.5rem);
    max-width: 340px;
    max-height: 68vh;
  }
}
@media (max-width: 480px) {
  .chatbot__launcher { width: 52px; height: 52px; }
  .chatbot__panel { max-height: 72vh; }
}

@media (max-width: 480px) {
  :root { --container-pad: 1.25rem; }
  .statement__text { font-size: 1.5rem; }
  /* Single-column material cards on narrow screens */
  .materials__grid { grid-template-columns: 1fr; }
  .footer__nav { grid-template-columns: 1fr; }
  .contact__form-wrap { padding: 1.75rem; }
  .cta-float { display: none; }
  .hero__headline { font-size: clamp(2.2rem, 11vw, 3.5rem); }
  /* Brand-hero: tighten headline size and spacing on small phones */
  .brand-hero__headline { font-size: clamp(2.4rem, 10vw, 5rem); margin-bottom: 2.5rem; }
  .brand-hero__eyebrow { margin-bottom: 2rem; }
  .brand-hero__inner { padding: var(--space-xl) var(--container-pad); }
}
