/* ═══════════════════════════════════════════════════════════════════════
   DIMORA TERNATE × CASAVO
   Brand system: Casavo palette (orange / charcoal / off-white / deep green)
   Type: Bagoss Condensed (display) + Inter (UI & body)
   ═══════════════════════════════════════════════════════════════════════ */

@font-face { font-family: "Bagoss Condensed"; src: url("fonts/BagossCondensed-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Bagoss Condensed"; src: url("fonts/BagossCondensed-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bagoss Condensed"; src: url("fonts/BagossCondensed-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  /* ---- Casavo brand palette ---- */
  --casavo-orange:     #FF991F;
  --casavo-charcoal:   #1D1D1B;
  --casavo-offwhite:   #F6F6F1;
  --casavo-green:      #063D39;
  --casavo-lightblue:  #D6F5FF;

  --bg:        #141413;
  --bg-2:      #1D1D1B;
  --surface:   #26261F;
  --surface-2: #2F2F29;
  --line:      rgba(246, 246, 241, 0.11);
  --line-2:    rgba(246, 246, 241, 0.22);
  --text:      #F6F6F1;
  --text-dim:  #A9A9A0;
  --text-mute: #74746C;
  --brass:     #FF991F;
  --brass-2:   #FFB65C;
  --brass-dim: rgba(255, 153, 31, 0.16);
  --danger:    #FF6B4A;

  /* ---- Type ---- */
  --font-display: "Bagoss Condensed", "Inter", system-ui, sans-serif;
  --font-grotesk: "Inter", -apple-system, system-ui, sans-serif;
  --font-body:    "Inter", -apple-system, system-ui, sans-serif;
  --font-mono:    "Inter", -apple-system, system-ui, sans-serif;

  /* ---- Space ---- */
  --container: 1440px;
  --gutter: clamp(20px, 4.4vw, 72px);
  --density: 1;

  --ease: cubic-bezier(0.22, 0.61, 0.18, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--brass); color: var(--bg); }

/* Hide native cursor on desktop where custom cursor runs */
@media (hover: hover) and (pointer: fine) {
  body.has-cursor, body.has-cursor * { cursor: none; }
}

/* ───────────────────────────── Typography ───────────────────────────── */
.display, .h1, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.015em;
  color: var(--text);
  text-wrap: balance;
  margin: 0;
}
.display { font-size: clamp(42px, 7.2vw, 112px); letter-spacing: -0.015em; line-height: 0.96; }
.h1 { font-size: clamp(38px, 5.6vw, 82px); }
.h2 { font-size: clamp(30px, 4.2vw, 62px); }
.h3 { font-size: clamp(22px, 2.3vw, 34px); line-height: 1.08; }

.serif-it { font-family: var(--font-display); font-style: italic; }

.kicker {
  font-family: var(--font-grotesk);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass);
}
.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-feature-settings: "tnum";
  font-weight: 500;
}
.lede {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 54ch;
  text-wrap: pretty;
  font-weight: 300;
}
.body { color: var(--text-dim); }
.small { font-size: 13px; color: var(--text-mute); }

/* ───────────────────────────── Layout ───────────────────────────────── */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: calc(132px * var(--density)); position: relative; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* HUD corner brackets */
.hud { position: relative; }
.hud::before, .hud::after {
  content: ""; position: absolute; width: 16px; height: 16px;
  border: 1px solid var(--brass); opacity: 0.5; pointer-events: none;
}
.hud::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.hud::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* ───────────────────────────── Loader ───────────────────────────────── */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 28px;
  transition: opacity 700ms var(--ease), visibility 700ms;
}
.loader[data-done="1"] { opacity: 0; visibility: hidden; }
.loader-mark { font-family: var(--font-display); font-size: clamp(28px, 4vw, 48px); letter-spacing: 0.04em; color: var(--text); white-space: nowrap; }
.loader-bar { width: min(340px, 60vw); height: 1px; background: var(--line-2); position: relative; overflow: hidden; }
.loader-bar i { position: absolute; inset: 0 100% 0 0; background: var(--brass); transition: right 120ms linear; }
.loader-pct { font-family: var(--font-mono); font-size: 12px; color: var(--text-mute); letter-spacing: 0.1em; }

/* ───────────────────────────── Grain + scanline ─────────────────────── */
.grain {
  position: fixed; inset: -200%; z-index: 900; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.6s steps(2) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0,0); } 50% { transform: translate(-2%, 1%); } 100% { transform: translate(1%, -1%); }
}
@media (prefers-reduced-motion: reduce) { .grain { animation: none; } }

