/* ============================================================
   Diona — "Il Palazzo Lussuoso"
   Tuscan Terracotta · Royal Barolo · Lapis Lazuli · Champagne Gold · Warm Alabaster
   ZERO BLACK · Bold & Daring Luxury · Editorial Architectural Flair
   ============================================================ */

:root {
  /* A. Canvas & Architectural Ground (Luminous, Warm, Zero Black) */
  --canvas-bg: #FAF6F0;
  --canvas-surface: #FFFFFF;
  --canvas-warm: #F3ECE1;
  --canvas-inset: #EBE2D3;
  --canvas-tint: #F7EFE4;
  --hairline: rgba(100, 70, 50, 0.10);
  --hairline-solid: #E5DCCD;
  --hairline-gold: rgba(201, 150, 53, 0.35);

  /* B. Bold & Daring Italian Palette */
  /* 1. Tuscan Terracotta / Cotto Fiorentino */
  --terracotta: #C8522C;
  --terracotta-vivid: #DB5B33;
  --terracotta-deep: #A53C1A;
  --terracotta-glow: rgba(200, 82, 44, 0.22);
  --terracotta-subtle: #FBF0EB;

  /* 2. Royal Barolo / Amarone Velvet (Opulent Wine, NOT black) */
  --barolo: #541527;
  --barolo-rich: #6F1B34;
  --barolo-deep: #3F0C1B;
  --barolo-glow: rgba(84, 21, 39, 0.18);
  --barolo-subtle: #F6ECF0;

  /* 3. Lapis Lazuli Adriatico (Venetian Jewel Tone) */
  --lapis: #1D4F78;
  --lapis-bright: #2566A0;
  --lapis-subtle: #EBF2F8;

  /* 4. Champagne Gold & Burnished Brass */
  --gold: #C99635;
  --gold-bright: #E2B357;
  --gold-light: #F7EECD;
  --gold-seam: linear-gradient(90deg, transparent, #C99635 25%, #E2B357 50%, #C99635 75%, transparent);

  /* 5. Verde Giardino / Cypress */
  --cypress: #1E4D3E;
  --cypress-subtle: #EBF4F0;

  /* C. High-Contrast Editorial Inks (Rich espresso-wine, never black) */
  --ink: #26161D;
  --ink-2: #635058;
  --ink-3: #8E7982;
  --ink-on-dark: #FAF4EB;
  --ink-on-dark-2: #DFCFC6;
  --ink-on-dark-3: #B39F97;

  /* D. Ambient Lighting & Atmospheric Gradients */
  --sunlight-glow: radial-gradient(1000px circle at var(--mx, 50%) var(--my, 35%), rgba(217, 93, 52, 0.14), rgba(201, 150, 53, 0.08) 42%, transparent 70%);
  --barolo-gradient: linear-gradient(165deg, #541527 0%, #3F0C1B 100%);
  --terracotta-gradient: linear-gradient(145deg, #DB5B33 0%, #C8522C 55%, #A53C1A 100%);
  --gold-gradient: linear-gradient(135deg, #DEB157 0%, #C99635 60%, #AF7C25 100%);

  /* E. Shadows & Glassmorphic Elevation */
  --card-shadow: 0 16px 40px -14px rgba(84, 21, 39, 0.08), 0 2px 8px rgba(84, 21, 39, 0.03);
  --card-shadow-hover: 0 28px 60px -16px rgba(200, 82, 44, 0.20), 0 4px 14px rgba(84, 21, 39, 0.06);
  --glass-bg: rgba(250, 246, 240, 0.88);
  --glass-border: rgba(201, 150, 53, 0.24);

  /* F. Typography & Scale */
  --serif: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Plus Jakarta Sans', 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Space Mono', ui-monospace, Menlo, monospace;
  --pad: clamp(24px, 5.5vw, 88px);

  /* Motion tokens */
  --t-instant: 120ms;
  --t-swift: 250ms;
  --t-resolve: 400ms;
  --t-scene: 750ms;
  --t-ceremony: 1.2s;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-inout: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.175, .885, .32, 1.275);
}

/* ============================================================
   Base Setup
   ============================================================ */
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background: var(--canvas-bg);
}
body {
  margin: 0;
  background: var(--canvas-bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
::selection { background: var(--terracotta); color: #FFFFFF; }

.wrap { max-width: 1560px; margin: 0 auto; padding: 0 var(--pad); }
.sec { padding: clamp(80px, 10vw, 170px) 0; position: relative; }
.sec--tight { padding: clamp(50px, 6.5vw, 110px) 0; }

/* Section Themes (Zero Black) */
.barolo-section {
  background: var(--barolo-gradient);
  color: var(--ink-on-dark);
}
.barolo-section .muted { color: var(--ink-on-dark-2); }
.barolo-section .label { color: var(--gold-bright); }
.barolo-section .kintsugi { background: linear-gradient(90deg, transparent, #DEB157 50%, transparent); }
.barolo-section .numeral { -webkit-text-stroke: 1.5px var(--gold-bright); color: transparent; }

.terracotta-section {
  background: var(--terracotta-gradient);
  color: #FFFFFF;
}

.limestone-section {
  background: var(--canvas-warm);
  border-top: 1px solid var(--hairline-solid);
  border-bottom: 1px solid var(--hairline-solid);
}

/* ============================================================
   Typography System
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
}
.display-xl {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(56px, 8.5vw, 130px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 5.5vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 3.8vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.h3 {
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.15;
}
.body {
  font-size: 17px;
  line-height: 1.7;
  max-width: 65ch;
  text-wrap: pretty;
}
.label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.italic {
  font-style: italic;
  font-family: var(--serif);
  color: var(--terracotta);
}
p { margin: 0 0 1em; }
.muted { color: var(--ink-2); }
.mono { font-family: var(--mono); }

/* Outlined Roman Numerals — Italian Renaissance Architectural Motif */
.numeral {
  font-family: var(--serif);
  font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--terracotta);
  line-height: 1;
}
.numeral--xl { font-size: clamp(80px, 13vw, 210px); }

/* Gilded Seam Transitions */
.kintsugi {
  height: 1.5px;
  background: var(--gold-seam);
  transform: scaleX(0);
  transform-origin: 50% 50%;
  transition: transform var(--t-scene) var(--ease-out);
}
.kintsugi.is-in { transform: scaleX(1); }

/* Architectural Specimen Frame */
.specimen {
  position: relative;
  border: 1px solid var(--hairline-solid);
  padding: 18px;
  background: var(--canvas-surface);
  box-shadow: var(--card-shadow);
}
.specimen::before, .specimen::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
}
.specimen::before {
  top: -1px; left: -1px;
  border-top: 2px solid var(--terracotta);
  border-left: 2px solid var(--terracotta);
}
.specimen::after {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
}

/* Subtle Film Grain */
.grain {
  position: fixed; inset: -10%; z-index: 99; pointer-events: none; opacity: .025; mix-blend-mode: multiply;
  animation: grainShift 125ms steps(1) infinite;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes grainShift { 0%{transform:translate(0,0)} 25%{transform:translate(-2%,2%)} 50%{transform:translate(2%,-1%)} 75%{transform:translate(-1%,-2%)} 100%{transform:translate(0,0)} }

/* Molten Gold & Terracotta Scroll Filament */
.filament {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--terracotta), var(--gold-bright), var(--barolo));
  z-index: 130;
  box-shadow: 0 0 10px rgba(200, 82, 44, 0.4);
}

/* Ambient Sunlit Vault */
.vault { position: relative; }
.vault::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 0%, rgba(201, 150, 53, 0.08), rgba(200, 82, 44, 0.04) 40%, transparent 65%);
  pointer-events: none;
}

/* ============================================================
   Reveals & Motion Primitives
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--t-scene) var(--ease-out), transform var(--t-scene) var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

.media {
  overflow: hidden;
  background: var(--canvas-warm);
  position: relative;
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-scene) var(--ease-out);
}

/* Word-by-word mask reveal */
.line { display: block; overflow: hidden; }
.line > span {
  display: inline-block;
  transform: translateY(110%) rotate(1.2deg);
  transition: transform var(--t-ceremony) var(--ease-out);
  transition-delay: var(--d, 0s);
}
.is-in .line > span { transform: none; }

.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .1em; margin-bottom: -.1em; }
.w > span {
  display: inline-block;
  transform: translateY(115%) rotate(0.8deg);
  transition: transform var(--t-ceremony) var(--ease-out);
  transition-delay: var(--wd, 0s);
}
.is-in .w > span { transform: none; }

/* Image Breathing Effect */
.breath img { animation: breathe 16s var(--ease-inout) infinite alternate; }
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.05); } }

