/* ==========================================================================
   DAIN LIFE — AWWWARDS SOTD EDITION
   Architectural Monograph & Wabi-Sabi Sensory Sanctuary
   Inspired by Aman, Six Senses, Hoshinoya & Cereal Magazine
   ========================================================================== */

:root {
  /* Travertine & Wabi-Sabi Earth Palette (Zero Corporate Blue/Neon) */
  --bg-alabaster: #F6F2EB;
  --bg-travertine: #EDE6DA;
  --bg-sandstone: #E2D9C8;
  --bg-obsidian: #13110F;
  --bg-charcoal: #1C1916;
  --bg-espresso: #26211D;

  --ink-primary: #1B1815;
  --ink-secondary: #5A524A;
  --ink-muted: #8C8277;
  --ink-ivory: #F5F0E6;
  --ink-ivory-muted: #B5ABA0;

  --bronze-raw: #9A7B56;
  --bronze-light: #C5A880;
  --bronze-pale: rgba(154, 123, 86, 0.16);
  --terracotta: #7D523C;
  --moss-deep: #2C3E35;

  /* Architectural Hairlines */
  --line-light: rgba(27, 24, 21, 0.1);
  --line-strong: rgba(27, 24, 21, 0.22);
  --line-dark: rgba(245, 240, 230, 0.12);
  --line-bronze: rgba(197, 168, 128, 0.35);

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Easings */
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-silk: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ==========================================================================
   1. Base Reset & Native Scroll Integrity
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-alabaster);
  color: var(--ink-primary);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-alabaster);
  color: var(--ink-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  selection-background-color: var(--bronze-raw);
}

::selection {
  background: var(--ink-primary);
  color: var(--bg-alabaster);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  user-select: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
}

ul {
  list-style: none;
}

/* ==========================================================================
   2. Tactile Washi Paper / Film Grain & Ambient Light Spotlight
   ========================================================================== */
.noise-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9990;
  opacity: 0.042;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.ambient-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 168, 128, 0.14) 0%, rgba(197, 168, 128, 0.04) 45%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate3d(-50%, -50%, 0);
  will-change: transform;
  transition: opacity 0.6s ease;
}

/* Architectural Vertical Grid Guide Lines */
.architectural-grid-lines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  display: grid;
  grid-template-columns: 64px 1fr 1fr 1fr 64px;
  max-width: 100vw;
}

.architectural-grid-lines span {
  border-right: 1px solid rgba(27, 24, 21, 0.045);
  height: 100%;
}

.architectural-grid-lines span:last-child {
  border-right: none;
}

@media (max-width: 1024px) {
  .architectural-grid-lines {
    display: none;
  }
}

/* ==========================================================================
   3. Custom Contextual Cursor (Desktop Fine Pointer)
   ========================================================================== */
@media (pointer: fine) {
  .custom-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--bronze-raw);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate3d(-50%, -50%, 0);
    transition: width 0.3s var(--ease-expo), height 0.3s var(--ease-expo), background 0.3s ease;
  }

  .custom-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(154, 123, 86, 0.55);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate3d(-50%, -50%, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.45s var(--ease-expo), height 0.45s var(--ease-expo), background 0.4s var(--ease-expo), border-color 0.4s ease;
  }

  .custom-cursor-label {
    font-family: var(--font-sans);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-ivory);
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.3s ease, transform 0.35s var(--ease-expo);
    white-space: nowrap;
  }

  body.cursor-expanded .custom-cursor-dot {
    opacity: 0;
  }

  body.cursor-expanded .custom-cursor-ring {
    width: 104px;
    height: 104px;
    background: rgba(19, 17, 15, 0.88);
    backdrop-filter: blur(8px);
    border-color: var(--bronze-light);
  }

  body.cursor-expanded .custom-cursor-label {
    opacity: 1;
    transform: scale(1);
  }
}

@media (pointer: coarse) {
  .custom-cursor-dot,
  .custom-cursor-ring,
  .ritual-hover-preview {
    display: none !important;
  }
}

