/* =========================================================
   ROBI AUTOMOTIVE — stylesheet
   ========================================================= */

:root {
  --bg: #050505;
  --bg-2: #0a0a0b;
  --bg-3: #111113;
  --line: rgba(214, 178, 94, 0.16);
  --line-strong: rgba(214, 178, 94, 0.38);
  --text: #efe9dc;
  --muted: #a39d91;
  --dim: #716b61;

  --gold: #d6b25e;
  --gold-hi: #f5e3a8;
  --gold-lo: #8a6526;
  --gold-grad: linear-gradient(135deg, #7a5a1c 0%, #c9a24a 18%, #f6e6ae 34%, #d4ae55 48%, #9c7429 64%, #e9cd80 82%, #a17a2e 100%);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --display: "Cinzel", "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
[data-lenis-prevent] { overscroll-behavior: contain; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: lining-nums;
  overflow-x: clip;
}
html.js:not(.is-ready) body,
html.modal-open,
html.menu-open { overflow: hidden; }

[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a, button, select, [role="button"] { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
::selection { background: var(--gold); color: #0b0904; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

.container {
  width: 100%; max-width: var(--container); margin: 0 auto;
  padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
}
/* 3D reveal/tilt transforms must never widen the page on phones */
main { overflow-x: clip; }
@supports not (overflow: clip) { main { overflow-x: hidden; } }

.icon {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Gold text ---------- */
.gold-text {
  background: var(--gold-grad);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: goldShift 7s ease-in-out infinite alternate;
}
em.gold-text { padding-right: 0.08em; }
@media (hover: none), (max-width: 900px) { .gold-text { animation: none; background-size: 160% 100%; background-position: 30% 50%; } }
@keyframes goldShift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  margin: 0 0 22px;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ""; width: 42px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.eyebrow-center::after { content: ""; width: 42px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }

.h2 {
  margin: 0;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.6rem, 5.6vw, 5.2rem);
  line-height: 1; letter-spacing: -0.01em;
}
.h2 em, .cta-title em, .hero-title em { font-style: italic; font-weight: 500; }

.lead { margin: 0; max-width: 46ch; color: var(--muted); font-size: clamp(1rem, 1.15vw, 1.1rem); }
.lead-center { margin: 0 auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 56px; padding: 0 30px;
  border-radius: 999px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s, color 0.3s, background-position 0.8s var(--ease);
}
.btn .icon { width: 18px; height: 18px; }
.btn-gold {
  color: #140e04;
  background: var(--gold-grad);
  background-size: 180% 100%;
  box-shadow: 0 12px 34px -12px rgba(214, 178, 94, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -2px 6px rgba(90, 60, 10, 0.35);
}
.btn-gold::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease);
}
@media (hover: hover) {
  .btn-gold:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 20px 44px -14px rgba(214, 178, 94, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -2px 6px rgba(90, 60, 10, 0.35); }
  .btn-gold:hover::after { transform: translateX(120%); }
}
.btn:active { transform: scale(0.97); }
.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
@media (hover: hover) { .btn-ghost:hover { transform: translateY(-2px); border-color: var(--gold); color: var(--gold-hi); } }
.btn-sm { height: 44px; padding: 0 20px; font-size: 0.68rem; }
.btn-lg { height: 62px; padding: 0 36px; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 500;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--bg);
  transition: opacity 0.9s var(--ease), visibility 0.9s;
  animation: plFailsafe 0.8s 5.5s forwards;
}
html.is-ready .preloader { opacity: 0; visibility: hidden; }
.pl-emblem { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.pl-emblem svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.pl-emblem circle { stroke-dasharray: 360; stroke-dashoffset: 360; animation: plDraw 1.6s var(--ease) forwards; }
.pl-emblem circle + circle { animation-delay: 0.2s; }
.pl-r { font-family: var(--display); font-weight: 700; font-size: 2.8rem; line-height: 1; opacity: 0; animation: plFade 0.9s 0.45s var(--ease) forwards, goldShift 7s ease-in-out infinite alternate; }
.pl-name { margin: 28px 0 18px; font-family: var(--display); font-size: 0.78rem; letter-spacing: 0.55em; color: var(--muted); opacity: 0; animation: plFade 0.9s 0.7s var(--ease) forwards; }
.pl-bar { width: 140px; height: 1px; background: rgba(214, 178, 94, 0.15); overflow: hidden; }
.pl-bar span { display: block; height: 100%; background: var(--gold-grad); transform-origin: left; transform: scaleX(0); animation: plBar 1.4s 0.3s var(--ease) forwards; }
@keyframes plDraw { to { stroke-dashoffset: 0; } }
@keyframes plFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes plBar { to { transform: scaleX(1); } }
@keyframes plFailsafe { to { opacity: 0; visibility: hidden; } }

/* ---------- Grain + cursor ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 150; pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@media (hover: none), (max-width: 900px) {
  .grain { inset: 0; animation: none; opacity: 0.05; }
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

.cursor {
  position: fixed; top: 0; left: 0; z-index: 400; pointer-events: none;
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border-radius: 50%; border: 1px solid rgba(214, 178, 94, 0.7);
  display: grid; place-items: center;
  opacity: 0;
  transition: width 0.4s var(--ease), height 0.4s var(--ease), margin 0.4s var(--ease), background-color 0.3s, border-color 0.3s, opacity 0.3s;
  will-change: transform;
}
.cursor.is-visible { opacity: 1; }
.cursor.is-link { width: 62px; height: 62px; margin: -31px 0 0 -31px; background: rgba(214, 178, 94, 0.08); }
.cursor.is-label { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--gold); border-color: transparent; }
.cursor-label { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #140e04; opacity: 0; transition: opacity 0.2s; }
.cursor.is-label .cursor-label { opacity: 1; }
html.modal-open .cursor, html.menu-open .cursor { opacity: 0; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s, border-color 0.4s, -webkit-backdrop-filter 0.4s, backdrop-filter 0.4s;
}
.nav.is-scrolled {
  background: rgba(5, 5, 5, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 92px; transition: height 0.45s var(--ease); }
.nav.is-scrolled .nav-inner { height: 72px; }
html.js .nav { opacity: 0; transform: translateY(-20px); transition: opacity 1s 0.5s var(--ease), transform 1s 0.5s var(--ease), background-color 0.4s, border-color 0.4s; }
html.is-ready .nav { opacity: 1; transform: none; }

.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand-mark {
  position: relative; flex: none;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 32% 26%, #1d1d20, #050505 72%);
  box-shadow: 0 6px 18px -6px rgba(214, 178, 94, 0.35);
}
.brand-mark::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; padding: 1.5px;
  background: var(--gold-grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.brand-mark span { font-family: var(--display); font-weight: 700; font-size: 1.3rem; line-height: 1; transform: translateY(1px); }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.34em; line-height: 1; }
.brand-sub { margin-top: 6px; font-size: 0.54rem; font-weight: 600; letter-spacing: 0.52em; color: var(--gold); line-height: 1; }

.nav-links { display: flex; gap: clamp(22px, 3vw, 42px); }
.nav-links a {
  position: relative; padding: 6px 0;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted); transition: color 0.3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold-grad); transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav-actions { display: flex; align-items: center; gap: 18px; }
.lang { display: flex; align-items: center; gap: 0; font-size: 0.72rem; letter-spacing: 0.16em; color: var(--dim); }
.lang button { min-width: 40px; height: 44px; padding: 0 2px; color: var(--dim); transition: color 0.3s; }
.lang button:hover { color: var(--text); }
.lang button.is-active { color: var(--gold); }

.burger {
  display: none; position: relative;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-strong);
}
.burger span {
  position: absolute; left: 14px; right: 14px; height: 1px; background: var(--text);
  transition: transform 0.5s var(--ease), top 0.5s var(--ease);
}
.burger span:first-child { top: 19px; }
.burger span:last-child { top: 26px; }
html.menu-open .burger span:first-child { top: 22.5px; transform: rotate(45deg); }
html.menu-open .burger span:last-child { top: 22.5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 110px var(--gutter) calc(48px + env(safe-area-inset-bottom));
  overflow-y: auto; overscroll-behavior: contain;
  background: rgba(5, 5, 5, 0.97);
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
html.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mm-link {
  align-self: flex-start; padding: 2px 0;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.4rem, 11vw, 3.6rem); line-height: 1.2;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.8s var(--ease), color 0.3s;
}
.mm-link:hover { color: var(--gold-hi); }
html.menu-open .mm-link { opacity: 1; transform: none; }
html.menu-open .mm-link:nth-child(2) { transition-delay: 0.06s; }
html.menu-open .mm-link:nth-child(3) { transition-delay: 0.12s; }
html.menu-open .mm-link:nth-child(4) { transition-delay: 0.18s; }
.mm-wa { margin-top: 36px; align-self: flex-start; }

@media (max-width: 960px) {
  .nav-links, .nav-wa { display: none; }
  .burger { display: block; }
}
@media (max-width: 700px) {
  .nav-inner { height: 76px; }
  .nav.is-scrolled .nav-inner { height: 64px; }
  .brand-mark { width: 42px; height: 42px; }
  .nav-actions { gap: 12px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .mobile-menu { justify-content: flex-start; padding-top: 90px; }
  .mm-link { font-size: 2rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 640px;
  overflow: hidden;
  background: var(--bg);
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.hero-fallback {
  position: absolute; top: 50%; right: 9%;
  width: min(36vw, 480px); aspect-ratio: 1;
  transform: translateY(-50%);
  filter: drop-shadow(0 0 60px rgba(214, 178, 94, 0.25));
  transition: opacity 1.2s var(--ease);
  pointer-events: none;
}
.hero-fallback svg { width: 100%; height: 100%; }
html.webgl-ready .hero-fallback { opacity: 0; }

.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.9) 0%, rgba(5, 5, 5, 0.55) 34%, rgba(5, 5, 5, 0) 60%),
    linear-gradient(0deg, var(--bg) 0%, rgba(5, 5, 5, 0) 26%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.6) 0%, rgba(5, 5, 5, 0) 18%);
}

.hero-content {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 92px; padding-bottom: 72px;
  transform: translate3d(0, calc(var(--hp, 0) * 90px), 0);
  opacity: calc(1 - var(--hp, 0) * 1.4);
}
.hero-title {
  margin: 0 0 28px;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(3rem, 6.2vw, 6.4rem);
  line-height: 0.95; letter-spacing: -0.015em;
}
.hero-title .ln { display: block; overflow: hidden; padding-bottom: 0.07em; }
.hero-title .ln > span { display: inline-block; transform: translateY(115%); transition: transform 1.5s var(--ease); }
.hero-title .ln:nth-child(2) > span { transition-delay: 0.1s; }
.hero-title .ln:nth-child(3) > span { transition-delay: 0.2s; }
html.is-ready .hero-title .ln > span { transform: none; }

.hero-sub { max-width: 46ch; margin: 0 0 38px; color: var(--muted); font-size: clamp(1rem, 1.2vw, 1.12rem); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-eyebrow, .hero-sub, .hero-ctas, .hero-stats {
  opacity: 0; transform: translateY(24px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}
html.is-ready .hero-eyebrow { opacity: 1; transform: none; transition-delay: 0.05s; }
html.is-ready .hero-sub { opacity: 1; transform: none; transition-delay: 0.45s; }
html.is-ready .hero-ctas { opacity: 1; transform: none; transition-delay: 0.6s; }
html.is-ready .hero-stats { opacity: 1; transform: none; transition-delay: 0.75s; }

.hero-stats { display: flex; max-width: 600px; margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line); }
.stat { flex: 1; padding-right: 22px; }
.stat + .stat { padding-left: 22px; border-left: 1px solid var(--line); }
.stat-num { font-family: var(--serif); font-weight: 500; font-size: clamp(2.1rem, 3.4vw, 3rem); line-height: 1; }
.stat-label { margin-top: 10px; font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); line-height: 1.5; }

.scroll-cue {
  position: absolute; right: var(--gutter); bottom: 36px; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-size: 0.62rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted);
  writing-mode: vertical-rl;
}
.scroll-cue i { position: relative; width: 1px; height: 64px; background: rgba(214, 178, 94, 0.2); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--gold); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 110%; } }

@media (max-aspect-ratio: 21/20) {
  .hero { height: auto; min-height: 100vh; min-height: 100svh; }
  .hero-shade {
    background:
      linear-gradient(0deg, var(--bg) 0%, rgba(5, 5, 5, 0.55) 48%, rgba(5, 5, 5, 0) 62%),
      linear-gradient(180deg, rgba(5, 5, 5, 0.6) 0%, rgba(5, 5, 5, 0) 14%);
  }
  .hero-content { height: auto; min-height: 100vh; min-height: 100svh; justify-content: flex-end; padding-top: calc(96px + min(78vw, 560px)); padding-bottom: 40px; }
  .hero-fallback { top: 96px; right: 50%; width: min(70vw, 500px); transform: translateX(50%); }
  .hero-stats { margin-top: 36px; }
  .scroll-cue { display: none; }
}
@media (max-width: 900px) and (min-aspect-ratio: 21/20) {
  .hero-content { padding-top: 110px; padding-bottom: 48px; }
  .hero-sub { max-width: 40ch; }
  .scroll-cue { display: none; }
}
/* Short landscape screens (phones held sideways): let the hero grow with its text */
@media (min-aspect-ratio: 21/20) and (max-height: 600px) {
  .hero { height: auto; min-height: 100vh; min-height: 100svh; }
  .hero-content { height: auto; justify-content: flex-start; padding-top: 104px; padding-bottom: 44px; }
  .hero-title { font-size: clamp(2.6rem, 6vw, 3.8rem); }
  .hero-stats { margin-top: 32px; }
}
@media (max-width: 480px) {
  .hero-ctas { flex-wrap: nowrap; }
  .hero-ctas .btn-gold { flex: 1; padding: 0 20px; }
  .hero-ctas .btn-ghost { flex: none; width: 56px; padding: 0; }
  .hero-ctas .btn-ghost span { display: none; }
  .pl-name { font-size: 0.68rem; letter-spacing: 0.38em; }
  .stat { padding-right: 12px; }
  .stat + .stat { padding-left: 12px; }
  .stat-label { font-size: 0.66rem; letter-spacing: 0.1em; }
}

/* ---------- Crossing brand bands ---------- */
.bands { position: relative; height: clamp(200px, 22vw, 280px); overflow: hidden; display: grid; place-items: center; }
.band { position: absolute; left: -5%; width: 110%; padding: 18px 0; overflow: hidden; white-space: nowrap; }
.band-gold { z-index: 2; background: var(--gold-grad); color: #120d04; transform: rotate(-2.6deg); box-shadow: 0 18px 40px -24px rgba(214, 178, 94, 0.45); }
.band-dark { background: #0c0c0e; border-block: 1px solid var(--line); transform: rotate(2.6deg); }
.band-track { display: inline-flex; animation: marquee 40s linear infinite; }
.band-dark .band-track { animation-direction: reverse; animation-duration: 52s; }
.band-item {
  display: inline-flex; align-items: center; gap: 48px; padding-right: 48px;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.15rem, 2.4vw, 2.1rem); letter-spacing: 0.18em; text-transform: uppercase;
}
.band-item::after { content: "✦"; font-size: 0.55em; }
.band-dark .band-item { color: transparent; -webkit-text-stroke: 1px rgba(214, 178, 94, 0.75); }
.band-dark .band-item::after { color: var(--gold); -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(90px, 12vw, 160px) 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap;
  gap: 28px 48px; margin-bottom: clamp(40px, 6vw, 72px);
}

/* Reveal on scroll (3D flip-up) */
html.js [data-reveal] {
  opacity: 0;
  transform: perspective(900px) translate3d(0, 48px, 0) rotateX(-12deg);
  transform-origin: 50% 100%;
  transition: opacity 1.1s var(--ease), transform 1.3s var(--ease);
  transition-delay: var(--d, 0s);
}
html.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- 3D Showroom ---------- */
.showroom { padding-bottom: clamp(70px, 9vw, 120px); overflow: hidden; }
.showroom-stage {
  position: relative;
  height: clamp(460px, 50vw, 620px);
  perspective: 1800px; perspective-origin: 50% 35%;
  touch-action: pan-y;
  cursor: grab;
  user-select: none; -webkit-user-select: none;
}
.showroom-stage.is-dragging { cursor: grabbing; }
.showroom-floor {
  position: absolute; left: 50%; bottom: -4%;
  width: min(1400px, 140%); height: 52%;
  transform: translateX(-50%);
  pointer-events: none;
  background:
    radial-gradient(ellipse 46% 38% at 50% 34%, rgba(214, 178, 94, 0.2), transparent 70%),
    radial-gradient(ellipse 30% 12% at 50% 30%, rgba(245, 227, 168, 0.12), transparent 70%);
}
.ring {
  --cw: clamp(210px, 23vw, 310px);
  position: absolute; left: 50%; top: 44%;
  width: var(--cw); height: calc(var(--cw) * 1.3);
  margin-left: calc(var(--cw) / -2); margin-top: calc(var(--cw) * -0.65);
  transform-style: preserve-3d;
  /* the glide between cars: transform + opacity only, so the GPU animates it */
  transition: transform 1.25s var(--ease);
}
.c-item {
  position: absolute; inset: 0;
  border-radius: 20px; overflow: hidden;
  background: #0d0d0f;
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9);
  -webkit-box-reflect: below 14px linear-gradient(transparent 72%, rgba(255, 255, 255, 0.16));
  transition: opacity 1.25s var(--ease), border-color 0.5s;
  outline: none;
}
.showroom-stage.is-dragging .ring, .showroom-stage.is-dragging .c-item,
.showroom-stage.is-instant .ring, .showroom-stage.is-instant .c-item { transition: none; }
/* Phones: skip drawing cards that face away, lighter shadows */
@media (hover: none), (max-width: 700px) {
  .c-item { -webkit-backface-visibility: hidden; backface-visibility: hidden; box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.9); transition: opacity 1.25s var(--ease); }
}
.c-item img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
@media (max-width: 700px) {
  .showroom-stage { height: 440px; }
  .c-title { font-size: 1.45rem; }
  .c-cap { left: 18px; right: 18px; bottom: 16px; }
}
.c-item::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0) 38%, rgba(5, 5, 5, 0.92) 100%);
}
.c-item.is-active, .c-item:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(214, 178, 94, 0.4), 0 40px 100px -30px rgba(214, 178, 94, 0.4);
}
@media (hover: none), (max-width: 700px) {
  .c-item.is-active { box-shadow: 0 0 0 1px rgba(214, 178, 94, 0.4), 0 30px 60px -30px rgba(214, 178, 94, 0.35); }
}
.c-cap { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 2; }
.c-brand { margin: 0 0 4px; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.c-title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 1.65rem; line-height: 1.05; }
.c-meta { margin: 6px 0 0; font-size: 0.78rem; color: var(--muted); }

