/* ════════════════════════════════════════════════════════════
   GLOBAL RESET & VARIABLES
   ════════════════════════════════════════════════════════════ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #080808;
  --bg-warm: #0c0b09;
  --text: #f2ede8;
  --accent: #c4a265;
  --accent-glow: rgba(196, 162, 101, 0.35);
  --accent-dim: rgba(196, 162, 101, 0.15);
  --text-dim: rgba(242, 237, 232, 0.45);
  --text-mid: rgba(242, 237, 232, 0.7);
  --cream: #f8f5ef;
  --ink: #1c1814;
  --serif: 'Cormorant Garamond', serif;
  --sans: 'Outfit', sans-serif;
  --copy-on-cream: #756c60;
  --hairline-dark: rgba(28, 24, 20, 0.14);
  --k-label-size: clamp(0.58rem, 0.72vw, 0.68rem);
  --k-label-spacing: 0.36em;
  --k-body-size: clamp(0.82rem, 1.05vw, 0.96rem);
  --k-body-line: 1.85;
  --k-title-hero: clamp(3rem, 7.2vw, 6.4rem);
  --k-title-display: clamp(3rem, 7.4vw, 6.8rem);
  --k-title-editorial: clamp(2.7rem, 5.6vw, 5rem);
  --k-title-panel: clamp(2.35rem, 4.8vw, 4.1rem);
  --k-cta-size: 0.68rem;
  --k-cta-spacing: 0.26em;
  --k-page-pad: clamp(1.25rem, 4vw, 2.5rem);
}

html { scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
  cursor: default;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Utility */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ════════════════════════════════════════════════════════════
   LOADER
   ════════════════════════════════════════════════════════════ */
.loader {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--bg);
  z-index: 1000;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transition: opacity 1s ease, visibility 1s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-logo { margin-bottom: 2rem; }
.loader-logo img {
  width: clamp(160px, 28vw, 320px);
  height: auto; display: block;
}

.loader-track {
  width: clamp(160px, 28vw, 320px); height: 1px;
  background: rgba(255,255,255,0.06);
  border-radius: 1px; overflow: hidden;
}
.loader-fill {
  width: 0%; height: 100%;
  background: linear-gradient(90deg, #ac9665, #c8b07e);
  transition: width 0.4s ease;
}
.loader-pct {
  margin-top: 1rem;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--text-dim);
}

/* ════════════════════════════════════════════════════════════
   SECTION 1: HERO — Boston 3D
   ════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 600px;
  display: flex; align-items: center; justify-content: center;
}

#canvas {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  user-select: none;
  -webkit-user-select: none;
}
#orbit-hit-area {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 65%;
  z-index: 2;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.orbit-hint {
  position: absolute;
  left: 50%; bottom: 5.8rem;
  z-index: 11;
  transform: translateX(-50%);
  padding: 0.7rem 1.2rem;
  border: 1px solid rgba(196, 162, 101, 0.28);
  background: rgba(8, 8, 8, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.62rem; font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mid);
  pointer-events: none; opacity: 0;
  animation: orbitHintFade 5.4s ease forwards 1.5s;
}

@keyframes orbitHintFade {
  0%   { opacity: 0; transform: translateX(-50%) translateY(8px); }
  12%  { opacity: 1; transform: translateX(-50%) translateY(0); }
  72%  { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-8px); }
}

/* Low-end fallback */
.low-end-device #canvas,
.low-end-device #orbit-hit-area,
.low-end-device .orbit-hint,
.hero-static-fallback #canvas,
.hero-static-fallback #orbit-hit-area,
.hero-static-fallback .orbit-hint {
  display: none !important;
}

.low-end-device .hero,
.hero-static-fallback .hero {
  background-image:
    linear-gradient(to top, rgba(8,8,8,0.72) 0%, rgba(8,8,8,0.18) 48%, rgba(8,8,8,0.28) 100%),
    radial-gradient(circle at 50% 35%, rgba(196,162,101,0.16) 0%, rgba(8,8,8,0) 46%),
    url('../sezioni-modulari/01-hero-boston/images/divano_boston_dett.jpg');
  background-size: cover; background-position: center; background-repeat: no-repeat;
}