/* ==========================================================================
   4. Preloader Curtain ("Nhập Thiền — Curtain Reveal")
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9995;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
}

.preloader-curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  background: var(--bg-obsidian);
  transition: transform 1.35s cubic-bezier(0.77, 0, 0.175, 1);
}

.preloader-curtain.left {
  left: 0;
  border-right: 1px solid rgba(197, 168, 128, 0.15);
}

.preloader-curtain.right {
  right: 0;
}

.preloader.is-loaded {
  pointer-events: none;
}

.preloader.is-loaded .preloader-curtain.left {
  transform: translateX(-101%);
}

.preloader.is-loaded .preloader-curtain.right {
  transform: translateX(101%);
}

.preloader-center {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--ink-ivory);
  transition: opacity 0.6s ease, transform 0.6s var(--ease-expo);
}

.preloader.is-loaded .preloader-center {
  opacity: 0;
  transform: translateY(-24px);
}

.preloader-logo-mark {
  width: 84px;
  height: 84px;
  object-fit: contain;
  margin: 0 auto 20px;
  filter: drop-shadow(0 8px 28px rgba(41, 196, 246, 0.25));
  animation: logoPulseIn 1.4s var(--ease-expo) forwards;
}

@keyframes logoPulseIn {
  from {
    opacity: 0;
    transform: scale(0.86) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.preloader-brand {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-ivory);
  margin-bottom: 6px;
}

.preloader-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--bronze-light);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.preloader-counter {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-style: italic;
  font-weight: 300;
  color: var(--bronze-light);
}

/* ==========================================================================
   5. Editorial Top Navigation Bar (Monograph Header)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 500;
  border-bottom: 1px solid var(--line-light);
  background: rgba(246, 242, 235, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}

.header-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 76px;
  padding: 0 clamp(20px, 2.5vw, 40px);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  border-right: 1px solid var(--line-light);
  height: 100%;
  padding-right: clamp(16px, 1.8vw, 28px);
}

.header-logo-mark {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-expo);
}

.header-brand:hover .header-logo-mark {
  transform: scale(1.06);
}

.header-brand-text {
  display: flex;
  flex-direction: column;
}

.header-brand-name {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1;
  color: var(--ink-primary);
  white-space: nowrap;
}

.header-brand-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.78rem;
  color: var(--bronze-raw);
  letter-spacing: 0.06em;
  margin-top: 3px;
  white-space: nowrap;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.8vw, 32px);
}

.header-nav-link {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.header-nav-link .nav-roman {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--bronze-raw);
  margin-right: 6px;
}

.header-nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--ink-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-expo);
}

.header-nav-link:hover {
  color: var(--ink-primary);
}

.header-nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  height: 100%;
  border-left: 1px solid var(--line-light);
  padding-left: clamp(16px, 1.8vw, 28px);
  gap: 14px;
}

/* Minimalist SVG Soundwave Button */
.soundwave-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 8px 14px;
  border: 1px solid var(--line-light);
  border-radius: 100px;
  white-space: nowrap;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.soundwave-btn:hover {
  border-color: var(--bronze-raw);
}

.soundwave-bars {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 12px;
}

.soundwave-bars span {
  display: block;
  width: 1.5px;
  background: var(--bronze-raw);
  height: 3px;
  transition: height 0.3s ease;
}

.soundwave-btn.is-playing .soundwave-bars span:nth-child(1) {
  animation: eqBar 0.9s ease-in-out infinite alternate;
}
.soundwave-btn.is-playing .soundwave-bars span:nth-child(2) {
  animation: eqBar 0.65s ease-in-out 0.15s infinite alternate;
}
.soundwave-btn.is-playing .soundwave-bars span:nth-child(3) {
  animation: eqBar 0.8s ease-in-out 0.3s infinite alternate;
}
.soundwave-btn.is-playing .soundwave-bars span:nth-child(4) {
  animation: eqBar 0.7s ease-in-out 0.1s infinite alternate;
}

@keyframes eqBar {
  0% { height: 3px; }
  100% { height: 12px; }
}

.soundwave-text {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  white-space: nowrap;
}

/* Header Reserve CTA */
.header-reserve-btn {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-ivory);
  background: var(--ink-primary);
  padding: 12px 24px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  transition: background 0.4s var(--ease-expo), color 0.4s ease;
}

.header-reserve-btn:hover {
  background: var(--bronze-raw);
}

.mobile-menu-trigger {
  display: none;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ==========================================================================
   6. Hero Section — Monumental Typography & Expanding Architectural Arch
   ========================================================================== */
.hero-monograph {
  position: relative;
  padding-top: 76px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-light);
}

/* Top Architectural Metadata Strip */
.hero-meta-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  border-bottom: 1px solid var(--line-light);
  padding: 14px 64px;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.hero-meta-strip div:nth-child(2),
.hero-meta-strip div:nth-child(3) {
  text-align: center;
}

.hero-meta-strip div:last-child {
  text-align: right;
}

/* Editorial Stage */
.hero-stage {
  position: relative;
  padding: 56px 64px 0;
  display: grid;
  grid-template-columns: 1fr;
}

.hero-headline-composition {
  position: relative;
  z-index: 3;
  pointer-events: none;
}

.hero-kicker-line {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.hero-kicker-line .roman {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--bronze-raw);
}

.hero-kicker-line .rule {
  width: 48px;
  height: 1px;
  background: var(--bronze-raw);
}

.hero-kicker-line .label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-secondary);
}

.hero-display-title {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 7.8vw, 8.2rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--ink-primary);
}

.hero-display-title .line-1 {
  display: block;
}

.hero-display-title .line-2 {
  display: block;
  padding-left: 11vw;
  font-style: italic;
  font-weight: 400;
  color: var(--bronze-raw);
}

.hero-display-title .line-3 {
  display: block;
  padding-left: 4vw;
}