.showroom-bar { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 3vw, 32px); margin-top: 8px; }
.round-btn {
  width: 56px; height: 56px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--gold);
  transition: background-color 0.35s, color 0.35s, border-color 0.35s, transform 0.35s var(--ease);
}
.round-btn .icon { width: 20px; height: 20px; }
@media (hover: hover) { .round-btn:hover { background: var(--gold); color: #140e04; border-color: var(--gold); transform: scale(1.06); } }
.round-btn:active { background: var(--gold); color: #140e04; }
.showroom-caption { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: min(320px, 56vw); text-align: center; }
.sc-index { font-size: 0.66rem; letter-spacing: 0.32em; color: var(--dim); }
.sc-name { text-wrap: balance; font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.15; }
.sc-price { font-family: var(--serif); font-size: 1.2rem; }

/* ---------- Collection ---------- */
.toolbar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px;
  margin-bottom: 40px; padding-bottom: 28px; border-bottom: 1px solid var(--line);
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
  transition: border-color 0.3s, color 0.3s, background-color 0.3s;
}
@media (hover: hover) { .chip:hover { border-color: var(--line-strong); color: var(--text); } }
.chip-count { font-size: 0.64rem; color: var(--dim); letter-spacing: 0.05em; }
.chip.is-active { background: var(--gold-grad); color: #140e04; border-color: transparent; }
.chip.is-active .chip-count { color: rgba(20, 14, 4, 0.6); }

.sort { position: relative; display: flex; align-items: center; gap: 12px; font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim); }
.sort select {
  appearance: none; -webkit-appearance: none;
  height: 42px; padding: 0 44px 0 18px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--text);
  font: 500 0.82rem var(--sans); letter-spacing: 0.02em; cursor: pointer;
  transition: border-color 0.3s;
}
.sort select:hover { border-color: var(--line-strong); }
.sort select option { background: #0b0b0c; color: var(--text); }
.sort .icon { position: absolute; right: 16px; width: 16px; height: 16px; color: var(--gold); pointer-events: none; }

@media (max-width: 700px) {
  .toolbar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; margin-bottom: 28px; padding-bottom: 22px; }
  .chip { height: 44px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter); }
  .chips::-webkit-scrollbar { display: none; }
  .sort { justify-content: space-between; }
  .sort select { flex: 1; max-width: 260px; height: 46px; font-size: 16px; } /* 16px stops iOS zooming in */
}

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(20px, 2.4vw, 32px); }