.hero-static-fallback .o-tag,
.hero-static-fallback .o-title,
.hero-static-fallback .o-sub,
.hero-static-fallback .o-cta {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.hero-static-fallback .scroll-ind {
  opacity: 1;
}

/* Hero Overlay */
.overlay {
  position: relative; z-index: 10;
  text-align: center;
  pointer-events: none;
  padding: 0 2rem;
  transform: translateY(6vh);
}

.o-tag {
  font-family: var(--sans);
  font-weight: 300;
  font-size: var(--k-label-size);
  letter-spacing: var(--k-label-spacing);
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0; transform: translateY(18px);
  margin-bottom: 1.2rem;
}

.o-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--k-title-hero);
  line-height: 0.96;
  color: var(--text);
  text-shadow: 0 6px 20px rgba(0,0,0,0.40);
  opacity: 0; transform: translateY(28px);
  margin-bottom: 0.8rem;
}
.o-title em { font-weight: 300; font-style: italic; color: var(--accent); }

.o-sub {
  font-weight: 300;
  font-size: var(--k-body-size);
  color: var(--text-dim);
  line-height: var(--k-body-line);
  max-width: 460px; margin: 0 auto;
  opacity: 0; transform: translateY(18px);
}

.o-cta {
  margin-top: 2.2rem;
  opacity: 0; transform: translateY(18px);
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.o-cta a {
  pointer-events: all;
  display: inline-block;
  font-weight: 300;
  font-size: var(--k-cta-size);
  letter-spacing: var(--k-cta-spacing);
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--accent-dim);
  padding: 0.95rem 2.35rem;
  transition: all 0.5s cubic-bezier(.25,.8,.25,1);
}
.o-cta a:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  letter-spacing: 0.3em;
}
.o-cta a.o-cta--ghost {
  color: var(--text-mid);
  border-color: rgba(242,237,232,0.18);
}
.o-cta a.o-cta--ghost:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

/* Vignette + Grain */
.vignette {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 5;
  background: radial-gradient(ellipse at 50% 50%, transparent 30%, rgba(8,8,8,0.8) 100%);
}

.grain {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 6;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

/* Scroll Indicator */
.scroll-ind {
  position: absolute; bottom: 2.5rem;
  left: 50%; transform: translateX(-50%);
  z-index: 10; opacity: 0;
  transition: opacity 1s ease;
}
.scroll-ind.show { opacity: 1; }
.scroll-ind span {
  display: block; width: 1px; height: 36px; margin: 0 auto 0.6rem;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
.scroll-ind p {
  font-size: 0.55rem; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--text-dim);
}
@keyframes scrollPulse {
  0%,100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(0.55); }
}

/* ════════════════════════════════════════════════════════════
   SECTION 2: INSIDE THE MAKING — Video
   ════════════════════════════════════════════════════════════ */
.making-section {
  background: var(--cream);
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(4rem, 8vh, 6rem) var(--k-page-pad);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
  overflow-y: visible;
}

.making-inner {
  width: 100%;
  max-width: 980px;
  text-align: center;
}

.making-eyebrow {
  font-family: var(--sans);
  font-size: var(--k-label-size); font-weight: 300;
  letter-spacing: var(--k-label-spacing);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.4rem;
}

.making-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--k-title-editorial);
  letter-spacing: 0;
  color: var(--ink);
  line-height: 0.98;
  margin-bottom: 0.6rem;
}

.making-body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: var(--k-body-size);
  line-height: var(--k-body-line);
  color: var(--copy-on-cream);
  max-width: 560px;
  margin: 0 auto;
}

.making-rule {
  width: 36px; height: 1px;
  background: var(--accent);
  opacity: 0.55;
  margin: 2rem auto 3.2rem;
}

.making-video-frame {
  border: 1px solid rgba(196, 162, 101, 0.28);
  padding: 7px;
  background: var(--ink);
  box-shadow:
    0 24px 64px rgba(28, 24, 20, 0.13),
    0 4px 18px rgba(28, 24, 20, 0.07);
}

.making-video-ratio {
  position: relative;
  padding-bottom: 56.25%;
  height: 0; overflow: hidden;
}

.making-video-ratio iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: block; border: 0;
}

@media (max-width: 600px) {
  .making-section { padding: clamp(3.25rem, 9vh, 5rem) 1.2rem; }
  .making-video-frame { padding: 4px; }
}

