/* ============================================================
   GOHARAVA MAISON — Luxury Design System (RTL, fa)
   Velvet Black / Ivory / Midnight Navy / Champagne Gold
   ============================================================ */

/* ---------- Fonts (self-hosted, relative) ---------- */
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/vazirmatn-fa-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-0899, U+08E0-08FF, U+200C-200D, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/vazirmatn-latin-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA-02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #0D0D0D;
  --bg-2: #101010;
  --bg-3: #141414;
  --ivory: #FAF8F5;
  --navy: #0F172A;
  --gold: #C5A059;
  --gold-2: #D8BC85;
  --rose: #B76E79;
  --dim: rgba(250, 248, 245, .62);
  --dim-2: rgba(250, 248, 245, .56);
  --hair: rgba(197, 160, 89, .20);
  --hair-2: rgba(197, 160, 89, .38);
  --hair-g: rgba(250, 248, 245, .09);
  --r: 3px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --fa: 'Vazirmatn', 'Anjoman', 'Pinar', 'IRANYekan', 'Segoe UI', Tahoma, sans-serif;
  --nav-h: 70px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--fa);
  font-size: 16px;
  line-height: 1.95;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--gold); color: #0D0D0D; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
h1, h2, h3, h4 { font-weight: 200; line-height: 1.45; margin: 0; }
p { margin: 0; }

.wrap { width: min(1220px, 92vw); margin-inline: auto; }
.section { padding: clamp(84px, 12vh, 148px) 0; position: relative; }
.hair-t { border-top: 1px solid var(--hair-g); }

