/* =========================================================
   DT BUILDING — Cinematic 3D Architecture Experience
   ========================================================= */

@import url('fonts.css');

:root {
  --ink: #0a0a08;
  --ink-2: #121210;
  --ink-3: #1c1b17;
  --ink-4: #26241d;

  --paper: #f7f4ed;
  --paper-2: #efe9dc;
  --paper-3: #e4dccb;

  --gold: #c9a227;
  --gold-2: #e8cd7a;
  --gold-3: #f3e4b8;
  --bronze: #a37b3d;
  --copper: #b06d3b;

  --on-dark: #f5f1e6;
  --on-dark-2: rgba(245, 241, 230, 0.68);
  --on-dark-3: rgba(245, 241, 230, 0.4);
  --on-dark-4: rgba(245, 241, 230, 0.14);

  --ink-soft: #55524a;

  --font-display: 'Kanit', 'Noto Sans Thai', sans-serif;
  --font-serif: 'Trirong', 'Noto Serif Thai', serif;
  --font-deco: 'Chonburi', 'Trirong', serif;
  --font-body: 'Prompt', 'Noto Sans Thai', sans-serif;

  --container: 1320px;
  --gutter: clamp(1.25rem, 4.5vw, 5.5rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-power: cubic-bezier(0.7, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--on-dark);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

::selection { background: var(--gold); color: var(--ink); }

/* ---------- Domain guard ---------- */
html:not(.host-ok) body { visibility: hidden; }
.lock-screen {
  position: fixed; inset: 0;
  background: var(--ink);
  color: var(--on-dark);
  display: flex; align-items: center; justify-content: center;
  z-index: 99999; padding: 2rem; text-align: center;
}
.lock-screen__box { max-width: 34rem; }
.lock-screen__mark {
  font-family: var(--font-display); font-weight: 200;
  font-size: 2.4rem; letter-spacing: 0.2em; margin-bottom: 1.5rem; color: var(--gold-2);
}
.lock-screen__title { font-size: 1.15rem; font-weight: 500; margin-bottom: 0.75rem; }
.lock-screen__text { font-size: 0.95rem; color: var(--on-dark-2); line-height: 1.9; }
.lock-screen__link { color: var(--gold-2); border-bottom: 1px solid currentColor; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0;
  background: var(--ink);
  z-index: 9999;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2rem;
  transition: opacity 1.1s var(--ease), visibility 1.1s var(--ease);
}
.preloader__mark {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(2.6rem, 9vw, 5.5rem);
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--on-dark);
  opacity: 0;
  animation: preIn 1.4s var(--ease-soft) 0.1s forwards;
}
.preloader__bar {
  width: min(240px, 50vw); height: 1px;
  background: var(--on-dark-4);
  position: relative; overflow: hidden;
}
.preloader__bar::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  transform: scaleX(0); transform-origin: left;
  animation: preBar 1.8s var(--ease-power) 0.2s forwards;
}
.preloader__pct {
  font-family: var(--font-display); font-weight: 200;
  font-size: 0.8rem; letter-spacing: 0.3em; color: var(--on-dark-3);
}
@keyframes preIn { to { opacity: 1; } }
@keyframes preBar { to { transform: scaleX(1); } }
body.is-loaded .preloader { opacity: 0; visibility: hidden; pointer-events: none; }

/* ---------- Grain overlay (cinematic texture) ---------- */
.grain {
  position: fixed; inset: -50%;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 0.7s steps(4) infinite;
}
@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-2%, 1%); }
  50%  { transform: translate(1%, -2%); }
  75%  { transform: translate(-1%, -1%); }
  100% { transform: translate(2%, 1%); }
}

/* ---------- Custom cursor glow ---------- */
.cursor-glow {
  position: fixed; top: 0; left: 0;
  width: 380px; height: 380px;
  margin: -190px 0 0 -190px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 8000;
  background: radial-gradient(circle, rgba(201,162,39,0.10) 0%, rgba(201,162,39,0) 65%);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  will-change: transform;
}
body.cursor-on .cursor-glow { opacity: 1; }