/* ════════════════════════════════════════════════════════════
   GALLERY — Scroll slides with parallax + char animation
   ════════════════════════════════════════════════════════════ */
#gallery { position: relative; }

#gallery-stage {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
}

.gallery-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.gallery-slide:nth-child(1) { z-index: 1; }
.gallery-slide:nth-child(2) { z-index: 2; }
.gallery-slide:nth-child(3) { z-index: 3; }
.gallery-slide:nth-child(4) { z-index: 4; }
.gallery-slide:nth-child(5) { z-index: 5; }

.slide-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}

.slide-vignette {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, rgba(8,8,8,0.78) 0%, transparent 45%),
    linear-gradient(to bottom, rgba(8,8,8,0.28) 0%, transparent 22%),
    radial-gradient(ellipse at 62% 50%, transparent 38%, rgba(8,8,8,0.52) 100%);
}

.slide-content {
  position: fixed;
  top: 50%; left: 50%;
  z-index: 20;
  pointer-events: none;
  text-align: center;
  width: min(92vw, 980px);
  max-width: 980px;
}

/* Char splitting */
.char-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.char-inner { display: inline-block; }

.slide-label {
  font-family: var(--sans);
  font-weight: 300;
  font-size: var(--k-label-size);
  letter-spacing: var(--k-label-spacing);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
  display: block;
}

.slide-title-wrap { display: block; }

.slide-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--k-title-display);
  line-height: 0.94;
  color: var(--text);
  letter-spacing: 0;
  text-shadow: 0 6px 20px rgba(0,0,0,0.40);
  display: block;
}
.slide-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.slide-caption {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 300;
  font-size: var(--k-body-size);
  color: var(--text-mid);
  margin-top: 1.2rem;
  line-height: var(--k-body-line);
  letter-spacing: 0.02em;
}

/* Dante slide: caption matches hero o-sub style */
.gallery-slide--dante .slide-caption {
  font-weight: 200;
  color: var(--text-dim);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}


/* Dante slide — canvas, video, loader */
.gallery-slide--salone .slide-bg {
  background: var(--cream);
}

.gallery-slide--salone .slide-vignette {
  background:
    linear-gradient(to top, rgba(248,245,239,0.95) 0%, transparent 38%),
    linear-gradient(to bottom, rgba(28,24,20,0.04) 0%, transparent 24%);
}

.gallery-slide--salone .slide-content {
  max-width: min(980px, 92vw);
}

.gallery-slide--salone .slide-title {
  color: var(--ink);
  font-size: var(--k-title-editorial);
  line-height: 0.98;
  text-shadow: none;
}

.gallery-slide--salone .slide-caption {
  font-weight: 300;
  color: var(--copy-on-cream);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-slide--salone .slide-cta-btn {
  color: var(--cream);
  background: var(--ink);
  border-color: var(--ink);
}

.gallery-slide--salone .slide-cta-btn:hover {
  color: var(--ink);
  background: var(--accent);
  border-color: var(--accent);
}

.gallery-slide--salone .slide-cta-btn--ghost {
  color: var(--ink);
  background: transparent;
  border-color: rgba(28,24,20,0.18);
}

.gallery-slide--salone .slide-cta-btn--ghost:hover {
  color: var(--ink);
  background: var(--accent);
  border-color: var(--accent);
}

.dante-canvas-layer { position: absolute; inset: 0; z-index: 0; }
#dante-canvas { display: block; width: 100%; height: 100%; }
#dante-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  will-change: opacity;
}
.dante-loader {
  position: absolute; inset: 0; z-index: 10;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transition: opacity 0.8s ease;
}
.dante-loader.loaded { opacity: 0; pointer-events: none; }
.dante-loader-text {
  font-family: var(--sans); font-weight: 200;
  font-size: 0.6rem; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--text-dim);
  margin-bottom: 1.2rem;
}
.dante-loader-track {
  width: clamp(120px, 20vw, 200px); height: 1px;
  background: rgba(255,255,255,0.06); overflow: hidden;
}
.dante-loader-fill {
  width: 0%; height: 100%;
  background: linear-gradient(90deg, #ac9665, #c8b07e);
  transition: width 0.15s linear;
}

/* ════════════════════════════════════════════════════════════
   SECTION 4: CUSTOMIZATION
   ════════════════════════════════════════════════════════════ */
.custom-section {
  background: var(--bg-warm);
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(3rem, 5vh, 5rem) 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
  overflow-y: visible;
}

.custom-section::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(196,162,101,0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(196,162,101,0.03) 0%, transparent 50%);
  pointer-events: none;
}