/* ───────────────────────────── Scroll progress ──────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--brass), var(--brass-2));
  z-index: 80; transition: width 120ms linear;
}

/* Side section index */
.side-index {
  position: fixed; right: var(--gutter); top: 50%; transform: translateY(-50%);
  z-index: 60; display: flex; flex-direction: column; gap: 14px;
  mix-blend-mode: difference;
}
.side-index button {
  display: flex; align-items: center; gap: 10px; justify-content: flex-end;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5); transition: color 240ms var(--ease);
}
.side-index button .tick { width: 18px; height: 1px; background: currentColor; transition: width 240ms var(--ease); }
.side-index button[data-on="1"] { color: #fff; }
.side-index button[data-on="1"] .tick { width: 34px; }
.side-index button .lbl { opacity: 0; transform: translateX(6px); transition: all 240ms var(--ease); }
.side-index button:hover .lbl { opacity: 1; transform: translateX(0); }
@media (max-width: 1100px) { .side-index { display: none; } }

/* ───────────────────────────── Custom cursor ────────────────────────── */
.cursor-ring, .cursor-dot { position: fixed; top: 0; left: 0; z-index: 950; pointer-events: none; border-radius: 50%; mix-blend-mode: difference; }
.cursor-ring {
  width: 34px; height: 34px; border: 1px solid rgba(255,255,255,0.8);
  transform: translate(-50%, -50%);
  transition: width 260ms var(--ease), height 260ms var(--ease), background 260ms var(--ease);
}
.cursor-dot { width: 4px; height: 4px; background: #fff; transform: translate(-50%, -50%); }
.cursor-ring[data-hot="1"] { width: 56px; height: 56px; background: rgba(255,255,255,0.12); }
@media (hover: none), (pointer: coarse) { .cursor-ring, .cursor-dot { display: none; } }

/* ───────────────────────────── Header ───────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 70;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter);
  transition: background 400ms var(--ease), backdrop-filter 400ms var(--ease), border-color 400ms var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header[data-solid="1"] {
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom-color: var(--line);
}
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand-mark { font-family: var(--font-display); font-weight: 500; font-size: 25px; letter-spacing: 0.01em; color: var(--text); white-space: nowrap; line-height: 1; }
.brand-sep { width: 1px; height: 20px; background: var(--line-2); flex-shrink: 0; }
.brand-logo { height: 15px; width: auto; display: block; flex-shrink: 0; }
@media (max-width: 720px) { .brand-sep, .brand-logo { display: none; } }

.nav { display: flex; align-items: center; gap: 30px; flex-shrink: 0; }
.nav a {
  font-family: var(--font-grotesk); font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim);
  position: relative; transition: color 220ms var(--ease); white-space: nowrap;
}
.nav a::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 1px; background: var(--brass); transition: width 280ms var(--ease); }
.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }
@media (max-width: 1100px) { .nav { gap: 22px; } .nav > a { display: none; } }

.lang { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 2px; overflow: hidden; }
.lang button {
  padding: 7px 11px; font-family: var(--font-grotesk); font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em; color: var(--text-mute); transition: all 200ms var(--ease);
  border-right: 1px solid var(--line-2);
}
.lang button:last-child { border-right: 0; }
.lang button[data-on="1"] { color: var(--bg); background: var(--brass); }
.lang button:hover:not([data-on="1"]) { color: var(--text); }

/* ───────────────────────────── Hero ─────────────────────────────────── */
.hero { position: relative; height: 100svh; min-height: 660px; width: 100%; overflow: hidden; background: var(--bg-2); }
.hero-media { position: absolute; inset: 0; }
.hero-media image-slot, .hero-media video { width: 100% !important; height: 100% !important; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(20,20,19,0.62) 0%, rgba(20,20,19,0.12) 24%, rgba(20,20,19,0.28) 48%, rgba(20,20,19,0.92) 100%),
    radial-gradient(120% 80% at 50% 110%, rgba(20,20,19,0.7), transparent 62%);
}
.hero-grid-overlay {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5; z-index: 2;
  padding: 96px var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.hero-hud-row { display: flex; justify-content: space-between; align-items: flex-start; }
.hero-hud-row .mono { color: rgba(236,233,225,0.7); }
.hero-corner { width: 22px; height: 22px; border: 1px solid rgba(236,233,225,0.4); }
.hero-corner.tl { border-right: 0; border-bottom: 0; }
.hero-corner.tr { border-left: 0; border-bottom: 0; }
.hero-corner.bl { border-right: 0; border-top: 0; }
.hero-corner.br { border-left: 0; border-top: 0; }

.hero-content {
  position: absolute; inset: auto 0 0 0; z-index: 3;
  padding: 0 var(--gutter) clamp(40px, 7vh, 84px);
  display: flex; flex-direction: column; gap: 18px;
}
.hero-content .kicker { display: inline-flex; align-items: center; gap: 12px; }
.hero-content .kicker::before { content: ""; width: 28px; height: 1px; background: var(--brass); }
.hero-title { color: #fff; }
.hero-content .lede { color: rgba(236,233,225,0.82); }

.hero-stats { display: flex; flex-wrap: wrap; gap: 0; margin-top: 22px; border-top: 1px solid rgba(236,233,225,0.18); max-width: 880px; }
.hero-stat { padding: 18px 36px 0 0; margin-right: 36px; border-right: 1px solid rgba(236,233,225,0.14); }
.hero-stat:last-child { border-right: 0; }
.hero-stat .k { font-family: var(--font-grotesk); font-size: 9px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(236,233,225,0.55); }
.hero-stat .v { font-family: var(--font-display); font-size: clamp(28px, 3vw, 40px); color: #fff; line-height: 1; margin-top: 6px; }
.hero-stat .v small { font-size: 0.42em; color: var(--brass); margin-left: 4px; font-family: var(--font-grotesk); font-weight: 500; letter-spacing: 0.02em; }
@media (max-width: 720px) {
  .hero-stat { padding-right: 20px; margin-right: 20px; }
  .hero-stat:nth-child(n+4) { display: none; }
}

.scroll-cue { position: absolute; bottom: 22px; right: var(--gutter); z-index: 3; display: flex; align-items: center; gap: 12px; }
.scroll-cue span { font-family: var(--font-grotesk); font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(236,233,225,0.6); writing-mode: vertical-rl; }
.scroll-cue .line { width: 1px; height: 48px; background: rgba(236,233,225,0.3); position: relative; overflow: hidden; }
.scroll-cue .line::after { content: ""; position: absolute; inset: 0; background: var(--brass); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%,100% { transform: translateY(100%); } }

/* ───────────────────────────── Marquee ──────────────────────────────── */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 26px 0; background: var(--bg-2); }
.marquee-track { display: flex; gap: 0; white-space: nowrap; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-size: clamp(26px, 3vw, 44px); color: var(--text-dim); padding: 0 36px; display: inline-flex; align-items: center; gap: 36px; }
.marquee-track span::after { content: "✦"; font-size: 0.42em; color: var(--brass); }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ───────────────────────────── Section head ─────────────────────────── */
.sec-head { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 28px; margin-bottom: clamp(44px, 6vw, 76px); }
.sec-head .idx { font-family: var(--font-mono); font-size: 12px; color: var(--brass); letter-spacing: 0.08em; }
.sec-head .mid .kicker { margin-bottom: 14px; }
.sec-head .mid h2 { white-space: pre-line; }
.sec-head .right { text-align: right; max-width: 34ch; justify-self: end; }
@media (max-width: 820px) {
  .sec-head { grid-template-columns: 1fr; gap: 12px; }
  .sec-head .right { text-align: left; }
}

/* ───────────────────────────── Story ────────────────────────────────── */
.story { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
@media (max-width: 900px) { .story { grid-template-columns: 1fr; } .story-lead { position: static !important; top: auto !important; } }
.story-lead { position: sticky; top: 120px; }
.story-body p { font-size: clamp(16px, 1.15vw, 18px); line-height: 1.8; color: var(--text-dim); font-weight: 300; margin: 0 0 1.4em; max-width: 60ch; text-wrap: pretty; }
.story-body p:first-of-type::first-letter { font-family: var(--font-display); font-size: 4.4em; float: left; line-height: 0.82; margin: 0.05em 0.1em 0 0; color: var(--brass); }
.feature-grid { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.feature-grid li { display: flex; align-items: baseline; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--text-dim); }
.feature-grid li:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
.feature-grid li .fn { font-family: var(--font-mono); font-size: 10px; color: var(--brass); }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } .feature-grid li:nth-child(even) { padding-left: 0; border-left: 0; } }

/* ───────────────────────────── Specs ────────────────────────────────── */
.specs-band { border-block: 1px solid var(--line); background: var(--bg-2); }
.specs { display: grid; grid-template-columns: repeat(6, 1fr); }
.spec { padding: 40px var(--gutter); border-right: 1px solid var(--line); }
.spec:nth-child(6n) { border-right: 0; }
.spec .k { font-family: var(--font-grotesk); font-size: 9px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-mute); }
.spec .v { font-family: var(--font-display); font-size: clamp(26px, 3vw, 42px); line-height: 1; margin-top: 12px; color: var(--text); }
.spec .v small { font-size: 0.42em; font-family: var(--font-grotesk); letter-spacing: 0.05em; color: var(--brass); margin-left: 3px; }
@media (max-width: 1000px) { .specs { grid-template-columns: repeat(3, 1fr); } .spec:nth-child(3n) { border-right: 0; } .spec:nth-child(n+4) { border-top: 1px solid var(--line); } }
@media (max-width: 600px) { .specs { grid-template-columns: 1fr 1fr; } .spec:nth-child(3n) { border-right: 1px solid var(--line); } .spec:nth-child(2n) { border-right: 0; } .spec:nth-child(n+3) { border-top: 1px solid var(--line); } .spec { padding: 28px var(--gutter); } }

/* ───────────────────────────── Gallery ──────────────────────────────── */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.gtile { position: relative; overflow: hidden; cursor: pointer; background: var(--surface); }
.gtile image-slot { width: 100% !important; height: 100% !important; }
.gtile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,8,10,0.5), transparent 50%); opacity: 0; transition: opacity 360ms var(--ease); pointer-events: none; }
.gtile:hover::after { opacity: 1; }
.gtile .gtag { position: absolute; left: 14px; bottom: 12px; z-index: 2; font-family: var(--font-grotesk); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; opacity: 0; transform: translateY(8px); transition: all 360ms var(--ease); }
.gtile:hover .gtag { opacity: 1; transform: translateY(0); }
.gtile .gnum { position: absolute; right: 14px; top: 12px; z-index: 2; font-family: var(--font-mono); font-size: 10px; color: rgba(255,255,255,0.7); opacity: 0; transition: opacity 360ms var(--ease); }
.gtile:hover .gnum { opacity: 1; }
.gtile .expand { position: absolute; right: 14px; bottom: 14px; z-index: 2; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,0.5); display: grid; place-items: center; opacity: 0; transform: scale(0.8); transition: all 360ms var(--ease); }
.gtile:hover .expand { opacity: 1; transform: scale(1); }
.gtile image-slot { transition: transform 800ms var(--ease-out); }
.gtile:hover image-slot { transform: scale(1.04); }
.g7 { grid-column: span 7; aspect-ratio: 16/11; }
.g5 { grid-column: span 5; aspect-ratio: 4/5; }
.g4 { grid-column: span 4; aspect-ratio: 3/4; }
.g8 { grid-column: span 8; aspect-ratio: 16/9; }
.g6 { grid-column: span 6; aspect-ratio: 5/4; }
.g12 { grid-column: span 12; aspect-ratio: 21/8; }
@media (max-width: 720px) { .gallery { grid-template-columns: 1fr 1fr; } .gtile { grid-column: span 1 !important; aspect-ratio: 1 !important; } .g12, .g7, .g8 { grid-column: 1 / -1 !important; aspect-ratio: 16/10 !important; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 800; background: rgba(6,6,8,0.94); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: clamp(20px, 5vw, 72px); animation: lb-in 320ms var(--ease); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 40px 120px rgba(0,0,0,0.6); }
.lightbox-empty { color: var(--text-dim); font-family: var(--font-grotesk); letter-spacing: 0.1em; text-transform: uppercase; font-size: 13px; text-align: center; max-width: 30ch; }
.lb-top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 24px var(--gutter); }
.lb-count { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }
.lb-close, .lb-nav { width: 48px; height: 48px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--text); transition: all 220ms var(--ease); }
.lb-close:hover, .lb-nav:hover { background: var(--brass); color: var(--bg); border-color: var(--brass); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.lb-prev { left: clamp(16px, 3vw, 40px); }
.lb-next { right: clamp(16px, 3vw, 40px); }
.lb-cap { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; padding: 24px; font-family: var(--font-grotesk); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); }