/* =========================================================
   Typography — dramatic, layered, cinematic
   ========================================================= */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.9rem;
  font-family: var(--font-display);
  font-size: 0.7rem; font-weight: 400;
  letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--gold-2);
}
.eyebrow::before {
  content: ''; width: 36px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: ''; width: 36px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* Massive display headline */
.display {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(2.9rem, 8.5vw, 8.5rem);
  line-height: 0.94;
  letter-spacing: -0.02em;
}
.display strong {
  font-weight: 500;
  background: linear-gradient(115deg, var(--gold-3) 0%, var(--gold) 40%, var(--bronze) 75%, var(--gold-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.display em {
  font-style: normal;
  font-family: var(--font-deco);
  font-weight: 400;
  color: var(--gold-2);
}
/* Outlined variant */
.display .hollow {
  color: transparent;
  -webkit-text-stroke: 1px var(--on-dark-3);
  font-weight: 300;
}

.h-hero {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(3.1rem, 10.5vw, 10rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
}
.h-xl {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(2.4rem, 6.4vw, 5.6rem);
  line-height: 1;
  letter-spacing: -0.025em;
}
.h-lg {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.8rem, 3.6vw, 3.1rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
}
.h-md {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.25rem, 2.1vw, 1.65rem);
  line-height: 1.35;
}
.lede {
  font-size: clamp(1rem, 1.25vw, 1.14rem);
  color: var(--on-dark-2);
  font-weight: 200;
  line-height: 1.95;
  max-width: 44em;
}
.lede--ink { color: var(--ink-soft); }

.section-head { max-width: 52rem; margin-bottom: clamp(3rem, 6vw, 6rem); }
.section-head .h-xl, .section-head .h-lg { margin-top: 1.4rem; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .lede { margin-left: auto; margin-right: auto; }

/* Split text — per-char / per-word reveal */
.split-line { display: block; overflow: hidden; }
.split-word {
  display: inline-block;
  transform: translateY(105%) rotateX(-55deg);
  opacity: 0;
  transform-origin: top center;
  transition: transform 1.05s var(--ease-soft), opacity 0.85s var(--ease-soft);
}
.in-view .split-word,
.split-ready .split-word { transform: translateY(0) rotateX(0deg); opacity: 1; }

/* =========================================================
   Buttons — fixed alignment (Thai line-height safe)
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.05rem 2.1rem;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1;              /* kill Thai leading so icon + text center */
  letter-spacing: 0.02em;
  border: 1px solid currentColor;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.55s var(--ease), border-color 0.55s var(--ease), transform 0.5s var(--ease);
  white-space: nowrap;
  vertical-align: middle;
  text-align: center;
}
.btn > span { display: inline-block; line-height: 1; }
.btn svg {
  width: 15px; height: 15px;
  flex: 0 0 auto;              /* never squish */
  display: block;
  transition: transform 0.5s var(--ease);
}
.btn::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.6s var(--ease-power);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn:hover svg { transform: translateX(4px); }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }

.btn--light { color: var(--on-dark); border-color: var(--on-dark-4); }
.btn--light:hover { color: var(--ink); border-color: var(--on-dark); }
.btn--gold {
  color: var(--ink);
  background: linear-gradient(115deg, var(--gold-2), var(--gold));
  border-color: transparent;
  font-weight: 500;
}
.btn--gold::before { background: var(--on-dark); }
.btn--gold:hover { color: var(--ink); }
.btn--ink { color: var(--ink); border-color: rgba(10,10,8,0.22); }
.btn--ink:hover { color: var(--paper); border-color: var(--ink); }
.btn--lg { padding: 1.25rem 2.6rem; font-size: 0.92rem; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 1.5rem 0;
  transition: background 0.6s var(--ease), padding 0.6s var(--ease), border-color 0.6s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.site-header.is-scrolled {
  background: rgba(10, 10, 8, 0.82);
  backdrop-filter: blur(18px) saturate(140%);
  padding: 0.85rem 0;
  border-color: var(--on-dark-4);
}
.brand {
  display: flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 200;
  font-size: 1.5rem;
  letter-spacing: 0.26em;
  line-height: 1;
  color: var(--on-dark);
}
.brand b {
  font-weight: 500;
  background: linear-gradient(120deg, var(--gold-3), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand i {
  font-style: normal; font-family: var(--font-body); font-weight: 300;
  font-size: 0.44em; letter-spacing: 0.3em; color: var(--on-dark-3);
  border-left: 1px solid var(--on-dark-4); padding-left: 0.7rem;
}

.nav-desktop { display: flex; align-items: center; gap: clamp(1.2rem, 2.2vw, 2.4rem); }
.nav-desktop > a:not(.btn) {
  font-family: var(--font-display);
  font-size: 0.85rem; font-weight: 300; line-height: 1;
  letter-spacing: 0.04em;
  color: var(--on-dark-2);
  position: relative;
  padding: 0.4rem 0;
  display: inline-flex; align-items: center;
  transition: color 0.45s var(--ease);
}
.nav-desktop > a:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease-power);
}
.nav-desktop > a:not(.btn):hover { color: var(--on-dark); }
.nav-desktop > a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle {
  display: none; flex-direction: column; gap: 6px;
  padding: 10px; z-index: 600;
}
.nav-toggle span {
  width: 26px; height: 1px; background: var(--on-dark);
  transition: transform 0.5s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0;
  background: var(--ink);
  z-index: 550;
  display: flex; flex-direction: column; justify-content: center;
  padding: 6rem var(--gutter) 3rem;
  clip-path: circle(0% at 92% 4%);
  transition: clip-path 0.9s var(--ease-power);
}
.nav-mobile.is-open { clip-path: circle(150% at 92% 4%); }
.nav-mobile ul { display: flex; flex-direction: column; gap: 0.1rem; }
.nav-mobile a {
  font-family: var(--font-display); font-weight: 200;
  font-size: clamp(2rem, 9vw, 3.2rem);
  line-height: 1.25;
  color: var(--on-dark);
  display: inline-block;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s var(--ease-soft), transform 0.7s var(--ease-soft), color 0.3s;
}
.nav-mobile.is-open a { opacity: 1; transform: translateY(0); }
.nav-mobile.is-open li:nth-child(1) a { transition-delay: 0.18s; }
.nav-mobile.is-open li:nth-child(2) a { transition-delay: 0.25s; }
.nav-mobile.is-open li:nth-child(3) a { transition-delay: 0.32s; }
.nav-mobile.is-open li:nth-child(4) a { transition-delay: 0.39s; }
.nav-mobile.is-open li:nth-child(5) a { transition-delay: 0.46s; }
.nav-mobile.is-open li:nth-child(6) a { transition-delay: 0.53s; }
.nav-mobile.is-open li:nth-child(7) a { transition-delay: 0.60s; }
.nav-mobile a:hover { color: var(--gold-2); }
.nav-mobile__foot {
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid var(--on-dark-4);
  display: flex; flex-wrap: wrap; gap: 0.6rem 2.5rem;
  color: var(--on-dark-2); font-size: 0.88rem;
  opacity: 0; transition: opacity 0.7s var(--ease-soft) 0.7s;
}
.nav-mobile.is-open .nav-mobile__foot { opacity: 1; }
body.nav-open { overflow: hidden; }

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 700;
  background: linear-gradient(90deg, var(--gold), var(--gold-2), var(--copper));
  transform: scaleX(0); transform-origin: left;
  will-change: transform;
}

/* =========================================================
   HERO — 3D parallax depth layers + scroll zoom
   ========================================================= */
.hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  perspective: 1400px;
  transform-style: preserve-3d;
  background: var(--ink);
}
.hero__layers {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
}
.hero__layer {
  position: absolute;
  inset: -12%;
  will-change: transform;
}
.hero__layer img { width: 100%; height: 100%; object-fit: cover; }
.hero__layer--back  { z-index: 1; }
.hero__layer--mid   { z-index: 2; }
.hero__vignette {
  position: absolute; inset: 0; z-index: 3;
  background:
    radial-gradient(ellipse 120% 80% at 50% 45%, transparent 20%, rgba(6,6,5,0.55) 75%, rgba(6,6,5,0.9) 100%),
    linear-gradient(180deg, rgba(6,6,5,0.72) 0%, rgba(6,6,5,0.15) 32%, rgba(6,6,5,0.35) 60%, rgba(6,6,5,0.96) 100%);
}
.hero__glow {
  position: absolute; z-index: 3;
  left: 50%; top: 58%;
  width: 90vw; height: 55vh;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(201,162,39,0.13) 0%, transparent 62%);
  pointer-events: none;
}
.hero__content {
  position: relative; z-index: 5;
  height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 8rem var(--gutter) clamp(3rem, 8vh, 6rem);
  max-width: var(--container);
  margin: 0 auto;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}
.hero__eyebrow { margin-bottom: 1.8rem; }
.hero__title { perspective: 900px; }
.hero__title .split-line + .split-line { margin-top: -0.04em; }

.hero__meta {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 2.5rem;
  margin-top: clamp(2rem, 4vh, 3rem);
  padding-top: 2.2rem;
  border-top: 1px solid var(--on-dark-4);
}
.hero__lede { max-width: 32rem; font-size: 1.02rem; }
.hero__actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.hero__scroll {
  position: absolute; z-index: 6;
  left: 50%; bottom: 1.6rem;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  color: var(--on-dark-3);
  font-family: var(--font-display);
  font-size: 0.63rem; letter-spacing: 0.4em; text-transform: uppercase;
  text-indent: 0.4em;
}
.hero__mouse {
  width: 22px; height: 36px;
  border: 1px solid var(--on-dark-3);
  border-radius: 12px;
  position: relative;
}
.hero__mouse::after {
  content: ''; position: absolute;
  left: 50%; top: 7px; margin-left: -1.5px;
  width: 3px; height: 7px; border-radius: 2px;
  background: var(--gold-2);
  animation: mouseWheel 1.9s var(--ease) infinite;
}
@keyframes mouseWheel {
  0%   { opacity: 0; transform: translateY(0); }
  35%  { opacity: 1; }
  70%  { opacity: 0; transform: translateY(11px); }
  100% { opacity: 0; }
}

/* =========================================================
   ZOOM JOURNEY — exterior → fly through the rooms
   Pinned stage; scroll progress drives a dolly-zoom + crossfade.
   One screenful of scroll ≈ one room. Logic: initJourney() in main.js
   ========================================================= */
.journey {
  position: relative;
  height: 600vh;                 /* 6 scenes → 5 transitions + 1 viewport */
  background: #060605;
}
.journey__stage {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  background: #060605;
  perspective: 1600px;
}
.journey__scenes {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
}
.scene {
  position: absolute; inset: 0;
  z-index: var(--z, 1);
  opacity: 0;
  transform-origin: 50% 46%;
  will-change: transform, opacity;
  backface-visibility: hidden;
}
.scene[data-scene="0"] { opacity: 1; }   /* first paint / no-JS fallback */
.scene__img { position: absolute; inset: -7%; overflow: hidden; }
.scene__img img { width: 100%; height: 100%; object-fit: cover; }
/* Cinematic grade baked into each scene so it travels with the zoom
   and always sits under that scene's own caption. */
.scene__img::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 125% 88% at 50% 42%, transparent 34%, rgba(6,6,5,0.44) 80%, rgba(6,6,5,0.88) 100%),
    linear-gradient(180deg, rgba(6,6,5,0.7) 0%, rgba(6,6,5,0.1) 26%, rgba(6,6,5,0.3) 60%, rgba(6,6,5,0.93) 100%);
}