.card { cursor: pointer; outline: none; }
.card-inner {
  position: relative; height: 100%;
  display: flex; flex-direction: column;
  border-radius: 22px;
  background: linear-gradient(180deg, #121214 0%, #0a0a0b 100%);
  border: 1px solid var(--line);
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.8s var(--ease), border-color 0.4s, box-shadow 0.6s var(--ease);
}
.card.is-tilting .card-inner { transition: transform 0.12s linear, border-color 0.4s, box-shadow 0.6s var(--ease); }
.card:focus-visible .card-inner { border-color: var(--line-strong); }
@media (hover: hover) {
  .card:hover .card-inner {
    border-color: var(--line-strong);
    box-shadow: 0 50px 90px -50px rgba(0, 0, 0, 0.95), 0 24px 70px -36px rgba(214, 178, 94, 0.32);
  }
          /* Phones: no blur layers on every card (smoother scrolling) */
@media (hover: none), (max-width: 700px) {
  .card-year, .card-badge { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(5, 5, 5, 0.72); }
  .card-body { padding: 20px 20px 22px; }
  .card-title { font-size: 1.8rem; }
  .card-price { font-size: 1.7rem; }
}
}
.card:active .card-inner { transform: scale(0.985); transition-duration: 0.2s; }
.card-media {
  position: relative; margin: 10px 10px 0;
  aspect-ratio: 16 / 11; border-radius: 15px; overflow: hidden;
  background: #0d0d0f;
  transition: transform 0.8s var(--ease);
}
.card:hover .card-media { transform: translateZ(34px); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), filter 0.6s; }
.card:hover .card-media img { transform: scale(1.07); }
.card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 5, 5, 0.35) 0%, rgba(5, 5, 5, 0) 30%, rgba(5, 5, 5, 0) 70%, rgba(5, 5, 5, 0.45) 100%); pointer-events: none; }
.card-year, .card-badge {
  position: absolute; top: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 12px; border-radius: 999px;
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  background: rgba(5, 5, 5, 0.6);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.card-year { right: 14px; }
.card-badge { left: 14px; color: var(--gold-hi); border-color: var(--line-strong); }
.card-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }

.card-body { flex: 1; display: flex; flex-direction: column; padding: 22px 24px 24px; transition: transform 0.8s var(--ease); }
.card:hover .card-body { transform: translateZ(22px); }
.card-brand { margin: 0 0 8px; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.card-title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 1.95rem; line-height: 1.05; }
.card-version { margin: 6px 0 18px; font-size: 0.86rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-specs { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; font-size: 0.84rem; color: #cfc8ba; }
.card-specs li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.card-specs .icon { width: 16px; height: 16px; color: var(--gold); }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.card-price { font-family: var(--serif); font-weight: 500; font-size: 1.85rem; line-height: 1; }
.card-price small { display: block; margin-top: 6px; font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); -webkit-text-fill-color: var(--dim); }
.card-cta { display: inline-flex; align-items: center; gap: 10px; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; }
.arrow-c { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--gold); transition: background-color 0.35s, color 0.35s, border-color 0.35s, transform 0.5s var(--ease); }
.arrow-c .icon { width: 16px; height: 16px; }
.card:hover .arrow-c { background: var(--gold); color: #140e04; border-color: var(--gold); transform: translateX(3px); }
.card-glare {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(520px circle at var(--gx, 50%) var(--gy, 0%), rgba(245, 227, 168, 0.13), transparent 42%);
  opacity: 0; transition: opacity 0.4s;
  transform: translateZ(1px);
}
.card:hover .card-glare { opacity: 1; }

.card.is-sold .card-media img { filter: grayscale(1) brightness(0.5); }
.sold-stamp { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; }
.sold-stamp span {
  padding: 10px 22px; border: 1px solid var(--gold);
  font-family: var(--display); font-weight: 600; letter-spacing: 0.42em; font-size: 0.9rem;
  color: var(--gold-hi); background: rgba(5, 5, 5, 0.5);
  transform: rotate(-8deg);
}
.card.is-sold .card-price { -webkit-text-fill-color: var(--dim); background: none; animation: none; font-size: 1.3rem; }

.empty { padding: 60px 0; text-align: center; color: var(--muted); }
.empty p { margin: 0 0 24px; }

/* ---------- Method ---------- */
.method-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.method-head { position: sticky; top: 130px; }
.method-head .lead { margin-top: 28px; }
.steps { display: grid; gap: 22px; }
.step .tilt-inner {
  display: grid; grid-template-columns: auto 1fr; gap: 10px 36px; align-items: start;
  padding: 40px;
  border-radius: 22px; border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.006));
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.8s var(--ease), border-color 0.4s;
}
.step.is-tilting .tilt-inner { transition: transform 0.12s linear, border-color 0.4s; }
@media (hover: hover) { .step:hover .tilt-inner { border-color: var(--line-strong); } }
.step-num {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(4rem, 6vw, 5.4rem); line-height: 0.8;
  color: #ecca74;
  text-shadow: 1px 1px 0 #c79a3c, 2px 2px 0 #b48a33, 3px 3px 0 #a07a2c, 4px 4px 0 #8c6a25, 5px 5px 0 #785a1e, 6px 6px 0 #644a18, 7px 7px 0 #503b12, 10px 12px 24px rgba(0, 0, 0, 0.7);
  transition: transform 0.8s var(--ease);
}
.step-body { transition: transform 0.8s var(--ease); }
@media (hover: hover) {
  .step:hover .step-num { transform: translateZ(50px); }
  .step:hover .step-body { transform: translateZ(28px); }
}
.step h3 { margin: 4px 0 8px; font-family: var(--serif); font-weight: 500; font-size: 2rem; line-height: 1.1; }
.step p { margin: 0; color: var(--muted); }

