/*
 * Nobie Corridor — main stylesheet (v1.0.0)
 * Design language: the route itself. Waybills, route codes, departure
 * boards, customs stamps. Dark-first (Kola night) with a Shea paper
 * light scheme. Type: Fraunces / Sora / IBM Plex Mono.
 */

/* ============================================================
   1. TOKENS — dark-first
   ============================================================ */

:root {
  /* Palette */
  --kola: #0a1c1c;
  --kola-deep: #061313;
  --kola-raised: #102726;
  --kola-high: #163230;
  --shea: #f3f4ef;
  --aqua: #66cccc;
  --aqua-bright: #84dcdc;
  --gold: #e5a33d;
  --gold-bright: #f0b95c;
  --kente: #c8472b;
  --mist: #9db4b2;

  /* Semantic (dark scheme) */
  --bg: var(--kola);
  --bg-deep: var(--kola-deep);
  --surface: var(--kola-raised);
  --surface-high: var(--kola-high);
  --ink: var(--shea);
  --ink-muted: var(--mist);
  --line: rgba(243, 244, 239, 0.14);
  --line-strong: rgba(243, 244, 239, 0.26);
  --accent: var(--aqua);
  --accent-ink: #042424;
  --accent-2: var(--gold);
  --stamp: var(--kente);

  --shadow-1: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 14px 40px rgba(0, 0, 0, 0.45);

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Sora", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  /* Motion */
  --dur-1: 200ms;
  --dur-2: 420ms;
  --dur-3: 700ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-emph: cubic-bezier(0.2, 0, 0, 1);

  /* Shape: documents have corners, stamps are round */
  --radius-doc: 4px;
  --radius-soft: 14px;

  /* Bootstrap bridge */
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--ink);
  --bs-border-color: var(--line);
  --bs-link-color: var(--accent);

  color-scheme: dark;
}

[data-bs-theme="light"] {
  --bg: var(--shea);
  --bg-deep: #e9ede6;
  --surface: #fdfefb;
  --surface-high: #f4f8f3;
  --ink: #142424;
  --ink-muted: #546b69;
  --line: rgba(20, 36, 36, 0.16);
  --line-strong: rgba(20, 36, 36, 0.3);
  --accent: #157a7a;
  --accent-ink: #042424;
  --accent-2: #a8761f;
  --stamp: #b53e24;

  --shadow-1: 0 2px 10px rgba(31, 41, 36, 0.12);
  --shadow-2: 0 14px 40px rgba(31, 41, 36, 0.18);

  color-scheme: light;
}

/* ============================================================
   2. BASE
   ============================================================ */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  line-height: 1.6;
  transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
}

/* Subtle paper grain on light, deep-space vignette on dark */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(102, 204, 204, 0.12), transparent 55%),
    radial-gradient(100% 80% at 0% 100%, rgba(102, 204, 204, 0.05), transparent 50%);
  pointer-events: none;
}

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

a {
  color: inherit;
}

::selection {
  color: var(--accent-ink);
  background: var(--aqua-bright);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.material-symbols-rounded {
  font-size: 1.2em;
  line-height: 1;
  vertical-align: -0.18em;
}

.mono {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.md-surface {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}

.section-pad {
  padding: clamp(72px, 9vw, 130px) 0;
}

.section-head {
  max-width: 880px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.74rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
.entry-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 1000px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(3rem, 7.4vw, 6.6rem);
  line-height: 1.02;
}

h1 em {
  color: var(--aqua-bright);
  font-style: italic;
  font-weight: 600;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4.4vw, 3.9rem);
  line-height: 1.06;
}

h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  line-height: 1.15;
}

p {
  color: var(--ink-muted);
}

/* ============================================================
   3. BUTTONS
   ============================================================ */

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: var(--radius-doc);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition:
    background-color var(--dur-1) var(--ease-out),
    color var(--dur-1) var(--ease-out),
    border-color var(--dur-1) var(--ease-out),
    box-shadow var(--dur-1) var(--ease-out),
    transform var(--dur-1) var(--ease-emph);
}

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

.btn-lg {
  --bs-btn-padding-y: 1rem;
  --bs-btn-padding-x: 1.6rem;
}

.btn-brand {
  color: var(--accent-ink);
  background: var(--aqua);
  border: 1px solid var(--aqua);
}

.btn-brand:hover,
.btn-brand:focus {
  color: var(--accent-ink);
  background: var(--aqua-bright);
  border-color: var(--aqua-bright);
  box-shadow: 0 10px 28px rgba(102, 204, 204, 0.3);
}

.btn-glass {
  color: #ffffff;
  background: rgba(246, 241, 230, 0.08);
  border: 1px solid rgba(246, 241, 230, 0.32);
  backdrop-filter: blur(10px);
}

.btn-glass:hover,
.btn-glass:focus {
  color: #ffffff;
  background: rgba(246, 241, 230, 0.16);
  border-color: rgba(246, 241, 230, 0.55);
}

.btn-light.nav-pill {
  color: var(--accent-ink);
  background: var(--aqua);
  border-color: var(--aqua);
}

.ripple {
  position: relative;
  overflow: hidden;
}