/* ───────────────────────────── Video ────────────────────────────────── */
.video-wrap { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #000; border: 1px solid var(--line); }
.video-wrap image-slot, .video-wrap video, .video-wrap iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; border: 0; }
.video-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,0.5), transparent 55%); pointer-events: none; transition: opacity 400ms var(--ease); }
.video-wrap[data-playing="1"]::after { opacity: 0; }
.video-overlay { position: absolute; inset: 0; z-index: 3; display: flex; align-items: flex-end; justify-content: space-between; padding: clamp(20px, 4vw, 44px); transition: opacity 400ms var(--ease); }
.video-wrap[data-playing="1"] .video-overlay { opacity: 0; pointer-events: none; }
.video-cap { display: flex; flex-direction: column; gap: 6px; }
.video-cap .mono { color: rgba(236,233,225,0.7); }
.video-cap h3 { color: #fff; }
.video-play { width: 96px; height: 96px; border-radius: 50%; background: rgba(236,233,225,0.95); color: var(--bg); display: grid; place-items: center; transition: transform 260ms var(--ease); flex-shrink: 0; }
.video-play:hover { transform: scale(1.07); }
.video-play svg { width: 26px; height: 26px; margin-left: 4px; }
.video-hud { position: absolute; top: clamp(20px,4vw,44px); left: clamp(20px,4vw,44px); right: clamp(20px,4vw,44px); z-index: 3; display: flex; justify-content: space-between; transition: opacity 400ms var(--ease); }
.video-wrap[data-playing="1"] .video-hud { opacity: 0; }
.badge-live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-grotesk); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: #fff; }
.badge-live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 0 rgba(217,129,98,0.6); animation: blip 1.6s var(--ease) infinite; }
@keyframes blip { 0% { box-shadow: 0 0 0 0 rgba(217,129,98,0.5); } 70% { box-shadow: 0 0 0 8px rgba(217,129,98,0); } 100% { box-shadow: 0 0 0 0 rgba(217,129,98,0); } }
@media (max-width: 720px) { .video-wrap { aspect-ratio: 16/10; } .video-play { width: 66px; height: 66px; } }