/* Monumental Arch Portal Composition */
.hero-arch-composition {
  display: grid;
  grid-template-columns: minmax(250px, 300px) minmax(440px, 1fr) minmax(200px, 240px);
  align-items: end;
  gap: 36px;
  margin-top: 24px;
  padding-bottom: 64px;
  position: relative;
  z-index: 2;
}

.hero-editorial-aside {
  padding-bottom: 24px;
}

.hero-aside-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--ink-primary);
  margin-bottom: 20px;
}

.hero-aside-body {
  font-size: 0.88rem;
  color: var(--ink-secondary);
  line-height: 1.75;
  margin-bottom: 32px;
}

.editorial-cta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  pointer-events: all;
}

.btn-architectural {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 16px 32px;
  background: var(--ink-primary);
  color: var(--ink-ivory);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.45s var(--ease-expo), transform 0.45s var(--ease-expo);
}

.btn-architectural:hover {
  background: var(--bronze-raw);
  transform: translateY(-2px);
}

.btn-architectural svg {
  transition: transform 0.4s var(--ease-expo);
}

.btn-architectural:hover svg {
  transform: translateX(6px);
}

.link-underlined {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.link-underlined:hover {
  color: var(--ink-primary);
  border-color: var(--ink-primary);
}

/* The Sweeping Arch Mask */
.hero-arch-portal-wrap {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

.hero-arch-mask {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4.8;
  border-radius: 500px 500px 0 0;
  overflow: hidden;
  border: 1px solid var(--line-bronze);
  background: var(--bg-travertine);
  transform-origin: bottom center;
  will-change: transform;
}

.hero-arch-mask img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
}

.hero-arch-caption {
  position: absolute;
  bottom: 20px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(19, 17, 15, 0.65);
  backdrop-filter: blur(12px);
  color: var(--ink-ivory);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Right Column Secondary Arch Miniature */
.hero-secondary-vignette {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-bottom: 24px;
}

.vignette-arch-small {
  width: 210px;
  aspect-ratio: 3 / 4;
  border-radius: 200px 200px 0 0;
  overflow: hidden;
  border: 1px solid var(--line-light);
  margin-bottom: 18px;
}

.vignette-arch-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-expo);
}

.vignette-arch-small:hover img {
  transform: scale(1.06);
}

.vignette-meta {
  text-align: right;
  font-size: 0.72rem;
  color: var(--ink-muted);
  letter-spacing: 0.1em;
}

.vignette-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  font-style: italic;
  color: var(--ink-primary);
  letter-spacing: 0;
  margin-bottom: 2px;
}

/* ==========================================================================
   7. Kinetic Typography Marquee (Slow Meditative Ticker)
   ========================================================================== */
.kinetic-marquee {
  border-bottom: 1px solid var(--line-light);
  background: var(--bg-travertine);
  padding: 26px 0;
  overflow: hidden;
  display: flex;
  white-space: nowrap;
}

.marquee-track {
  display: flex;
  align-items: center;
  animation: marqueeScroll 42s linear infinite;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  padding-right: 36px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
  font-weight: 300;
  color: var(--ink-primary);
  letter-spacing: 0.04em;
}

.marquee-item em {
  font-style: italic;
  color: var(--bronze-raw);
}

.marquee-diamond {
  width: 7px;
  height: 7px;
  border: 1px solid var(--bronze-raw);
  transform: rotate(45deg);
  display: inline-block;
}

@keyframes marqueeScroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* ==========================================================================
   8. Chapter I: Philosophical Monograph & Asymmetrical Collage
   ========================================================================== */
.philosophy-monograph {
  padding: 140px 64px;
  border-bottom: 1px solid var(--line-light);
  position: relative;
}

.monograph-grid {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 380px;
  gap: 40px;
  align-items: start;
}

.monograph-index {
  position: sticky;
  top: 120px;
}

.index-number {
  font-family: var(--font-display);
  font-size: 4.2rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1;
  color: var(--bronze-raw);
  display: block;
  margin-bottom: 12px;
}

.index-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  display: block;
  padding-top: 12px;
  border-top: 1px solid var(--line-light);
}

.monograph-narrative {
  max-width: 640px;
}

.monograph-lead {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.3vw, 3.1rem);
  font-weight: 400;
  line-height: 1.24;
  color: var(--ink-primary);
  margin-bottom: 40px;
}

.monograph-lead em {
  font-style: italic;
  color: var(--bronze-raw);
}

.monograph-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  font-size: 0.94rem;
  color: var(--ink-secondary);
  line-height: 1.85;
  margin-bottom: 56px;
}

/* Architectural Specs Table (No cards, pure hairline ledger) */
.architectural-ledger {
  border-top: 1px solid var(--line-strong);
}

.ledger-row {
  display: grid;
  grid-template-columns: 52px 135px 1fr;
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-light);
  align-items: baseline;
  font-size: 0.88rem;
}