.ripple-wave {
  position: absolute;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.22;
  transform: scale(0);
  animation: nobie-ripple var(--dur-3) var(--ease-out) forwards;
  pointer-events: none;
}

@keyframes nobie-ripple {
  to {
    transform: scale(2.6);
    opacity: 0;
  }
}

/* ============================================================
   4. HEADER / TOPBAR / NAV
   ============================================================ */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1100;
  width: 100%;
  height: 3px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--aqua), var(--gold));
  transform-origin: left center;
  transform: scaleX(var(--scroll-progress, 0));
}

.site-header {
  z-index: 1050;
  transition:
    background-color var(--dur-2) var(--ease-out),
    box-shadow var(--dur-2) var(--ease-out),
    transform var(--dur-2) var(--ease-emph);
}

.site-header.scrolled {
  background: color-mix(in srgb, var(--kola-deep) 92%, transparent);
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(14px);
}

.site-header.scrolled .topbar {
  margin-top: -34px;
}

.topbar {
  height: 34px;
  overflow: hidden;
  color: var(--mist);
  background: var(--kola-deep);
  border-bottom: 1px solid var(--line);
  font-size: 0.66rem;
  transition: margin-top var(--dur-2) var(--ease-emph);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
  padding: 0 1rem;
}

.topbar .route-arrow,
.topbar .dot {
  color: var(--aqua);
}

.topbar-mail {
  color: var(--mist);
  text-decoration: none;
}

.topbar-mail:hover {
  color: var(--shea);
}

.navbar {
  padding: 14px 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-wordmark {
  display: grid;
  line-height: 0.92;
  color: #ffffff;
}

.brand-wordmark span {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  font-style: italic;
}

.brand-wordmark small {
  color: var(--aqua);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.brand-wordmark-logo img {
  max-width: 220px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.nav-link {
  position: relative;
  color: rgba(246, 241, 230, 0.78);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: var(--bs-navbar-nav-link-padding-x, 0.5rem);
  right: var(--bs-navbar-nav-link-padding-x, 0.5rem);
  bottom: 0.2em;
  height: 1px;
  background: var(--aqua);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-2) var(--ease-emph);
}

.nav-link:focus,
.nav-link:hover,
.current-menu-item > .nav-link {
  color: #ffffff;
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.current-menu-item > .nav-link::after {
  transform: scaleX(1);
}

.nav-pill {
  margin-left: 0.7rem;
}

.nav-pill::after {
  display: none;
}

.material-toggle {
  color: #ffffff;
  border: 1px solid rgba(246, 241, 230, 0.24);
  border-radius: var(--radius-doc);
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-left: 0.6rem;
  padding: 0;
  color: rgba(246, 241, 230, 0.85);
  background: transparent;
  border: 1px solid rgba(246, 241, 230, 0.24);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease-out), transform var(--dur-2) var(--ease-emph);
}

.theme-toggle:hover {
  color: #ffffff;
  background: rgba(246, 241, 230, 0.1);
  transform: rotate(35deg);
}

.theme-toggle .material-symbols-rounded {
  font-size: 1.25rem;
  vertical-align: 0;
}

.theme-toggle .icon-dark,
[data-bs-theme="dark"] .theme-toggle .icon-light {
  display: none;
}

[data-bs-theme="dark"] .theme-toggle .icon-dark {
  display: block;
}

/* ============================================================
   5. HERO — the signature
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  color: #ffffff;
  background: var(--kola-deep);
}

.hero-carousel,
.hero-carousel .carousel-inner,
.hero-slide {
  min-height: 100vh;
}

/* Slow 900ms crossfade between slides */
.hero-carousel .carousel-item {
  transition: opacity 900ms var(--ease-out);
}

.hero-media {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.06);
  translate: 0 var(--parallax-y, 0px);
  will-change: transform, translate;
}

/* Ken Burns restarts every time a slide becomes active */
.carousel-item.active .hero-media {
  animation: kenburns 16s var(--ease-out) both;
}

@keyframes kenburns {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1.16);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(102, 204, 204, 0.18), transparent 32%),
    linear-gradient(160deg, rgba(6, 19, 19, 0.95) 0%, rgba(10, 28, 28, 0.78) 48%, rgba(6, 19, 19, 0.92) 100%);
}

/* Animated flight arc */
.hero-arc {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  width: 100%;
  height: min(62vh, 540px);
  pointer-events: none;
}

.arc-path {
  fill: none;
  stroke: var(--aqua);
  stroke-width: 1.6;
  stroke-dasharray: 7 9;
  opacity: 0.65;
  animation: arc-draw 2.4s var(--ease-out) 300ms both, arc-flow 30s linear 2.7s infinite;
}

@keyframes arc-draw {
  from {
    stroke-dashoffset: 1300;
    opacity: 0;
  }
  to {
    stroke-dashoffset: 0;
    opacity: 0.65;
  }
}

@keyframes arc-flow {
  to {
    stroke-dashoffset: -480;
  }
}

.arc-origin,
.arc-dest {
  fill: var(--aqua);
  opacity: 0;
  animation: arc-pop var(--dur-2) var(--ease-out) both;
}