/* ---------- Preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 26px;
  transition: opacity .9s var(--ease), visibility .9s;
}
#preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.pre-mono {
  width: 74px; height: 74px; border: 1px solid var(--hair-2); border-radius: 50%;
  display: grid; place-items: center;
  font-size: 30px; font-weight: 200; color: var(--gold);
  animation: prePulse 2.6s ease-in-out infinite;
}
@keyframes prePulse { 0%,100% { box-shadow: 0 0 0 0 rgba(197,160,89,.14); } 50% { box-shadow: 0 0 0 16px rgba(197,160,89,0); } }
.pre-bar { width: min(240px, 60vw); height: 1px; background: var(--hair-g); position: relative; overflow: hidden; }
.pre-bar i { position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .35s ease; }
.pre-pct { font-size: 13px; color: var(--dim); letter-spacing: .06em; }
.pre-label { font-size: 11px; color: var(--dim-2); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; right: 0; left: 0; z-index: 900;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(13, 13, 13, .38);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background .5s ease, border-color .5s ease;
}
.nav.scrolled { background: rgba(13, 13, 13, .82); border-bottom-color: var(--hair-g); }
.nav-in { width: min(1320px, 94vw); margin-inline: auto; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; margin-inline-end: auto; }
.brand-mono {
  width: 40px; height: 40px; border: 1px solid var(--hair-2); border-radius: 50%;
  display: grid; place-items: center; color: var(--gold); font-size: 17px; font-weight: 300;
}
.brand-tx b { display: block; font-size: 15px; font-weight: 500; letter-spacing: .01em; }
.brand-tx span { display: block; font-size: 10px; color: var(--dim-2); letter-spacing: .14em; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 13.5px; color: var(--dim); position: relative; padding: 6px 0; transition: color .35s; }
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; right: 0; width: 100%; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ivory); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.burger { display: none; background: none; border: 0; width: 42px; height: 42px; position: relative; }
.burger i, .burger i::before, .burger i::after {
  content: ''; position: absolute; right: 9px; width: 24px; height: 1px; background: var(--ivory); transition: .4s var(--ease);
}
.burger i { top: 20px; }
.burger i::before { top: -7px; right: 0; }
.burger i::after { top: 7px; right: 0; }
body.drawer-open .burger i { background: transparent; }
body.drawer-open .burger i::before { transform: translateY(7px) rotate(45deg); }
body.drawer-open .burger i::after { transform: translateY(-7px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 890;
  background: rgba(10, 10, 10, .97);
  backdrop-filter: blur(20px);
  transform: translateX(100%); transition: transform .65s var(--ease);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 8vw; gap: 6px;
}
body.drawer-open .drawer { transform: translateX(0); }
.drawer a { font-size: clamp(22px, 6vw, 30px); font-weight: 200; color: var(--dim); padding: 10px 0; border-bottom: 1px solid var(--hair-g); opacity: 0; transform: translateY(18px); transition: .6s var(--ease); }
body.drawer-open .drawer a { opacity: 1; transform: none; }
.drawer a:nth-child(1) { transition-delay: .10s; } .drawer a:nth-child(2) { transition-delay: .16s; }
.drawer a:nth-child(3) { transition-delay: .22s; } .drawer a:nth-child(4) { transition-delay: .28s; }
.drawer a:nth-child(5) { transition-delay: .34s; } .drawer a:nth-child(6) { transition-delay: .40s; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px; border-radius: var(--r);
  font-size: 14px; font-weight: 400; border: 1px solid transparent;
  overflow: hidden; isolation: isolate; transition: color .4s, border-color .4s;
  white-space: nowrap;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--gold); transform: scaleX(0); transform-origin: right;
  transition: transform .55s var(--ease);
}
.btn-gold { background: var(--gold); color: #0D0D0D; }
.btn-gold:hover { background: var(--gold-2); }
.btn-ghost { border-color: var(--hair-2); color: var(--ivory); }
.btn-ghost:hover { color: #0D0D0D; border-color: var(--gold); }
.btn-ghost:hover::before { transform: scaleX(1); }
.btn-sm { padding: 10px 20px; font-size: 13px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 26s ease-in-out infinite alternate; }
@keyframes heroZoom { from { transform: scale(1.06) translateY(0); } to { transform: scale(1.16) translateY(-1.5%); } }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,13,13,.96) 4%, rgba(13,13,13,.42) 46%, rgba(13,13,13,.62) 100%);
}
.hero-in { position: relative; z-index: 2; width: min(1220px, 92vw); margin-inline: auto; padding-top: var(--nav-h); }
.eyebrow { color: var(--gold); font-size: 12.5px; font-weight: 500; letter-spacing: .04em; display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ''; width: 34px; height: 1px; background: var(--gold); }
.hero h1 { font-size: clamp(34px, 6.4vw, 74px); font-weight: 100; margin: 22px 0 18px; max-width: 15em; }
.hero h1 b { font-weight: 400; color: var(--gold-2); }
.hero p { color: var(--dim); max-width: 46ch; font-size: clamp(14px, 1.5vw, 17px); }
.hero-cta { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 34px; right: 50%; transform: translateX(50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--dim-2); font-size: 11px;
}
.hero-scroll i { width: 1px; height: 52px; background: linear-gradient(var(--gold), transparent); display: block; animation: drip 2.2s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: top; } 56% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
/* intro reveal (post-preloader) */
.hero-in > * { opacity: 0; transform: translateY(26px); transition: 1s var(--ease); }
body.ready .hero-in > * { opacity: 1; transform: none; }
body.ready .hero-in > *:nth-child(2) { transition-delay: .12s; }
body.ready .hero-in > *:nth-child(3) { transition-delay: .24s; }
body.ready .hero-in > *:nth-child(4) { transition-delay: .36s; }

/* ---------- Page hero (sub-pages) ---------- */
.phero { position: relative; padding: calc(var(--nav-h) + clamp(60px, 10vh, 110px)) 0 clamp(48px, 8vh, 90px); overflow: hidden; }
.phero-bg { position: absolute; inset: 0; opacity: .30; }
.phero-bg img { width: 100%; height: 100%; object-fit: cover; }
.phero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 2%, rgba(13,13,13,.55) 60%, rgba(13,13,13,.8)); }
.phero .wrap { position: relative; z-index: 2; }
.phero h1 { font-size: clamp(30px, 5vw, 56px); font-weight: 100; margin-top: 18px; }
.phero .lead { color: var(--dim); max-width: 58ch; margin-top: 14px; }
.crumbs { font-size: 12px; color: var(--dim-2); margin-top: 16px; }
.crumbs a { color: var(--gold); }

