/* ==========================================================================
   071 · قطار الليل (THE NIGHT LINE) — 1:1 Art Deco 1929 Sleeper Train
   Dual GPU WebGL (Hero Engraving Lens + 4-Beat Pinned 3,960px Chapter Morph)
   100% Arabic RTL Native · Zero External Dependencies Beyond Local Lenis
   ========================================================================== */

:root {
  --nl-bg: #0D0D10;
  --nl-surface: #121217;
  --nl-panel: #15151B;
  --nl-ivory: #E9E1CF;
  --nl-ivory-soft: rgba(233, 225, 207, 0.72);
  --nl-mute: #9A9281;
  --nl-gold: #C9A54C;
  --nl-gold-hi: #E4C578;
  --nl-gold-dim: rgba(201, 165, 76, 0.24);
  --nl-line: rgba(201, 165, 76, 0.19);
  --nl-line-strong: rgba(201, 165, 76, 0.44);
  --nl-burgundy: #6E1826;
  --nl-burgundy-hi: #8B1E2F;
  --nl-serif: 'Amiri', Georgia, serif;
  --nl-sans: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --nl-mono: 'JetBrains Mono', monospace;
  --nl-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  background: var(--nl-bg);
  color: var(--nl-ivory);
  scroll-behavior: auto;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--nl-bg);
  color: var(--nl-ivory);
  font-family: var(--nl-sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: clip;
  position: relative;
}

/* Global Arabic ligature protection */
html[lang="ar"] body,
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] p,
html[lang="ar"] a:not([dir="ltr"]),
html[lang="ar"] button:not([dir="ltr"]) {
  letter-spacing: 0;
}

.nl-ltr {
  direction: ltr;
  unicode-bidi: isolate;
  font-family: var(--nl-mono);
}

/* Subtle Full-Height Vertical Art Deco Architectural Grid Hairlines */
.nl-arch-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  max-width: 1380px;
  margin-inline: auto;
  border-inline: 1px solid rgba(201, 165, 76, 0.065);
}
.nl-arch-grid::before,
.nl-arch-grid::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(201, 165, 76, 0.055);
}
.nl-arch-grid::before { left: 25%; }
.nl-arch-grid::after { left: 50%; }

/* Top Hairline Scroll Progress Beam */
.nl-progress {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 2px;
  z-index: 9500;
  pointer-events: none;
}
.nl-progress > i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--nl-gold), var(--nl-gold-hi));
  transform-origin: right center;
  transform: scaleX(0);
  will-change: transform;
  box-shadow: 0 0 12px rgba(201, 165, 76, 0.55);
}

/* Bespoke Art Deco Thin Brass Circular Cursor ("I") */
.nl-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  border: 1px solid rgba(201, 165, 76, 0.85);
  pointer-events: none;
  z-index: 9600;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.25s var(--nl-ease), height 0.25s var(--nl-ease),
              margin 0.25s var(--nl-ease), opacity 0.2s ease,
              background-color 0.2s ease, border-color 0.2s ease;
  will-change: transform;
}
.nl-cursor::after {
  content: "";
  width: 1px;
  height: 10px;
  background: var(--nl-gold);
  transition: transform 0.22s var(--nl-ease);
}
.nl-cursor.is-vis { opacity: 1; }
.nl-cursor.is-hover {
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  background: rgba(201, 165, 76, 0.11);
  border-color: var(--nl-gold-hi);
}
.nl-cursor.is-lens {
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-color: var(--nl-gold-hi);
  background: rgba(201, 165, 76, 0.06);
}
.nl-cursor.is-lens::after {
  transform: scaleY(1.4);
}
@media (hover: none), (pointer: coarse) {
  .nl-cursor { display: none !important; }
}
html.cfx-embed-preview .nl-cursor,
html.cfx-embed-preview .nl-progress {
  display: none !important;
}

/* Container */
.nl-wrap {
  width: min(1320px, calc(100% - clamp(28px, 6vw, 88px)));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   FIXED ART DECO TOP HEADER (68px)
   ========================================================================== */
.nl-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 68px;
  z-index: 900;
  background: rgba(13, 13, 16, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--nl-line);
}
.nl-header-in {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nl-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--nl-ivory);
  white-space: nowrap;
}
.nl-diamond {
  width: 28px;
  height: 28px;
  border: 1px solid var(--nl-gold);
  transform: rotate(45deg);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  position: relative;
}
.nl-diamond::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(201, 165, 76, 0.45);
}
.nl-diamond > span {
  transform: rotate(-45deg);
  font-family: var(--nl-mono);
  font-size: 9px;
  font-weight: 600;
  color: var(--nl-gold-hi);
  letter-spacing: 0.06em;
}
.nl-brand-name {
  font-family: var(--nl-serif);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1;
}
.nl-brand-en {
  font-family: var(--nl-mono);
  font-size: 10.5px;
  color: var(--nl-mute);
  letter-spacing: 0.16em;
  direction: ltr;
  unicode-bidi: isolate;
}
.nl-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
}
.nl-nav a {
  text-decoration: none;
  color: var(--nl-ivory-soft);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  position: relative;
  transition: color 0.22s ease;
}
.nl-nav a:hover { color: var(--nl-gold-hi); }
.nl-header-end {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}
.nl-paris-clock {
  font-family: var(--nl-mono);
  font-size: 12px;
  color: var(--nl-gold);
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
}
.nl-paris-clock b {
  color: var(--nl-mute);
  font-weight: 400;
  margin-left: 5px;
}