.custom-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.custom-header {
  text-align: center;
  margin-bottom: 5rem;
}

.custom-eyebrow {
  font-family: var(--sans);
  font-size: 0.62rem; font-weight: 200;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.4rem;
}

.custom-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.custom-title em { font-style: italic; color: var(--accent); }

.custom-subtitle {
  font-family: var(--sans);
  font-weight: 200;
  font-size: clamp(0.82rem, 1.1vw, 0.95rem);
  line-height: 1.9;
  color: var(--text-dim);
  max-width: 580px;
  margin: 0 auto;
}

.custom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.custom-card {
  position: relative;
  padding: 3.5rem 2.5rem;
  border: 1px solid rgba(196,162,101,0.08);
  transition: border-color 0.6s ease, background 0.6s ease;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.custom-card:hover {
  border-color: rgba(196,162,101,0.22);
  background: rgba(196,162,101,0.02);
}

.custom-card-number {
  font-family: var(--serif);
  font-size: 4.5rem;
  font-weight: 300;
  color: rgba(196,162,101,0.06);
  position: absolute;
  top: 1.5rem; right: 2rem;
  line-height: 1;
}

.custom-card-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.custom-card-text {
  font-family: var(--sans);
  font-weight: 200;
  font-size: 0.8rem;
  line-height: 1.85;
  color: var(--text-dim);
  max-width: 300px;
}

.custom-card-cta {
  display: inline-block;
  margin-top: 1.6rem;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(196,162,101,0.5);
  transition: color 0.4s ease;
}

.custom-card:hover .custom-card-cta {
  color: rgba(196,162,101,0.9);
}

@media (max-width: 900px) {
  .custom-grid { grid-template-columns: 1fr; gap: 0; }
  .custom-card { min-height: auto; padding: 2.5rem 2rem; }
  .custom-section { padding: clamp(3rem, 5vh, 4rem) 1.5rem; }
}

/* ════════════════════════════════════════════════════════════
   SECTION 5: LEONARDO EDITION
   ════════════════════════════════════════════════════════════ */
.leo-section {
  background: var(--cream);
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(3rem, 5vh, 5rem) 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
  overflow-y: visible;
}

.leo-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.leo-visual {
  position: relative;
  aspect-ratio: 4/5;
  background: linear-gradient(145deg, #e8e2d8 0%, #d5cfc3 100%);
  overflow: hidden;
}

.leo-visual-inner {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}

.leo-visual-placeholder {
  font-family: var(--serif);
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 300; font-style: italic;
  color: rgba(28, 24, 20, 0.07);
  letter-spacing: 0.05em;
  user-select: none;
  transform: rotate(-8deg);
}

.leo-visual-tag {
  position: absolute;
  bottom: 2rem; left: 2rem;
  font-family: var(--sans);
  font-size: 0.55rem; font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(28, 24, 20, 0.4);
}

.leo-content {
  padding: 2rem 0;
}

.leo-eyebrow {
  font-family: var(--sans);
  font-size: 0.62rem; font-weight: 300;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.6rem;
  display: flex; align-items: center; gap: 1rem;
}
.leo-eyebrow::before {
  content: '';
  display: block; width: 2rem; height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.leo-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 1.6rem;
}
.leo-title em { font-style: italic; color: #a08b5e; }

.leo-body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.85rem;
  line-height: 1.9;
  color: #7a7062;
  max-width: 420px;
  margin-bottom: 3rem;
}

.leo-actions {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: flex-start;
}

.leo-cta-primary {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--ink);
  text-decoration: none;
  padding: 1rem 2.4rem;
  border: 1px solid var(--ink);
  transition: all 0.5s cubic-bezier(.25,.8,.25,1);
}
.leo-cta-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  letter-spacing: 0.32em;
}