.ledger-num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--bronze-raw);
  font-size: 1.05rem;
}

.ledger-title {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: var(--ink-primary);
}

.ledger-detail {
  color: var(--ink-secondary);
}

.monograph-visual-stack {
  position: relative;
}

.monograph-diptych-stage {
  position: relative;
  padding-bottom: 52px;
}

.stack-frame-tall {
  width: 88%;
  margin-left: auto;
  aspect-ratio: 3 / 4.1;
  overflow: hidden;
  border: 1px solid var(--line-bronze);
  border-radius: 260px 260px 0 0;
  cursor: pointer;
}

.stack-frame-tall img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-expo);
}

.stack-frame-tall:hover img {
  transform: scale(1.05);
}

.stack-frame-secondary-arch {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 58%;
  aspect-ratio: 4 / 3.2;
  overflow: hidden;
  border: 1px solid var(--bronze-light);
  box-shadow: 0 24px 60px rgba(27, 24, 21, 0.18);
  background: var(--bg-obsidian);
  cursor: pointer;
  z-index: 3;
}

.stack-frame-secondary-arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-expo);
}

.stack-frame-secondary-arch:hover img {
  transform: scale(1.06);
}

.stack-caption-box {
  margin-top: 16px;
  margin-left: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ==========================================================================
   9. Chapter II: Sticky Split-Screen Spatial Walkthrough (Real Renders)
   ========================================================================== */
.spatial-walkthrough {
  position: relative;
  border-bottom: 1px solid var(--line-light);
  background: var(--bg-travertine);
}

.spatial-split-container {
  display: grid;
  grid-template-columns: 44% 56%;
  align-items: start;
}

/* Left Sticky Column */
.spatial-sticky-panel {
  position: sticky;
  top: 76px;
  height: calc(100vh - 76px);
  padding: clamp(28px, 3.8vh, 56px) clamp(32px, 4vw, 64px);
  border-right: 1px solid var(--line-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.spatial-panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line-light);
  padding-bottom: 20px;
}

.spatial-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze-raw);
}

.spatial-counter {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--ink-primary);
}

.spatial-active-info {
  margin: auto 0;
  padding: 20px 0;
}

.spatial-active-tag {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: block;
  margin-bottom: 12px;
}

.spatial-active-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.4vw, 3.4rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink-primary);
  margin-bottom: 16px;
  transition: opacity 0.35s ease, transform 0.35s var(--ease-expo);
}

.spatial-active-desc {
  font-size: 0.94rem;
  color: var(--ink-secondary);
  line-height: 1.75;
  margin-bottom: 24px;
  max-width: 460px;
  transition: opacity 0.35s ease;
}

.spatial-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  padding: 16px 0;
  gap: 16px;
}

.telemetry-cell span {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.telemetry-cell strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.spatial-room-Jump-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.room-jump-pill {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--line-light);
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.room-jump-pill.active,
.room-jump-pill:hover {
  background: var(--ink-primary);
  color: var(--ink-ivory);
  border-color: var(--ink-primary);
}

/* Right Scrolling Stream */
.spatial-scroll-stream {
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  gap: 140px;
}

.spatial-Monument-item {
  position: relative;
}

.spatial-frame-arch {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border: 1px solid var(--line-bronze);
  cursor: pointer;
}

.spatial-Monument-item:nth-child(odd) .spatial-frame-arch {
  border-radius: 320px 320px 0 0;
  aspect-ratio: 4 / 4.3;
  max-width: 86%;
  margin: 0 auto;
}

.spatial-frame-arch img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-expo);
}

.spatial-frame-arch:hover img {
  transform: scale(1.04);
}

.spatial-frame-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line-light);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-secondary);
}

.spatial-frame-meta .roman-idx {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--bronze-raw);
}

/* ==========================================================================
   10. Chapter III: Interactive Hover-Reveal Ritual Index (Awwwards Signature)
   ========================================================================== */
.ritual-exhibition {
  padding: 140px 64px;
  background: var(--bg-alabaster);
  position: relative;
  border-bottom: 1px solid var(--line-light);
}

.exhibition-header {
  display: grid;
  grid-template-columns: 280px 1fr auto;
  align-items: end;
  gap: 48px;
  margin-bottom: 80px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-strong);
}

.exhibition-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.2vw, 5rem);
  font-weight: 300;
  line-height: 0.98;
  color: var(--ink-primary);
}

.exhibition-title em {
  font-style: italic;
  color: var(--bronze-raw);
}

.exhibition-note {
  font-size: 0.84rem;
  color: var(--ink-secondary);
  max-width: 300px;
  line-height: 1.7;
}

/* Interactive Index Rows */
.ritual-index-list {
  position: relative;
}

.ritual-row {
  border-bottom: 1px solid var(--line-light);
  transition: background 0.45s var(--ease-expo);
}