/* Per-room caption — sits low-left, drifts with the zoom */
.scene__cap {
  position: absolute;
  left: 50%;
  bottom: clamp(4.5rem, 13vh, 8.5rem);
  width: 100%;
  max-width: var(--container);
  transform: translateX(-50%);
  padding: 0 var(--gutter);
  z-index: 4;
  opacity: 0;
  will-change: opacity, transform;
  color: var(--on-dark);
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
.scene__no {
  display: inline-flex; align-items: center; gap: 0.85rem;
  font-family: var(--font-display); font-weight: 400;
  font-size: 0.7rem; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 0.9rem;
}
.scene__no::before {
  content: ''; width: 34px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.scene__cap b {
  display: block;
  font-family: var(--font-display); font-weight: 200;
  font-size: clamp(2.2rem, 7vw, 5rem); line-height: 0.98;
  letter-spacing: -0.025em;
}

/* Global top/bottom vignette above all scenes — keeps the fixed header
   and brand legible over bright exteriors. Kept light so per-scene
   captions underneath stay readable. */
.journey__scrim {
  position: absolute; inset: 0; z-index: 62; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(6,6,5,0.55) 0%, rgba(6,6,5,0.12) 14%, transparent 30%,
    transparent 82%, rgba(6,6,5,0.34) 100%);
}

/* Landing overlay (hero text) */
.journey__intro {
  position: absolute; inset: 0; z-index: 66;
  display: flex; align-items: flex-end;
  padding: 7rem var(--gutter) clamp(6rem, 17vh, 11rem);
  will-change: transform, opacity;
}
.journey__intro-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}
.journey__intro .eyebrow { margin-bottom: 1.7rem; }
.journey__intro .hero__title { perspective: 900px; }
.journey__intro .hero__title .split-line + .split-line { margin-top: -0.04em; }
.journey__lede { max-width: 34rem; margin-top: 1.9rem; }
.journey__intro .hero__actions {
  display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 2.5rem;
}