.leo-cta-download {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(196,162,101,0.35);
  transition: all 0.4s ease;
}
.leo-cta-download:hover {
  border-bottom-color: var(--accent);
  color: var(--accent);
}
.leo-cta-download svg {
  width: 1rem; height: 1rem;
  stroke: currentColor;
  fill: none; stroke-width: 1.5;
  transition: transform 0.3s ease;
}
.leo-cta-download:hover svg { transform: translateY(2px); }

@media (max-width: 900px) {
  .leo-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .leo-visual { aspect-ratio: 3/2; }
  .leo-section { padding: clamp(3rem, 5vh, 4rem) 1.5rem; }
}

/* ════════════════════════════════════════════════════════════
   SECTION 6: ABOUT + CONTACT (CLOSING)
   ════════════════════════════════════════════════════════════ */
.closing-section {
  background: var(--bg);
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  text-align: center;
  overflow-x: hidden;
  overflow-y: visible;
}

.closing-section::before {
  content: '';
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 80px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  opacity: 0.35;
}

.closing-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(4rem, 8vh, 6rem) 0;
}

.closing-brand {
  font-family: var(--sans);
  font-size: 0.62rem; font-weight: 200;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2.5rem;
}

.closing-statement {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.closing-statement em { font-style: italic; color: var(--accent); }

.closing-body {
  font-family: var(--sans);
  font-weight: 200;
  font-size: 0.85rem;
  line-height: 1.9;
  color: var(--text-dim);
  max-width: 480px;
  margin: 0 auto 3.5rem;
}

.closing-cta {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--accent-dim);
  padding: 1rem 2.8rem;
  transition: all 0.5s cubic-bezier(.25,.8,.25,1);
}
.closing-cta:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  letter-spacing: 0.35em;
}

/* Footer Bar */
.footer-bar {
  margin-top: 0;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(196,162,101,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.footer-left {
  font-family: var(--sans);
  font-size: 0.6rem; font-weight: 200;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}

.footer-right {
  display: flex; gap: 2rem;
}

.footer-right a {
  font-family: var(--sans);
  font-size: 0.58rem; font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-right a:hover { color: var(--accent); }

@media (max-width: 600px) {
  .closing-section { padding: 0 1.5rem; }
  .closing-inner { padding: clamp(3rem, 6vh, 5rem) 0; }
  .footer-bar {
    flex-direction: column;
    gap: 1.2rem;
    text-align: center;
  }
}

/* ════════════════════════════════════════════════════════════
   COLLECTION POPUP
   ════════════════════════════════════════════════════════════ */
#collection-popup,
#dante-popup {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(8, 8, 8, 0.98);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s cubic-bezier(0.76, 0, 0.24, 1),
              visibility 0s linear 0.45s;
  overflow: hidden;
}
#collection-popup.pop-open,
#dante-popup.pop-open {
  opacity: 1; visibility: visible;
  transition: opacity 0.45s cubic-bezier(0.76, 0, 0.24, 1),
              visibility 0s linear 0s;
}

.popup-close {
  position: absolute; top: 1.4rem; right: 1.6rem; z-index: 910;
  width: 2.8rem; height: 2.8rem;
  background: transparent;
  border: 1px solid rgba(196, 162, 101, 0.3);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
}
.popup-close:hover { border-color: var(--accent); background: rgba(196, 162, 101, 0.08); }
.popup-close svg { width: 1rem; height: 1rem; stroke: var(--text); stroke-width: 1.5; fill: none; transition: stroke 0.3s; }
.popup-close:hover svg { stroke: var(--accent); }

#collection-popup,
#dante-popup {
  --pop-cream: #F5F0E8;
  --pop-ink:   #1A1814;
  --pop-gold:  #BFA46B;
  --pop-goldl: #D4BC87;
  --pop-mid:   #8A7E6A;
  --pop-dur:   900ms;
  --pop-ease:  cubic-bezier(0.76, 0, 0.24, 1);
}

.pop-scene { position: absolute; inset: 0; }

.pop-slide {
  position: absolute; inset: 0;
  display: flex;
  opacity: 0; pointer-events: none;
  transition: opacity var(--pop-dur) var(--pop-ease);
}
.pop-slide.active { opacity: 1; pointer-events: all; }