/* ============================================================
   Site Header (Frosted Alabaster Glass & Terracotta Accents)
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--pad);
  border-bottom: 1px solid transparent;
  transition: transform var(--t-resolve) var(--ease-out), background-color var(--t-resolve) ease, border-color var(--t-resolve) ease, box-shadow var(--t-resolve) ease;
}
.site-header.veiled {
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--hairline-solid);
  box-shadow: 0 10px 30px -10px rgba(84, 21, 39, 0.06);
}
.site-header.hidden { transform: translateY(-100%); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-name {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 0.18em;
  font-weight: 400;
  color: var(--barolo);
  line-height: 1;
}
.brand-gem {
  width: 10px;
  height: 10px;
  background: var(--terracotta);
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(200, 82, 44, 0.4);
}
.brand-sub {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 3px;
}

.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-link {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  position: relative;
  padding: 6px 0;
  transition: color var(--t-swift) var(--ease-out);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-swift) var(--ease-out);
}
.nav-link:hover { color: var(--terracotta); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--terracotta); font-weight: 700; }

.header-right { display: flex; align-items: center; gap: 16px; }

/* ============================================================
   Buttons & Interactive CTAs
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 16px 30px;
  cursor: pointer;
  will-change: transform;
  border: 1px solid transparent;
  transition: transform var(--t-swift) var(--ease-out), background var(--t-swift) var(--ease-out), color var(--t-swift) var(--ease-out), border-color var(--t-swift) var(--ease-out), box-shadow var(--t-swift) var(--ease-out);
}

/* Primary Button: Tuscan Terracotta with subtle gold sheen */
.btn.primary {
  background: var(--terracotta);
  color: #FFFFFF;
  border-color: var(--terracotta);
  box-shadow: 0 8px 24px -6px rgba(200, 82, 44, 0.35);
  position: relative;
  overflow: hidden;
}
.btn.primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  transform: translateX(-100%);
  transition: transform 600ms var(--ease-out);
}
.btn.primary:hover {
  background: var(--terracotta-vivid);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -6px rgba(200, 82, 44, 0.45);
}
.btn.primary:hover::before { transform: translateX(100%); }
.btn.primary:active { background: var(--terracotta-deep); transform: translateY(0); }