/* Room counter */
.journey__hud {
  position: absolute; z-index: 70;
  right: var(--gutter); bottom: clamp(4.5rem, 13vh, 8.5rem);
  pointer-events: none;
}
.journey__hud-count {
  font-family: var(--font-display); font-weight: 200;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem); letter-spacing: 0.04em;
  color: var(--on-dark-3);
}
.journey__hud-count b { color: var(--gold-2); font-weight: 400; }
.journey__hud-count i { font-style: normal; color: var(--on-dark-4); margin: 0 0.28rem; }

/* Depth progress rail (right edge) */
.journey__rail {
  position: absolute; z-index: 70;
  right: max(1.1rem, calc(var(--gutter) - 1.6rem));
  top: 24%; bottom: 24%;
  width: 2px; border-radius: 2px;
  background: var(--on-dark-4);
  overflow: hidden;
}
.journey__rail-fill {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  transform: scaleY(0); transform-origin: top center;
  will-change: transform;
}

/* Scroll cue */
.journey__hint {
  position: absolute; z-index: 70;
  left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  color: var(--on-dark-3);
  font-family: var(--font-display);
  font-size: 0.63rem; letter-spacing: 0.4em; text-transform: uppercase;
  text-indent: 0.4em; white-space: nowrap;
  will-change: opacity;
}

@media (max-width: 640px) {
  .journey__rail { display: none; }
  .journey__hud { right: var(--gutter); bottom: auto; top: 5.2rem; }
  .journey__scrim {
    background:
      radial-gradient(ellipse 145% 80% at 50% 40%, transparent 26%, rgba(6,6,5,0.55) 80%, rgba(6,6,5,0.95) 100%),
      linear-gradient(180deg, rgba(6,6,5,0.82) 0%, rgba(6,6,5,0.18) 24%, rgba(6,6,5,0.42) 58%, rgba(6,6,5,0.97) 100%);
  }
}

/* Reduced motion — no fly-through; show exterior + hero text, static */
@media (prefers-reduced-motion: reduce) {
  .journey { height: 100svh; }
  .journey__stage { position: relative; }
  .journey__rail, .journey__hud, .journey__hint { display: none; }
  .scene { opacity: 0 !important; transform: none !important; }
  .scene[data-scene="0"] { opacity: 1 !important; }
  .scene__cap { display: none; }
}

/* =========================================================
   Marquee
   ========================================================= */
.marquee {
  background: var(--ink-2);
  border-top: 1px solid var(--on-dark-4);
  border-bottom: 1px solid var(--on-dark-4);
  overflow: hidden;
  padding: 1.4rem 0;
}
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: flex; align-items: center; gap: 2rem; padding-right: 2rem;
  font-family: var(--font-display); font-weight: 200;
  font-size: clamp(1.15rem, 2.6vw, 2rem);
  line-height: 1.4;
  color: var(--on-dark-2);
  white-space: nowrap;
}
.marquee__item b {
  font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
}
.marquee__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex: none; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =========================================================
   Sections
   ========================================================= */
.section { padding: clamp(5rem, 11vw, 11rem) 0; position: relative; }
.section--light { background: var(--paper); color: var(--ink); }
.section--light .lede { color: var(--ink-soft); }
.section--light .eyebrow { color: var(--bronze); }
.section--light .eyebrow::before { background: linear-gradient(90deg, transparent, var(--bronze)); }
.section--light .display .hollow { -webkit-text-stroke-color: rgba(10,10,8,0.28); }
.section--tint { background: var(--ink-2); }