.ritual-row-trigger {
  width: 100%;
  display: grid;
  grid-template-columns: 90px 1fr 220px 160px 60px;
  align-items: center;
  padding: 36px 24px;
  text-align: left;
  cursor: pointer;
  transition: padding 0.45s var(--ease-expo);
}

.ritual-row:hover {
  background: rgba(237, 230, 218, 0.55);
}

.ritual-row:hover .ritual-row-trigger {
  padding-left: 38px;
}

.ritual-roman {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--bronze-raw);
}

.ritual-name-group h3 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.8vw, 2.65rem);
  font-weight: 400;
  color: var(--ink-primary);
  line-height: 1.15;
  transition: color 0.3s ease;
}

.ritual-name-group span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 6px;
}

.ritual-duration-col {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-secondary);
}

.ritual-price-col {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-style: italic;
  color: var(--ink-primary);
}

.ritual-toggle-plus {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--ink-primary);
  transition: transform 0.45s var(--ease-expo), background 0.3s ease, color 0.3s ease;
}

.ritual-row.is-open .ritual-toggle-plus {
  transform: rotate(45deg);
  background: var(--ink-primary);
  color: var(--ink-ivory);
}

/* Accordion Expanded Editorial Spread */
.ritual-drawer-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.65s var(--ease-expo);
  background: var(--bg-travertine);
}

.ritual-row.is-open .ritual-drawer-content {
  max-height: 1400px;
}

.ritual-spread-inner {
  display: grid;
  grid-template-columns: 90px 420px 1fr;
  gap: 48px;
  padding: 20px 24px 48px;
  align-items: center;
}

.ritual-spread-img-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line-bronze);
}

.ritual-spread-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ritual-spread-details p {
  font-size: 0.98rem;
  color: var(--ink-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 580px;
}

.ritual-alchemy-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  margin-bottom: 28px;
}

.alchemy-spec-box small {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.alchemy-spec-box span {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-primary);
}

/* Floating Cursor Preview Image for Ritual Hover */
.ritual-hover-preview {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 330px;
  border-radius: 200px 200px 0 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 400;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(0.82);
  transition: opacity 0.35s ease, transform 0.45s var(--ease-expo);
  border: 1px solid var(--bronze-light);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.ritual-hover-preview.is-visible {
  opacity: 1;
  transform: translate3d(-50%, -50%, 0) scale(1);
}

.ritual-hover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   11. Chapter IV: Dark Subterranean Grotto — Meridian & Botanical Alchemist
   ========================================================================== */
.dark-grotto-chapter {
  background: var(--bg-obsidian);
  color: var(--ink-ivory);
  padding: 150px 64px;
  position: relative;
  overflow: hidden;
}

.grotto-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 44px;
  margin-bottom: 72px;
}

.grotto-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.8vw, 4.6rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--ink-ivory);
}

.grotto-title em {
  font-style: italic;
  color: var(--bronze-light);
}

.grotto-subtitle {
  max-width: 380px;
  font-size: 0.88rem;
  color: var(--ink-ivory-muted);
  line-height: 1.75;
}

/* Interactive Meridian & Alchemy Grid */
.alchemist-stage {
  display: grid;
  grid-template-columns: 300px 270px 1fr;
  gap: 36px;
  align-items: center;
}

/* Left Column: State Triggers */
.alchemist-triggers {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-dark);
}

.alchemist-state-btn {
  padding: 26px 20px;
  border-bottom: 1px solid var(--line-dark);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  transition: all 0.4s var(--ease-expo);
  color: var(--ink-ivory-muted);
}

.alchemist-state-btn .state-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--bronze-light);
  margin-right: 16px;
}

.alchemist-state-btn .state-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  flex-grow: 1;
}

.alchemist-state-btn .state-sub {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.6;
}

.alchemist-state-btn:hover,
.alchemist-state-btn.active {
  color: var(--ink-ivory);
  padding-left: 32px;
  background: rgba(197, 168, 128, 0.08);
  border-bottom-color: var(--bronze-light);
}