/* Secondary Button: Clean Alabaster Surface with Gilded Border */
.btn.secondary {
  background: var(--canvas-surface);
  border-color: var(--terracotta);
  color: var(--terracotta);
  box-shadow: 0 4px 16px -4px rgba(84, 21, 39, 0.06);
}
.btn.secondary:hover {
  background: var(--terracotta-subtle);
  border-color: var(--terracotta-vivid);
  color: var(--terracotta-deep);
  transform: translateY(-2px);
}

/* Tertiary Link Button */
.btn.tertiary {
  padding: 4px 0;
  background: transparent;
  color: var(--terracotta);
  border: none;
  position: relative;
}
.btn.tertiary::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-swift) var(--ease-out);
}
.btn.tertiary:hover::after { transform: scaleX(1); }

/* Barolo Accent Button */
.btn.barolo {
  background: var(--barolo);
  color: var(--ink-on-dark);
  box-shadow: 0 8px 24px -6px rgba(84, 21, 39, 0.35);
}
.btn.barolo:hover {
  background: var(--barolo-rich);
  transform: translateY(-2px);
}

/* ============================================================
   Prelude Ceremony (Luminous Alabaster & Gilded Seam)
   ============================================================ */
.prelude {
  position: fixed; inset: 0; z-index: 200;
  background: var(--canvas-bg);
  display: grid; place-items: center;
  transition: transform var(--t-scene) var(--ease-inout), opacity var(--t-scene) ease;
}
.prelude.done {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
.prelude-inner { text-align: center; }
.prelude-word {
  font-family: var(--serif);
  font-size: clamp(36px, 6vw, 68px);
  letter-spacing: 0.28em;
  color: var(--barolo);
  font-weight: 300;
  opacity: 0;
  animation: preludeFade 800ms ease forwards 300ms;
}
.prelude-sub {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-top: 12px;
  opacity: 0;
  animation: preludeFade 800ms ease forwards 500ms;
}
.prelude-seam {
  width: min(520px, 70vw);
  height: 2px;
  background: var(--gold-seam);
  margin: 32px auto 0;
  transform: scaleX(0);
  transform-origin: left;
  animation: preludeDraw 900ms var(--ease-out) forwards 600ms;
}
@keyframes preludeDraw { to { transform: scaleX(1); } }
@keyframes preludeFade { to { opacity: 1; } }

/* ============================================================
   Hero (Luminous Sunlit Architectural Grandeur)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--canvas-bg);
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  animation: breathe 18s var(--ease-inout) infinite alternate;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(250,246,240,0.40) 0%, rgba(250,246,240,0.15) 35%, rgba(250,246,240,0.92) 88%, #FAF6F0 100%);
}
.hero-spot {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.hero-spot::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(700px circle at var(--mx, 50%) var(--my, 40%), rgba(201, 150, 53, 0.15), rgba(200, 82, 44, 0.08) 35%, transparent 65%);
}

.hero-inner {
  position: relative;
  z-index: 4;
  width: 100%;
  padding: 0 var(--pad) clamp(56px, 8.5vw, 130px);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 24px;
}
.hero-eyebrow::before {
  content: '';
  width: 38px;
  height: 2px;
  background: var(--terracotta);
}
.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(54px, 8vw, 128px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 16ch;
}
.hero-title .italic { color: var(--terracotta); font-style: italic; }
.hero-sub {
  margin: 28px 0 0;
  max-width: 54ch;
  font-size: 19px;
  color: var(--ink-2);
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  gap: 18px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  right: var(--pad);
  bottom: 32px;
  z-index: 4;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  writing-mode: vertical-rl;
}

/* ============================================================
   Section Openers & Editorial Framing
   ============================================================ */
.opener {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: clamp(34px, 5vw, 70px);
}
.opener .numeral {
  font-size: clamp(48px, 6.5vw, 98px);
}
.opener h2 { flex: 1; color: var(--ink); }
.opener .mono-link {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  white-space: nowrap;
  transition: transform var(--t-swift) ease;
}
.opener .mono-link:hover {
  transform: translateX(4px);
  color: var(--terracotta-deep);
}

/* ============================================================
   Horizontal Drag Rail (Inertia + Inner Parallax)
   ============================================================ */
.rail-edge { position: relative; }
.rail-edge::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 140px;
  background: linear-gradient(90deg, transparent, var(--canvas-bg));
  pointer-events: none;
}
.rail {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scrollbar-width: none;
  cursor: grab;
  padding: 8px var(--pad) 28px;
  scroll-behavior: auto;
}
.rail::-webkit-scrollbar { display: none; }
.rail.dragging { cursor: grabbing; }