/* =========================================================
   Reveal system
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 1.1s var(--ease-soft), transform 1.1s var(--ease-soft);
}
[data-reveal].in-view { opacity: 1; transform: none; }

[data-reveal-3d] {
  opacity: 0;
  transform: perspective(1200px) translateY(60px) rotateX(-14deg) scale(0.94);
  transform-origin: center bottom;
  transition: opacity 1.2s var(--ease-soft), transform 1.3s var(--ease-soft);
}
[data-reveal-3d].in-view { opacity: 1; transform: perspective(1200px) translateY(0) rotateX(0) scale(1); }

[data-stagger] > * {
  opacity: 0;
  transform: perspective(1000px) translateY(48px) rotateX(-10deg);
  transition: opacity 0.95s var(--ease-soft), transform 1.05s var(--ease-soft);
}
[data-stagger].in-view > * { opacity: 1; transform: perspective(1000px) translateY(0) rotateX(0); }
[data-stagger].in-view > *:nth-child(1) { transition-delay: 0.06s; }
[data-stagger].in-view > *:nth-child(2) { transition-delay: 0.15s; }
[data-stagger].in-view > *:nth-child(3) { transition-delay: 0.24s; }
[data-stagger].in-view > *:nth-child(4) { transition-delay: 0.33s; }
[data-stagger].in-view > *:nth-child(5) { transition-delay: 0.42s; }
[data-stagger].in-view > *:nth-child(6) { transition-delay: 0.51s; }
[data-stagger].in-view > *:nth-child(7) { transition-delay: 0.60s; }
[data-stagger].in-view > *:nth-child(8) { transition-delay: 0.69s; }

/* Image mask wipe reveal */
.mask-reveal { overflow: hidden; }
.mask-reveal img,
.mask-reveal > .mask-inner {
  transform: scale(1.35);
  transition: transform 1.6s var(--ease-soft);
  will-change: transform;
}
.mask-reveal.in-view img,
.mask-reveal.in-view > .mask-inner { transform: scale(1); }

/* =========================================================
   About / philosophy — 3D floating frames
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.about-stack {
  position: relative;
  perspective: 1600px;
  transform-style: preserve-3d;
}
.about-stack__main {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  will-change: transform;
  box-shadow: 0 50px 90px -30px rgba(0,0,0,0.7);
}
.about-stack__main img { width: 100%; height: 100%; object-fit: cover; }
.about-stack__float {
  position: absolute;
  right: -8%;
  bottom: 8%;
  width: 48%;
  aspect-ratio: 1;
  overflow: hidden;
  box-shadow: 0 40px 70px -20px rgba(0,0,0,0.75);
  will-change: transform;
  border: 1px solid var(--on-dark-4);
}
.about-stack__float img { width: 100%; height: 100%; object-fit: cover; }
.about-stack__badge {
  position: absolute;
  left: -6%; top: 8%;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: var(--ink);
  padding: 1.3rem 1.6rem;
  text-align: center;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
  will-change: transform;
}
.about-stack__badge b {
  display: block;
  font-family: var(--font-display); font-weight: 300;
  font-size: 2.4rem; line-height: 1;
}
.about-stack__badge span {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
}

.pillars { margin-top: 3rem; display: grid; gap: 0; }
.pillar {
  display: flex; gap: 1.5rem;
  padding: 1.7rem 0;
  border-top: 1px solid var(--on-dark-4);
  transition: padding-left 0.5s var(--ease);
}
.section--light .pillar { border-top-color: rgba(10,10,8,0.12); }
.pillar:hover { padding-left: 0.7rem; }
.pillar__num {
  font-family: var(--font-display); font-weight: 200;
  font-size: 1.6rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--gold);
  flex: none;
}
.pillar h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.1rem; margin-bottom: 0.35rem; }
.pillar p { font-size: 0.94rem; line-height: 1.85; color: var(--on-dark-2); font-weight: 200; }
.section--light .pillar p { color: var(--ink-soft); }

/* =========================================================
   Stats — scroll counters
   ========================================================= */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--on-dark-4); }
.stat { background: var(--ink); padding: clamp(2rem, 3.5vw, 3.2rem) 1.6rem; text-align: center; }
.stat__num {
  font-family: var(--font-display); font-weight: 200;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1;
  background: linear-gradient(160deg, var(--gold-3), var(--gold) 55%, var(--bronze));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__label {
  margin-top: 0.9rem; font-size: 0.84rem; color: var(--on-dark-2);
  letter-spacing: 0.04em; font-weight: 200;
}

/* =========================================================
   CONSTRUCTION STAGES — the build journey
   ========================================================= */
.stages { position: relative; }
.stages__rail {
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 1px; background: var(--on-dark-4);
  transform: translateX(-50%);
}
.stages__rail-fill {
  position: absolute; left: 0; top: 0; width: 100%;
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  transform-origin: top; transform: scaleY(0);
  will-change: transform;
  height: 100%;
}
.stage {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem) 0;
}
.stage__media {
  position: relative;
  aspect-ratio: 16/11;
  overflow: hidden;
  box-shadow: 0 40px 80px -35px rgba(0,0,0,0.8);
  perspective: 1000px;
}
.stage__media img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.stage__media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6,6,5,0.6));
  pointer-events: none;
}
.stage__phase {
  position: absolute; left: 1.2rem; bottom: 1.1rem; z-index: 2;
  font-family: var(--font-display); font-weight: 200;
  font-size: 3.4rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--gold-2);
  opacity: 0.9;
}
.stage__node {
  width: 15px; height: 15px; border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--ink);
  position: relative; z-index: 2;
  flex: none;
  transition: background 0.6s var(--ease), box-shadow 0.6s var(--ease), transform 0.6s var(--ease);
}
.stage.in-view .stage__node {
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(201,162,39,0.16), 0 0 26px rgba(201,162,39,0.5);
  transform: scale(1.15);
}
.stage__body { padding: 0.5rem 0; }
.stage__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 0.9rem;
}
.stage__body h3 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.2; margin-bottom: 0.9rem;
}
.stage__body p { color: var(--on-dark-2); font-size: 0.96rem; line-height: 1.9; font-weight: 200; }
.stage__specs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.4rem; }
.stage__specs span {
  font-size: 0.74rem; letter-spacing: 0.05em;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--on-dark-4);
  border-radius: 999px;
  color: var(--on-dark-2);
}
.stage:nth-child(even) .stage__media { order: 3; }
.stage:nth-child(even) .stage__body { order: 1; text-align: right; }
.stage:nth-child(even) .stage__specs { justify-content: flex-end; }