.arc-origin {
  animation-delay: 300ms;
}

.arc-dest {
  animation-delay: 2.5s;
}

@keyframes arc-pop {
  from {
    opacity: 0;
    transform: scale(0.4);
    transform-origin: center;
    transform-box: fill-box;
  }
  to {
    opacity: 1;
    transform: scale(1);
    transform-origin: center;
    transform-box: fill-box;
  }
}

.arc-plane {
  fill: #ffffff;
  filter: drop-shadow(0 0 6px rgba(132, 220, 220, 0.95));
}

.arc-label {
  fill: var(--aqua-bright);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: clamp(170px, 22vh, 240px);
  padding-bottom: clamp(140px, 18vh, 200px);
}

.waybill-tag {
  display: inline-block;
  margin: 0 0 22px;
  padding: 7px 14px;
  color: var(--aqua-bright);
  border: 1px solid rgba(102, 204, 204, 0.45);
  border-radius: var(--radius-doc);
  font-size: 0.72rem;
  text-transform: uppercase;
  background: rgba(7, 20, 16, 0.4);
  backdrop-filter: blur(6px);
}

.hero-copy {
  max-width: 660px;
  margin: 26px 0 0;
  color: rgba(246, 241, 230, 0.82);
  font-size: clamp(1.04rem, 1.8vw, 1.22rem);
}

.nb-anim .hero-slide .waybill-tag,
.nb-anim .hero-slide .hero-copy,
.nb-anim .hero-slide .hero-cta {
  opacity: 0;
}

.carousel-item.active .waybill-tag {
  animation: hero-rise var(--dur-3) var(--ease-out) 150ms both;
}

.carousel-item.active .hero-copy {
  animation: hero-rise var(--dur-3) var(--ease-out) 420ms both;
}

.carousel-item.active .hero-cta {
  animation: hero-rise var(--dur-3) var(--ease-out) 560ms both;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Split-text headline */
.split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.nb-anim .split-word > span {
  display: inline-block;
  transform: translateY(110%);
}

.split-word {
  vertical-align: bottom;
}

.is-split-ready .split-word > span {
  animation: split-rise var(--dur-3) var(--ease-out) both;
  animation-delay: calc(var(--word-index, 0) * 65ms + 150ms);
}

@keyframes split-rise {
  from {
    transform: translateY(110%) rotate(1.5deg);
  }
  to {
    transform: translateY(0) rotate(0);
  }
}

/* Slider navigation */
.hero-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 78px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 clamp(16px, 4vw, 48px);
}

.hero-indicators {
  display: flex;
  gap: 8px;
}

.hero-indicators button {
  width: 34px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: rgba(243, 244, 239, 0.32);
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease-out), width var(--dur-2) var(--ease-emph);
}

.hero-indicators button:hover {
  background: rgba(243, 244, 239, 0.6);
}

.hero-indicators button.active {
  width: 58px;
  background: var(--aqua);
}

.hero-arrows {
  display: flex;
  gap: 10px;
}

.hero-control {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  color: rgba(243, 244, 239, 0.85);
  background: rgba(6, 19, 19, 0.5);
  border: 1px solid rgba(243, 244, 239, 0.3);
  border-radius: var(--radius-doc);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition:
    color var(--dur-1) var(--ease-out),
    border-color var(--dur-1) var(--ease-out),
    background-color var(--dur-1) var(--ease-out),
    transform var(--dur-1) var(--ease-emph);
}

.hero-control:hover {
  color: var(--accent-ink);
  border-color: var(--aqua);
  background: var(--aqua);
  transform: translateY(-2px);
}

.hero-control .material-symbols-rounded {
  font-size: 1.4rem;
  vertical-align: 0;
}

/* Route ticker */
.hero-ticker,
.footer-ticker {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: rgba(7, 20, 16, 0.82);
  backdrop-filter: blur(10px);
}

.footer-ticker {
  background: var(--kola-deep);
  border-bottom: 1px solid var(--line);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-roll 36s linear infinite;
}

.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px clamp(20px, 3vw, 42px);
  border-right: 1px solid var(--line);
  color: rgba(246, 241, 230, 0.72);
  font-size: 0.72rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-track em {
  color: var(--aqua);
  font-style: normal;
}

@keyframes ticker-roll {
  to {
    transform: translateX(-50%);
  }
}

.hero-ticker:hover .ticker-track,
.footer-ticker:hover .ticker-track {
  animation-play-state: paused;
}

/* Perforated ticket-stub edge */
.stub-edge {
  position: relative;
  z-index: 2;
  height: 14px;
  background:
    radial-gradient(circle at 7px 0, transparent 6px, var(--bg) 7px) top left / 22px 14px repeat-x;
}

/* ============================================================
   6. MANIFEST (services)
   ============================================================ */

.manifest-list {
  border-top: 1px solid var(--line-strong);
}

.manifest-row {
  display: grid;
  grid-template-columns: 110px 300px 1fr;
  gap: clamp(20px, 3.5vw, 56px);
  align-items: center;
  padding: clamp(28px, 4vw, 48px) 0;
  border-bottom: 1px dashed var(--line-strong);
  transition: background-color var(--dur-2) var(--ease-out);
}