/* ---------- Story / scrollytelling stage ---------- */
.story { position: relative; height: 700vh; } /* 5 beats × 140vh */
.story-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  overflow: hidden; background: #000;
}
#storyVideo, .still-layer {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; will-change: transform;
}
.still-layer { opacity: 0; transition: none; }
.story-stage::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 50%, transparent 40%, rgba(0,0,0,.55) 100%);
}
.beat {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center;
  padding-inline: clamp(20px, 7vw, 110px);
  opacity: 0; pointer-events: none; will-change: opacity, transform;
}
.beat[data-side="end"] { justify-content: flex-end; }
.beat-card {
  width: min(520px, 100%);
  background: rgba(10, 10, 10, .46);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--hair);
  border-radius: var(--r);
  padding: clamp(24px, 3.4vw, 42px);
  transform: translateY(34px);
  will-change: transform, opacity;
}
.beat-idx { display: flex; align-items: center; gap: 12px; color: var(--gold); font-size: 12px; margin-bottom: 14px; }
.beat-idx time { color: var(--dim-2); font-size: 11px; }
.beat-idx i { flex: 1; height: 1px; background: var(--hair); }
.beat-card h2 { font-size: clamp(24px, 3.2vw, 40px); font-weight: 200; margin-bottom: 6px; }
.beat-card h3 { font-size: clamp(16px, 2vw, 21px); font-weight: 300; color: var(--gold-2); margin-bottom: 12px; }
.beat-card p { color: var(--dim); font-size: clamp(13px, 1.35vw, 15.5px); }
.beat-meta { display: flex; gap: 22px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--hair-g); flex-wrap: wrap; }
.beat-meta div { font-size: 12px; color: var(--dim-2); }
.beat-meta b { display: block; color: var(--ivory); font-size: 15px; font-weight: 400; }
.beat-cta { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.story-rail {
  position: absolute; left: clamp(14px, 3vw, 40px); top: 50%; transform: translateY(-50%);
  z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.story-rail i { width: 8px; height: 8px; border: 1px solid var(--hair-2); border-radius: 50%; transition: .4s; position: relative; }
.story-rail i.on { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 12px rgba(197,160,89,.65); }
.story-rail i::after {
  content: attr(data-l); position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 10.5px; color: var(--dim-2); white-space: nowrap; opacity: 0; transition: .4s;
}
.story-rail i.on::after { opacity: 1; color: var(--gold-2); }
.story-progress { position: absolute; bottom: 0; right: 0; left: 0; height: 2px; z-index: 4; background: rgba(250,248,245,.07); }
.story-progress i { display: block; height: 100%; background: linear-gradient(to left, var(--gold), var(--rose)); transform: scaleX(0); transform-origin: right; }
.story-hint { position: absolute; bottom: 26px; right: 50%; transform: translateX(50%); z-index: 4; color: var(--dim-2); font-size: 11px; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: opacity .5s; }
.story-hint i { width: 1px; height: 34px; background: linear-gradient(var(--gold), transparent); }

/* ---------- Section heads ---------- */
.sec-head { max-width: 760px; margin-bottom: clamp(40px, 6vh, 68px); }
.sec-head h2 { font-size: clamp(28px, 4.2vw, 50px); font-weight: 100; margin-top: 16px; }
.sec-head h2 b { font-weight: 400; color: var(--gold-2); }
.sec-head p { color: var(--dim); margin-top: 14px; max-width: 60ch; }

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

/* ---------- Pillars / grids ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hair-g); border: 1px solid var(--hair-g); }
.pillar { background: var(--bg); padding: clamp(24px, 3vw, 38px); position: relative; transition: background .5s; }
.pillar:hover { background: var(--bg-2); }
.pillar::before { content: ''; position: absolute; top: 0; right: 0; width: 34px; height: 1px; background: var(--gold); transition: width .6s var(--ease); }
.pillar:hover::before { width: 100%; }
.pillar .num { color: var(--gold); font-size: 12px; }
.pillar h3 { font-size: 19px; font-weight: 300; margin: 12px 0 8px; }
.pillar p { color: var(--dim); font-size: 13.5px; }

/* ---------- Ticker ---------- */
.ticker { border-block: 1px solid var(--hair-g); padding: 16px 0; display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; }
.tick { display: flex; align-items: baseline; gap: 10px; font-size: 13px; color: var(--dim); }
.tick b { color: var(--ivory); font-weight: 400; font-size: 15px; }
.tick .up { color: #7FB08A; font-size: 11px; }
.tick .lbl { color: var(--gold); font-size: 12px; }

/* ---------- Collections ---------- */
.col-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.col-card { position: relative; overflow: hidden; border-radius: var(--r); border: 1px solid var(--hair-g); background: var(--bg-2); aspect-ratio: 4 / 5; }
.col-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), filter .8s; transform: scale(1.001); }
.col-card:hover img { transform: scale(1.07); }
.col-card .veil { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,10,.92) 6%, transparent 55%); }
.col-info { position: absolute; inset-inline: 0; bottom: 0; padding: 22px; transform: translateY(8px); transition: transform .6s var(--ease); }
.col-card:hover .col-info { transform: translateY(0); }
.col-info .cat { color: var(--gold); font-size: 11px; }
.col-info h3 { font-size: 19px; font-weight: 300; margin-top: 4px; }
.col-info .price { color: var(--dim); font-size: 12.5px; margin-top: 6px; }
.col-qv {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: rgba(10,10,10,.6); border: 1px solid var(--hair-2); color: var(--ivory);
  font-size: 11.5px; padding: 8px 14px; border-radius: var(--r);
  opacity: 0; transform: translateY(-8px); transition: .5s var(--ease);
  backdrop-filter: blur(8px);
}
.col-card:hover .col-qv, .col-card:focus-within .col-qv { opacity: 1; transform: none; }