/* Buttons */
.nl-btn-gold,
.nl-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  font-family: var(--nl-sans);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border-radius: 0;
  transition: background-color 0.25s var(--nl-ease), color 0.25s var(--nl-ease),
              border-color 0.25s ease, transform 0.25s var(--nl-ease);
}
.nl-btn-gold {
  background: var(--nl-gold);
  color: #0D0D10;
  border: 1px solid var(--nl-gold);
}
.nl-btn-gold:hover {
  background: var(--nl-gold-hi);
  border-color: var(--nl-gold-hi);
  transform: translateY(-1px);
}
.nl-btn-gold small {
  font-family: var(--nl-serif);
  font-style: italic;
  font-weight: 400;
  opacity: 0.85;
}
.nl-btn-ghost {
  background: transparent;
  color: var(--nl-ivory);
  border: 1px solid var(--nl-line-strong);
}
.nl-btn-ghost:hover {
  border-color: var(--nl-gold-hi);
  color: var(--nl-gold-hi);
  background: rgba(201, 165, 76, 0.06);
}
.nl-btn-sm {
  padding: 8px 18px;
  font-size: 12.5px;
}

/* ==========================================================================
   1. HERO SECTION (#top) + WEBGL ENGRAVING LENS STAGE
   ========================================================================== */
.nl-hero {
  position: relative;
  min-height: 100svh;
  padding: 96px 0 40px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--nl-line);
  overflow: hidden;
}
.nl-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

/* Hero Copy Column */
.nl-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 15px;
  border: 1px solid var(--nl-line-strong);
  border-radius: 999px;
  font-size: 12px;
  color: var(--nl-gold);
  margin-bottom: 24px;
  background: rgba(201, 165, 76, 0.04);
}
.nl-dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--nl-gold);
  box-shadow: 0 0 10px var(--nl-gold);
  animation: nlPulse 2.2s ease-in-out infinite;
}
@keyframes nlPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.45); opacity: 0.4; }
}

.nl-h1 {
  font-family: var(--nl-serif);
  font-size: clamp(3.15rem, 6.2vw, 5.55rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--nl-ivory);
  margin-bottom: 22px;
}
.nl-gold-em {
  font-style: italic;
  color: var(--nl-gold);
  font-weight: 400;
}
.nl-hero-lead {
  max-width: 490px;
  font-size: 16.5px;
  line-height: 1.78;
  color: var(--nl-ivory-soft);
  margin-bottom: 30px;
}
.nl-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 42px;
}

/* 4-Cell Mechanical Split-Flap Departure Board */
.nl-flap-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--nl-line);
  background: rgba(18, 18, 23, 0.65);
  max-width: 560px;
  user-select: none;
}
.nl-flap-cell {
  padding: 13px 14px;
  border-inline-end: 1px solid var(--nl-line);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nl-flap-cell:last-child { border-inline-end: 0; }
.nl-flap-cell span {
  font-family: var(--nl-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--nl-mute);
  direction: ltr;
  unicode-bidi: isolate;
}
.nl-flap-cell strong {
  font-family: var(--nl-mono);
  font-size: 17px;
  font-weight: 500;
  color: var(--nl-gold-hi);
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}
.nl-flap-cell strong.is-tick {
  animation: nlTick 0.36s var(--nl-ease);
}
@keyframes nlTick {
  0% { transform: rotateX(-55deg); opacity: 0.45; }
  100% { transform: rotateX(0deg); opacity: 1; }
}

/* Arched Locomotive Stage + WebGL Engraving Shader */
.nl-arch-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
}
.nl-arch-stage {
  position: relative;
  width: min(100%, 600px);
  aspect-ratio: 64 / 70;
  border-radius: 999px 999px 0 0;
  border: 1px solid var(--nl-line-strong);
  border-bottom: 1px solid var(--nl-line);
  overflow: hidden;
  background: #08080B;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.72);
  cursor: crosshair;
}
.nl-arch-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(to bottom, rgba(201,165,76,0.28), rgba(201,165,76,0.06) 45%, rgba(201,165,76,0.25));
  z-index: 4;
  pointer-events: none;
}
.nl-hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  display: block;
  transition: opacity 0.45s ease;
}
.nl-hero-webgl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.nl-hero-webgl.is-live { opacity: 1; }

