/* ==========================================================================
   NOVA DENTAL - CINEMATIC HORIZONTAL FILM STRIP DESIGN SYSTEM
   Theme: Violet Aurora Biometrics (Clean Visual Identity)
   ========================================================================== */

/* ==========================================================================
   HERO OPENING SEQUENCE (PRE-PAINT SUPPRESSION & SKIP BUTTON)
   ========================================================================== */
.skip-intro-btn {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 99999;
  padding: 8px 18px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.12s ease;
}

html.intro-pending .skip-intro-btn,
html.intro-running .skip-intro-btn {
  pointer-events: auto;
}

.skip-intro-btn:focus,
.skip-intro-btn:focus-visible {
  opacity: 1 !important;
  pointer-events: auto !important;
  outline: 2px solid var(--primary);
  box-shadow: 0 0 16px var(--glow);
}

/* While intro is pending before GSAP starts: prevent flash of content */
html.intro-pending .header,
html.intro-pending .hero-pretitle,
html.intro-pending .hero-heading,
html.intro-pending .hero-subtitle,
html.intro-pending .hero-features-row,
html.intro-pending .hero-cta-wrap,
html.intro-pending .hero-scroll-indicator,
html.intro-pending .hologram-backdrop-rings,
html.intro-pending .hologram-pedestal,
html.intro-pending .tooth-light-emission,
html.intro-pending #film-stage-canvas,
html.intro-pending .film-tooth-stage,
html.intro-pending .tooth-reflection-wrap {
  opacity: 0;
}

/* Explicitly hide legacy hero decorations */
.hologram-pedestal,
.tooth-light-emission,
.hologram-backdrop-rings,
.tooth-reflection-wrap {
  display: none !important;
}

/* Word mask reveal helper classes */
.hero-word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.hero-word-inner {
  display: inline-block;
  will-change: transform, opacity;
}

/* --- Main Film Strip Wrapper & Sticky Viewport --- */
.film-strip-main {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg);
}

.film-strip-viewport {
  position: sticky;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100svh;
  height: 100vh;
  overflow: hidden;
  box-sizing: border-box;
}