.pop-slide__left {
  position: relative; width: 52%;
  overflow: hidden; flex-shrink: 0;
}
.pop-slide__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.06);
  transition: transform 1.4s var(--pop-ease);
  filter: brightness(0.88) contrast(1.05);
}
.pop-slide.active .pop-slide__bg { transform: scale(1.0); }

#dante-popup .pop-slide--portrait .pop-slide__bg {
  background-size: contain;
  background-repeat: no-repeat;
  background-color: #050505;
}

.pop-slide:nth-child(1) .pop-slide__bg { background-color: #1a1614; }
.pop-slide:nth-child(2) .pop-slide__bg { background-color: #1a1614; }
.pop-slide:nth-child(3) .pop-slide__bg { background-color: #1a1614; }
.pop-slide:nth-child(4) .pop-slide__bg { background-color: #1a1614; }

.pop-slide__count {
  display: none;
}

.pop-slide__divider {
  position: relative; width: 1px;
  background: linear-gradient(to bottom, transparent 0%, var(--pop-gold) 30%, var(--pop-gold) 70%, transparent 100%);
  opacity: 0.3; flex-shrink: 0; z-index: 2;
}

.pop-slide__right {
  flex: 1; background: var(--pop-ink);
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 0 4.5rem 0 4rem;
  position: relative; overflow: hidden;
}
.pop-slide__right::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4; pointer-events: none;
}
.pop-content { position: relative; z-index: 1; }

.pop-slide__tag {
  font-family: var(--sans);
  font-size: 0.6rem; font-weight: 400;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--pop-gold);
  margin-bottom: 1.75rem;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.6s var(--pop-ease) 0.2s, transform 0.6s var(--pop-ease) 0.2s;
  display: flex; align-items: center; gap: 1rem;
}
.pop-slide__tag::before { content: ''; display: block; width: 2rem; height: 1px; background: var(--pop-gold); flex-shrink: 0; }
.pop-slide.active .pop-slide__tag { opacity: 1; transform: translateY(0); }

.pop-slide__title {
  font-family: var(--serif);
  font-size: clamp(2.75rem, 4vw, 4.5rem);
  font-weight: 300; line-height: 1.05;
  color: var(--pop-cream);
  letter-spacing: 0;
  margin-bottom: 1.5rem;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s var(--pop-ease) 0.35s, transform 0.7s var(--pop-ease) 0.35s;
}
.pop-slide__title em { font-style: italic; color: var(--pop-goldl); }
.pop-slide.active .pop-slide__title { opacity: 1; transform: translateY(0); }

.pop-slide__body {
  font-family: var(--sans);
  font-size: 0.92rem; font-weight: 300;
  line-height: 1.9; color: var(--pop-mid);
  max-width: 28rem; margin-bottom: 3rem;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s var(--pop-ease) 0.5s, transform 0.6s var(--pop-ease) 0.5s;
}
.pop-slide.active .pop-slide__body { opacity: 1; transform: translateY(0); }

.pop-slide__cta {
  display: inline-flex; align-items: center; gap: 1.25rem;
  font-family: var(--sans);
  font-size: 0.65rem; font-weight: 300;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--pop-cream);
  text-decoration: none;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s var(--pop-ease) 0.65s, transform 0.5s var(--pop-ease) 0.65s;
  cursor: pointer;
}
.pop-slide__cta::after {
  content: ''; display: block; width: 3rem; height: 1px;
  background: var(--pop-gold);
  transition: width 0.4s var(--pop-ease);
}
.pop-slide__cta:hover::after { width: 5rem; }
.pop-slide.active .pop-slide__cta { opacity: 1; transform: translateY(0); }

.pop-download-cta {
  position: absolute;
  left: 4rem;
  bottom: 2.65rem;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pop-cream);
  text-decoration: none;
  min-height: 2.6rem;
  padding: 0.85rem 1.35rem;
  border: 1px solid rgba(191, 164, 107, 0.42);
  background: rgba(191, 164, 107, 0.08);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: color 0.35s var(--pop-ease), border-color 0.35s var(--pop-ease), background 0.35s var(--pop-ease), transform 0.35s var(--pop-ease);
}
.pop-download-cta::before {
  content: '↓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border: 1px solid rgba(191, 164, 107, 0.45);
  border-radius: 50%;
  color: var(--pop-goldl);
  font-size: 0.82rem;
  line-height: 1;
  letter-spacing: 0;
  transition: transform 0.35s var(--pop-ease), border-color 0.35s var(--pop-ease), background 0.35s var(--pop-ease);
}
.pop-download-cta:hover {
  color: var(--pop-ink);
  border-color: var(--pop-gold);
  background: var(--pop-gold);
  transform: translateY(-2px);
}
.pop-download-cta:hover::before {
  transform: translateY(2px);
  border-color: rgba(26, 24, 20, 0.32);
  background: rgba(26, 24, 20, 0.08);
  color: var(--pop-ink);
}
.pop-download-cta[href="#"] {
  color: rgba(245, 240, 232, 0.86);
}