.nl-leader-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 6;
  pointer-events: none;
}

/* Dynamic Optical Reticle & Telemetry Callout inside Hero Arch */
.nl-reticle-box {
  position: absolute;
  width: 126px;
  height: 126px;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  z-index: 6;
  pointer-events: none;
  transition: transform 0.12s linear;
}
.nl-reticle-box i {
  position: absolute;
  width: 13px;
  height: 13px;
  border-color: var(--nl-gold-hi);
  border-style: solid;
}
.nl-reticle-box i:nth-child(1) { top: 0; left: 0; border-width: 1px 0 0 1px; }
.nl-reticle-box i:nth-child(2) { top: 0; right: 0; border-width: 1px 1px 0 0; }
.nl-reticle-box i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.nl-reticle-box i:nth-child(4) { bottom: 0; right: 0; border-width: 0 1px 1px 0; }

.nl-telemetry-card {
  position: absolute;
  top: 23%;
  left: 4%;
  z-index: 7;
  pointer-events: none;
  padding: 10px 13px;
  background: rgba(13, 13, 16, 0.78);
  border: 1px solid rgba(201, 165, 76, 0.34);
  backdrop-filter: blur(8px);
  font-family: var(--nl-mono);
  font-size: 10.5px;
  line-height: 1.55;
  color: var(--nl-ivory);
  direction: ltr;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
.nl-telemetry-card b {
  display: block;
  color: var(--nl-gold-hi);
  font-weight: 600;
  letter-spacing: 0.08em;
}
.nl-telemetry-card span {
  display: block;
  color: var(--nl-ivory-soft);
}
.nl-telemetry-card em {
  font-style: normal;
  color: var(--nl-gold-hi);
}

/* Giant Outlined Wireframe Clock "21:40" Overlapping Arch Base */
.nl-arch-ghost-time {
  position: relative;
  margin-top: -86px;
  z-index: 8;
  font-family: var(--nl-mono);
  font-size: clamp(5rem, 10.5vw, 9.2rem);
  font-weight: 300;
  line-height: 0.88;
  letter-spacing: 0.08em;
  color: transparent;
  -webkit-text-stroke: 1.15px rgba(201, 165, 76, 0.56);
  pointer-events: none;
  direction: ltr;
  unicode-bidi: isolate;
}
.nl-arch-caption {
  width: min(100%, 600px);
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--nl-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--nl-mute);
}
.nl-arch-caption strong {
  color: var(--nl-gold);
  font-weight: 500;
}

/* ==========================================================================
   2. NEXT DEPARTURES MECHANICAL SCHEDULE BAND (.nl-deps)
   ========================================================================== */
.nl-deps {
  border-bottom: 1px solid var(--nl-line);
  padding: 28px 0;
  background: rgba(18, 18, 23, 0.45);
}
.nl-deps-grid {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
}
.nl-deps-label {
  font-family: var(--nl-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--nl-gold);
  line-height: 1.6;
}
.nl-deps-label small {
  display: block;
  font-family: var(--nl-sans);
  letter-spacing: 0;
  font-size: 12.5px;
  color: var(--nl-mute);
  margin-top: 4px;
}
.nl-dep-rows {
  display: flex;
  flex-direction: column;
}
.nl-dep-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.15fr 0.85fr auto;
  align-items: center;
  gap: 16px;
  padding: 15px 10px;
  border-bottom: 1px solid rgba(201, 165, 76, 0.14);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.nl-dep-row:last-child { border-bottom: 0; }
.nl-dep-row:hover {
  background: rgba(201, 165, 76, 0.05);
  border-color: var(--nl-line-strong);
}
.nl-dep-title {
  font-family: var(--nl-serif);
  font-size: 1.35rem;
  color: var(--nl-ivory);
}
.nl-dep-route {
  font-family: var(--nl-mono);
  font-size: 12px;
  color: var(--nl-mute);
  letter-spacing: 0.08em;
}
.nl-dep-date {
  font-size: 13px;
  color: var(--nl-ivory-soft);
}
.nl-dep-date span {
  display: block;
  font-family: var(--nl-mono);
  font-size: 9.5px;
  color: var(--nl-gold);
  letter-spacing: 0.12em;
}
.nl-dep-left {
  font-size: 13px;
  color: var(--nl-mute);
}
.nl-dep-left b { color: var(--nl-ivory); }
.nl-dep-cta {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--nl-gold);
  font-family: var(--nl-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  padding: 6px 4px;
  transition: color 0.2s ease, transform 0.2s ease;
}
.nl-dep-cta:hover {
  color: var(--nl-gold-hi);
  transform: translateX(-4px);
}

/* ==========================================================================
   3. PINNED 4-CHAPTER FULL-SCREEN WEBGL JOURNEY (#journey · 440vh / 3,960px!)
   ========================================================================== */