/* --- Brand violet base (never darker than --bg-2) --- */
.film-strip-viewport {
  background:
    radial-gradient(120% 90% at 30% 20%, #34268a 0%, transparent 60%),
    linear-gradient(180deg, var(--bg, #2A1E6E) 0%, var(--bg-2, #1F1650) 100%);
}
.film-strip-track,
.film-strip-world {
  background: transparent;
}

/* --- Continuous Procedural Depth Background (0.3x Far, 0.6x Mid, 1.15x Near) --- */
.procedural-bg-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.procedural-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  will-change: transform;
}

/* Faint Grid Removed */
.film-strip-grid {
  display: none !important;
}

/* --- Moving Horizontal Flex Track (System Cursor) --- */
.film-strip-track {
  display: flex;
  flex-direction: row;
  height: 100%;
  width: max-content;
  position: relative;
  z-index: 2;
  will-change: transform;
  cursor: auto;
}

/* Individual Film Strip Panels: 8px grid safe padding */
.film-panel {
  position: relative;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
}

/* ==========================================================================
   PANEL 01: HERO (#home) - 100vw Full-Bleed 100svh
   ========================================================================== */
.panel-hero {
  width: 100vw;
  padding: 0 !important;
  overflow: visible;
}

.panel-hero .hero-section {
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: 0;
  position: relative;
  display: flex;
  align-items: center;
  background: transparent !important;
}

.hero-container {
  padding: 112px 6vw 64px 6vw;
  box-sizing: border-box;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

/* Hero uses unified continuous .film-strip-bg */
.panel-hero .hero-bg {
  display: none !important;
}

/* Traveling Hero Headline transition effect */
.hero-title-travel {
  display: inline-block;
  will-change: transform, opacity;
  transition: transform 0.1s linear, opacity 0.1s linear;
}

/* ==========================================================================
   PANEL 02: TREATMENT JOURNEY (#journey) - 500vw (5 Chapters)
   ========================================================================== */
.panel-journey {
  width: 100vw;
  height: 100%;
  padding: 0 !important;
  position: absolute;
  overflow: visible;
  will-change: transform;
}

/* Journey Chapter Slides (Viewport-locked stations around the center tooth) */
.journey-chapter-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 20;
}

.journey-editorial-col {
  width: min(520px, 38vw);
  max-width: 540px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  z-index: 25;
  pointer-events: auto;
  /* Hidden until film-strip.js choreographs it (it always writes an inline
     opacity and --v). Before that, all five chapters sit in the same viewport
     and would flash on top of each other on first load. Stacked mode
     overrides this with opacity:1 !important further down. */
  opacity: 0;
  --v: 0;
}

/* Small Chapter Index ("01 / 05") */
.journey-editorial-index {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}

.journey-editorial-index-curr {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
}

.journey-editorial-index-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* 2-Line Editorial Headline (clamp(28px, 3.2vw, 40px), weight 600) */
.journey-editorial-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.6vw, 84px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  max-width: 30vw;
  text-wrap: balance;
}

.word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.word {
  display: inline-block;
  transform: translateY(0);
  will-change: transform, opacity;
}

/* One Plain Sentence (Editorial Subtitle) */
.journey-editorial-sentence {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  max-width: 38ch;
}

/* 5 Dedicated Editorial Positions around the Center Tooth */
.journey-pos-01 {
  position: absolute;
  left: 6vw;
  top: 50%;
  transform: translateY(-50%);
  text-align: left;
  max-width: min(460px, 25vw);
}

.journey-pos-02 {
  position: absolute;
  left: 70vw;
  top: 50%;
  transform: translateY(-50%);
  text-align: left;
  max-width: min(440px, 24vw);
}

.journey-pos-03 {
  position: absolute;
  left: 6vw;
  top: 50%;
  transform: translateY(-50%);
  text-align: left;
  max-width: min(460px, 25vw);
}

.journey-pos-04 {
  position: absolute;
  left: 70vw;
  top: 50%;
  transform: translateY(-50%);
  text-align: left;
  max-width: min(440px, 24vw);
}

.journey-pos-05 {
  position: absolute;
  left: 6vw;
  top: 50%;
  transform: translateY(-50%);
  text-align: left;
  max-width: min(460px, 25vw);
}

/* Fixed Center Tooth Stage Container (Width 30-34vw, whole tooth visible with >= 32px clearance) */
.journey-fixed-stage,
.film-tooth-stage {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate3d(50vw, 50vh, 0) translate(-50%, -50%);
  width: auto;
  height: min(65vh, 600px);
  aspect-ratio: 434 / 702;
  max-width: 34vw;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 10;
  will-change: transform, opacity;
}

/* --- Tooth Stage Depth: Soft Elliptical Contact Shadow under Root Tips --- */
.film-tooth-shadow {
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  width: 55%;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(8, 4, 22, 0.75) 0%, rgba(8, 4, 22, 0.28) 48%, transparent 75%);
  filter: blur(6px);
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s ease;
}

/* --- Faint Rim Glow behind the Tooth (--ray, <= 12% opacity) --- */
.film-tooth-rim-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 115%;
  height: 115%;
  background: radial-gradient(circle at 50% 48%, var(--ray, rgba(139, 124, 255, 0.25)) 0%, rgba(139, 124, 255, 0.06) 42%, transparent 70%);
  opacity: 0.12; /* strictly <= 12% opacity */
  pointer-events: none;
  z-index: 1;
  filter: blur(28px);
  transition: opacity 0.3s ease;
}

/* 3D Tilting Stage Wrapper (perspective: 1200px) */
.journey-tooth-3d-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1200px;
  transform-style: preserve-3d;
  will-change: transform;
  z-index: 3;
}

/* Tooth Film Canvas (Natural Frame Alpha, No CSS Mask) */
#film-stage-canvas,
.film-stage-canvas,
.journey-fixed-stage canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 3;
}

/* Soft Light Sweep (Narrow gradient at <= 12% opacity, masked to tooth) */
.journey-light-sweep {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.12) 50%, transparent 60%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 100%);
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0;
  z-index: 4;
  will-change: transform, opacity;
}