.rail-card {
  flex: 0 0 min(360px, 78vw);
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--canvas-surface);
  border-radius: 4px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--hairline-solid);
  transition: transform var(--t-swift) var(--ease-out), box-shadow var(--t-swift) var(--ease-out);
}
.rail-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--terracotta);
}
.rail-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-scene) var(--ease-out);
}
.rail-card:hover img { transform: scale(1.06); }
.rail-card .rail-label {
  position: absolute;
  left: 24px; bottom: 54px;
  z-index: 2;
  font-family: var(--serif);
  font-size: 28px;
  color: #FFFFFF;
  text-shadow: 0 2px 10px rgba(84, 21, 39, 0.4);
}
.rail-card .rail-plate {
  position: absolute;
  left: 24px; bottom: 24px;
  z-index: 2;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold-bright);
}
.rail-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(84, 21, 39, 0.78) 100%);
}

/* ============================================================
   Product Grid & Interactive 3D Cards
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3.5vw, 56px) clamp(24px, 2.8vw, 44px);
  perspective: 1600px;
}
.product-card {
  display: block;
  position: relative;
  background: var(--canvas-surface);
  border: 1px solid var(--hairline-solid);
  border-radius: 4px;
  padding: 16px;
  box-shadow: var(--card-shadow);
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow var(--t-swift) var(--ease-out), border-color var(--t-swift) var(--ease-out);
}
.product-card:hover {
  box-shadow: var(--card-shadow-hover);
  border-color: var(--terracotta);
}
.product-card .media {
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.product-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dynamic Specular Sheen travelling across the card */
.glint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--t-swift) ease;
  background: radial-gradient(350px circle at var(--glx, 50%) var(--gly, 50%), rgba(201, 150, 53, 0.28), transparent 60%);
}
.ember {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--t-swift) ease;
  background: radial-gradient(280px circle at var(--x, 50%) var(--y, 50%), rgba(200, 82, 44, 0.18), transparent 50%);
}
.product-card:hover .glint, .product-card:hover .ember { opacity: 1; }

