/* ==========================================================================
   THE LAST SPECIES - VARIATION 1: SOVEREIGN SALON
   High-Jewelry Grand Feu Enamel & Rare Mineral Exhibition Architecture
   Dials: DESIGN_VARIANCE: 9 | MOTION_INTENSITY: 9 | VISUAL_DENSITY: 3
   ========================================================================== */

:root,
[data-theme="dark"] {
  --bg-primary: #070B14;
  --bg-elevated: #0E1525;
  --bg-surface: #131C31;
  --bg-glass: rgba(14, 21, 37, 0.78);
  --text-primary: #F4F6FA;
  --text-secondary: #A3B1C6;
  --text-muted: #6E7E96;
  --accent: #3B82F6;
  --accent-strong: #2563EB;
  --accent-contrast: #FFFFFF;
  --accent-soft: rgba(59, 130, 246, 0.14);
  --border-hairline: rgba(244, 246, 250, 0.12);
  --border-strong: rgba(59, 130, 246, 0.45);
  --shadow-vitrine: 0 32px 80px rgba(3, 6, 14, 0.72);
  --danger: #F87171;
}

[data-theme="light"] {
  --bg-primary: #F7F8FA;
  --bg-elevated: #FFFFFF;
  --bg-surface: #EEF1F6;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --text-primary: #090D16;
  --text-secondary: #334155;
  --text-muted: #52627A;
  --accent: #1D4ED8;
  --accent-strong: #1E40AF;
  --accent-contrast: #FFFFFF;
  --accent-soft: rgba(29, 78, 216, 0.1);
  --border-hairline: rgba(9, 13, 22, 0.12);
  --border-strong: rgba(29, 78, 216, 0.42);
  --shadow-vitrine: 0 28px 68px rgba(15, 23, 42, 0.1);
  --danger: #DC2626;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: "Public Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Modular Typography Scale (>1.4x ratio) */
h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.85rem, 5.2vw, 4.35rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.15rem, 3.8vw, 3.1rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.22;
}

p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 65ch;
}

small {
  font-size: 0.75rem;
}

/* Italic Descender Clearance (Mandatory 4.1) */
.serif-italic {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  line-height: 1.15;
  padding-bottom: 0.12em;
  display: inline-block;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* Fixed GPU-safe Grain Overlay (6.E) */
.salon-grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.032;
  background-image: radial-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 0);
  background-size: 24px 24px;
}

.container {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── HEADER (Single-Line <= 72px) ────────────────────────────────────────── */
.salon-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 70px;
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-hairline);
}

.scroll-hairline {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 2px;
  width: 100%;
  background: var(--accent);
  transform-origin: left center;
  transform: scaleX(0);
}

.header-grid {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-identity {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
}

.brand-title {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.salon-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-item {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-item:hover,
.nav-item:focus-visible {
  color: var(--text-primary);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.theme-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 40px;
  padding: 0 0.85rem;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hairline);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-switch-btn:hover {
  border-color: var(--accent);
}

.theme-switch-btn:active {
  transform: translateY(-1px);
}

/* Shape Consistency Lock: Architectural 0px sharp museum gallery corners (4.4) */
.btn-salon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 1.4rem;
  border-radius: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-salon:active {
  transform: scale(0.98);
}

.btn-salon-primary {
  background: var(--accent-strong);
  color: var(--accent-contrast);
  border: 1px solid var(--accent-strong);
}

.btn-salon-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-salon-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hairline);
}

.btn-salon-ghost:hover {
  border-color: var(--accent);
}

.btn-full-width {
  width: 100%;
  height: 50px;
}

.mobile-nav-trigger {
  display: none;
  background: transparent;
  border: 1px solid var(--border-hairline);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-nav-sheet {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-hairline);
  padding: 1.5rem 2rem;
}

.mobile-sheet-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-sheet-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1rem;
}

/* ── SECTION 1: HERO VITRINE (min-h-100dvh, pt <= 6rem) ──────────────────── */
.hero-vitrine {
  min-height: calc(100dvh - 70px);
  padding: 3.5rem 0 3rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-hairline);
}

.hero-vitrine-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.eyebrow-tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.hero-display {
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 52ch;
}