/* ---------- Trust ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.trust { border: 1px solid var(--hair-g); border-radius: var(--r); padding: 30px 26px; background: linear-gradient(160deg, rgba(197,160,89,.05), transparent 55%); transition: border-color .5s, transform .6s var(--ease); }
.trust:hover { border-color: var(--hair-2); transform: translateY(-5px); }
.trust svg { width: 30px; height: 30px; stroke: var(--gold); fill: none; stroke-width: 1.1; }
.trust h3 { font-size: 16.5px; font-weight: 400; margin: 16px 0 8px; }
.trust p { color: var(--dim); font-size: 13px; }
.certs { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.certs span { border: 1px solid var(--hair-g); border-radius: 999px; padding: 7px 18px; font-size: 12px; color: var(--dim); }

/* ---------- Booking ---------- */
.book-box { border: 1px solid var(--hair); border-radius: var(--r); background: var(--bg-2); padding: clamp(24px, 4vw, 48px); }
.book-steps { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px, 4vw, 54px); }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--hair-g); background: transparent; color: var(--dim);
  border-radius: var(--r); padding: 10px 16px; font-size: 12.5px; transition: .35s;
}
.chip:hover { border-color: var(--hair-2); color: var(--ivory); }
.chip.on { background: var(--gold); border-color: var(--gold); color: #0D0D0D; font-weight: 500; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 22px; }
.field { margin-top: 18px; }
.field label { display: block; font-size: 12.5px; color: var(--dim); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--hair-g);
  color: var(--ivory); font-family: inherit; font-size: 14.5px; padding: 10px 2px;
  border-radius: 0; transition: border-color .4s;
}
.field textarea { resize: vertical; min-height: 96px; border: 1px solid var(--hair-g); padding: 12px; border-radius: var(--r); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field select option { background: var(--bg-2); }
.book-side { border-inline-start: 1px solid var(--hair-g); padding-inline-start: clamp(20px, 3vw, 44px); }
.book-side h3 { font-size: 20px; font-weight: 300; }
.book-side ul { list-style: none; margin: 18px 0 0; padding: 0; }
.book-side li { padding: 12px 0; border-bottom: 1px solid var(--hair-g); color: var(--dim); font-size: 13.5px; display: flex; gap: 10px; }
.book-side li b { color: var(--gold); font-weight: 400; }
.ok-box { text-align: center; padding: 40px 10px; }
.ok-box .tickmark { width: 62px; height: 62px; margin: 0 auto 18px; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; color: var(--gold); font-size: 24px; }

/* ---------- Calculator ---------- */
.calc { border: 1px solid var(--hair); border-radius: var(--r); background: var(--bg-2); padding: clamp(24px, 4vw, 46px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 54px); }
.seg { display: inline-flex; border: 1px solid var(--hair-g); border-radius: var(--r); overflow: hidden; }
.seg button { background: transparent; border: 0; color: var(--dim); padding: 11px 22px; font-size: 13px; transition: .35s; }
.seg button.on { background: var(--gold); color: #0D0D0D; font-weight: 500; }
.ayar-row { display: flex; gap: 10px; margin-top: 18px; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 1px; background: var(--hair-2);
  border-radius: 0; margin: 26px 0 8px; direction: ltr;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--gold); box-shadow: 0 0 0 4px rgba(197,160,89,.15); cursor: grab;
}
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 1px solid var(--gold); cursor: grab; }
.calc-out { border-inline-start: 1px solid var(--hair-g); padding-inline-start: clamp(20px, 3vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.calc-total { font-size: clamp(30px, 4.6vw, 52px); font-weight: 200; color: var(--gold-2); line-height: 1.3; }
.calc-total small { font-size: 14px; color: var(--dim); font-weight: 300; }
.calc-rows { margin-top: 22px; }
.calc-rows div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--hair-g); font-size: 13.5px; color: var(--dim); }
.calc-rows div b { color: var(--ivory); font-weight: 400; }