.nl-chapter {
  position: relative;
  height: 440vh;
  min-height: 3600px;
  border-bottom: 1px solid var(--nl-line);
  background: #070709;
}
.nl-chapter-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.nl-chapter-webgl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}
/* Soft editorial vignette scrim on right side for razor-sharp Arabic beat copy (including sunlit clock fog!) */
.nl-chapter-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 78% 78% at 50% 50%, transparent 34%, rgba(7, 7, 10, 0.62) 100%),
    linear-gradient(270deg, rgba(8, 8, 11, 0.78) 0%, rgba(8, 8, 11, 0.36) 36%, transparent 62%);
}

.nl-chapter-kicker-top {
  position: absolute;
  top: 90px;
  right: clamp(24px, 4.2vw, 60px);
  left: auto;
  z-index: 6;
  font-family: var(--nl-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--nl-gold);
}

/* 4 Choreographed Story Slides (Exact original vertical anchors + staggered masked line reveal!) */
.nl-chapter-beats {
  position: relative;
  z-index: 6;
  width: min(1320px, calc(100% - clamp(28px, 6vw, 88px)));
  margin-inline: auto;
  height: 100%;
  pointer-events: none;
}
.nl-beat {
  position: absolute;
  inset-inline-start: 0;
  max-width: 490px;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s linear 0.65s;
}
/* Beat 01: Bottom-start (exact match to original .beat--bl!) */
.nl-beat--bl {
  bottom: clamp(54px, 8.5vh, 102px);
  top: auto;
}
/* Beats 02 & 03: Middle-start (exact match to original .beat--l!) */
.nl-beat--l {
  top: 50%;
  transform: translateY(-50%);
}
/* Beat 04: Top-start (exact match to original .beat--tl!) */
.nl-beat--tl {
  top: clamp(136px, 16.5vh, 176px);
  bottom: auto;
}
.nl-beat.is-active {
  visibility: visible;
  pointer-events: auto;
  transition: visibility 0s linear 0s;
}

.nl-beat-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-family: var(--nl-mono);
  font-size: 11.5px;
  color: var(--nl-gold);
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--nl-ease), transform 0.6s var(--nl-ease);
}
.nl-beat.is-active .nl-beat-tag {
  opacity: 1;
  transform: translateY(0);
}
.nl-beat-num {
  padding: 2px 7px;
  border: 1px solid var(--nl-line-strong);
  color: var(--nl-gold-hi);
}
.nl-beat h2 {
  font-family: var(--nl-serif);
  font-size: clamp(2.55rem, 4.7vw, 4.25rem);
  font-weight: 400;
  line-height: 1.24;
  color: var(--nl-ivory);
  margin-bottom: 18px;
}
/* Staggered clip-mask line wipe (exact replica of original .bl > span!) */
.nl-bl {
  display: block;
  overflow: hidden;
  padding: 0.08em 0;
}
.nl-bl > span {
  display: block;
  opacity: 0;
  transform: translateY(112%);
  transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s),
              opacity 0.52s ease var(--d, 0s);
}
.nl-beat.is-active .nl-bl > span {
  opacity: 1;
  transform: translateY(0%);
}
.nl-beat .nl-beat-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--nl-ivory-soft);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.56s ease 0.14s, transform 0.68s var(--nl-ease) 0.14s;
}
.nl-beat.is-active .nl-beat-body {
  opacity: 1;
  transform: translateY(0);
}
.nl-beat-cta {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.56s ease 0.24s, transform 0.68s var(--nl-ease) 0.24s;
}
.nl-beat.is-active .nl-beat-cta {
  opacity: 1;
  transform: translateY(0);
}