/* Pop Nav */
.pop-nav {
  position: absolute; bottom: 3rem; right: 4rem; z-index: 100;
  display: flex; align-items: center; gap: 2rem;
}
.pop-nav__fraction {
  font-family: var(--serif);
  font-size: 0.8rem; font-weight: 300;
  color: var(--pop-mid);
  letter-spacing: 0.12em;
  min-width: 2.75rem; user-select: none;
}
.pop-nav__fraction span { color: var(--pop-cream); }

.pop-nav__bar {
  width: 7.5rem; height: 1px;
  background: rgba(255, 255, 255, 0.1);
  position: relative; overflow: hidden;
}
.pop-nav__bar-fill {
  position: absolute; top: 0; left: 0; height: 100%;
  background: var(--pop-gold);
  transition: width var(--pop-dur) var(--pop-ease);
}
.pop-nav__arrows { display: flex; gap: 0.75rem; }
.pop-btn {
  width: 2.5rem; height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
}
.pop-btn:hover { border-color: var(--pop-gold); background: rgba(191, 164, 107, 0.08); }
.pop-btn svg { width: 0.875rem; height: 0.875rem; stroke: var(--pop-cream); fill: none; stroke-width: 1.5; transition: stroke 0.3s; }
.pop-btn:hover svg { stroke: var(--pop-gold); }

/* Popup responsive */
@media (max-width: 767px) {
  .pop-slide { flex-direction: column; }
  .pop-slide__left { width: 100%; height: 48vh; min-height: 220px; flex-shrink: 0; }
  .pop-slide__divider { width: 100%; height: 1px; background: linear-gradient(to right, transparent, var(--pop-gold), transparent); }
  .pop-slide__right { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 1.75rem 1.5rem 8rem; justify-content: flex-start; }
  .pop-slide__count { display: none; }
  .pop-slide__body { max-width: 100%; margin-bottom: 2rem; }
  .pop-download-cta {
    left: 1.25rem;
    right: 1.25rem;
    bottom: 4.35rem;
    justify-content: center;
    text-align: center;
    font-size: 0.6rem;
    padding: 0.8rem 1rem;
  }
  .pop-nav { bottom: 1rem; right: 1rem; gap: 1rem; }
  .pop-nav__bar { width: 4rem; }
  .popup-close { top: 1rem; right: 1rem; }
}
@media (max-width: 480px) {
  .pop-slide__left { height: 42vh; }
  .pop-slide__right { padding: 1.25rem 1.25rem 8.25rem; }
  .pop-slide__title { font-size: clamp(2.2rem, 9vw, 3rem); margin-bottom: 1rem; }
  .pop-slide__body { font-size: 0.73rem; margin-bottom: 1.5rem; }
  .pop-nav__bar { display: none; }
}

/* ════════════════════════════════════════════════════════════
   REVEAL ANIMATIONS (IntersectionObserver driven)
   ════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s cubic-bezier(.25,.8,.25,1), transform 0.9s cubic-bezier(.25,.8,.25,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }

/* ════════════════════════════════════════════════════════════
   MOBILE LANDSCAPE
   ════════════════════════════════════════════════════════════ */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: 100vh; }
  .overlay { transform: translateY(0); }
  .o-title { font-size: clamp(2rem, 6vw, 3.5rem); }
  .o-sub { font-size: 0.75rem; max-width: 360px; }
  .scroll-ind { bottom: 1rem; }
  .orbit-hint { bottom: 3.5rem; }

  .custom-section { padding: clamp(2rem, 4vh, 3rem) 1.5rem; }
  .custom-grid { grid-template-columns: 1fr 1fr; }

  .closing-inner { padding: clamp(2rem, 4vh, 3rem) 0; }
}