/* ---------- Gallery ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.g-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.g-item { position: relative; overflow: hidden; border-radius: var(--r); aspect-ratio: 4 / 5; border: 1px solid var(--hair-g); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease); }
.g-item:hover img { transform: scale(1.06); }
.g-item.hide { opacity: 0; transform: scale(.94); pointer-events: none; }
.g-item.gone { display: none; }
.g-cap { position: absolute; inset-inline: 0; bottom: 0; padding: 18px; background: linear-gradient(to top, rgba(10,10,10,.9), transparent); }
.g-cap .cat { color: var(--gold); font-size: 11px; }
.g-cap h3 { font-size: 16.5px; font-weight: 300; }

/* ---------- Piece / case study ---------- */
.piece { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.piece-gal { position: sticky; top: calc(var(--nav-h) + 24px); }
.piece-main { aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--hair-g); border-radius: var(--r); }
.piece-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .5s ease, transform 8s ease; }
.piece > * { min-width: 0; }
.piece-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.piece-thumbs button { border: 1px solid var(--hair-g); padding: 0; border-radius: var(--r); overflow: hidden; width: 84px; max-width: calc(25% - 8px); aspect-ratio: 4/3; background: none; transition: border-color .4s; }
.piece-thumbs button.on, .piece-thumbs button:hover { border-color: var(--gold); }
.piece-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.spec { margin-top: 30px; border-top: 1px solid var(--hair-g); }
.spec div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 2px; border-bottom: 1px solid var(--hair-g); font-size: 14px; }
.spec dt { color: var(--dim); }
.spec dd { margin: 0; color: var(--ivory); font-weight: 400; }
.story-txt p { color: var(--dim); margin-bottom: 16px; font-size: 15px; }
.story-txt p:first-of-type::first-letter { color: var(--gold); font-size: 2.6em; float: right; line-height: 1; margin-inline-start: 10px; font-weight: 200; }