.manifest-row:hover {
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 60%, transparent) 20%, transparent);
}

.manifest-no {
  color: var(--accent);
  font-size: clamp(1rem, 1.6vw, 1.3rem);
}

.manifest-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-doc);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
}

.manifest-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
  transition: transform var(--dur-3) var(--ease-emph);
}

.manifest-row:hover .manifest-media img {
  transform: scale(1.06);
}

.manifest-body {
  display: grid;
  gap: 12px;
}

.manifest-label {
  margin: 0;
  color: var(--accent-2);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.manifest-copy {
  max-width: 620px;
  margin: 0;
}

.arrow-link {
  width: fit-content;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

.arrow-link span {
  display: inline-block;
  transition: transform var(--dur-1) var(--ease-emph);
}

.arrow-link:hover span {
  transform: translateX(6px);
}

/* ============================================================
   7. PROOF / STAMP STATS
   ============================================================ */

.proof {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-copy {
  max-width: 560px;
  margin-top: 22px;
  font-size: 1.06rem;
}

.stat-tile {
  position: relative;
  min-height: 210px;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-doc);
  background: var(--surface);
  transition: transform var(--dur-2) var(--ease-emph), border-color var(--dur-2) var(--ease-out);
}

.stat-tile:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.stamp-ring {
  position: absolute;
  top: -26px;
  right: -26px;
  width: 96px;
  height: 96px;
  border: 2px solid color-mix(in srgb, var(--stamp) 55%, transparent);
  border-radius: 50%;
  rotate: -14deg;
  transition: rotate var(--dur-3) var(--ease-emph);
}

.stamp-ring::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed color-mix(in srgb, var(--stamp) 45%, transparent);
  border-radius: 50%;
}

.stat-tile:hover .stamp-ring {
  rotate: 8deg;
}

.stat-tile strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6vw, 5.6rem);
  font-weight: 600;
  line-height: 0.9;
}

.stat-tile .stat-label {
  color: var(--ink-muted);
  font-size: 0.68rem;
}

/* ============================================================
   8. DEPARTURE BOARD (locations)
   ============================================================ */

.board {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-doc);
  overflow: hidden;
  background: var(--surface);
}

.board-head,
.board-row {
  display: grid;
  grid-template-columns: 110px 1.4fr 1fr 110px;
  gap: 16px;
  align-items: center;
  padding: 18px clamp(16px, 3vw, 32px);
}

.board-head {
  color: var(--ink-muted);
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line-strong);
  font-size: 0.64rem;
}

.board-row {
  border-bottom: 1px solid var(--line);
  transition: background-color var(--dur-1) var(--ease-out);
}

.board-row:last-child {
  border-bottom: 0;
}

.board-row:hover {
  background: var(--surface-high);
}

.board-code {
  color: var(--accent);
  font-size: 1.05rem;
}

.board-country {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.board-country strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 600;
}

.board-region {
  color: var(--ink-muted);
}

.board-status {
  color: var(--accent);
  font-size: 0.74rem;
}