/* ───────────────────────────── Matterport ───────────────────────────── */
.mp { position: relative; aspect-ratio: 16/9; background: #060608; overflow: hidden; border: 1px solid var(--line); }
.mp iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mp-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; text-align: center; padding: 0 24px; cursor: pointer;
  background: radial-gradient(ellipse 80% 60% at 50% 45%, rgba(194,168,119,0.16), transparent 60%), linear-gradient(180deg, #14110c, #060608);
  transition: opacity 300ms var(--ease); }
.mp-grid { position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 20%, transparent 75%); }
.mp-cover h3 { color: #fff; max-width: 18ch; }
.mp-iris { width: 76px; height: 76px; border-radius: 50%; border: 1px solid rgba(236,233,225,0.35); display: grid; place-items: center; background: rgba(236,233,225,0.05); position: relative; z-index: 2; transition: all 300ms var(--ease); }
.mp-cover:hover .mp-iris { border-color: var(--brass); background: rgba(194,168,119,0.12); }
.mp-iris::after { content: ""; position: absolute; inset: -10px; border: 1px solid rgba(236,233,225,0.2); border-radius: 50%; animation: pulse 2.4s var(--ease) infinite; }
.mp-hud { position: absolute; top: 22px; left: 22px; right: 22px; z-index: 3; display: flex; justify-content: space-between; pointer-events: none; }
.mp-corner { position: absolute; width: 28px; height: 28px; border: 1px solid rgba(194,168,119,0.45); z-index: 3; }
.mp-corner.tl { top: 18px; left: 18px; border-right: 0; border-bottom: 0; }
.mp-corner.tr { top: 18px; right: 18px; border-left: 0; border-bottom: 0; }
.mp-corner.bl { bottom: 18px; left: 18px; border-right: 0; border-top: 0; }
.mp-corner.br { bottom: 18px; right: 18px; border-left: 0; border-top: 0; }
@keyframes pulse { 0% { transform: scale(0.8); opacity: 0.7; } 100% { transform: scale(1.7); opacity: 0; } }
@media (max-width: 720px) { .mp { aspect-ratio: 4/5; } }

/* ───────────────────────────── Location ─────────────────────────────── */
.location { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .location { grid-template-columns: 1fr; } }
.poi { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.poi li { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); transition: padding-left 300ms var(--ease); }
.poi li:hover { padding-left: 10px; }
.poi .pn { font-family: var(--font-mono); font-size: 10px; color: var(--brass); }
.poi .pname { font-family: var(--font-display); font-size: 23px; color: var(--text); }
.poi .pmeta { font-family: var(--font-grotesk); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mute); display: block; margin-top: 2px; }
.poi .pdist { font-family: var(--font-mono); font-size: 13px; color: var(--text-dim); justify-self: end; }
.map { aspect-ratio: 4/5; position: relative; overflow: hidden; border: 1px solid var(--line); background: #0a0a0c; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-pin { position: absolute; left: 52%; top: 44%; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 2; }
.map-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--brass); position: relative; box-shadow: 0 0 16px rgba(194,168,119,0.8); }
.map-dot::after { content: ""; position: absolute; inset: -7px; border: 1px solid var(--brass); border-radius: 50%; animation: pulse 2.4s var(--ease) infinite; }
.map-lbl { font-family: var(--font-grotesk); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text); background: var(--surface); border: 1px solid var(--line-2); padding: 5px 10px; white-space: nowrap; }
.map-coord { position: absolute; bottom: 16px; left: 16px; z-index: 2; font-family: var(--font-mono); font-size: 10px; color: var(--text-mute); }