/* =========================================================
   Projects — 3D tilt cards
   ========================================================= */
.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.4rem;
  perspective: 1800px;
}
.project-card {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow 0.6s var(--ease);
  box-shadow: 0 30px 60px -35px rgba(0,0,0,0.8);
}
.project-card:hover { box-shadow: 0 50px 90px -30px rgba(0,0,0,0.9); }
.project-card--wide { grid-column: span 7; aspect-ratio: 16/11; }
.project-card--tall { grid-column: span 5; aspect-ratio: 4/5; }
.project-card--half { grid-column: span 6; aspect-ratio: 3/2; }
.project-card--third { grid-column: span 4; aspect-ratio: 4/5; }
.project-card__img { position: absolute; inset: -6%; }
.project-card__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.3s var(--ease-soft), filter 0.9s var(--ease);
  filter: saturate(0.85) contrast(1.05);
  will-change: transform;
}
.project-card:hover .project-card__img img { transform: scale(1.11); filter: saturate(1.05) contrast(1.08); }
.project-card__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,6,5,0.1) 30%, rgba(6,6,5,0.55) 65%, rgba(6,6,5,0.94) 100%);
}
.project-card__body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: clamp(1.3rem, 2.4vw, 2.1rem);
  transform: translateZ(40px);
}
.project-card__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.63rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold-2);
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(201,162,39,0.42);
  border-radius: 999px;
  margin-bottom: 0.9rem;
  backdrop-filter: blur(6px);
}
.project-card__title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  line-height: 1.25; margin-bottom: 0.4rem;
}
.project-card__meta {
  display: flex; align-items: center; gap: 1.2rem;
  font-size: 0.82rem; color: var(--on-dark-2);
}
.project-card__meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.project-card__meta svg { width: 13px; height: 13px; flex: none; }

/* =========================================================
   Services
   ========================================================= */
.service-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: rgba(10,10,8,0.12);
  border: 1px solid rgba(10,10,8,0.12);
}
.service-card {
  background: var(--paper);
  padding: clamp(2rem, 3.4vw, 3rem);
  position: relative;
  overflow: hidden;
  transition: background 0.6s var(--ease), color 0.6s var(--ease);
}
.service-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(150deg, var(--ink-2), var(--ink));
  transform: translateY(101%);
  transition: transform 0.75s var(--ease-power);
}
.service-card:hover::before { transform: translateY(0); }
.service-card > * { position: relative; z-index: 1; }
.service-card:hover { color: var(--on-dark); }
.service-card:hover .service-card__num { color: var(--gold); -webkit-text-stroke-color: var(--gold); }
.service-card:hover p { color: var(--on-dark-2); }
.service-card__num {
  position: absolute; top: clamp(1.4rem, 2.6vw, 2.2rem); right: clamp(1.4rem, 2.6vw, 2.2rem);
  font-family: var(--font-display); font-weight: 200; font-size: 2.4rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(10,10,8,0.2);
  transition: -webkit-text-stroke-color 0.6s var(--ease);
  z-index: 1;
}
.service-card__icon {
  width: 46px; height: 46px; color: var(--bronze); margin-bottom: 1.7rem;
  transition: color 0.6s var(--ease), transform 0.6s var(--ease);
}
.service-card:hover .service-card__icon { color: var(--gold-2); transform: translateY(-3px) scale(1.06); }
.service-card__icon svg { width: 100%; height: 100%; }
.service-card h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.3rem; margin-bottom: 0.7rem;
}
.service-card p { color: var(--ink-soft); font-size: 0.93rem; line-height: 1.85; font-weight: 200; transition: color 0.6s var(--ease); }

/* =========================================================
   Cinematic pinned quote — scroll zoom
   ========================================================= */
.cine {
  position: relative;
  height: 130vh;
}
.cine__sticky {
  position: sticky; top: 0;
  height: 100svh;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.cine__media { position: absolute; inset: -10%; z-index: 0; will-change: transform; }
.cine__media img { width: 100%; height: 100%; object-fit: cover; }
.cine__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse at center, rgba(6,6,5,0.45) 0%, rgba(6,6,5,0.82) 78%),
    linear-gradient(180deg, rgba(6,6,5,0.5), rgba(6,6,5,0.5));
}
.cine__content {
  position: relative; z-index: 2;
  text-align: center; padding: 0 var(--gutter);
  max-width: 60rem;
  will-change: transform, opacity;
}
.cine blockquote {
  font-family: var(--font-serif); font-weight: 300;
  font-size: clamp(1.6rem, 4.6vw, 3.6rem);
  line-height: 1.4;
  color: var(--on-dark);
}
.cine blockquote b { font-weight: 400; color: var(--gold-2); }
.cine cite {
  display: block; margin-top: 2rem;
  font-style: normal; font-family: var(--font-display);
  font-size: 0.78rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--gold);
}

/* =========================================================
   Process
   ========================================================= */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.2rem; }