.hero-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.vitrine-pedestal {
  background: var(--bg-elevated);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-vitrine);
  position: relative;
}

.vitrine-aperture {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #050811;
}

.vitrine-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.vitrine-pedestal:hover .vitrine-hero-img {
  transform: scale(1.03);
}

.astrolabe-svg-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  color: rgba(244, 246, 250, 0.28);
}

.astrolabe-outer-ring {
  transform-origin: 250px 190px;
  animation: slowAstrolabe 48s linear infinite;
}

.astrolabe-inner-ring {
  transform-origin: 250px 190px;
  animation: slowAstrolabeReverse 32s linear infinite;
}

.astrolabe-sweep-hand {
  transform-origin: 250px 190px;
  animation: slowAstrolabe 60s steps(240, end) infinite;
}

@keyframes slowAstrolabe {
  to { transform: rotate(360deg); }
}

@keyframes slowAstrolabeReverse {
  to { transform: rotate(-360deg); }
}

.vitrine-plaque {
  display: grid;
  grid-template-columns: 1.3fr auto 1fr auto 1fr;
  align-items: center;
  padding: 1rem 1.35rem;
  border-top: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  gap: 1rem;
}

.plaque-cell {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.plaque-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.14em;
}

.plaque-timer,
.plaque-metric {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.accent-cobalt {
  color: var(--accent);
}

.plaque-divider {
  width: 1px;
  height: 28px;
  background: var(--border-hairline);
}

/* ── SECTION 2: HALLMARK AUTHORITY BAR ───────────────────────────────────── */
.hallmark-ribbon {
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--border-hairline);
  background: var(--bg-elevated);
}

.hallmark-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.hallmark-svg {
  height: 34px;
  width: auto;
  color: var(--text-secondary);
  opacity: 0.85;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hallmark-svg:hover {
  opacity: 1;
}

/* ── SECTION 3: HORIZONTAL SCROLL HIJACK MINERAL GALLERY (5.B) ───────────── */
.horizontal-gallery-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid var(--border-hairline);
  background: var(--bg-primary);
}

.horizontal-gallery-track {
  display: flex;
  width: max-content;
  min-height: 100dvh;
  align-items: center;
  padding: 4rem 4vw;
  gap: 3.5rem;
}

.gallery-slide {
  flex-shrink: 0;
  width: min(82vw, 920px);
}

.gallery-intro-slide {
  width: min(76vw, 560px);
  padding-right: 2rem;
}

.section-headline {
  margin-bottom: 1rem;
}

.section-prose {
  margin-bottom: 2rem;
}

.gallery-census-ledger {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.ledger-pill {
  padding: 1.15rem;
  border: 1px solid var(--border-hairline);
  background: var(--bg-elevated);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ledger-num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.35rem;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
}

.ledger-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.mineral-card {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  background: var(--bg-elevated);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-vitrine);
}

.mineral-visual {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #050811;
}

.mineral-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.mineral-card:hover .mineral-visual img {
  transform: scale(1.05);
}

.mineral-dossier {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
}

.mineral-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.mineral-cap {
  color: var(--text-muted);
}

.mineral-title {
  margin-top: 0.25rem;
}

.mineral-desc {
  font-size: 0.98rem;
}

.mineral-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
}