/* Single Hairline Callout Overlay (Hairline + Plain Word in Body Font) */
.journey-single-callout {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.journey-hairline-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.journey-hairline-path {
  stroke: var(--ray-hi);
  stroke-width: 1.2;
  fill: none;
  opacity: 0.75;
}

.journey-callout-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: rgba(31, 22, 80, 0.85);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

/* ==========================================================================
   PANEL 03: WHY NOVA (#why-nova) - 100vw Safe Padding 112px 6vw 64px
   ========================================================================== */
.panel-why-nova {
  width: 100vw;
  padding: 112px 6vw 64px 6vw !important;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-nova-container {
  width: 100%;
  max-width: 1360px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  position: relative;
  z-index: 2;
}

/* Header */
.why-nova-header {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 820px;
}

.why-nova-bridge {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 600;
  line-height: 1.04;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0;
}

.why-nova-subtitle {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  max-width: 42ch;
}

/* 3 Plain Columns (Separated by 1px --line dividers, No Boxes) */
.why-nova-columns {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  align-items: start;
  gap: 32px;
  padding: 24px 0;
}

.why-nova-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.why-nova-divider {
  width: 1px;
  height: 100%;
  min-height: 110px;
  background: var(--line);
}

.why-nova-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: var(--primary);
}

.why-nova-col-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin: 0;
}

.why-nova-col-desc {
  margin: 0;
}

/* Lower Row: Clinic Photo Slot & Doctors List */
.why-nova-details-row {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 40px;
  align-items: center;
}

.why-nova-photo-slot {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  height: 160px;
  background: var(--bg-2);
}

.why-nova-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.why-nova-photo-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
}

.why-nova-doctors-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.doctor-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.doctor-list-item:first-child {
  border-top: 1px solid var(--line);
}