/* ───────────────────────────── Contact ──────────────────────────────── */
.contact { display: grid; grid-template-columns: 0.85fr 1.1fr; gap: clamp(40px, 6vw, 96px); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.agent { display: flex; flex-direction: column; gap: 22px; }
.agent image-slot { width: 92px !important; height: 92px !important; }
.agent .name { font-family: var(--font-display); font-size: 30px; line-height: 1; color: var(--text); }
.agent .role { font-family: var(--font-grotesk); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-mute); margin-top: 8px; }
.agent-links { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.agent-links a { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--text-dim); transition: all 240ms var(--ease); }
.agent-links a:hover { color: var(--text); padding-left: 10px; }
.agent-links svg { width: 16px; height: 16px; opacity: 0.6; flex-shrink: 0; }
.agent-links .arr { margin-left: auto; opacity: 0; transition: opacity 240ms var(--ease); }
.agent-links a:hover .arr { opacity: 0.6; }

.form { display: flex; flex-direction: column; gap: 26px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--font-grotesk); font-size: 10px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-mute); }
.field label .req { color: var(--brass); }
.field input, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); padding: 11px 0; font-size: 16px; outline: none; transition: border-color 240ms var(--ease); border-radius: 0; color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-mute); }
.field textarea { resize: vertical; min-height: 84px; line-height: 1.55; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--brass); }
.field.invalid input, .field.invalid textarea { border-bottom-color: var(--danger); }
.field-err { font-size: 12px; color: var(--danger); font-family: var(--font-grotesk); letter-spacing: 0.04em; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { flex: 1; min-width: max-content; text-align: center; padding: 11px 16px; border: 1px solid var(--line-2); font-family: var(--font-grotesk); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); cursor: pointer; transition: all 220ms var(--ease); }
.seg input { display: none; }
.seg label:has(input:checked) { background: var(--brass); color: var(--bg); border-color: var(--brass); }
.consent { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; color: var(--text-dim); line-height: 1.5; cursor: pointer; }
.consent input { appearance: none; width: 18px; height: 18px; border: 1px solid var(--line-2); margin: 2px 0 0; position: relative; flex-shrink: 0; transition: all 180ms var(--ease); }
.consent input:checked { background: var(--brass); border-color: var(--brass); }
.consent input:checked::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid var(--bg); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.consent a { color: var(--brass); text-decoration: underline; text-underline-offset: 3px; }
.consent.invalid input { border-color: var(--danger); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 19px 36px; background: var(--brass); color: var(--bg); font-family: var(--font-grotesk); font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; border: 1px solid var(--brass); transition: all 240ms var(--ease); }
.btn:hover { background: transparent; color: var(--brass); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.form-ok { padding: 40px; border: 1px solid var(--line); background: var(--bg-2); display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.form-ok svg { color: var(--brass); }

/* ───────────────────────────── Footer ───────────────────────────────── */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 96px var(--gutter) 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 56px; max-width: var(--container); margin-inline: auto; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }
.footer-col h4 { font-family: var(--font-grotesk); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-mute); margin: 0 0 18px; font-weight: 500; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--text-dim); transition: color 200ms var(--ease); }
.footer-col a:hover { color: var(--text); }
.footer-cta { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 4.4vw, 54px); color: var(--text); max-width: 16ch; line-height: 1.02; }
.footer-logo { height: 20px; width: auto; display: block; margin-bottom: 22px; opacity: 0.9; }
.footer-bottom { max-width: var(--container); margin: 72px auto 0; padding-top: 26px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-family: var(--font-mono); font-size: 11px; color: var(--text-mute); }