/* ---------- Bespoke steps ---------- */
.steps-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hair-g); border: 1px solid var(--hair-g); position: relative; }
.step-btn { background: var(--bg); border: 0; color: var(--dim); padding: 26px 18px; text-align: center; transition: background .45s, color .45s; position: relative; }
.step-btn .n { display: block; color: var(--gold); font-size: 12px; margin-bottom: 8px; }
.step-btn .t { font-size: 15px; font-weight: 400; }
.step-btn.on { background: var(--bg-3); color: var(--ivory); }
.step-btn.on::after { content: ''; position: absolute; bottom: -1px; right: 0; left: 0; height: 1px; background: var(--gold); }
.step-panel { display: none; padding: clamp(28px, 4vw, 54px) 0; }
.step-panel.on { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 60px); align-items: center; animation: panelIn .7s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.step-panel h3 { font-size: clamp(22px, 3vw, 32px); font-weight: 200; margin-bottom: 14px; }
.step-panel p { color: var(--dim); font-size: 14.5px; }
.step-panel ul { color: var(--dim); font-size: 14px; padding-inline-start: 0; list-style: none; margin: 18px 0 0; }
.step-panel li { padding: 9px 0; border-bottom: 1px solid var(--hair-g); display: flex; gap: 10px; }
.step-panel li::before { content: '◆'; color: var(--gold); font-size: 8px; align-self: center; }
.step-panel .viz { border: 1px solid var(--hair); border-radius: var(--r); aspect-ratio: 16/10; overflow: hidden; }
.step-panel .viz img { width: 100%; height: 100%; object-fit: cover; }
.step-ctl { display: flex; justify-content: space-between; margin-top: 8px; }

/* ---------- Contact / map ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); }
.info-cards { display: grid; gap: 14px; }
.info-card { border: 1px solid var(--hair-g); border-radius: var(--r); padding: 20px 22px; display: flex; gap: 16px; align-items: center; transition: border-color .4s; }
.info-card:hover { border-color: var(--hair-2); }
.info-card svg { width: 22px; height: 22px; stroke: var(--gold); fill: none; stroke-width: 1.2; flex: none; }
.info-card .k { font-size: 12px; color: var(--dim-2); }
.info-card .v { font-size: 15px; font-weight: 400; direction: ltr; text-align: right; }
.info-card .v.fa { direction: rtl; }
.map-box { margin-top: 14px; border: 1px solid var(--hair-g); border-radius: var(--r); overflow: hidden; position: relative; aspect-ratio: 16/10; background: var(--navy); }
.map-box svg { width: 100%; height: 100%; }
.map-pin { animation: pinPulse 2.4s ease-in-out infinite; transform-origin: center; }
@keyframes pinPulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
.map-tag { position: absolute; bottom: 12px; right: 12px; background: rgba(10,10,10,.75); border: 1px solid var(--hair); border-radius: var(--r); padding: 8px 14px; font-size: 12px; color: var(--dim); backdrop-filter: blur(6px); }

/* ---------- Footer ---------- */
footer { background: #0A0A0A; border-top: 1px solid var(--hair-g); padding: clamp(50px, 8vh, 84px) 0 0; }
.f-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; padding-bottom: 44px; }
.f-grid h4 { font-size: 14px; font-weight: 500; color: var(--gold); margin-bottom: 16px; }
.f-grid a, .f-grid p { color: var(--dim); font-size: 13.5px; display: block; padding: 5px 0; transition: color .3s; }
.f-grid a:hover { color: var(--gold-2); }
.f-brand p { max-width: 34ch; }
.f-bottom { border-top: 1px solid var(--hair-g); padding: 20px 0 calc(20px + env(safe-area-inset-bottom, 0px)); text-align: center; }
.f-bottom p { font-size: 12.5px; color: var(--dim-2); }