/* ════════════════════════════════════════════════════════════
   GALLERY SLIDE CTAs (Dante + future slides)
   ════════════════════════════════════════════════════════════ */
.slide-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  pointer-events: auto;
  margin-top: 2rem;
}
.slide-cta-btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 300;
  font-size: var(--k-cta-size);
  letter-spacing: var(--k-cta-spacing);
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 2.35rem;
  border: 1px solid rgba(196,162,101,0.5);
  color: var(--accent);
  cursor: pointer;
  background: rgba(196,162,101,0.06);
  transition: all 0.45s cubic-bezier(.25,.8,.25,1);
  white-space: nowrap;
}
.slide-cta-btn:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  letter-spacing: 0.3em;
}
.slide-cta-btn.slide-cta-btn--ghost {
  color: var(--text-mid);
  border-color: rgba(242,237,232,0.3);
  background: rgba(242,237,232,0.04);
}
.slide-cta-btn.slide-cta-btn--ghost:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

@media (max-width: 600px) {
  .slide-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }
  .slide-cta-btn {
    text-align: center;
    padding: 0.95rem 1.5rem;
    font-size: 0.68rem;
    white-space: normal;
  }
}

/* ════════════════════════════════════════════════════════════
   CONTACT FORM POPUP
   ════════════════════════════════════════════════════════════ */
#contact-popup {
  position: fixed; inset: 0; z-index: 950;
  background: rgba(8, 8, 8, 0.97);
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
}
#contact-popup.pop-open {
  opacity: 1; visibility: visible;
  transition: opacity 0.4s ease;
}
.contact-inner {
  width: 100%; max-width: 520px;
  position: relative;
}
.contact-close {
  position: absolute; top: -1rem; right: 0;
  width: 2.8rem; height: 2.8rem;
  background: transparent;
  border: 1px solid rgba(196,162,101,0.3);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color 0.3s;
}
.contact-close:hover { border-color: var(--accent); }
.contact-close svg { width: 1rem; height: 1rem; stroke: var(--text-mid); stroke-width: 1.5; fill: none; }
.contact-close:hover svg { stroke: var(--accent); }
.contact-eyebrow {
  font-family: var(--sans);
  font-size: 0.58rem; font-weight: 300;
  letter-spacing: 0.38em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.9rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.contact-eyebrow::before {
  content: ''; display: block; width: 1.5rem; height: 1px;
  background: var(--accent); flex-shrink: 0;
}
.contact-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.1; color: var(--text);
  margin-bottom: 2.2rem;
}
.contact-form {
  display: flex; flex-direction: column; gap: 1.4rem;
}
.contact-field {
  display: flex; flex-direction: column; gap: 0.5rem;
}
.contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}
.contact-field label {
  font-family: var(--sans); font-size: 0.55rem; font-weight: 300;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--text-dim);
}
.contact-field input,
.contact-field textarea {
  background: transparent;
  border: none; border-bottom: 1px solid rgba(196,162,101,0.2);
  color: var(--text); font-family: var(--sans); font-weight: 300;
  font-size: 0.88rem; padding: 0.55rem 0;
  outline: none; width: 100%;
  transition: border-color 0.3s ease;
}
.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--accent);
}
.contact-field textarea { resize: none; min-height: 72px; }
.contact-form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem;
}
.contact-submit {
  margin-top: 0.6rem;
  font-family: var(--sans); font-weight: 300;
  font-size: 0.68rem; letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bg); background: var(--accent);
  border: 1px solid var(--accent);
  padding: 1rem 2.6rem; cursor: pointer;
  align-self: flex-start;
  transition: all 0.4s ease;
}
.contact-submit:hover {
  background: transparent;
  color: var(--accent);
}
.contact-submit-note {
  font-family: var(--sans); font-size: 0.6rem; font-weight: 200;
  color: var(--text-dim); margin-top: 1rem; line-height: 1.6;
}
@media (max-width: 600px) {
  .contact-form-row { grid-template-columns: 1fr; }
  #contact-popup { padding: 1.5rem 1.2rem; align-items: flex-start; padding-top: 4rem; }
}