.plate {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 16px 0 6px;
}
.pc-name {
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
  color: var(--ink);
}
.pc-spec {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 8px;
}
.pc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline-solid);
  opacity: 0.7;
  transition: opacity var(--t-swift) var(--ease-out);
}
.product-card:hover .pc-foot { opacity: 1; }
.pc-star {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink-2);
}
.pc-star:hover { color: var(--terracotta); }
.pc-view {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--terracotta);
}

/* ============================================================
   Catalogue Hub & Filter Rails
   ============================================================ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px);
}
.cat-tile {
  display: block;
  position: relative;
  background: var(--canvas-surface);
  border: 1px solid var(--hairline-solid);
  padding: 16px;
  box-shadow: var(--card-shadow);
  border-radius: 4px;
  transition: transform var(--t-swift) var(--ease-out), box-shadow var(--t-swift) var(--ease-out), border-color var(--t-swift) var(--ease-out);
}
.cat-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--terracotta);
}
.cat-tile .media { aspect-ratio: 3 / 4; border-radius: 2px; }
.cat-tile .media img { transition: transform var(--t-scene) var(--ease-out); }
.cat-tile:hover .media img { transform: scale(1.06); }
.cat-tile .hc {
  font-family: var(--serif);
  font-size: clamp(24px, 2.2vw, 34px);
  margin-top: 16px;
  color: var(--ink);
  transition: color var(--t-swift) ease;
}
.cat-tile:hover .hc { color: var(--terracotta); }

.filter-rail {
  background: var(--canvas-surface);
  border: 1px solid var(--hairline-solid);
  padding: 24px;
  border-radius: 4px;
  box-shadow: var(--card-shadow);
}
.filter-rail h4 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 16px;
}
.chip {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid var(--hairline-solid);
  background: var(--canvas-warm);
  color: var(--ink-2);
  margin: 0 8px 10px 0;
  cursor: pointer;
  border-radius: 30px;
  transition: all var(--t-instant) ease;
}
.chip:hover {
  background: var(--terracotta-subtle);
  color: var(--terracotta);
  border-color: var(--terracotta);
}
.chip.active {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #FFFFFF;
  box-shadow: 0 4px 12px -2px rgba(200, 82, 44, 0.35);
}

/* ============================================================
   Product Detail & Quick-View Modal
   ============================================================ */
.detail { padding: clamp(40px, 6vw, 90px) 0 clamp(80px, 10vw, 150px); }
.back-link {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: inline-block;
  margin-bottom: 32px;
  transition: color var(--t-swift) ease, transform var(--t-swift) ease;
}
.back-link::before { content: '← '; color: var(--terracotta); }
.back-link:hover { color: var(--terracotta); transform: translateX(-4px); }

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
}
.detail-media { position: sticky; top: 110px; }
.detail-media .media {
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  box-shadow: var(--card-shadow-hover);
  border: 1px solid var(--hairline-solid);
}
.detail-name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(38px, 4.6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.detail-tagline {
  margin: 18px 0 0;
  font-size: 19px;
  color: var(--terracotta);
  font-weight: 500;
}
.detail-desc {
  margin: 20px 0 0;
  color: var(--ink-2);
  max-width: 62ch;
  line-height: 1.7;
}

/* Florentine Spec Sheet */
.datasheet {
  background: var(--canvas-surface);
  color: var(--ink);
  padding: 24px;
}
.datasheet .row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline-solid);
  font-size: 14px;
}
.datasheet .row:last-child { border-bottom: none; }
.datasheet .k {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.detail-actions { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.features { margin: 32px 0 0; }
.features h3 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 14px;
}
.features ul { list-style: none; margin: 0; padding: 0; }
.features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline-solid);
  color: var(--ink-2);
  font-size: 15px;
}
.features li::before { content: '— '; color: var(--terracotta); font-weight: 700; }

/* Quick-View Modal (FLIP) */
.quickview {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(40, 20, 28, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: auto;
  animation: qvIn var(--t-scene) var(--ease-out);
}
@keyframes qvIn { from { opacity: 0; } to { opacity: 1; } }

.qv-bar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px var(--pad);
  border-bottom: 1px solid var(--hairline-solid);
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
}
.qv-title {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--barolo);
}
.qv-actions { display: flex; align-items: center; gap: 20px; }
.qv-link {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.qv-link:hover { color: var(--terracotta-deep); }
.qv-close {
  background: var(--canvas-surface);
  border: 1px solid var(--hairline-solid);
  color: var(--ink);
  width: 42px; height: 42px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: all var(--t-swift) ease;
}
.qv-close:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
  transform: rotate(90deg);
}