/* ───────────────────────────── Cookie ───────────────────────────────── */
.cookie { position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 850; max-width: 1100px; margin-inline: auto; background: var(--surface); border: 1px solid var(--line-2); padding: 26px 30px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; box-shadow: 0 30px 90px rgba(0,0,0,0.5); animation: ck-rise 520ms var(--ease-out); }
@keyframes ck-rise { from { transform: translateY(130%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cookie h4 { font-family: var(--font-display); font-size: 24px; margin: 0 0 6px; color: var(--text); }
.cookie p { margin: 0; font-size: 13px; color: var(--text-dim); line-height: 1.55; max-width: 66ch; }
.cookie .actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie .btn, .cookie .btn-ghost { padding: 14px 22px; }
@media (max-width: 760px) { .cookie { grid-template-columns: 1fr; padding: 22px; left: 12px; right: 12px; bottom: 12px; } .cookie .actions { flex-wrap: wrap; } .cookie .actions > * { flex: 1; } }
.cookie-prefs { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.ck-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ck-row:last-child { border-bottom: 0; }
.ck-name { font-family: var(--font-grotesk); font-size: 13px; font-weight: 600; color: var(--text); letter-spacing: 0.04em; }
.ck-desc { font-size: 12px; color: var(--text-mute); margin-top: 3px; max-width: 70ch; }
.ck-lock { font-family: var(--font-mono); font-size: 10px; color: var(--text-mute); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.switch { appearance: none; width: 38px; height: 21px; background: var(--line-2); border-radius: 999px; position: relative; cursor: pointer; transition: background 200ms var(--ease); flex-shrink: 0; }
.switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 17px; height: 17px; border-radius: 50%; background: var(--text); transition: transform 200ms var(--ease); }
.switch:checked { background: var(--brass); }
.switch:checked::after { transform: translateX(17px); background: var(--bg); }

/* ───────────────────────────── Modal ────────────────────────────────── */
.modal-bg { position: fixed; inset: 0; z-index: 880; background: rgba(6,6,8,0.7); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 24px; animation: lb-in 280ms var(--ease); }
.modal { background: var(--bg-2); border: 1px solid var(--line-2); max-width: 760px; width: 100%; max-height: 86vh; overflow-y: auto; padding: 52px clamp(24px, 4vw, 60px); position: relative; }
.modal h2 { margin: 8px 0 0; }
.modal h3 { font-family: var(--font-grotesk); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass); margin: 30px 0 8px; }
.modal p { font-size: 14px; line-height: 1.65; color: var(--text-dim); margin: 0; }
.modal-x { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--text); transition: all 200ms var(--ease); }
.modal-x:hover { background: var(--brass); color: var(--bg); border-color: var(--brass); }

/* ───────────────────────────── Reveal ───────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 80ms; }
.reveal[data-d="2"] { transition-delay: 160ms; }
.reveal[data-d="3"] { transition-delay: 240ms; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* image-slot theming */
image-slot::part(frame) { background: var(--surface) !important; }
image-slot::part(ring) { border-color: var(--line-2) !important; }

/* ═══ PRODUZIONE — immagini reali (<img>) al posto degli slot ═══ */
.hero-media .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gtile { background: var(--surface); }
.gtile-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 800ms var(--ease-out); }
.gtile:hover .gtile-img { transform: scale(1.04); }
.video-wrap .poster-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.agent .agent-img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; display: block; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(0.12) contrast(0.93) brightness(0.92); }
.map .map-coord { z-index: 2; background: color-mix(in oklab, var(--bg) 78%, transparent); padding: 5px 9px; border: 1px solid var(--line); backdrop-filter: blur(4px); }
.footer-bottom a { color: var(--brass); text-decoration: none; border-bottom: 1px solid color-mix(in oklab, var(--brass) 50%, transparent); transition: border-color 200ms var(--ease); }
.footer-bottom a:hover { border-bottom-color: var(--brass); }