.process-step { position: relative; padding-top: 2.4rem; }
.process-step::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1px; background: var(--on-dark-4);
}
.process-step::after {
  content: ''; position: absolute; top: 0; left: 0;
  width: 0; height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  transition: width 1.1s var(--ease-power);
}
.process-step.in-view::after { width: 100%; }
.process-step__num {
  display: block;
  font-family: var(--font-display); font-weight: 200;
  font-size: 2.6rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--gold);
  margin-bottom: 1.2rem;
}
.process-step h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; margin-bottom: 0.7rem; }
.process-step p { color: var(--on-dark-2); font-size: 0.9rem; line-height: 1.85; font-weight: 200; }

/* =========================================================
   Testimonials
   ========================================================= */
.testi { max-width: 52rem; margin: 0 auto; text-align: center; }
.testi-track { position: relative; min-height: 17rem; perspective: 1200px; }
.testi-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transform: translateY(26px) rotateX(-8deg);
  transition: opacity 0.8s var(--ease-soft), transform 0.9s var(--ease-soft), visibility 0.8s;
}
.testi-slide.is-active { opacity: 1; visibility: visible; transform: none; position: relative; }
.testi-slide__quote {
  font-family: var(--font-serif); font-weight: 300;
  font-size: clamp(1.2rem, 2.5vw, 1.85rem);
  line-height: 1.7;
}
.testi-slide__name { margin-top: 2rem; font-weight: 500; font-size: 0.98rem; font-family: var(--font-display); }
.testi-slide__role { color: var(--on-dark-3); font-size: 0.84rem; margin-top: 0.2rem; }
.testi-stars { color: var(--gold); margin-bottom: 1.6rem; letter-spacing: 0.3em; font-size: 0.9rem; }
.testi-nav { display: flex; justify-content: center; align-items: center; gap: 1.6rem; margin-top: 2.6rem; }
.testi-dots { display: flex; gap: 0.55rem; }
.testi-dots button {
  width: 26px; height: 2px; padding: 0;
  background: var(--on-dark-4);
  transition: background 0.5s var(--ease);
}
.testi-dots button.is-active { background: var(--gold); }
.testi-arrow {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--on-dark-4);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease), color 0.5s var(--ease);
}
.testi-arrow svg { width: 16px; height: 16px; }
.testi-arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* =========================================================
   Gallery
   ========================================================= */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 11.5vw; gap: 0.7rem; }
.gallery__item { position: relative; overflow: hidden; cursor: pointer; }
.gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery__item:nth-child(4) { grid-column: span 2; }
.gallery__item:nth-child(5) { grid-row: span 2; }
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease-soft), filter 0.7s var(--ease);
  filter: saturate(0.9);
}
.gallery__item:hover img { transform: scale(1.12); filter: saturate(1.1); }
.gallery__item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6,6,5,0.7));
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.gallery__item:hover::after { opacity: 1; }
.gallery__cap {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem;
  font-size: 0.82rem; color: var(--on-dark);
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  z-index: 1;
}
.gallery__item:hover .gallery__cap { opacity: 1; transform: translateY(0); }
.gallery__zoom {
  position: absolute; top: 1rem; right: 1rem; z-index: 1;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(201,162,39,0.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0.6) rotate(-30deg);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.gallery__item:hover .gallery__zoom { opacity: 1; transform: scale(1) rotate(0); }
.gallery__zoom svg { width: 15px; height: 15px; color: var(--ink); }

.lightbox {
  position: fixed; inset: 0; z-index: 8500;
  background: rgba(6,6,5,0.97);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 4.5rem 1.5rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.55s var(--ease), visibility 0.55s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(92vw, 1200px); max-height: 84vh; object-fit: contain;
  transform: scale(0.94); transition: transform 0.6s var(--ease-soft);
  box-shadow: 0 40px 100px rgba(0,0,0,0.7);
}
.lightbox.is-open img { transform: scale(1); }
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute;
  border: 1px solid var(--on-dark-4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease);
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover {
  background: var(--gold); border-color: var(--gold); color: var(--ink);
}
.lightbox__close { top: 1.6rem; right: 1.6rem; width: 46px; height: 46px; }
.lightbox__close svg { width: 18px; height: 18px; }
.lightbox__prev, .lightbox__next { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.lightbox__prev { left: 1.2rem; }
.lightbox__next { right: 1.2rem; }
.lightbox__prev svg, .lightbox__next svg { width: 20px; height: 20px; }

/* =========================================================
   CTA
   ========================================================= */
.cta {
  position: relative; overflow: hidden;
  padding: clamp(4rem, 9vw, 8rem) clamp(1.5rem, 6vw, 5rem);
  text-align: center;
  isolation: isolate;
}
.cta__media { position: absolute; inset: -10%; z-index: -2; will-change: transform; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; }
.cta__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(6,6,5,0.68), rgba(6,6,5,0.92));
}
.cta .h-xl { margin: 1.4rem auto 1.2rem; max-width: 22em; }
.cta p { color: var(--on-dark-2); max-width: 34rem; margin: 0 auto 2.6rem; }
.cta__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* =========================================================
   Contact
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2.5rem, 6vw, 5rem); }
.contact-list { margin-top: 2.6rem; }
.contact-item {
  display: flex; gap: 1.3rem; align-items: flex-start;
  padding: 1.5rem 0;
  border-top: 1px solid var(--on-dark-4);
  transition: padding-left 0.5s var(--ease);
}
.contact-item:hover { padding-left: 0.6rem; }
.contact-item__icon { width: 22px; height: 22px; color: var(--gold); flex: none; margin-top: 0.25rem; }
.contact-item__icon svg { width: 100%; height: 100%; }
.contact-item h3 { font-family: var(--font-display); font-weight: 400; font-size: 0.98rem; margin-bottom: 0.3rem; }
.contact-item p, .contact-item a { color: var(--on-dark-2); font-size: 0.95rem; line-height: 1.75; font-weight: 200; }
.contact-item a:hover { color: var(--gold-2); }
.contact-note {
  margin-top: 2.2rem; padding: 1.3rem 1.5rem;
  background: rgba(201,162,39,0.06);
  border-left: 2px solid var(--gold);
  font-size: 0.86rem; color: var(--on-dark-2); line-height: 1.9; font-weight: 200;
}
.contact-card {
  background: linear-gradient(155deg, var(--ink-3), var(--ink));
  border: 1px solid var(--on-dark-4);
  padding: clamp(2.2rem, 4vw, 3.2rem);
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
  min-height: 24rem;
}
.contact-card__quote {
  font-family: var(--font-serif); font-weight: 300;
  font-size: clamp(1.3rem, 2.4vw, 1.85rem); line-height: 1.55;
  position: relative; z-index: 1;
}
.contact-card__quote b { color: var(--gold-2); font-weight: 400; }
.contact-card .btn { align-self: flex-start; margin-top: 2.2rem; position: relative; z-index: 1; }
.contact-card__deco {
  position: absolute; right: -25%; bottom: -35%;
  width: 70%; aspect-ratio: 1;
  border: 1px solid rgba(201,162,39,0.16); border-radius: 50%;
}
.contact-card__deco::after {
  content: ''; position: absolute; inset: 18%;
  border: 1px solid rgba(201,162,39,0.1); border-radius: 50%;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--ink); padding: clamp(4rem, 8vw, 6rem) 0 2rem; border-top: 1px solid var(--on-dark-4); }