/* ============================================================
   Materials & Swatches (Tactile Physical 3D Finish Cards)
   ============================================================ */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.material-tile {
  display: block;
  background: var(--canvas-surface);
  border: 1px solid var(--hairline-solid);
  border-radius: 4px;
  padding: 20px;
  box-shadow: var(--card-shadow);
  transition: transform var(--t-swift) var(--ease-out), box-shadow var(--t-swift) var(--ease-out), border-color var(--t-swift) var(--ease-out);
}
.material-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--terracotta);
}
.material-tile .chip-swatch {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2), 0 8px 20px -6px rgba(84, 21, 39, 0.15);
  transition: transform var(--t-swift) var(--ease-out);
}
.material-tile:hover .chip-swatch {
  transform: scale(1.04);
}
.mat-name {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--ink);
  margin: 16px 0 4px;
}
.mchip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 14px;
  border: 1px solid var(--hairline-solid);
  background: var(--canvas-surface);
  border-radius: 30px;
  margin: 0 6px 6px 0;
  color: var(--ink-2);
}
.mchip .dot { width: 10px; height: 10px; border-radius: 50%; }

/* ============================================================
   Projects (Curated Architectural Case Studies)
   ============================================================ */
.stack { position: relative; }
.panel {
  position: sticky; top: 0;
  min-height: 100vh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: var(--canvas-bg);
}
.panel img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.82;
  animation: breathe 16s var(--ease-inout) infinite alternate;
}
.panel-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(84, 21, 39, 0.20) 0%, rgba(84, 21, 39, 0.85) 90%);
}
.panel-inner {
  position: relative; z-index: 2;
  width: 100%;
  padding: 0 var(--pad) clamp(50px, 7vw, 110px);
  color: #FFFFFF;
}
.panel-count {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold-bright);
  margin-bottom: 14px;
}
.panel-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 5.5vw, 84px);
  line-height: 1.02;
  color: #FFFFFF;
}
.panel-meta {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-on-dark-2);
  margin-top: 16px;
}

/* ============================================================
   Process (Sticky Architectural Chapters)
   ============================================================ */
.chapters { display: flex; flex-direction: column; }
.chapter {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: clamp(24px, 5vw, 80px);
  padding: clamp(60px, 8vw, 120px) 0;
  border-top: 1px solid var(--hairline-solid);
}
.chapter .num-col { position: sticky; top: 120px; align-self: start; }
.chapter .numeral { font-size: clamp(72px, 10vw, 160px); }
.chapter h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 44px);
  color: var(--ink);
  margin-bottom: 16px;
}
.chapter p { color: var(--ink-2); max-width: 62ch; font-size: 18px; line-height: 1.7; }

/* ============================================================
   Editorial Mission & Story Sections
   ============================================================ */
.mission {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 4.6vw, 70px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--barolo);
}
.story p {
  font-family: var(--serif);
  font-size: clamp(24px, 2.8vw, 42px);
  line-height: 1.25;
  margin: 0 0 28px;
  max-width: 28ch;
  color: var(--ink);
}
.plates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.plate-card {
  display: block;
  background: var(--canvas-surface);
  border: 1px solid var(--hairline-solid);
  padding: 16px;
  border-radius: 4px;
  box-shadow: var(--card-shadow);
  transition: transform var(--t-swift) var(--ease-out), box-shadow var(--t-swift) var(--ease-out);
}
.plate-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
}
.plate-card .pc-fig {
  aspect-ratio: 3 / 4;
  background: var(--canvas-warm);
  overflow: hidden;
  border-radius: 2px;
}
.plate-card .pc-fig img { width: 100%; height: 100%; object-fit: cover; }
.plate-card .cap {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-top: 14px;
}