/* Center Column: Interactive SVG Human Meridian Map */
.meridian-map-vessel {
  position: relative;
  height: 500px;
  border: 1px solid var(--line-bronze);
  border-radius: 300px 300px 0 0;
  background: radial-gradient(circle at 50% 45%, rgba(197, 168, 128, 0.12) 0%, transparent 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.meridian-svg {
  width: 200px;
  height: 380px;
  overflow: visible;
}

.meridian-silhouette {
  fill: none;
  stroke: rgba(245, 240, 230, 0.22);
  stroke-width: 1;
}

.meridian-channel {
  fill: none;
  stroke: var(--bronze-light);
  stroke-width: 1.2;
  stroke-dasharray: 4 4;
  opacity: 0.35;
}

.acupoint-node {
  fill: var(--bronze-light);
  stroke: transparent;
  stroke-width: 16px;
  opacity: 0.3;
  transition: all 0.5s var(--ease-expo);
  cursor: pointer;
}

.acupoint-node.is-active {
  opacity: 1;
  r: 6;
  filter: drop-shadow(0 0 12px #C5A880);
}

.acupoint-pulse {
  fill: none;
  stroke: var(--bronze-light);
  stroke-width: 1;
  opacity: 0;
}

.acupoint-pulse.is-active {
  animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
  0% { r: 6; opacity: 0.9; }
  100% { r: 22; opacity: 0; }
}

.meridian-caption {
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bronze-light);
  margin-top: 12px;
}

/* Right Column: Prescription Card */
.alchemist-prescription {
  background: var(--bg-charcoal);
  border: 1px solid var(--line-dark);
  padding: 36px;
  transition: opacity 0.35s ease, transform 0.35s var(--ease-expo);
}

.prescription-visual-banner {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 14px;
  margin-bottom: 24px;
}

.prescription-main-photo,
.prescription-apothecary-photo {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line-bronze);
  cursor: pointer;
}

.prescription-apothecary-photo {
  aspect-ratio: 1 / 1;
}

.prescription-main-photo img,
.prescription-apothecary-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-expo);
}

.prescription-main-photo:hover img,
.prescription-apothecary-photo:hover img {
  transform: scale(1.06);
}

.prescription-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: 24px;
}

.prescription-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze-light);
}

.prescription-duration {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-ivory-muted);
}

.prescription-title {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink-ivory);
  margin-bottom: 16px;
}

.prescription-desc {
  font-size: 0.94rem;
  color: var(--ink-ivory-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}

.prescription-formula-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: 32px;
}

.formula-cell small {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze-light);
  margin-bottom: 6px;
}

.formula-cell p {
  font-size: 0.88rem;
  color: var(--ink-ivory);
  line-height: 1.5;
}

.prescription-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.prescription-price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-style: italic;
  color: var(--bronze-light);
}

.btn-bronze {
  padding: 15px 32px;
  background: var(--bronze-light);
  color: var(--bg-obsidian);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.35s ease, transform 0.35s ease;
}

.btn-bronze:hover {
  background: var(--ink-ivory);
  transform: translateY(-2px);
}

/* ==========================================================================
   12. Chapter V: 120-Minute Royal Signature Journey & Bespoke Packages
   ========================================================================== */
.royal-ritual-chapter {
  padding: 140px 64px;
  background: var(--bg-alabaster);
  border-bottom: 1px solid var(--line-light);
}

.royal-chronology-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-light);
  margin: 64px 0 96px;
}

.chronology-node {
  padding: 36px 24px;
  border-right: 1px solid var(--line-light);
  transition: background 0.4s ease;
}

.chronology-node:last-child {
  border-right: none;
}

.chronology-node:hover {
  background: var(--bg-travertine);
}

.chrono-thumb-arch {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  border-radius: 140px 140px 0 0;
  overflow: hidden;
  border: 1px solid var(--line-bronze);
  margin-bottom: 20px;
  cursor: pointer;
}

.chrono-thumb-arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s var(--ease-expo);
}

.chronology-node:hover .chrono-thumb-arch img {
  transform: scale(1.07);
}

.chrono-minute {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--bronze-raw);
  display: block;
  margin-bottom: 12px;
}

.chrono-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ink-primary);
  margin-bottom: 10px;
}

.chrono-desc {
  font-size: 0.85rem;
  color: var(--ink-secondary);
  line-height: 1.7;
}

/* Editorial Curated Editions (Packages) */
.editions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line-strong);
}

.edition-column {
  padding: 48px 40px;
  border-right: 1px solid var(--line-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.45s ease;
}

.edition-arch-banner {
  width: 100%;
  aspect-ratio: 16 / 9.5;
  overflow: hidden;
  border: 1px solid var(--line-bronze);
  margin-bottom: 28px;
  cursor: pointer;
}

.edition-arch-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-expo);
}

.edition-column:hover .edition-arch-banner img {
  transform: scale(1.05);
}

.edition-column:last-child {
  border-right: none;
}

.edition-column.featured {
  background: var(--bg-obsidian);
  color: var(--ink-ivory);
}

.edition-tag {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze-raw);
  display: block;
  margin-bottom: 16px;
}

.edition-column.featured .edition-tag {
  color: var(--bronze-light);
}

.edition-name {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 12px;
}

.edition-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-style: italic;
  color: var(--bronze-raw);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-light);
}

.edition-column.featured .edition-price {
  color: var(--bronze-light);
  border-bottom-color: var(--line-dark);
}

.edition-price small {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}