.footer-grid {
  display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr;
  gap: 2.8rem; padding-bottom: 3.2rem;
  border-bottom: 1px solid var(--on-dark-4);
}
.footer-brand .brand { margin-bottom: 1.4rem; }
.footer-brand p { font-size: 0.9rem; line-height: 1.9; max-width: 25rem; color: var(--on-dark-2); font-weight: 200; }
.footer-social { display: flex; gap: 0.7rem; margin-top: 1.8rem; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--on-dark-4);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.45s var(--ease), border-color 0.45s var(--ease), color 0.45s var(--ease), transform 0.45s var(--ease);
}
.footer-social a svg { width: 15px; height: 15px; }
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); transform: translateY(-3px); }
.footer-col h4 {
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 400;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--on-dark); margin-bottom: 1.4rem;
}
.footer-col ul { display: grid; gap: 0.8rem; }
.footer-col a, .footer-col li { font-size: 0.9rem; color: var(--on-dark-2); font-weight: 200; transition: color 0.35s var(--ease); }
.footer-col a:hover { color: var(--gold-2); }
.footer-bottom {
  padding-top: 1.9rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: 0.8rem; color: var(--on-dark-3); font-weight: 200;
}
.footer-bottom__privacy { display: inline-flex; align-items: center; gap: 0.5rem; }
.footer-bottom__privacy svg { width: 14px; height: 14px; color: var(--gold); flex: none; }

/* Back to top */
.to-top {
  position: fixed; right: 1.5rem; bottom: 1.5rem;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gold); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  z-index: 400;
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(0.85);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0.5s;
  box-shadow: 0 14px 34px rgba(201,162,39,0.3);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); }
.to-top svg { width: 17px; height: 17px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-stack { max-width: 34rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 2.8rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .project-card--wide, .project-card--tall, .project-card--half, .project-card--third { grid-column: span 6; }
  .project-card--tall { aspect-ratio: 3/2; }
  .project-card--third { aspect-ratio: 3/2; }
}

@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }

  .stages__rail { left: 7px; transform: none; }
  .stage { grid-template-columns: auto 1fr; gap: 1.4rem; padding: 2rem 0; }
  .stage__media { grid-column: 2; order: 1 !important; }
  .stage__node { grid-row: 1 / span 2; align-self: start; margin-top: 0.5rem; order: 0 !important; }
  .stage__body { grid-column: 2; order: 2 !important; text-align: left !important; }
  .stage:nth-child(even) .stage__specs { justify-content: flex-start; }
  .stage__phase { font-size: 2.6rem; }
}

@media (max-width: 680px) {
  .hero__meta { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { flex: 1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .project-card--wide, .project-card--tall, .project-card--half, .project-card--third {
    grid-column: span 12; aspect-ratio: 4/3;
  }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 30vw; }
  .gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .gallery__item:nth-child(5) { grid-row: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta__actions { flex-direction: column; }
  .cta__actions .btn { width: 100%; }
  .lightbox__prev, .lightbox__next { width: 42px; height: 42px; }
  .lightbox__prev { left: 0.6rem; }
  .lightbox__next { right: 0.6rem; }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal], [data-reveal-3d], [data-stagger] > *, .split-word {
    opacity: 1 !important; transform: none !important;
  }
  .mask-reveal img, .mask-reveal > .mask-inner { transform: none !important; }
  .grain, .cursor-glow { display: none; }
  .hero__layer, .cine__media, .cta__media { transform: none !important; }
}