.orbit { position: relative; width: 210px; height: 210px; margin-top: 64px; perspective: 700px; }
.orbit i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(214, 178, 94, 0.55); transform-style: preserve-3d; animation: orbitA 14s linear infinite; }
.orbit i:nth-child(2) { inset: 18px; border-color: rgba(214, 178, 94, 0.35); animation-name: orbitB; animation-duration: 18s; }
.orbit i:nth-child(3) { inset: 40px; border-color: rgba(245, 227, 168, 0.5); animation-name: orbitC; animation-duration: 11s; }
.orbit b {
  position: absolute; inset: 82px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff4cc, #d6b25e 34%, #6b4c17 76%, #2a1d07);
  box-shadow: 0 0 50px rgba(214, 178, 94, 0.45);
}
@keyframes orbitA { from { transform: rotateX(72deg) rotateZ(0); } to { transform: rotateX(72deg) rotateZ(360deg); } }
@keyframes orbitB { from { transform: rotateY(64deg) rotateZ(0); } to { transform: rotateY(64deg) rotateZ(-360deg); } }
@keyframes orbitC { from { transform: rotateX(-48deg) rotateY(30deg) rotateZ(0); } to { transform: rotateX(-48deg) rotateY(30deg) rotateZ(360deg); } }

@media (max-width: 900px) {
  .method-grid { grid-template-columns: 1fr; }
  .method-head { position: static; }
  .orbit { display: none; }
}
@media (max-width: 560px) {
  .step .tilt-inner { grid-template-columns: 1fr; padding: 30px 26px; gap: 18px; }
}

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden;
  min-height: 92vh;
  display: grid; place-items: center;
  padding: clamp(110px, 14vw, 180px) 0;
  text-align: center;
  border-top: 1px solid var(--line);
}
.cta-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.cta-glow {
  position: absolute; left: 50%; top: 58%;
  width: min(1100px, 140vw); height: 520px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(214, 178, 94, 0.2), transparent 64%);
  pointer-events: none;
}
.cta-floor {
  position: absolute; left: -50%; bottom: -2%;
  width: 200%; height: 62%;
  overflow: hidden;
  transform-origin: 50% 100%;
  transform: perspective(420px) rotateX(64deg);
  -webkit-mask-image: linear-gradient(0deg, #000 10%, transparent 92%);
  mask-image: linear-gradient(0deg, #000 10%, transparent 92%);
  pointer-events: none;
}
.cta-floor::before {
  content: ""; position: absolute; left: 0; right: 0; top: -64px; bottom: 0;
  background-image:
    linear-gradient(rgba(214, 178, 94, 0.42) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 178, 94, 0.42) 1px, transparent 1px);
  background-size: 64px 64px;
  animation: floor 2.4s linear infinite;
  will-change: transform;
}
@keyframes floor { to { transform: translateY(64px); } }
.cta-title {
  max-width: 19ch; margin: 0 auto 28px;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.8rem, 7vw, 6.4rem); line-height: 1; letter-spacing: -0.01em;
}
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 44px; }
@media (max-width: 560px) {
  .cta { min-height: 0; }
  .cta-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 380px; }
  .cta-actions .btn-lg { padding: 0 24px; }
}