/* Vertical 4-Stop Railway Progress Rail (Left Edge in RTL, positioned at exact --at timeline marks!) */
.nl-chapter-rail {
  position: absolute;
  inset-inline-end: clamp(20px, 3.6vw, 52px);
  top: 50%;
  transform: translateY(-50%);
  height: min(360px, 44vh);
  width: 96px;
  z-index: 7;
}
.nl-rail-track {
  position: absolute;
  inset-inline-end: 4px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(201, 165, 76, 0.24);
}
.nl-rail-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--nl-gold-hi);
  box-shadow: 0 0 10px rgba(201, 165, 76, 0.7);
}
.nl-rail-stop {
  position: absolute;
  top: calc(var(--at, 0) * 100%);
  inset-inline-end: 0;
  transform: translateY(-50%);
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(233, 225, 207, 0.55);
  font-family: var(--nl-sans);
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-inline-end: 18px;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.25s ease;
}
.nl-rail-stop i {
  position: absolute;
  inset-inline-end: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #0D0D10;
  border: 1.4px solid rgba(201, 165, 76, 0.65);
  transition: background-color 0.25s ease, transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.nl-rail-stop.is-passed,
.nl-rail-stop.is-active {
  color: var(--nl-ivory);
}
.nl-rail-stop.is-passed i,
.nl-rail-stop.is-active i {
  background: var(--nl-gold);
  border-color: var(--nl-gold-hi);
}
.nl-rail-stop.is-active i {
  transform: scale(1.3);
  box-shadow: 0 0 12px rgba(201, 165, 76, 0.85);
}

/* Bottom-Left Live Scroll-Scrubbed Clock & Kilometers (aligned beneath rail) */
.nl-chapter-telemetry {
  position: absolute;
  bottom: 32px;
  left: clamp(20px, 3.6vw, 52px);
  right: auto;
  z-index: 7;
  text-align: left;
  font-family: var(--nl-mono);
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
}
.nl-chapter-clock {
  display: block;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 400;
  color: var(--nl-gold-hi);
  line-height: 1;
  letter-spacing: 0.08em;
}
.nl-chapter-km {
  display: block;
  font-size: 11.5px;
  color: var(--nl-mute);
  margin-top: 6px;
  letter-spacing: 0.14em;
}

/* ==========================================================================
   SHARED PHOTO PLATE WITH ANIMATED FILM GRAIN + SCROLL PARALLAX ZOOM (1.18→1.0)
   ========================================================================== */
.nl-ph {
  position: relative;
  overflow: hidden;
  background: #08080B;
}
.nl-ph > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.18);
  will-change: transform;
}
/* Animated 24fps Organic Copperplate Film Grain */
.nl-ph::after {
  content: "";
  position: absolute;
  inset: -40%;
  pointer-events: none;
  z-index: 3;
  opacity: 0.065;
  background-image: radial-gradient(rgba(233, 225, 207, 0.85) 0.7px, transparent 0.7px);
  background-size: 4px 4px;
  animation: nlGrain 0.45s steps(4) infinite;
}
@keyframes nlGrain {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-2%, 1.5%); }
  50%  { transform: translate(1.5%, -2%); }
  75%  { transform: translate(-1%, -1.5%); }
  100% { transform: translate(2%, 1%); }
}

/* Signature Brass L-Corner Brackets */
.nl-corners {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}
.nl-corners::before,
.nl-corners::after {
  content: "";
  position: absolute;
  bottom: 16px;
  width: 18px;
  height: 18px;
  border-color: var(--nl-gold);
  border-style: solid;
}
.nl-corners::before { left: 16px; border-width: 0 0 1px 1px; }
.nl-corners::after { right: 16px; border-width: 0 1px 1px 0; }

/* Shared Section Headers */
.nl-sec {
  padding: clamp(82px, 10vw, 132px) 0;
  border-bottom: 1px solid var(--nl-line);
  position: relative;
}
.nl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--nl-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--nl-gold);
  margin-bottom: 24px;
}
.nl-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--nl-gold);
}
.nl-h2 {
  font-family: var(--nl-serif);
  font-size: clamp(2.45rem, 4.6vw, 4.2rem);
  font-weight: 400;
  line-height: 1.22;
  color: var(--nl-ivory);
}

/* ==========================================================================
   4. CABINS SECTION (#cabins)
   ========================================================================== */
.nl-cabins-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 52px;
}
.nl-cabins-head p {
  max-width: 500px;
  color: var(--nl-ivory-soft);
  margin-top: 14px;
}
.nl-cabins-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 38px);
}
.nl-cabin-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--nl-ease);
}
.nl-cabin-card:hover { transform: translateY(-4px); }
.nl-cabin-media {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--nl-line);
  margin-bottom: 22px;
  box-shadow: inset 0 -70px 60px -20px rgba(13, 13, 16, 0.78);
}
.nl-cabin-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.nl-cabin-name {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.nl-cabin-roman {
  font-family: var(--nl-serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--nl-gold);
}
.nl-cabin-name h3 {
  font-family: var(--nl-serif);
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--nl-ivory);
}
.nl-cabin-price {
  text-align: end;
  font-family: var(--nl-mono);
  color: var(--nl-gold-hi);
  font-size: 1.05rem;
  white-space: nowrap;
}
.nl-cabin-price small {
  display: block;
  font-family: var(--nl-sans);
  font-size: 11px;
  color: var(--nl-mute);
}
.nl-cabin-desc {
  font-size: 14.5px;
  color: var(--nl-ivory-soft);
  margin-bottom: 18px;
}
.nl-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.nl-spec-chip {
  padding: 5px 10px;
  border: 1px solid var(--nl-line);
  font-size: 11.5px;
  color: var(--nl-mute);
}

/* ==========================================================================
   5. ROUTES SECTION (#routes) — FULL-BLEED VIADUCT + ANIMATED SVG RAIL MAP
   ========================================================================== */