.doctor-text {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

/* ==========================================================================
   PANEL 04: BOOK / CONTACT (#booking) - 100vw
   ========================================================================== */
.panel-booking {
  width: 100vw;
  padding: 80px 4vw !important;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.booking-stage-wrap {
  width: 100%;
  max-width: 1560px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  box-sizing: border-box;
}

.booking-film-container {
  flex: 1;
  max-width: 1040px;
  display: grid;
  grid-template-columns: 44% 56%;
  gap: 40px;
  align-items: center;
}

/* Left: Invitation */
.booking-invite-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.booking-invite-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 600;
  line-height: 1.04;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0;
}

.booking-invite-desc {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  max-width: 38ch;
}

.booking-locations-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.booking-location-item {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Right: Refined Consultation Form */
.booking-form-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.booking-grid-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.booking-full-width {
  grid-column: span 2;
}

/* ==========================================================================
   FOOTER (ATTACHED INSIDE BOOKING STAGE)
   ========================================================================== */
.film-strip-footer {
  width: 380px;
  max-width: 380px;
  height: 520px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 2.5rem 36px;
  background: rgba(22, 14, 60, 0.7);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-sizing: border-box;
}

.footer-inner-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-clean-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-clean-link {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-clean-link:hover {
  color: var(--ink);
}

.footer-legal-copy {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(207, 198, 245, 0.55);
  line-height: 1.55;
}

/* ==========================================================================
   RESPONSIVE & MOBILE / TOUCH FALLBACKS
   ========================================================================== */
@media (max-width: 1024px), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .film-strip-main {
    height: auto !important;
  }

  .film-strip-viewport {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
  }

  .film-strip-track {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    transform: none !important;
  }

  .film-strip-bg {
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
  }

  .film-panel {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto;
    padding: 112px 6vw 64px 6vw !important;
  }

  .panel-hero {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    height: 100svh !important;
    min-height: 100svh !important;
    padding: 0 !important;
  }

  .panel-journey {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    overflow: visible !important;
  }

  .journey-chapter-slide {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 50vh !important;
    padding: 60px 6vw !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    display: flex !important;
  }

  .journey-pos-01,
  .journey-pos-02,
  .journey-pos-03,
  .journey-pos-04,
  .journey-pos-05 {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    max-width: 100% !important;
  }

  .journey-editorial-col {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    opacity: 1 !important;
    display: flex !important;
  }

  .journey-editorial-headline {
    max-width: 100% !important;
    font-size: clamp(28px, 6vw, 42px) !important;
  }

  .word-mask {
    display: inline !important;
    overflow: visible !important;
  }

  .word-mask .word {
    transform: none !important;
    opacity: 1 !important;
    display: inline !important;
  }

  .journey-editorial-sentence {
    opacity: 1 !important;
  }

  .journey-fixed-stage {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 32px auto !important;
    width: min(320px, 80vw) !important;
    height: 380px !important;
    max-width: none !important;
    min-width: none !important;
    display: flex !important;
  }

  .panel-why-nova {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    height: auto !important;
  }

  .why-nova-columns {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .why-nova-divider {
    display: none !important;
  }

  .why-nova-details-row {
    grid-template-columns: 1fr !important;
  }

  .panel-booking {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    height: auto !important;
  }

  .booking-film-container {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .film-strip-footer {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    height: auto !important;
    padding: 64px 6vw !important;
  }
}

/* ==========================================================================
   RESTYLED NATIVE SCROLLBAR (14px Ruler Track & Thumb)
   ========================================================================== */
html {
  scrollbar-gutter: stable;
}

html, body {
  overscroll-behavior: none;
}

/* Firefox ONLY */
@supports (-moz-appearance: none) {
  html {
    scrollbar-width: thin;
    scrollbar-color: var(--ray) var(--bg-2);
  }
}

/* WebKit/Blink Custom Scrollbar */
@supports selector(::-webkit-scrollbar) {
  ::-webkit-scrollbar {
    width: 14px;
  }

  ::-webkit-scrollbar-button {
    display: none;
  }

  ::-webkit-scrollbar-track {
    background-color: var(--bg-2);
    background-image: 
      repeating-linear-gradient(to bottom, var(--line) 0 2px, transparent 2px 40px),
      repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 8px);
    border-left: 1px solid var(--line);
  }

  ::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(to bottom, var(--ray), var(--primary));
    /* EXCEPTION NOTE: Data-URI SVGs cannot read CSS variables. Color %231F1650 is synced exactly to --bg-2. */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F1650' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4C4.5 4 3 6.5 3 9.5c0 3 1.5 6 3 9.5 1 2.3 2.5 3 3.5 1 1-2 1.5-3 2.5-3s1.5 1 2.5 3c1 2 2.5 1.3 3.5-1 1.5-3.5 3-6.5 3-9.5C21 6.5 19.5 4 17 4c-2 0-3.5 1.5-5 1.5S9 4 7 4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px 10px;
    border: 3px solid transparent;
    background-clip: padding-box;
    min-height: 48px;
    transition: background 0.2s ease;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--ray-hi), var(--primary));
    /* EXCEPTION NOTE: Data-URI SVGs cannot read CSS variables. Color %231F1650 is synced exactly to --bg-2. */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F1650' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4C4.5 4 3 6.5 3 9.5c0 3 1.5 6 3 9.5 1 2.3 2.5 3 3.5 1 1-2 1.5-3 2.5-3s1.5 1 2.5 3c1 2 2.5 1.3 3.5-1 1.5-3.5 3-6.5 3-9.5C21 6.5 19.5 4 17 4c-2 0-3.5 1.5-5 1.5S9 4 7 4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px 10px;
    border: 3px solid transparent;
    background-clip: padding-box;
  }

  ::-webkit-scrollbar-thumb:active {
    background: linear-gradient(to bottom, var(--accent), var(--ray-hi));
    /* EXCEPTION NOTE: Data-URI SVGs cannot read CSS variables. Color %231F1650 is synced exactly to --bg-2. */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F1650' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4C4.5 4 3 6.5 3 9.5c0 3 1.5 6 3 9.5 1 2.3 2.5 3 3.5 1 1-2 1.5-3 2.5-3s1.5 1 2.5 3c1 2 2.5 1.3 3.5-1 1.5-3.5 3-6.5 3-9.5C21 6.5 19.5 4 17 4c-2 0-3.5 1.5-5 1.5S9 4 7 4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px 10px;
    border: 3px solid transparent;
    background-clip: padding-box;
  }
}

/* ==========================================================================
   RETAINED MICRO-INTERACTIONS
   ========================================================================== */

/* 1. Directional Link Underline */
.nav-link,
.footer-clean-link {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.nav-link::after,
.footer-clean-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: linear-gradient(90deg, var(--ray), var(--primary));
  transform: scaleX(0);
  transform-origin: var(--enter-origin, left);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-link:hover::after,
.footer-clean-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* 2. Button Press-In Feedback */
.btn-primary,
.btn-book-nav,
.btn-explore-process,
.btn-secondary,
button[type="submit"] {
  transition: transform 0.12s ease;
}

.btn-primary:active,
.btn-book-nav:active,
.btn-explore-process:active,
.btn-secondary:active,
button[type="submit"]:active {
  transform: scale(0.97) !important;
}

/* 3. Sliding Nav Pill Indicator */
.nav-links {
  position: relative;
}

.nav-pill-indicator {
  position: absolute;
  bottom: -4px;
  height: 2px;
  background: var(--ray-hi);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--glow);
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1),
              width 0.32s cubic-bezier(0.2, 0.8, 0.2, 1),
              opacity 0.2s ease;
  will-change: transform, width;
}