.board-status::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.flag {
  width: 42px;
  height: 28px;
  display: inline-block;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.flag {
  background-size: cover;
  background-position: center;
}

.flag-us {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Crect width='60' height='40' fill='%23fff'/%3E%3Crect y='0.0' width='60' height='3.08' fill='%23B22234'/%3E%3Crect y='6.15' width='60' height='3.08' fill='%23B22234'/%3E%3Crect y='12.31' width='60' height='3.08' fill='%23B22234'/%3E%3Crect y='18.46' width='60' height='3.08' fill='%23B22234'/%3E%3Crect y='24.62' width='60' height='3.08' fill='%23B22234'/%3E%3Crect y='30.77' width='60' height='3.08' fill='%23B22234'/%3E%3Crect y='36.92' width='60' height='3.08' fill='%23B22234'/%3E%3Crect width='25.7' height='21.5' fill='%233C3B6E'/%3E%3Ccircle cx='2.8' cy='2.7' r='1' fill='%23fff'/%3E%3Ccircle cx='7.4' cy='2.7' r='1' fill='%23fff'/%3E%3Ccircle cx='12' cy='2.7' r='1' fill='%23fff'/%3E%3Ccircle cx='16.6' cy='2.7' r='1' fill='%23fff'/%3E%3Ccircle cx='21.2' cy='2.7' r='1' fill='%23fff'/%3E%3Ccircle cx='5.1' cy='7' r='1' fill='%23fff'/%3E%3Ccircle cx='9.7' cy='7' r='1' fill='%23fff'/%3E%3Ccircle cx='14.3' cy='7' r='1' fill='%23fff'/%3E%3Ccircle cx='18.9' cy='7' r='1' fill='%23fff'/%3E%3Ccircle cx='23.5' cy='7' r='1' fill='%23fff'/%3E%3Ccircle cx='2.8' cy='11.3' r='1' fill='%23fff'/%3E%3Ccircle cx='7.4' cy='11.3' r='1' fill='%23fff'/%3E%3Ccircle cx='12' cy='11.3' r='1' fill='%23fff'/%3E%3Ccircle cx='16.6' cy='11.3' r='1' fill='%23fff'/%3E%3Ccircle cx='21.2' cy='11.3' r='1' fill='%23fff'/%3E%3Ccircle cx='5.1' cy='15.6' r='1' fill='%23fff'/%3E%3Ccircle cx='9.7' cy='15.6' r='1' fill='%23fff'/%3E%3Ccircle cx='14.3' cy='15.6' r='1' fill='%23fff'/%3E%3Ccircle cx='18.9' cy='15.6' r='1' fill='%23fff'/%3E%3Ccircle cx='23.5' cy='15.6' r='1' fill='%23fff'/%3E%3Ccircle cx='2.8' cy='19.4' r='1' fill='%23fff'/%3E%3Ccircle cx='7.4' cy='19.4' r='1' fill='%23fff'/%3E%3Ccircle cx='12' cy='19.4' r='1' fill='%23fff'/%3E%3Ccircle cx='16.6' cy='19.4' r='1' fill='%23fff'/%3E%3Ccircle cx='21.2' cy='19.4' r='1' fill='%23fff'/%3E%3C/svg%3E");
}

.flag-ca {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Crect width='60' height='40' fill='%23fff'/%3E%3Crect width='15' height='40' fill='%23D52B1E'/%3E%3Crect x='45' width='15' height='40' fill='%23D52B1E'/%3E%3Cpath d='M30 9.5l1.7 3.4 3-1.6-.7 3.4 3.4.3-2.2 2.6 2.9 1.9-3.4 1 .9 3.2-3.2-.9-.3 2.6h-2.2l-.3-2.6-3.2.9.9-3.2-3.4-1 2.9-1.9-2.2-2.6 3.4-.3-.7-3.4 3 1.6z M29.3 25h1.4v5h-1.4z' fill='%23D52B1E'/%3E%3C/svg%3E");
}

.flag-gh {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Crect width='60' height='13.34' fill='%23CE1126'/%3E%3Crect y='13.34' width='60' height='13.33' fill='%23FCD116'/%3E%3Crect y='26.67' width='60' height='13.33' fill='%23006B3F'/%3E%3Cpath d='M30 13 L31.65 17.73 L36.66 17.84 L32.66 20.87 L34.11 25.66 L30 22.8 L25.89 25.66 L27.34 20.87 L23.34 17.84 L28.35 17.73 Z' fill='%23000'/%3E%3C/svg%3E");
}

.flag-lr {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Crect width='60' height='40' fill='%23fff'/%3E%3Crect y='0.0' width='60' height='3.64' fill='%23BF0A30'/%3E%3Crect y='7.27' width='60' height='3.64' fill='%23BF0A30'/%3E%3Crect y='14.55' width='60' height='3.64' fill='%23BF0A30'/%3E%3Crect y='21.82' width='60' height='3.64' fill='%23BF0A30'/%3E%3Crect y='29.09' width='60' height='3.64' fill='%23BF0A30'/%3E%3Crect y='36.36' width='60' height='3.64' fill='%23BF0A30'/%3E%3Crect width='18.2' height='18.2' fill='%23002868'/%3E%3Cpath d='M9.1 3.6 L10.39 7.32 L14.33 7.4 L11.19 9.78 L12.33 13.55 L9.1 11.3 L5.87 13.55 L7.01 9.78 L3.87 7.4 L7.81 7.32 Z' fill='%23fff'/%3E%3C/svg%3E");
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

.section-link span {
  display: inline-block;
  transition: transform var(--dur-1) var(--ease-emph);
}

.section-link:hover span {
  transform: translateX(6px);
}

.locations {
  background: var(--bg);
}

/* ============================================================
   9. TEAM
   ============================================================ */

.team {
  background: var(--bg);
}

.team-card {
  position: relative;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-doc);
  background: var(--surface);
  transition: transform var(--dur-2) var(--ease-emph), border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}

.team-card:hover {
  transform: translateY(-7px);
  border-color: var(--accent);
  box-shadow: var(--shadow-2);
}

.team-photo {
  height: 300px;
  overflow: hidden;
  background: var(--surface-high);
}

.team-photo img,
.team-photo .wp-post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95);
  transition: transform var(--dur-3) var(--ease-emph), filter var(--dur-2) var(--ease-out);
}

.team-card:hover .team-photo img {
  transform: scale(1.05);
  filter: saturate(1.08);
}

.team-body {
  display: grid;
  gap: 10px;
  padding: 24px;
  border-top: 1px dashed var(--line-strong);
}

.team-role {
  margin: 0;
  color: var(--stamp);
  font-size: 0.66rem;
  text-transform: uppercase;
}

.team-body p:last-child {
  margin: 0;
}

/* ============================================================
   10. ABOUT / CTA / CONTACT (waybill form)
   ============================================================ */

.about {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
}

.about-image {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-doc);
  background-color: var(--surface-high);
  /* Route-dash fallback: visible whenever the photo is missing or fails. */
  background-image:
    repeating-linear-gradient(135deg, transparent 0 26px, color-mix(in srgb, var(--accent) 14%, transparent) 26px 28px),
    radial-gradient(circle at 20% 85%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 45%);
  box-shadow: var(--shadow-1);
}

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