.nl-routes-sec {
  padding-top: 0;
}
.nl-viaduct-banner {
  position: relative;
  width: 100%;
  min-height: clamp(440px, 60vh, 620px);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--nl-line);
  margin-bottom: clamp(48px, 6vw, 76px);
}
.nl-viaduct-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.nl-viaduct-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(270deg, rgba(13, 13, 16, 0.90) 0%, rgba(13, 13, 16, 0.54) 44%, rgba(13, 13, 16, 0.14) 100%);
  pointer-events: none;
}
.nl-viaduct-copy {
  position: relative;
  z-index: 4;
  max-width: 520px;
  padding: 48px 0;
}

.nl-routes-split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: start;
}
.nl-routes-intro {
  color: var(--nl-ivory-soft);
  font-size: 15.5px;
  margin-bottom: 28px;
}
.nl-route-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--nl-line);
}
.nl-route-tab {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--nl-line);
  padding: 20px 8px;
  text-align: start;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--nl-ivory);
  transition: background-color 0.25s ease, padding-inline-start 0.25s var(--nl-ease);
}
.nl-route-tab:hover { background: rgba(201, 165, 76, 0.05); }
.nl-route-tab.is-active {
  background: rgba(201, 165, 76, 0.07);
  padding-inline-start: 16px;
}
.nl-route-tab strong {
  display: block;
  font-family: var(--nl-serif);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.25;
}
.nl-route-tab small {
  font-family: var(--nl-mono);
  font-size: 11px;
  color: var(--nl-mute);
  letter-spacing: 0.08em;
}
.nl-route-diamond {
  color: var(--nl-gold);
  font-size: 13px;
  flex-shrink: 0;
}

.nl-map-frame {
  position: relative;
  border: 1px solid var(--nl-line);
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(201, 165, 76, 0.032) 0px,
      rgba(201, 165, 76, 0.032) 1px,
      transparent 1px,
      transparent 14px
    ),
    #0B0B0F;
  padding: 28px 26px;
}
.nl-map-frame::before,
.nl-map-frame::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--nl-gold-hi);
  border-style: solid;
  pointer-events: none;
}
.nl-map-frame::before { top: -1px; left: -1px; border-width: 1.5px 0 0 1.5px; }
.nl-map-frame::after { bottom: -1px; right: -1px; border-width: 0 1.5px 1.5px 0; }

.nl-map-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.nl-svg-track {
  stroke: var(--nl-gold);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.9s var(--nl-ease);
}
.nl-station-dot {
  cursor: pointer;
  transition: r 0.2s ease, fill 0.2s ease;
}
.nl-station-lbl {
  fill: var(--nl-ivory-soft);
  font-family: var(--nl-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: fill 0.2s ease;
}
.nl-station-lbl.is-on { fill: var(--nl-gold-hi); font-weight: 600; }

.nl-station-card {
  margin-top: 16px;
  border: 1px solid var(--nl-line);
  padding: 20px 24px;
  background:
    radial-gradient(circle at 20% 50%, rgba(201, 165, 76, 0.06), transparent 65%),
    rgba(16, 16, 22, 0.82);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.nl-station-time {
  font-family: var(--nl-mono);
  font-size: 1.8rem;
  color: var(--nl-gold-hi);
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}
.nl-station-meta h4 {
  font-family: var(--nl-serif);
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--nl-ivory);
}
.nl-station-meta p {
  font-size: 14px;
  color: var(--nl-ivory-soft);
}
.nl-station-meta small {
  display: block;
  margin-top: 5px;
  font-family: var(--nl-mono);
  font-size: 11px;
  color: var(--nl-gold);
}

/* ==========================================================================
   6. THE DINING CAR (#dining)
   ========================================================================== */
.nl-dining-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
}
.nl-dining-fig {
  position: relative;
}
.nl-dining-plate {
  aspect-ratio: 4 / 3.6;
  border: 1px solid var(--nl-line);
}
.nl-burgundy-seal {
  position: absolute;
  top: 20px;
  inset-inline-start: 20px;
  z-index: 6;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--nl-burgundy);
  border: 1px solid var(--nl-gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}
.nl-burgundy-seal strong {
  font-family: var(--nl-mono);
  font-size: 18px;
  color: var(--nl-gold-hi);
  line-height: 1.1;
  direction: ltr;
}
.nl-burgundy-seal span {
  font-size: 10.5px;
  color: var(--nl-ivory);
  margin-top: 2px;
}
.nl-fig-caption {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--nl-mute);
}
.nl-fig-caption b {
  color: var(--nl-gold);
  font-family: var(--nl-mono);
  font-weight: 500;
  margin-inline-end: 8px;
}