.edition-inclusions {
  margin-bottom: 44px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.edition-inclusions li {
  font-size: 0.9rem;
  color: var(--ink-secondary);
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.edition-column.featured .edition-inclusions li {
  color: var(--ink-ivory-muted);
}

.edition-inclusions li::before {
  content: '—';
  color: var(--bronze-raw);
}

/* ==========================================================================
   13. Monograph Footer
   ========================================================================== */
.monograph-footer {
  background: var(--bg-obsidian);
  color: var(--ink-ivory);
  padding: 110px 64px 48px;
  border-top: 1px solid var(--line-dark);
}

.footer-monument-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 7.8rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink-ivory);
  padding-bottom: 72px;
  margin-bottom: 72px;
  border-bottom: 1px solid var(--line-dark);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-monument-title em {
  font-style: italic;
  color: var(--bronze-light);
}

.footer-columns {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 72px;
  border-bottom: 1px solid var(--line-dark);
}

.footer-brand-logo {
  width: 176px;
  height: auto;
  object-fit: contain;
  margin-bottom: 18px;
}

.footer-col-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze-light);
  margin-bottom: 24px;
  display: block;
}

.footer-col p,
.footer-col a {
  font-size: 0.9rem;
  color: var(--ink-ivory-muted);
  line-height: 1.85;
  display: block;
}

.footer-col a:hover {
  color: var(--ink-ivory);
}

.footer-colophon {
  padding-top: 36px;
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 240, 230, 0.45);
}

/* ==========================================================================
   14. Slide-Over Concierge Drawer (<dialog> complying with modern-web-guidance)
   ========================================================================== */
dialog.concierge-drawer:modal {
  /* MANDATORY modern-web-guidance: Prevent scroll chaining */
  overscroll-behavior: contain;
  margin: 0 0 0 auto;
  height: 100vh;
  max-height: 100vh;
  width: 100%;
  max-width: 580px;
  background: var(--bg-alabaster);
  color: var(--ink-primary);
  border: none;
  border-left: 1px solid var(--line-bronze);
  padding: 0;
  box-shadow: -24px 0 80px rgba(0, 0, 0, 0.4);
  animation: drawerSlideIn 0.55s var(--ease-expo);
}