.about p {
  font-size: 1.04rem;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
}

.check-list .material-symbols-rounded {
  color: var(--accent);
  font-size: 1.4rem;
}

.cta-band {
  color: #ffffff;
  background-position: center;
  background-size: cover;
}

.contact {
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.contact-methods {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.contact-methods a {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.contact-methods a:hover .icon-badge {
  transform: rotate(-8deg) scale(1.08);
}

.icon-badge {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--accent-ink);
  background: var(--aqua);
  border-radius: var(--radius-doc);
  transition: transform var(--dur-1) var(--ease-emph);
}

.contact-form {
  position: relative;
  padding: clamp(22px, 3vw, 38px);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-doc);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

.waybill-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: calc(clamp(22px, 3vw, 38px) * -1);
  margin-bottom: clamp(22px, 3vw, 32px);
  padding: 14px clamp(22px, 3vw, 38px);
  color: var(--ink-muted);
  background: var(--bg-deep);
  border-bottom: 1px dashed var(--line-strong);
  font-size: 0.66rem;
}

.form-label {
  color: var(--ink-muted);
  font-size: 0.64rem;
}

.form-control,
.form-select {
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-doc);
  background-color: var(--bg);
  font-family: var(--font-body);
  transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
}

.form-control:hover,
.form-select:hover {
  border-color: var(--ink-muted);
}

.form-control:focus,
.form-select:focus {
  color: var(--ink);
  border-color: var(--accent);
  background-color: var(--bg);
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--accent) 22%, transparent);
}

.form-control::placeholder {
  color: var(--ink-muted);
}

/* Customs stamp — rotates in when the form scrolls into view */
.waybill-stamp {
  position: absolute;
  top: 4px;
  right: clamp(14px, 4vw, 38px);
  display: grid;
  place-items: center;
  gap: 1px;
  width: 104px;
  height: 104px;
  padding: 14px;
  color: var(--stamp);
  border: 2px solid var(--stamp);
  border-radius: 50%;
  font-size: 0.56rem;
  text-align: center;
  line-height: 1.3;
  rotate: -12deg;
  opacity: 0;
  scale: 1.6;
  transition: opacity var(--dur-2) var(--ease-out) 500ms, scale var(--dur-2) var(--ease-emph) 500ms;
  pointer-events: none;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Ccircle cx='2' cy='2' r='1.7' fill='black'/%3E%3C/svg%3E");
  mask-size: 3.4px;
}

.waybill-stamp em {
  font-style: normal;
  font-size: 0.72rem;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  padding: 2px 0;
}

.is-visible .waybill-stamp,
.contact-form.stamped .waybill-stamp {
  opacity: 0.85;
  scale: 1;
}

.is-submitting .btn[type="submit"] {
  pointer-events: none;
  opacity: 0.75;
}

.is-submitting .btn[type="submit"] .material-symbols-rounded {
  animation: nobie-spin 900ms linear infinite;
}

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

/* ============================================================
   11. FOOTER
   ============================================================ */

.site-footer {
  color: var(--mist);
  background: var(--kola-deep);
  border-top: 1px solid var(--line);
}

[data-bs-theme="light"] .site-footer {
  color: var(--mist);
  background: #0e2120;
}

.footer-brand .brand-wordmark span {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
}

.footer-tag {
  margin: 18px 0 0;
  color: var(--aqua);
  font-size: 0.66rem;
}

.footer-title {
  margin-bottom: 16px;
  color: #ffffff;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.footer-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list a {
  color: rgba(246, 241, 230, 0.72);
  text-decoration: none;
  transition: color var(--dur-1) var(--ease-out), padding-left var(--dur-1) var(--ease-emph);
}

.footer-list a:hover {
  color: #ffffff;
  padding-left: 6px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  color: rgba(246, 241, 230, 0.5);
  font-size: 0.66rem;
}

/* ============================================================
   12. INNER PAGES (covers all existing templates)
   ============================================================ */

.page-shell {
  padding-top: 170px;
}

.inner-page {
  background: var(--bg);
}

.inner-hero {
  position: relative;
  padding: clamp(170px, 18vw, 230px) 0 clamp(64px, 8vw, 110px);
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 15%, rgba(102, 204, 204, 0.16), transparent 30%),
    linear-gradient(160deg, var(--kola-deep), var(--kola) 60%, #102726);
  border-bottom: 1px solid var(--line);
}

.inner-hero h1 {
  max-width: 1060px;
}

.inner-hero p:not(.eyebrow) {
  max-width: 740px;
  margin-top: 24px;
  color: rgba(246, 241, 230, 0.78);
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
}

.split-band {
  background: var(--bg-deep);
}

.services {
  background: var(--bg);
}

.service-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-doc);
  background: var(--surface);
  transition: transform var(--dur-2) var(--ease-emph), border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}

.service-card:hover {
  transform: translateY(-7px);
  border-color: var(--accent);
  box-shadow: var(--shadow-2);
}

.service-img-wrap {
  height: 220px;
  overflow: hidden;
}

.service-img-wrap img,
.service-img-wrap .wp-post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-3) var(--ease-emph);
}