.nl-menu-list {
  margin-top: 28px;
  border-top: 1px solid var(--nl-line);
}
.nl-course-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px dashed rgba(201, 165, 76, 0.22);
  align-items: baseline;
}
.nl-course-num {
  font-family: var(--nl-serif);
  font-style: italic;
  color: var(--nl-gold);
  font-size: 1.15rem;
}
.nl-course-row strong {
  display: block;
  font-family: var(--nl-serif);
  font-size: 1.28rem;
  font-weight: 400;
  color: var(--nl-ivory);
}
.nl-course-row small {
  display: block;
  font-family: var(--nl-mono);
  font-size: 10.5px;
  color: var(--nl-mute);
  margin-top: 2px;
}
.nl-quote-inline {
  margin-top: 28px;
  padding-inline-start: 18px;
  border-inline-start: 2px solid var(--nl-gold);
  font-family: var(--nl-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--nl-ivory);
}
.nl-quote-inline cite {
  display: block;
  margin-top: 6px;
  font-family: var(--nl-sans);
  font-style: normal;
  font-size: 12.5px;
  color: var(--nl-gold);
}

/* ==========================================================================
   7. FULL-BLEED MOONLIT LAKE WINDOW (#night · 02:05)
   ========================================================================== */
.nl-night {
  position: relative;
  min-height: clamp(640px, 86vh, 840px);
  display: flex;
  align-items: flex-end;
  padding: 84px 0 68px;
  border-bottom: 1px solid var(--nl-line);
  overflow: hidden;
}
.nl-night-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.nl-night-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(270deg, rgba(10, 10, 14, 0.88) 0%, rgba(10, 10, 14, 0.56) 38%, rgba(10, 10, 14, 0.14) 72%),
    linear-gradient(to top, rgba(10, 10, 14, 0.84) 0%, transparent 48%);
  pointer-events: none;
}
.nl-night-copy {
  position: relative;
  z-index: 4;
  max-width: 560px;
}
.nl-night-quote {
  font-family: var(--nl-serif);
  font-size: clamp(2rem, 3.8vw, 3.35rem);
  font-weight: 400;
  line-height: 1.22;
  color: var(--nl-ivory);
  margin-bottom: 20px;
}
.nl-night-author {
  font-size: 13.5px;
  color: var(--nl-gold);
}
.nl-night-ghost-clock {
  position: absolute;
  bottom: -24px;
  left: clamp(24px, 4vw, 64px);
  right: auto;
  z-index: 4;
  font-family: var(--nl-mono);
  font-size: clamp(5.5rem, 13vw, 11.5rem);
  font-weight: 300;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1.15px rgba(201, 165, 76, 0.48);
  pointer-events: none;
  direction: ltr;
  unicode-bidi: isolate;
}

/* ==========================================================================
   8. THE CREW (#crew)
   ========================================================================== */
.nl-crew-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.nl-crew-body {
  font-size: 16.5px;
  line-height: 1.9;
  color: var(--nl-ivory-soft);
  margin: 22px 0 28px;
}
.nl-crew-sig {
  font-family: var(--nl-serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--nl-gold);
}
.nl-crew-plate {
  aspect-ratio: 3 / 4;
  max-width: 540px;
  margin-inline-start: auto;
  border: 1px solid var(--nl-line);
}

/* ==========================================================================
   9. CLOSING TIMETABLE LETTERS (#letters)
   ========================================================================== */
.nl-closing {
  position: relative;
  overflow: hidden;
  min-height: clamp(680px, 82vh, 880px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 0;
  border-bottom: 1px solid var(--nl-line);
  background:
    radial-gradient(ellipse 56% 52% at 50% 50%, rgba(201, 165, 76, 0.065), transparent 72%),
    repeating-linear-gradient(
      to bottom,
      rgba(233, 225, 207, 0.028) 0px,
      rgba(233, 225, 207, 0.028) 1px,
      transparent 1px,
      transparent 16px
    ),
    #0B0B0F;
}
.nl-closing-steam {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
  opacity: 0.72;
}
.nl-closing-in {
  position: relative;
  z-index: 3;
  max-width: 680px;
  margin-inline: auto;
}
.nl-closing-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--nl-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--nl-gold);
  margin-bottom: 20px;
}
.nl-closing-kicker::before,
.nl-closing-kicker::after {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--nl-gold-dim);
}
.nl-closing-h2 {
  font-family: var(--nl-serif);
  font-size: clamp(3rem, 6.2vw, 5.4rem);
  font-weight: 400;
  line-height: 1.06;
  margin-bottom: 20px;
}
.nl-closing-sub {
  max-width: 460px;
  margin: 0 auto 34px;
  color: var(--nl-ivory-soft);
  font-size: 15.5px;
}
.nl-sub-form {
  display: flex;
  max-width: 460px;
  margin: 0 auto 24px;
  border: 1px solid var(--nl-line-strong);
  background: rgba(13, 13, 16, 0.8);
}
.nl-sub-form input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  padding: 14px 16px;
  color: var(--nl-ivory);
  font-family: var(--nl-sans);
  font-size: 14px;
}
.nl-sub-form input:focus { outline: none; }
.nl-sub-form button {
  padding: 14px 24px;
  border: 0;
  background: var(--nl-gold);
  color: #0D0D10;
  font-family: var(--nl-sans);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}