/* ---------- Footer ---------- */
.footer { padding: 84px 0 36px; border-top: 1px solid var(--line); background: linear-gradient(180deg, #050505, #080808); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { max-width: 34ch; margin: 22px 0 0; color: var(--muted); }
.footer h4 { margin: 6px 0 20px; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer ul a { display: inline-block; padding: 9px 0; color: var(--muted); transition: color 0.3s; }
.footer ul a:hover { color: var(--gold-hi); }
.footer-area { margin: 0; color: var(--muted); }
.footer-word {
  margin-top: 70px;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.3rem, 6.2vw, 6.6rem); line-height: 1; letter-spacing: 0.04em;
  white-space: nowrap; text-align: center;
  color: transparent; -webkit-text-stroke: 1px rgba(214, 178, 94, 0.28);
  user-select: none;
}
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; margin-top: 40px; padding: 26px 84px env(safe-area-inset-bottom) 0; border-top: 1px solid var(--line); font-size: 0.76rem; color: var(--dim); }
@media (max-width: 560px) {
  .footer { padding-top: 64px; }
  .footer-grid { gap: 32px 24px; }
  .footer-bottom { padding-right: 0; padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Floating WhatsApp ---------- */
.fab {
  position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 50;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold-grad); color: #140e04;
  box-shadow: 0 16px 40px -10px rgba(214, 178, 94, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: scale(0);
  transition: transform 0.6s var(--ease);
}
.fab::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--gold); animation: pulse 2.6s var(--ease) infinite; }
.fab .icon { width: 28px; height: 28px; }
html.is-ready.past-hero .fab { transform: scale(1); }
@media (hover: hover) { html.is-ready.past-hero .fab:hover { transform: scale(1.08); } }
html.is-ready.modal-open .fab, html.is-ready.menu-open .fab, html.is-ready.fab-off .fab { transform: scale(0); transition-delay: 0s; }
@keyframes pulse { 0% { transform: scale(0.9); opacity: 0.9; } 100% { transform: scale(1.5); opacity: 0; } }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 24px;
  visibility: hidden; pointer-events: none;
  transition: visibility 0s 0.6s;
}
.modal.is-open { visibility: visible; pointer-events: auto; transition: visibility 0s; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(3, 3, 3, 0.8);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.modal.is-open .modal-backdrop { opacity: 1; }
.modal-shell {
  position: relative; width: min(1240px, 100%);
  opacity: 0;
  transform: perspective(1400px) translate3d(0, 60px, 0) rotateX(9deg) scale(0.96);
  transform-origin: 50% 100%;
  transition: transform 0.8s var(--ease), opacity 0.5s var(--ease);
}
.modal.is-open .modal-shell { opacity: 1; transform: none; }
.modal-panel {
  max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px);
  overflow-y: auto; overscroll-behavior: contain;
  border-radius: 26px; border: 1px solid var(--line-strong);
  background: #0a0a0b;
  box-shadow: 0 60px 140px -40px rgba(0, 0, 0, 0.95), 0 0 80px -30px rgba(214, 178, 94, 0.2);
  scrollbar-width: thin; scrollbar-color: var(--gold-lo) transparent;
}
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 5;
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(5, 5, 5, 0.7);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong);
  transition: transform 0.5s var(--ease), background-color 0.3s, color 0.3s;
}
.modal-close .icon { width: 20px; height: 20px; }
@media (hover: hover) { .modal-close:hover { transform: rotate(90deg); background: var(--gold); color: #140e04; } }

.m-grid { display: grid; grid-template-columns: 1.2fr 1fr; }
.m-gallery { position: sticky; top: 0; align-self: start; padding: 18px; }
.m-main { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: #000; touch-action: pan-y; }
.m-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.35s, transform 1s var(--ease); }
.m-main img.is-loading { opacity: 0; transform: scale(1.04); }
.m-nav {
  position: absolute; top: 50%; z-index: 2;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(5, 5, 5, 0.55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transform: translateY(-50%);
  transition: background-color 0.3s, color 0.3s;
}
@media (hover: hover) { .m-nav:hover { background: var(--gold); color: #140e04; } }
.m-nav .icon { width: 20px; height: 20px; }
.m-prev { left: 14px; }
.m-next { right: 14px; }
.m-count {
  position: absolute; left: 16px; bottom: 14px; z-index: 2;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(5, 5, 5, 0.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 0.68rem; letter-spacing: 0.2em;
}
.m-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.m-thumbs::-webkit-scrollbar { display: none; }
.m-thumb { flex: none; width: 96px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); opacity: 0.5; transition: opacity 0.3s, border-color 0.3s; }
.m-thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) { .m-thumb:hover { opacity: 0.85; } }
.m-thumb.is-active { opacity: 1; border-color: var(--gold); }

.m-info { padding: 46px 46px 46px 28px; }
.m-eyebrow { margin: 0 0 14px; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.m-title { margin: 0; padding-right: 60px; font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 4vw, 3.5rem); line-height: 1; }
.m-version { margin: 10px 0 24px; color: var(--muted); }
.m-price-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding: 20px 0; margin-bottom: 24px; border-block: 1px solid var(--line); }
.m-price { margin-right: auto; font-family: var(--serif); font-weight: 500; font-size: 2.6rem; line-height: 1; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-hi);
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.pill-sold { color: var(--muted); border-color: var(--line); }
.pill-sold::before { background: var(--dim); }

.m-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 26px; }
.q-tile { padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.q-tile .icon { display: block; width: 20px; height: 20px; margin-bottom: 10px; color: var(--gold); }
.q-label { font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); }
.q-val { margin-top: 2px; font-size: 0.95rem; font-weight: 600; }

.m-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.m-actions .btn-gold { flex: 1 1 260px; }
.m-note-sold { margin: 0 0 16px; color: var(--muted); font-size: 0.9rem; }
.m-h { margin: 38px 0 14px; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.m-desc { margin: 0; color: #cfc8ba; }
.m-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin: 0; }
.m-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.m-row dt { color: var(--muted); }
.m-row dd { margin: 0; text-align: right; font-weight: 500; }
.m-features { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.m-features li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.82rem; color: #d8d1c3; }
.m-features li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex: none; }
.m-legal { margin: 32px 0 0; font-size: 0.74rem; color: var(--dim); }
.m-bar { display: none; }

@media (max-width: 980px) {
  .modal { display: block; padding: 0; }
  .modal-shell { position: absolute; inset: 0; width: auto; }
  .modal-panel { height: 100%; max-height: none; border-radius: 0; border: 0; }
  .m-grid { grid-template-columns: 1fr; }
  .m-gallery { position: relative; padding: 0; }
  .m-main { border-radius: 0; aspect-ratio: 4 / 3.2; }
  .m-thumbs { padding: 0 16px; }
  .m-info { padding: 26px 20px 120px; }
  .m-title { padding-right: 0; }
  .m-quick { grid-template-columns: repeat(2, 1fr); }
  .m-specs { grid-template-columns: 1fr; }
  .m-actions .btn-gold { display: none; }
  .m-bar {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    background: rgba(8, 8, 9, 0.92);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
  }
  .m-bar-price { font-family: var(--serif); font-size: 1.6rem; line-height: 1; white-space: nowrap; }
  .m-bar .btn { flex: 1; height: 52px; padding: 0 16px; }
  .modal-close { top: calc(12px + env(safe-area-inset-top)); right: 12px; width: 46px; height: 46px; }
  .m-thumb { width: 84px; }
  .m-nav { width: 44px; height: 44px; }
}
@media (max-width: 400px) {
  .m-quick { gap: 8px; }
  .q-tile { padding: 12px; }
  .m-bar-price { font-size: 1.35rem; }
}
/* Phones held sideways: photo and details side by side */
@media (max-width: 980px) and (max-height: 520px) and (orientation: landscape) {
  .m-grid { grid-template-columns: 1fr 1fr; }
  .m-gallery { position: sticky; top: 0; align-self: start; padding: 12px; }
  .m-main { border-radius: 14px; aspect-ratio: 4 / 3; }
  .m-thumbs { padding: 0; }
  .m-info { padding: 20px 20px 110px 8px; }
  .m-title { padding-right: 56px; font-size: 2.1rem; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(32px + env(safe-area-inset-bottom)); z-index: 300;
  padding: 12px 22px; border-radius: 999px;
  background: #111113; border: 1px solid var(--line-strong);
  color: var(--gold-hi); font-size: 0.8rem; letter-spacing: 0.08em;
  opacity: 0; transform: translate(-50%, 20px); pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  html.js [data-reveal] { opacity: 1; transform: none; }
  .grain { display: none; }
}