.service-card:hover img {
  transform: scale(1.06);
}

.service-card .card-body {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 26px;
  background: transparent;
  border-top: 1px dashed var(--line-strong);
}

.service-card p {
  margin: 0;
}

.service-tag {
  color: var(--accent-2) !important;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.service-number {
  position: absolute;
  top: 14px;
  right: 20px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.85;
}

.location-tile {
  min-height: 168px;
  display: grid;
  align-content: center;
  gap: 9px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-doc);
  background: var(--surface);
  transition: transform var(--dur-1) var(--ease-emph), border-color var(--dur-1) var(--ease-out);
}

.location-tile:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.location-tile strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1;
}

.location-tile small,
.location-tile p {
  color: var(--ink-muted);
  font-weight: 600;
}

.feature-card {
  height: 100%;
  display: grid;
  gap: 14px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-doc);
  background: var(--surface);
  transition: transform var(--dur-2) var(--ease-emph), border-color var(--dur-2) var(--ease-out);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.feature-card .material-symbols-rounded {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--accent-ink);
  background: var(--aqua);
  border-radius: var(--radius-doc);
  font-size: 1.7rem;
}

.feature-card h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.content-card {
  margin-bottom: 28px;
  padding: clamp(24px, 4vw, 54px);
  border: 1px solid var(--line);
  border-radius: var(--radius-doc);
  background: var(--surface);
}

.content-card .entry-title,
.archive-header h1 {
  color: var(--ink);
}

.content-card .entry-title a {
  text-decoration: none;
}

.entry-content {
  color: var(--ink-muted);
}

.entry-hero-image {
  margin: -24px -24px 34px;
  overflow: hidden;
  border-radius: var(--radius-doc);
}

.entry-hero-image img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.card {
  border-color: var(--line);
  background: var(--surface);
}

.card-img-top {
  border-radius: 0;
}

/* ============================================================
   12b. NEW COMPONENTS — buttons, profiles, divisions, links
   ============================================================ */

.btn-outlined {
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--line-strong);
}

.btn-outlined:hover,
.btn-outlined:focus {
  color: var(--accent);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.crumb-link {
  display: inline-block;
  color: rgba(243, 244, 239, 0.66);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--dur-1) var(--ease-out);
}

.crumb-link:hover {
  color: var(--aqua-bright);
}

.profile-photo {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-doc);
  box-shadow: var(--shadow-2);
}

.profile-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.profile-hero {
  padding-bottom: clamp(44px, 6vw, 80px);
}

.profile-bio,
.division-content {
  max-width: 70ch;
  font-size: 1.05rem;
}

.profile-bio p,
.division-content p {
  color: var(--ink-muted);
}

.profile-aside {
  position: sticky;
  top: 120px;
  display: grid;
  gap: 18px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-doc);
  background: var(--surface);
}

.profile-aside-title {
  margin: 0;
  color: var(--accent);
  font-size: 0.68rem;
}

.profile-aside .contact-methods {
  margin-top: 4px;
}

.profile-aside .contact-methods a {
  font-size: 0.94rem;
}

.division-image {
  overflow: hidden;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-doc);
}

.division-image img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}

.profile-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 24px;
}

.profile-contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(243, 244, 239, 0.85);
  font-size: 0.78rem;
  text-decoration: none;
  transition: color var(--dur-1) var(--ease-out);
}

.profile-contact a:hover {
  color: var(--aqua-bright);
}

.social-svg,
.social-chip {
  display: inline-grid;
  place-items: center;
}

.social-svg svg,
.profile-contact svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--aqua);
}

.profile-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.social-chip {
  width: 44px;
  height: 44px;
  color: rgba(243, 244, 239, 0.85);
  border: 1px solid rgba(243, 244, 239, 0.28);
  border-radius: var(--radius-doc);
  background: rgba(243, 244, 239, 0.06);
  transition:
    color var(--dur-1) var(--ease-out),
    border-color var(--dur-1) var(--ease-out),
    background-color var(--dur-1) var(--ease-out),
    transform var(--dur-1) var(--ease-emph);
}

.social-chip svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.social-chip:hover {
  color: var(--accent-ink);
  border-color: var(--aqua);
  background: var(--aqua);
  transform: translateY(-3px);
}

/* Whole-card click targets */
.service-card-link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.team-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.team-view {
  color: var(--accent);
  font-size: 0.66rem;
}

.team-view span {
  display: inline-block;
  transition: transform var(--dur-1) var(--ease-emph);
}

.team-card-link:hover .team-view span {
  transform: translateX(5px);
}

.step-no {
  color: var(--accent);
  font-size: 1.1rem;
}

.contact-facts {
  display: grid;
  gap: 8px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px dashed var(--line-strong);
}

.contact-facts p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.72rem;
}

.contact-facts .material-symbols-rounded {
  color: var(--accent);
}

.form-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  color: var(--ink-muted);
  font-size: 0.66rem;
}

.form-hint .material-symbols-rounded {
  color: var(--accent);
}

.nb-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ============================================================
   13. REVEAL SYSTEM / FAB / SNACKBAR / VIEW TRANSITIONS
   ============================================================ */