/* ============================================================
   Forms & Contact Card
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 84px);
  align-items: start;
}
.form-card {
  background: var(--canvas-surface);
  color: var(--ink);
  padding: 36px;
  border-radius: 4px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--hairline-solid);
}
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.field label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.field input, .field textarea, .field select {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--hairline-solid);
  padding: 12px 0;
  outline: none;
  transition: border-color var(--t-swift) ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--terracotta);
}
.field textarea { resize: vertical; min-height: 100px; }
.showrooms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

/* ============================================================
   Stats Section
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.stat {
  background: var(--canvas-surface);
  padding: 28px;
  border: 1px solid var(--hairline-solid);
  border-radius: 4px;
  text-align: center;
  box-shadow: var(--card-shadow);
}
.stat .fig {
  font-family: var(--serif);
  font-size: clamp(44px, 4.8vw, 76px);
  color: var(--terracotta);
  line-height: 1;
  font-weight: 300;
}
.stat .cap {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-top: 10px;
}

/* ============================================================
   Site Footer (Grand Gilded Exit — Zero Black)
   ============================================================ */
.site-footer {
  background: var(--barolo-deep);
  color: var(--ink-on-dark);
  border-top: 2px solid var(--gold);
  padding: clamp(60px, 8vw, 120px) var(--pad) 40px;
  position: relative;
  overflow: hidden;
}
.foot-word {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(68px, 17vw, 270px);
  line-height: 0.88;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(226, 179, 87, 0.22);
  user-select: none;
  pointer-events: none;
}
.foot-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.6fr;
  gap: 40px;
  margin-top: 48px;
}
.foot-h {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 0 0 16px;
}
.foot-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-on-dark-2);
}
.foot-col a {
  transition: color var(--t-swift) ease, transform var(--t-swift) ease;
}
.foot-col a:hover {
  color: var(--gold-bright);
  transform: translateX(4px);
}
.foot-col p { margin: 0; line-height: 1.8; }
.back-top {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 44px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-bright);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--t-swift) ease;
}
.back-top .seam-v {
  width: 2px;
  height: 48px;
  background: var(--gold-seam);
}
.back-top:hover { color: #FFFFFF; }
.foot-line {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(226, 179, 87, 0.15);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-on-dark-3);
}

/* ============================================================
   Custom Fluid Interactive Cursor
   ============================================================ */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 300;
  transform: translate(-100px, -100px);
}
.cursor-dot {
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--terracotta);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(200, 82, 44, 0.5);
}
.cursor-ring {
  width: 38px; height: 38px;
  margin: -19px 0 0 -19px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: width var(--t-swift) var(--ease-out), height var(--t-swift) var(--ease-out), margin var(--t-swift) var(--ease-out), border-color var(--t-swift) ease, background-color var(--t-swift) ease;
}
.cursor-ring .cur-label {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #FFFFFF;
  opacity: 0;
  transition: opacity var(--t-swift) ease;
}
.cursor-ring.is-view {
  width: 72px; height: 72px;
  margin: -36px 0 0 -36px;
  background: var(--terracotta);
  border-color: var(--terracotta);
  box-shadow: 0 8px 24px -4px rgba(200, 82, 44, 0.45);
}
.cursor-ring.is-view .cur-label { opacity: 1; }
.cursor-ring.is-add {
  width: 58px; height: 58px;
  margin: -29px 0 0 -29px;
  border-color: var(--barolo);
  background: var(--barolo);
}
.cursor-ring.is-add .cur-label { opacity: 1; }

@media (hover: hover) and (pointer: fine) {
  body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }
}

/* ============================================================
   Responsive Adaptations
   ============================================================ */
@media (max-width: 1024px) {
  .site-nav { display: none; }
  .detail-grid, .contact-grid, .chapter { grid-template-columns: 1fr; }
  .detail-media, .chapter .num-col { position: static; }
  .product-grid, .cat-grid, .materials-grid, .plates, .stats { grid-template-columns: repeat(2, 1fr); }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .product-grid, .cat-grid, .materials-grid, .plates, .stats, .showrooms { grid-template-columns: 1fr; }
  .datasheet .row { grid-template-columns: 1fr; gap: 4px; }
  .foot-cols { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
}

/* ============================================================
   Reduced Motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal, .w > span, .line > span { opacity: 1 !important; transform: none !important; }
  .kintsugi { transform: scaleX(1); }
  .prelude { display: none; }
  .grain { animation: none; }
  .breath img, .hero-bg img, .panel img { animation: none; }
  .hero-spot { display: none; }
  .cursor-dot, .cursor-ring { display: none; }
  .product-card { transform: none !important; }
  .pc-foot { opacity: 1; transform: none; }
}