.mineral-specs dt {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.mineral-specs dd {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ── SECTION 4: INTERACTIVE CROWN & DIAL CALIBRATOR ──────────────────────── */
.calibrator-section {
  padding: 7rem 0;
  border-bottom: 1px solid var(--border-hairline);
  background: var(--bg-elevated);
}

.vertical-section-header {
  margin-bottom: 3.5rem;
}

.calibrator-workbench {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.watch-calibrator-viewport {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 560px;
  border: 1px solid var(--border-hairline);
  overflow: hidden;
  background: #050811;
  cursor: crosshair;
}

.calibrator-base-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.watch-calibrator-viewport:hover .calibrator-base-img {
  transform: scale(1.16);
}

.calibrator-hands-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.gem-loupe {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  padding: 0.5rem 0.9rem;
  background: rgba(7, 11, 20, 0.82);
  border: 1px solid var(--border-strong);
  pointer-events: none;
}

.loupe-tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: #F4F6FA;
}

.calibrator-controls-col {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.control-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.control-heading {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.mineral-selector-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.mineral-swatch-btn {
  text-align: left;
  padding: 1.1rem 1.25rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-hairline);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mineral-swatch-btn.is-active,
.mineral-swatch-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.swatch-code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  color: var(--accent);
  letter-spacing: 0.12em;
}

.swatch-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
}

.crown-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.crown-time-readout {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
}

.crown-range-input {
  width: 100%;
  accent-color: var(--accent);
  cursor: ew-resize;
  height: 6px;
}

.crown-barrel-bar {
  display: flex;
  justify-content: space-between;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.mineral-telemetry-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.35rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-hairline);
}

.telemetry-pair {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.telemetry-key {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.telemetry-val {
  font-size: 0.9rem;
  color: var(--text-primary);
}

/* ── SECTION 5: GSAP STICKY-STACK COVENANT (Canonical 5.A) ───────────────── */
.sticky-stack-section {
  position: relative;
  border-bottom: 1px solid var(--border-hairline);
}

.stack-card-outer {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
}

.stack-card-inner {
  width: 100%;
  max-width: 1140px;
  will-change: transform, opacity;
}

.covenant-monolith {
  background: var(--bg-elevated);
  border: 1px solid var(--border-hairline);
  padding: 4.5rem;
  box-shadow: var(--shadow-vitrine);
}

.monolith-cobalt {
  background: var(--bg-surface);
  border-color: var(--border-strong);
}

.monolith-split-image {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.monolith-meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.monolith-title {
  margin-bottom: 1.25rem;
}

.monolith-body {
  margin-bottom: 2.25rem;
}

.monolith-equation {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid var(--border-hairline);
}

.eq-cell {
  display: flex;
  flex-direction: column;
}

.eq-num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 3.2rem;
  font-weight: 600;
  line-height: 1;
  color: var(--text-primary);
}

.eq-caption {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.eq-sign {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.4rem;
  color: var(--accent);
}

.monolith-Split-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-hairline);
}

.monolith-stat-box {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.monolith-stat-box strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.5rem;
  color: var(--accent);
  line-height: 1;
}

.monolith-stat-box span {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.monolith-img-half img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border-hairline);
}

/* ── SECTION 6: CALIBRE TLS-01 & 2-COL SPEC CARDS ────────────────────────── */
.calibre-section {
  padding: 7rem 0;
  border-bottom: 1px solid var(--border-hairline);
}

.calibre-explorer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}

.calibre-diagram-frame {
  border: 1px solid var(--border-hairline);
  background: var(--bg-elevated);
}

.calibre-diagram-img {
  width: 100%;
  height: auto;
  display: block;
}

.calibre-callout-bar {
  padding: 1.5rem;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.callout-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.callout-layer {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.callout-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
}

.callout-step-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.layer-pill {
  padding: 0.5rem 0.9rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-hairline);
  color: var(--text-secondary);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  cursor: pointer;
}

.layer-pill.is-active,
.layer-pill:hover {
  border-color: var(--accent);
  color: var(--text-primary);
  background: var(--accent-soft);
}