.nb-anim [data-animate] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity var(--dur-3) var(--ease-out),
    transform var(--dur-3) var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

.nb-anim [data-animate="left"] {
  transform: translateX(-34px);
}

.nb-anim [data-animate="right"] {
  transform: translateX(34px);
}

.nb-anim [data-animate="scale"] {
  transform: scale(0.93);
}

.nb-anim [data-animate="clip"] {
  transform: none;
  clip-path: inset(0 100% 0 0);
  transition:
    opacity var(--dur-3) var(--ease-out),
    clip-path var(--dur-3) var(--ease-emph);
  transition-delay: var(--delay, 0ms);
}

.nb-anim [data-animate].is-visible {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0 0);
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1090;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  color: var(--accent-ink);
  background: var(--aqua);
  border: 0;
  border-radius: var(--radius-doc);
  box-shadow: var(--shadow-2);
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition:
    opacity var(--dur-2) var(--ease-emph),
    transform var(--dur-2) var(--ease-emph);
}

.back-to-top.is-shown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.back-to-top svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.back-to-top svg circle {
  fill: none;
  stroke: var(--kente);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 138.2;
  stroke-dashoffset: calc(138.2 - 138.2 * var(--scroll-progress, 0));
}

.nobie-snackbar {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(92vw, 520px);
  padding: 14px 20px;
  color: var(--kola-deep);
  background: var(--shea);
  border-radius: var(--radius-doc);
  box-shadow: var(--shadow-2);
  font-weight: 600;
  transform: translate(-50%, 140%);
  transition: transform var(--dur-2) var(--ease-emph);
}

[data-bs-theme="light"] .nobie-snackbar {
  color: var(--shea);
  background: #15241e;
}

.nobie-snackbar.is-shown {
  transform: translate(-50%, 0);
}

.nobie-snackbar .material-symbols-rounded {
  color: var(--aqua);
  font-size: 1.4rem;
}

.nobie-snackbar.is-error .material-symbols-rounded {
  color: var(--kente);
}

.nobie-snackbar button {
  margin-left: 6px;
  padding: 4px;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  opacity: 0.7;
}

.nobie-snackbar button:hover {
  opacity: 1;
}

.alert {
  border-radius: var(--radius-doc);
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: vt-out 240ms var(--ease-emph) both;
}

::view-transition-new(root) {
  animation: vt-in 420ms var(--ease-out) both;
}

@keyframes vt-out {
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@keyframes vt-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* ============================================================
   14. RESPONSIVE
   ============================================================ */

@media (max-width: 991.98px) {
  .topbar-route {
    display: none;
  }

  .navbar-collapse {
    margin-top: 14px;
    padding: 16px;
    background: var(--kola-deep);
    border: 1px solid var(--line);
    border-radius: var(--radius-doc);
  }

  .nav-pill {
    justify-content: center;
    margin: 10px 0 0;
  }

  .hero {
    min-height: 94vh;
  }

  .hero-arc {
    height: 46vh;
    opacity: 0.7;
  }

  .hero-nav {
    bottom: 66px;
  }

  .hero-control {
    width: 44px;
    height: 44px;
  }

  .manifest-row {
    grid-template-columns: 64px 1fr;
    grid-template-areas:
      "no media"
      "no body";
    gap: 18px;
  }

  .manifest-no {
    grid-area: no;
    align-self: start;
  }

  .manifest-media {
    grid-area: media;
    max-width: 420px;
  }

  .manifest-body {
    grid-area: body;
  }

  .board-head,
  .board-row {
    grid-template-columns: 70px 1.4fr 1fr 86px;
    gap: 10px;
  }

  .about-image {
    min-height: 420px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 575.98px) {
  .topbar {
    font-size: 0.58rem;
  }

  .topbar-mail {
    display: none;
  }

  .brand-wordmark span {
    font-size: 1.7rem;
  }

  .brand-wordmark-logo img {
    max-width: 170px;
    max-height: 50px;
  }

  h1 {
    font-size: clamp(2.6rem, 13vw, 4.2rem);
  }

  .hero-content {
    padding-top: 150px;
    padding-bottom: 130px;
  }

  .manifest-row {
    grid-template-columns: 1fr;
    grid-template-areas:
      "no"
      "media"
      "body";
  }

  .board-head {
    display: none;
  }

  .board-row {
    grid-template-columns: 58px 1fr 70px;
  }

  .board-region {
    display: none;
  }

  .about-image {
    min-height: 320px;
  }

  .waybill-stamp {
    width: 84px;
    height: 84px;
    font-size: 0.5rem;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
  }
}

/* ============================================================
   15. REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .nb-anim [data-animate] {
    opacity: 1;
    transform: none;
    clip-path: none;
  }

  .nb-anim .split-word > span {
    transform: none;
  }

  .nb-anim .hero-slide .waybill-tag,
  .nb-anim .hero-slide .hero-copy,
  .nb-anim .hero-slide .hero-cta {
    opacity: 1;
  }

  .ticker-track {
    animation: none;
  }

  .waybill-stamp {
    opacity: 0.85;
    scale: 1;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}