.nl-sub-form button:hover { background: var(--nl-gold-hi); }
.nl-sub-msg {
  min-height: 22px;
  font-size: 13px;
  color: var(--nl-gold-hi);
  margin-bottom: 18px;
}

/* ==========================================================================
   10. MULTI-COLUMN ART DECO FOOTER (.nl-foot)
   ========================================================================== */
.nl-foot {
  padding: 64px 0 32px;
  background: #0A0A0D;
}
.nl-foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--nl-line);
}
.nl-foot-col h4 {
  font-family: var(--nl-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--nl-gold);
  margin-bottom: 14px;
}
.nl-foot-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  color: var(--nl-mute);
}
.nl-foot-col a {
  text-decoration: none;
  color: var(--nl-ivory-soft);
  transition: color 0.2s ease;
}
.nl-foot-col a:hover { color: var(--nl-gold-hi); }
.nl-foot-wordmark {
  text-align: center;
  font-family: var(--nl-serif);
  font-size: clamp(2.6rem, 8.2vw, 7.2rem);
  letter-spacing: 0.22em;
  color: rgba(201, 165, 76, 0.14);
  line-height: 1.1;
  padding: 34px 0 20px;
  direction: ltr;
  user-select: none;
}
.nl-showcase-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--nl-line);
  font-size: 13px;
}
.nl-showcase-bar a {
  color: var(--nl-gold);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nl-showcase-bar a:hover { color: var(--nl-gold-hi); }

/* ==========================================================================
   ART DECO RESERVATION & CABIN COMPARE MODALS (visibility: hidden when closed!)
   ========================================================================== */
.nl-modal {
  position: fixed;
  inset: 0;
  z-index: 9400;
  background: rgba(7, 7, 10, 0.84);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.nl-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.nl-modal-box {
  width: min(560px, 100%);
  background: #111116;
  border: 1px solid var(--nl-line-strong);
  padding: 32px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.nl-modal-close {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--nl-line);
  background: transparent;
  color: var(--nl-ivory);
  cursor: pointer;
  font-size: 16px;
}
.nl-modal-close:hover { border-color: var(--nl-gold); color: var(--nl-gold-hi); }
.nl-field {
  margin-bottom: 16px;
}
.nl-field label {
  display: block;
  font-size: 12.5px;
  color: var(--nl-gold);
  margin-bottom: 6px;
}
.nl-field select,
.nl-field input {
  width: 100%;
  padding: 11px 14px;
  background: #0B0B0F;
  border: 1px solid var(--nl-line-strong);
  color: var(--nl-ivory);
  font-family: var(--nl-sans);
  font-size: 14px;
}
.nl-fare-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid var(--nl-line);
  background: rgba(201, 165, 76, 0.06);
  margin: 18px 0;
}
.nl-fare-summary strong {
  font-family: var(--nl-mono);
  font-size: 1.35rem;
  color: var(--nl-gold-hi);
}
.nl-compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  font-size: 13.5px;
}
.nl-compare-table th,
.nl-compare-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--nl-line);
  text-align: start;
}
.nl-compare-table th { color: var(--nl-gold); font-weight: 600; }

/* Scroll reveal helper (never stuck hidden) */
.nl-rev {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity 0.72s var(--nl-ease), transform 0.78s var(--nl-ease);
}
.nl-rev.is-in {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .nl-hero-grid,
  .nl-dining-grid,
  .nl-crew-grid,
  .nl-routes-split,
  .nl-deps-grid {
    grid-template-columns: 1fr;
  }
  .nl-cabins-grid { grid-template-columns: 1fr; }
  .nl-foot-grid { grid-template-columns: 1fr 1fr; }
  .nl-nav { display: none; }
  .nl-dep-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .nl-chapter-rail { display: none; }
}

@media (max-width: 640px) {
  .nl-flap-board { grid-template-columns: repeat(2, 1fr); }
  .nl-flap-cell:nth-child(2) { border-inline-end: 0; }
  .nl-flap-cell:nth-child(1),
  .nl-flap-cell:nth-child(2) { border-bottom: 1px solid var(--nl-line); }
  .nl-foot-grid { grid-template-columns: 1fr; }
  .nl-arch-ghost-time { margin-top: -54px; }
}

@media (prefers-reduced-motion: reduce) {
  .nl-ph::after,
  .nl-dot-pulse,
  .nl-flap-cell strong.is-tick {
    animation: none !important;
  }
  .nl-rev { opacity: 1 !important; transform: none !important; }
  .nl-ph > img { transform: none !important; }
}