/* ---------- Floating mobile CTA ---------- */
.mobile-cta {
  position: fixed; bottom: 0; right: 0; left: 0; z-index: 850;
  display: none; gap: 1px; background: var(--hair-g);
  border-top: 1px solid var(--hair-g);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background-color: rgba(10,10,10,.88);
}
.mobile-cta a { flex: 1; text-align: center; padding: 15px 6px; font-size: 13.5px; font-weight: 400; background: rgba(10,10,10,.88); }
.mobile-cta a.wa { color: #8FD19E; }
.mobile-cta a.bk { color: #0D0D0D; background: var(--gold); font-weight: 500; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 950; display: none; align-items: center; justify-content: center; padding: 4vw; }
.modal.open { display: flex; }
.modal-bd { position: absolute; inset: 0; background: rgba(5,5,5,.8); backdrop-filter: blur(8px); }
.modal-box {
  position: relative; z-index: 2; width: min(920px, 100%); max-height: 88vh; overflow: auto;
  background: var(--bg-2); border: 1px solid var(--hair-2); border-radius: var(--r);
  display: grid; grid-template-columns: 1fr 1fr; animation: panelIn .55s var(--ease);
}
.modal-box .m-img { aspect-ratio: 4/5; overflow: hidden; }
.modal-box .m-img img { width: 100%; height: 100%; object-fit: cover; }
.modal-box .m-info { padding: clamp(22px, 3vw, 40px); }
.m-close { position: absolute; top: 12px; left: 12px; z-index: 3; width: 38px; height: 38px; background: rgba(10,10,10,.6); border: 1px solid var(--hair-2); color: var(--ivory); border-radius: 50%; font-size: 15px; }
.m-info h3 { font-size: 24px; font-weight: 200; margin: 6px 0 10px; }
.m-info .cat { color: var(--gold); font-size: 12px; }
.m-info p { color: var(--dim); font-size: 13.5px; margin: 12px 0; }

/* ---------- Toast ---------- */
#toast {
  position: fixed; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); right: 50%; transform: translate(50%, 20px);
  z-index: 990; background: var(--bg-3); border: 1px solid var(--hair-2); color: var(--ivory);
  padding: 13px 26px; border-radius: var(--r); font-size: 13.5px;
  opacity: 0; pointer-events: none; transition: .5s var(--ease);
}
#toast.show { opacity: 1; transform: translate(50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4, .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .col-grid, .g-grid { grid-template-columns: repeat(2, 1fr); }
  .piece, .calc, .book-steps, .contact-grid, .step-panel.on { grid-template-columns: 1fr; }
  .piece-gal { position: static; }
  .book-side, .calc-out { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--hair-g); padding-top: 26px; }
  .f-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --nav-h: 62px; }
  .nav-links, .nav .btn { display: none; }
  .burger { display: block; }
  .mobile-cta { display: flex; }
  body { padding-bottom: 0; }
  footer { padding-bottom: 58px; }
  #toast { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .beat { align-items: flex-end; padding-inline: 16px; padding-bottom: 76px; }
  .beat-card { background: rgba(10,10,10,.66); }
  .beat-meta { gap: 14px; }
  .story-rail { display: none; }
  .slots { grid-template-columns: repeat(3, 1fr); }
  .steps-nav { grid-template-columns: repeat(2, 1fr); }
  .modal-box { grid-template-columns: 1fr; }
  .modal-box .m-img { aspect-ratio: 16/10; }
  .f-grid { grid-template-columns: 1fr; gap: 22px; }
  .col-grid, .g-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .grid-4, .trust-grid { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .col-grid, .g-grid { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .15s !important; }
  .hero-media img { animation: none; transform: scale(1.02); }
  [data-reveal] { opacity: 1; transform: none; }
}