dialog::backdrop {
  /* MANDATORY modern-web-guidance */
  overflow: hidden;
  overscroll-behavior: contain;
  background: rgba(15, 13, 11, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@keyframes drawerSlideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.drawer-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.drawer-header {
  padding: 32px 44px;
  border-bottom: 1px solid var(--line-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-header h3 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 400;
}

.drawer-close {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  cursor: pointer;
  padding: 8px 14px;
  border: 1px solid var(--line-light);
}

.drawer-close:hover {
  border-color: var(--ink-primary);
  color: var(--ink-primary);
}

.drawer-body {
  padding: 40px 44px;
  overflow-y: auto;
  flex-grow: 1;
}

.editorial-field {
  margin-bottom: 28px;
}

.editorial-field label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.editorial-input {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink-primary);
  background: transparent;
  transition: border-color 0.3s ease;
}

.editorial-input:focus {
  outline: none;
  border-bottom-color: var(--bronze-raw);
}

.editorial-input option {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: var(--bg-alabaster);
}

.field-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Wax-Seal Bespoke Sanctuary Invitation Card */
.bespoke-invitation-card {
  background: var(--bg-obsidian);
  color: var(--ink-ivory);
  padding: 44px 36px;
  border: 1px solid var(--bronze-light);
  position: relative;
  text-align: center;
}

.wax-seal-svg {
  width: 68px;
  height: 68px;
  object-fit: contain;
  margin: 0 auto 20px;
}

.invitation-kicker {
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bronze-light);
  display: block;
  margin-bottom: 8px;
}

.invitation-guest {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-style: italic;
  font-weight: 400;
  margin-bottom: 24px;
}

.invitation-ledger {
  text-align: left;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  padding: 20px 0;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inv-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.inv-row span:first-child {
  color: var(--ink-ivory-muted);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
}

.inv-row span:last-child {
  font-weight: 500;
  color: var(--bronze-light);
}

/* Fullscreen Lightbox Dialog */
dialog.architectural-lightbox:modal {
  overscroll-behavior: contain;
  margin: auto;
  max-width: 92vw;
  max-height: 92vh;
  padding: 16px;
  background: transparent;
  border: none;
  overflow: visible;
}

.lightbox-frame {
  position: relative;
}

.lightbox-frame img {
  max-height: 78vh;
  max-width: 88vw;
  width: auto;
  object-fit: contain;
  margin: 0 auto;
  border: 1px solid var(--bronze-light);
}

.lightbox-dismiss {
  position: static;
  display: block;
  margin: 0 0 12px auto;
  padding: 6px 0;
  color: var(--ink-ivory);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ==========================================================================
   15. Scroll Reveal Choreography Classes
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-expo), transform 0.9s var(--ease-expo);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   16. Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1180px) {
  .hero-arch-composition {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }
  .hero-secondary-vignette {
    display: none;
  }
  .monograph-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .monograph-index {
    position: static;
  }
  .spatial-split-container {
    grid-template-columns: 1fr;
  }
  .spatial-sticky-panel {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--line-light);
  }
  .exhibition-header {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .ritual-row-trigger {
    grid-template-columns: 56px 1fr 150px 120px 48px;
    padding: 28px 16px;
  }
  .ritual-spread-inner {
    grid-template-columns: 1fr 1.2fr;
    gap: 32px;
  }
  .ritual-spread-inner > div:first-child {
    display: none;
  }
  .alchemist-stage {
    grid-template-columns: 1fr;
  }
  .royal-chronology-bar {
    grid-template-columns: 1fr 1fr;
  }
  .chronology-node {
    border-bottom: 1px solid var(--line-light);
  }
  .editions-grid {
    grid-template-columns: 1fr;
  }
  .edition-column {
    border-right: none;
    border-bottom: 1px solid var(--line-light);
  }
  .edition-column:last-child {
    border-bottom: none;
  }
  .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .header-grid {
    grid-template-columns: 1fr auto;
    height: auto;
    min-height: 68px;
    padding: 12px 20px;
    row-gap: 10px;
  }
  .header-brand {
    gap: 10px;
    border-right: none;
    padding-right: 0;
  }
  .header-logo-mark {
    width: 36px;
    height: 36px;
  }
  .header-brand-name {
    font-size: 1.06rem;
    letter-spacing: 0.18em;
  }
  .header-brand-tag {
    display: block;
    font-size: 0.7rem;
  }
  .header-actions {
    gap: 8px;
    border-left: none;
    padding-left: 0;
  }
  .soundwave-text {
    display: none;
  }
  .header-reserve-btn {
    padding: 10px 13px;
    font-size: 0.64rem;
    letter-spacing: 0.12em;
  }
  .header-nav {
    order: 3;
    justify-content: flex-start;
    grid-column: 1 / -1;
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-top: 8px;
    border-top: 1px solid var(--line-light);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .header-nav::-webkit-scrollbar {
    display: none;
  }
  .hero-meta-strip {
    display: none;
  }
  .hero-stage {
    padding: 118px 20px 48px;
  }
  .hero-arch-mask {
    width: 100%;
  }
  .hero-arch-caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .philosophy-monograph,
  .ritual-exhibition,
  .dark-grotto-chapter,
  .royal-ritual-chapter,
  .monograph-footer {
    padding: 84px 20px;
  }
  .spatial-sticky-panel {
    padding: 36px 20px;
  }
  .spatial-scroll-stream {
    padding: 48px 20px;
    gap: 72px;
  }
  .spatial-telemetry-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .spatial-Monument-item:nth-child(odd) .spatial-frame-arch {
    max-width: 100%;
  }
  .ledger-row {
    grid-template-columns: 36px 1fr;
    row-gap: 4px;
  }
  .ledger-detail {
    grid-column: 2;
  }
  .ritual-row-trigger {
    grid-template-columns: 36px 1fr auto 40px;
    grid-template-areas:
      "roman name name toggle"
      ". duration price toggle";
    row-gap: 10px;
    column-gap: 12px;
    padding: 24px 8px;
  }
  .ritual-row:hover .ritual-row-trigger {
    padding-left: 8px;
  }
  .ritual-roman {
    grid-area: roman;
    font-size: 1.25rem;
  }
  .ritual-name-group {
    grid-area: name;
  }
  .ritual-duration-col {
    grid-area: duration;
    display: block;
    font-size: 0.68rem;
  }
  .ritual-price-col {
    grid-area: price;
    display: block;
    font-size: 1.25rem;
    justify-self: end;
  }
  .ritual-toggle-plus {
    grid-area: toggle;
  }
  .ritual-spread-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 12px 8px 36px;
  }
  .ritual-alchemy-specs {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .grotto-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 44px;
  }
  .alchemist-state-btn {
    flex-wrap: wrap;
    gap: 6px;
    padding: 20px 12px;
  }
  .alchemist-state-btn .state-sub {
    width: 100%;
    padding-left: 32px;
  }
  .meridian-map-vessel {
    height: 420px;
    padding: 20px;
  }
  .alchemist-prescription {
    padding: 24px 20px;
  }
  .prescription-visual-banner {
    grid-template-columns: 1fr;
  }
  .prescription-apothecary-photo {
    aspect-ratio: 16 / 9;
  }
  .prescription-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .prescription-formula-grid {
    grid-template-columns: 1fr;
  }
  .prescription-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    text-align: center;
  }
  .royal-chronology-bar,
  .footer-columns,
  .monograph-columns {
    grid-template-columns: 1fr;
  }
  .chronology-node {
    border-right: none;
  }
  .edition-column {
    padding: 32px 20px;
  }
  .footer-colophon {
    flex-direction: column;
    gap: 10px;
  }
  .drawer-header {
    padding: 24px 20px;
  }
  .drawer-body {
    padding: 28px 20px;
  }
  .field-grid-2 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .bespoke-invitation-card {
    padding: 28px 20px;
  }
  .inv-row {
    flex-direction: column;
    gap: 4px;
  }
}