.spec-cards-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.spec-tile {
  padding: 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.spec-tile-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.spec-tile-value {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1.05;
  color: var(--accent);
}

.spec-tile-note {
  font-size: 0.92rem;
}

/* ── SECTION 7: 5-CELL ASYMMETRIC SANCTUARY BENTO GRID (4.7) ─────────────── */
.sanctuary-bento-section {
  padding: 7rem 0;
  border-bottom: 1px solid var(--border-hairline);
  background: var(--bg-elevated);
}

.sanctuary-bento-5 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.bento-tile {
  border: 1px solid var(--border-hairline);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  min-height: 290px;
}

.bento-tile-photo {
  grid-column: span 2;
  padding: 0;
}

.bento-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bento-photo-scrim {
  position: relative;
  z-index: 1;
  padding: 2.5rem;
  background: linear-gradient(to top, rgba(7, 11, 20, 0.94) 15%, rgba(7, 11, 20, 0.25) 100%);
  color: #F4F6FA;
}

.bento-photo-scrim .bento-tile-text {
  color: #CBD5E1;
}

.bento-tile-cobalt {
  background: linear-gradient(145deg, var(--bg-surface), var(--accent-soft));
  border-color: var(--border-strong);
}

.bento-tile-surface {
  background: var(--bg-primary);
}

.bento-tile-quote {
  grid-column: span 2;
  background: var(--bg-primary);
  justify-content: center;
}

.bento-zone-coords {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.bento-giant-stat {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.8rem;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.bento-tile-title {
  margin-bottom: 0.5rem;
}

.bento-tile-text {
  font-size: 0.95rem;
}

.salon-quote p {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.55rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 1rem;
}

.salon-quote footer {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  color: var(--text-secondary);
}

/* ── SECTION 8: ALLOCATION CHAMBER ───────────────────────────────────────── */
.allocation-section {
  padding: 7rem 0;
  border-bottom: 1px solid var(--border-hairline);
}

.allocation-split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 4rem;
  align-items: start;
}

.allocation-guarantees {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.guarantee-row {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 1rem;
  align-items: start;
}

.guarantee-index {
  height: 36px;
  border: 1px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  color: var(--accent);
}

.allocation-form-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-hairline);
  padding: 2.75rem;
  box-shadow: var(--shadow-vitrine);
}

.error-summary-box {
  padding: 1rem 1.25rem;
  border: 1px solid var(--danger);
  background: rgba(220, 38, 38, 0.08);
  margin-bottom: 1.5rem;
}

.error-summary-heading {
  font-weight: 600;
  color: var(--danger);
  margin-bottom: 0.4rem;
}

.error-summary-list {
  padding-left: 1.2rem;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.salon-form {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field-row-2col {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1rem;
}

.field-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.field-input,
.field-select {
  height: 48px;
  padding: 0 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-hairline);
  border-radius: 0;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
}

.field-input:focus,
.field-select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.mono-text {
  font-family: "IBM Plex Mono", monospace;
}

.field-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.field-error {
  font-size: 0.82rem;
  color: var(--danger);
}

.salon-certificate {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.cert-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-hairline);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
}

.cert-status-tag {
  color: var(--accent);
  font-weight: 600;
}

.cert-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
  padding: 1.25rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-hairline);
}

.cert-key {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.cert-val {
  font-size: 0.92rem;
  color: var(--text-primary);
}

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
.salon-footer {
  padding: 4rem 0;
  background: var(--bg-elevated);
}

.footer-layout {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.footer-brand-block {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-summary {
  font-size: 0.92rem;
  max-width: 48ch;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-address-bar p {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 100%;
}

/* ── RESPONSIVE COLLAPSE (< 1024px & < 768px, per 4.7 & 7) ───────────────── */
@media (max-width: 1024px) {
  .salon-nav {
    display: none;
  }

  .mobile-nav-trigger {
    display: inline-flex;
  }

  .hero-vitrine-grid,
  .calibrator-workbench,
  .calibre-explorer-grid,
  .allocation-split,
  .monolith-split-image {
    grid-template-columns: 1fr;
  }

  .sanctuary-bento-5 {
    grid-template-columns: 1fr;
  }

  .bento-tile-photo,
  .bento-tile-quote {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }

  .horizontal-gallery-wrap {
    overflow-x: auto;
  }

  .horizontal-gallery-track {
    flex-direction: column;
    width: 100%;
    padding: 3rem 1.25rem;
  }

  .gallery-slide,
  .gallery-intro-slide {
    width: 100%;
  }

  .mineral-card,
  .spec-cards-2col,
  .field-row-2col,
  .mineral-telemetry-box,
  .mineral-specs {
    grid-template-columns: 1fr;
  }

  .covenant-monolith {
    padding: 2rem 1.5rem;
  }

  .vitrine-plaque {
    grid-template-columns: 1fr;
  }

  .plaque-divider {
    display: none;
  }
}

/* ── REDUCED MOTION GUARDRAIL (Mandatory 6.B) ────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .horizontal-gallery-wrap {
    overflow-x: auto;
  }
}
