/* FronteraByte — site styles
   Palette: magenta, violet and navy on deep black. Type: Archivo (self-hosted variable font, width + weight axes). */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #050409;
  --twilight: #0c0918;
  --dusk: #1d0f3d;
  --haze: #4a1a78;
  --river-deep: #030206;
  --river: #c77dff;
  --sun: #ff1fd0;
  --sun-light: #ff7ae6;
  --glow: #ffc9f6;
  --limestone: #f6f1fb;
  --paper: #ffffff;
  --ink: #f3eefb;
  --slate: #a59dbb;
  --mist: #cfc7e6;
  --line: #2a2340;
  --bg: #07060c;
  --surface: #120e1e;
  --surface-2: #0b0914;
  --on-accent: #10103c;
  --ok: #63d49f;

  --radius-lg: 22px;
  --radius-md: 14px;
  --wrap: 76rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 72px;

  /* Depth: navy-tinted shadows, from resting cards up to featured panels */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05), 0 4px 10px -4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.06), 0 10px 24px -10px rgba(0, 0, 0, 0.18), 0 28px 56px -28px rgba(0, 0, 0, 0.22);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.1), 0 22px 44px -16px rgba(0, 0, 0, 0.38), 0 54px 100px -40px rgba(0, 0, 0, 0.5);
  --glow-sun: 0 36px 70px -44px rgba(255, 31, 208, 0.42);
  --edge-light: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  --ease-out: cubic-bezier(0.16, 0.84, 0.24, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
::selection { background: rgba(255, 31, 208, 0.35); }

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h3 {
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--sun);
  color: var(--on-accent);
  font-weight: 650;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 50px;
  padding: 0.8rem 1.45rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); transition-duration: 0.08s; }
.btn-sun {
  color: var(--on-accent);
  background: linear-gradient(180deg, #ff62de 0%, var(--sun) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(110, 0, 90, 0.18),
    0 1px 2px rgba(0, 0, 0, 0.2),
    0 8px 20px -8px rgba(255, 31, 208, 0.7);
}
.btn-sun:hover {
  background: linear-gradient(180deg, #ff8ae9 0%, #ff45d8 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(110, 0, 90, 0.16),
    0 2px 4px rgba(0, 0, 0, 0.2),
    0 14px 32px -10px rgba(255, 31, 208, 0.8);
}
.btn-ghost {
  color: var(--limestone);
  background: rgba(246, 241, 251, 0.04);
  border-color: rgba(246, 241, 251, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.btn-ghost:hover { background: rgba(246, 241, 251, 0.1); border-color: rgba(246, 241, 251, 0.7); }
.btn-ink {
  color: var(--paper);
  background: linear-gradient(180deg, #3a2470 0%, #22124a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 1px 2px rgba(0, 0, 0, 0.2),
    0 8px 18px -8px rgba(0, 0, 0, 0.5);
}
.btn-ink:hover {
  background: linear-gradient(180deg, #4a2e8c 0%, #2b175c 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 2px 4px rgba(0, 0, 0, 0.2),
    0 14px 28px -10px rgba(0, 0, 0, 0.55);
}
.btn-small { min-height: 42px; padding: 0.55rem 1.1rem; font-size: 0.95rem; }

.text-link {
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.3em;
}
.text-link:hover { text-decoration-color: var(--sun); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: var(--limestone);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  animation: header-in 0.9s var(--ease-out) 0.05s both;
}
.site-header.is-scrolled,
.site-header.menu-open,
.site-header.mega-open {
  background: rgba(0, 0, 0, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: rgba(246, 241, 251, 0.08);
  box-shadow: 0 14px 34px -20px rgba(0, 0, 0, 0.85);
}
.site-header.menu-open,
.site-header.mega-open {
  background: var(--night);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.site-header > .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.18rem;
  font-weight: 750;
  letter-spacing: -0.015em;
  text-decoration: none;
}
.brand svg { width: 34px; height: 34px; flex: none; }

.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-link,
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: rgba(246, 241, 251, 0.8);
  font: inherit;
  font-size: 0.97rem;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-link:hover,
.nav-trigger:hover,
.nav-trigger[aria-expanded="true"] {
  color: var(--paper);
  background: rgba(246, 241, 251, 0.08);
}
.nav-trigger.is-current { color: var(--paper); }
.nav-trigger.is-current::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sun);
}
.chev { width: 14px; height: 14px; transition: transform 0.2s ease; }
.nav-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-actions { display: flex; align-items: center; gap: 0.6rem; }
.nav-links .nav-mobile-only { display: none; }

/* Mega menu panels */
.mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 2rem 0 2.25rem;
  background: var(--night);
  border-top: 1px solid rgba(246, 241, 251, 0.08);
  border-bottom: 1px solid rgba(246, 241, 251, 0.08);
  box-shadow: 0 40px 60px -30px rgba(0, 0, 0, 0.85);
}
.mega[hidden] { display: none; }
.mega.is-open { animation: mega-in 0.3s var(--ease-out); }
@keyframes mega-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
.mega.is-open .mega-feature,
.mega.is-open .mega-link { animation: rise-small 0.55s var(--ease-out) both; }
.mega.is-open .mega-list:nth-child(2) li:nth-child(1) .mega-link { animation-delay: 0.05s; }
.mega.is-open .mega-list:nth-child(2) li:nth-child(2) .mega-link { animation-delay: 0.1s; }
.mega.is-open .mega-list:nth-child(3) li:nth-child(1) .mega-link { animation-delay: 0.08s; }
.mega.is-open .mega-list:nth-child(3) li:nth-child(2) .mega-link { animation-delay: 0.13s; }
.mega-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 1rem 2rem;
}
.mega-feature {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  position: relative;
  overflow: hidden;
  padding: 1.5rem 1.6rem;
  border-radius: var(--radius-lg);
  color: var(--limestone);
  text-decoration: none;
  background:
    radial-gradient(80% 70% at 100% 120%, rgba(255, 31, 208, 0.42), rgba(150, 60, 220, 0.14) 45%, rgba(150, 60, 220, 0) 72%),
    linear-gradient(160deg, var(--dusk), var(--twilight));
  box-shadow: var(--edge-light), 0 18px 40px -22px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.mega-feature:hover { transform: translateY(-2px); box-shadow: var(--edge-light), 0 24px 48px -22px rgba(0, 0, 0, 0.8); }
.mega-feature strong {
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.mega-feature span { color: var(--mist); font-size: 0.95rem; line-height: 1.5; }
.mega-feature .mega-cta {
  margin-top: auto;
  padding-top: 0.75rem;
  color: var(--sun-light);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.3em;
}
.mega-list {
  display: grid;
  align-content: start;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mega-link {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 0.9rem;
  row-gap: 0.1rem;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  color: var(--limestone);
  text-decoration: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.mega-link:hover { background: rgba(246, 241, 251, 0.06); }
.mega-link svg { grid-row: 1 / span 2; width: 26px; height: 26px; margin-top: 0.1rem; color: var(--sun-light); }
.mega-link strong { font-size: 1.02rem; font-weight: 650; }
.mega-link span { color: #b3a9cf; font-size: 0.9rem; line-height: 1.45; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid rgba(246, 241, 251, 0.3);
  border-radius: 999px;
  background: transparent;
  color: var(--limestone);
  cursor: pointer;
}
.menu-toggle svg { width: 20px; height: 20px; margin: auto; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Phones and tablets: the menu becomes a sheet with collapsible sections */
@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .nav { gap: 0.6rem; }
  .nav-support { display: none; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100svh - var(--header-h));
    overflow-y: auto;
    padding: 0.25rem var(--gutter) 1.5rem;
    background: var(--night);
    border-bottom: 1px solid rgba(246, 241, 251, 0.08);
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.7);
  }
  .nav-links.is-open { display: flex; }
  .nav-item { border-bottom: 1px solid rgba(246, 241, 251, 0.08); }
  .nav-link,
  .nav-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 1rem 0;
    border-radius: 0;
    color: var(--limestone);
    font-size: 1.1rem;
  }
  .nav-link:hover,
  .nav-trigger:hover,
  .nav-trigger[aria-expanded="true"] { background: none; }
  .nav-trigger.is-current::before { display: none; }
  .mega {
    position: static;
    padding: 0 0 1rem;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .mega.is-open { animation: none; }
  .mega .wrap { padding-inline: 0; }
  .mega-grid { grid-template-columns: 1fr; gap: 0.25rem; }
  .mega-feature { order: 2; margin-top: 0.5rem; padding: 1.1rem 1.2rem; }
  .mega-link { padding: 0.7rem 0.4rem; }
  .nav-links .nav-mobile-only { display: flex; }
  .nav-sheet-actions { flex-wrap: wrap; gap: 0.75rem; padding-top: 1.25rem; }
}

@media (max-width: 480px) {
  .nav-actions .btn-sun { display: none; }
}

/* ---------- Scenes (hero, booking band, 404) ----------
   A canvas paints dusk over the river behind the content. The top edge of
   .scene-horizon is the horizon line; the script reads its position. */
.scene {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--limestone);
  /* Shown before the scene draws, and if scripts are off */
  background: linear-gradient(180deg, var(--night) 0%, var(--twilight) 48%, var(--haze) 76%, var(--river-deep) 100%);
}
.scene-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.scene-horizon {
  flex: none;
  border-top: 1px solid rgba(246, 241, 251, 0.35);
}
.scene.is-drawn .scene-horizon { border-top-color: transparent; }

/* ---------- Hero ---------- */
/* The hero fills the first screen, and its type scales with the screen's height
   as well as its width, so the horizon always lands inside the first view. */
.hero-stage {
  display: flex;
  flex-direction: column;
  min-height: max(520px, 100vh);
  min-height: max(520px, 100svh);
}
.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--header-h) + clamp(1rem, 4.5vh, 4rem));
  padding-bottom: clamp(1.5rem, 5vh, 4rem);
}
.hero h1 {
  max-width: 12ch;
  font-size: clamp(2.5rem, min(12.5vw, 7.4vh), 3.25rem);
  font-size: clamp(2.5rem, min(12.5vw, 7.4svh), 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
@media (min-width: 761px) {
  .hero h1 {
    font-size: clamp(2.6rem, min(5.8vw, 9.4vh), 5.25rem);
    font-size: clamp(2.6rem, min(5.8vw, 9.4svh), 5.25rem);
  }
}
/* wide but short screens (most laptops): a wider, three-line headline */
@media (min-width: 900px) and (max-height: 820px) {
  .hero h1 {
    max-width: 20ch;
    font-size: clamp(2.3rem, min(5vw, 9.6vh), 4.6rem);
    font-size: clamp(2.3rem, min(5vw, 9.6svh), 4.6rem);
  }
  .hero .lead { max-width: 40rem; margin: 1.1rem 0 1.6rem; }
}
.scene .lead {
  max-width: 35rem;
  margin: 1.5rem 0 2.25rem;
  color: var(--mist);
  font-size: clamp(1.08rem, 1.45vw, 1.25rem);
  line-height: 1.55;
}
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-horizon {
  height: clamp(104px, 20vh, 260px);
  height: clamp(104px, 20svh, 260px);
}

.hero-facts {
  position: relative;
  background: var(--river-deep);
  border-top: 1px solid rgba(246, 241, 251, 0.07);
}
.hero-facts ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 1.6rem 0;
  list-style: none;
}
.hero-facts li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  color: #b3a9cf;
  font-size: 0.95rem;
  line-height: 1.45;
}
.hero-facts strong {
  display: block;
  margin-bottom: 0.1rem;
  color: var(--limestone);
  font-size: 1rem;
  font-weight: 650;
}
.hero-facts svg { flex: none; width: 24px; height: 24px; margin-top: 0.05rem; }

@media (max-width: 760px) {
  .hero-facts ul { grid-template-columns: 1fr; gap: 1.1rem; padding: 1.5rem 0 1.75rem; }
}

/* ---------- Inner page hero ---------- */
.page-hero {
  display: flex;
  flex-direction: column;
}
.page-hero-content {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 8vh, 5rem));
  padding-bottom: clamp(2.25rem, 5vh, 3.5rem);
}
.page-hero h1 {
  max-width: 17ch;
  font-size: clamp(2.35rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.025em;
}
.page-horizon { height: clamp(96px, 16vh, 170px); }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  color: #b3a9cf;
  font-size: 0.92rem;
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.45rem;
  color: rgba(246, 241, 251, 0.35);
}
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--limestone); text-decoration: underline; text-underline-offset: 0.25em; }
.breadcrumb [aria-current="page"] { color: var(--limestone); }

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: clamp(4.5rem, 10vw, 8rem) 0;
  scroll-margin-top: calc(var(--header-h) - 1px);
}
.section-paper { background: var(--surface-2); }
.section { isolation: isolate; }
.section + .section { border-top: 1px solid rgba(246, 241, 251, 0.06); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: end;
  gap: 1.25rem 4rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}
.section-head h2 {
  max-width: 16ch;
  font-size: clamp(2.15rem, 4.5vw, 3.6rem);
}
.section-head p {
  max-width: 33rem;
  color: var(--slate);
  font-size: 1.125rem;
}
@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; }
}

/* ---------- Services: bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: clamp(1.5rem, 2.4vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}
.tile .icon { width: 40px; height: 40px; margin-bottom: 0.6rem; }
.tile h3 { font-size: 1.3rem; }
.tile > p { color: var(--slate); }

.dots {
  display: grid;
  gap: 0.35rem;
  margin: 0.2rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--slate);
  font-size: 0.95rem;
}
.dots li { position: relative; padding-left: 1.05rem; }
.dots li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--river);
}

.tile-feature {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 2rem 2.5rem;
  overflow: hidden;
  padding: clamp(1.75rem, 3.2vw, 2.75rem);
  color: var(--limestone);
  border-color: transparent;
  background:
    radial-gradient(70% 60% at 96% 118%, rgba(255, 31, 208, 0.42), rgba(150, 60, 220, 0.16) 45%, rgba(150, 60, 220, 0) 72%),
    linear-gradient(180deg, var(--twilight) 0%, var(--night) 100%);
  box-shadow: var(--edge-light), var(--shadow-lg), var(--glow-sun);
}
.feature-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}
.tile-feature h3 {
  font-size: clamp(1.75rem, 2.8vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.feature-copy p {
  color: var(--mist);
  font-size: 1.08rem;
}
.tile-feature .text-link { color: var(--sun-light); margin-top: 0.4rem; }

.health {
  margin: 0;
  position: relative;
  overflow: hidden;
  padding: 1.1rem 1.25rem 0.4rem;
  background: linear-gradient(180deg, rgba(246, 241, 251, 0.08), rgba(246, 241, 251, 0.03));
  border: 1px solid rgba(246, 241, 251, 0.14);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 20px 40px -24px rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.health-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  font-size: 0.95rem;
  font-weight: 650;
}
.health-live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ok);
  font-weight: 600;
  font-size: 0.875rem;
}
.health-live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  animation: pulse 2.6s ease-out infinite;
}
.health ul { margin: 0; padding: 0; list-style: none; }
.health li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(246, 241, 251, 0.1);
  color: #e3dbef;
  font-size: 0.95rem;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ok);
  font-weight: 600;
  white-space: nowrap;
}
.status svg { width: 16px; height: 16px; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(99, 212, 159, 0.55); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(99, 212, 159, 0); }
}

.tile-open {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 1.25rem 1.75rem;
  background: transparent;
  border: 1.5px dashed #3d3360;
}
.tile-open .icon { flex: none; margin: 0; }
.open-copy { flex: 1; display: grid; gap: 0.3rem; }
.open-copy p { max-width: 44rem; color: var(--slate); }
.tile-open .btn { flex: none; }

@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-feature { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .tile-feature { grid-template-columns: 1fr; }
  .tile-open { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .health li { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
}

/* ---------- Plans ---------- */
.plans {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 1rem;
}
.plan {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: clamp(1.75rem, 3.2vw, 2.75rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.plan-model {
  color: var(--river);
  font-weight: 650;
}
.plan h3 {
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.plan .best { color: var(--slate); }
.plan .btn { margin-top: auto; align-self: flex-start; }

.checks {
  display: grid;
  gap: 0.65rem;
  margin: 0.25rem 0 0.75rem;
  padding: 0;
  list-style: none;
}
.checks li { position: relative; padding-left: 2rem; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--river);
}
.checks li::after {
  content: "";
  position: absolute;
  left: 0.44rem;
  top: 0.4em;
  width: 0.36rem;
  height: 0.62rem;
  border: solid var(--on-accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.plan-feature {
  position: relative;
  overflow: hidden;
  color: var(--limestone);
  border-color: transparent;
  background:
    radial-gradient(65% 55% at 100% 0%, rgba(255, 31, 208, 0.3), rgba(150, 60, 220, 0.12) 45%, rgba(150, 60, 220, 0) 72%),
    linear-gradient(160deg, var(--dusk) 0%, var(--twilight) 45%, var(--night) 100%);
  box-shadow: var(--edge-light), var(--shadow-lg), var(--glow-sun);
}
.plan-feature .plan-model { color: var(--sun-light); }
.plan-feature .best { color: var(--mist); }
.plan-feature .checks li::before { background: var(--sun); }
.plan-feature .checks li::after { border-color: var(--on-accent); }

@media (max-width: 860px) {
  .plans { grid-template-columns: 1fr; }
}

/* ---------- Industries ---------- */
.industries {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem 2rem;
}
.industry {
  position: relative;
  padding-top: 1.4rem;
}
.industry svg { width: 36px; height: 36px; margin-bottom: 1.1rem; }
.industry h3 { margin-bottom: 0.45rem; font-size: 1.18rem; }
.industry p { color: var(--slate); font-size: 0.98rem; }

@media (max-width: 960px) {
  .industries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .industries { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Process ---------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 12px;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--river), rgba(199, 125, 255, 0.12));
}
.step {
  position: relative;
  padding-top: 3.25rem;
  counter-increment: step;
}
.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border: 2px solid var(--river);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 5px var(--bg), inset 0 0 0 12px var(--sun);
}
.step h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.step h3::before {
  content: counter(step);
  display: block;
  margin-bottom: 0.9rem;
  color: var(--river);
  font-size: clamp(2.75rem, 4.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.step p { max-width: 22rem; color: var(--slate); }

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 2.75rem; }
  .steps::before {
    top: 12px;
    bottom: 0;
    left: 11px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--river), rgba(199, 125, 255, 0.12));
  }
  .step { padding-top: 0; padding-left: 3.25rem; }
}

/* ---------- Booking call to action ---------- */
.cta {
  display: flex;
  flex-direction: column;
  padding-top: clamp(5rem, 11vw, 8.5rem);
  scroll-margin-top: calc(var(--header-h) - 1px);
}
.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: end;
  gap: 3rem 4rem;
  padding-bottom: clamp(4.5rem, 10vw, 7.5rem);
}
.cta h2 {
  max-width: 12ch;
  font-size: clamp(2.5rem, 5.6vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.025em;
}
.cta-copy > p {
  max-width: 32rem;
  margin: 1.4rem 0 2.1rem;
  color: var(--mist);
  font-size: 1.125rem;
}
.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact-list li {
  display: grid;
  gap: 0.15rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(246, 241, 251, 0.16);
}
.contact-list li:last-child { border-bottom: 1px solid rgba(246, 241, 251, 0.16); }
.contact-label { color: #a89ec7; font-size: 0.9rem; }
.contact-value {
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
}
a.contact-value:hover { color: var(--sun-light); }

.cta-horizon {
  height: clamp(110px, 14vw, 170px);
}

@media (max-width: 860px) {
  .cta-grid { grid-template-columns: 1fr; align-items: start; }
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 3.25rem 0 2rem;
  color: #a89ec7;
  background:
    var(--river-deep);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 2rem;
}
.site-footer .brand { color: var(--limestone); margin-bottom: 0.9rem; }
.site-footer .footer-note { max-width: 24rem; }
.footer-title {
  margin: 0 0 0.75rem;
  color: var(--limestone);
  font-size: 0.95rem;
  font-weight: 650;
  font-stretch: 100%;
  letter-spacing: 0;
}
.footer-links { display: grid; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--limestone); text-decoration: underline; text-underline-offset: 0.25em; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(246, 241, 251, 0.08);
  font-size: 0.875rem;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

/* ---------- What a plan covers ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.75rem 2.25rem;
}
.feature-item {
  position: relative;
  padding-top: 1.4rem;
}
.feature-item svg { width: 38px; height: 38px; margin-bottom: 1.1rem; }
.feature-item h3 { margin-bottom: 0.45rem; font-size: 1.22rem; }
.feature-item p { color: var(--slate); }
@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Plan tiers ---------- */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.tier {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  padding: clamp(1.6rem, 2.8vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.tier h3 {
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.tier .best { color: var(--slate); }
.tier-plus { margin-top: 0.25rem; font-weight: 650; }
.tier .checks { margin-bottom: 1rem; }
.tier .btn { margin-top: auto; align-self: flex-start; }
.tier-feature {
  z-index: 1;
  overflow: hidden;
  color: var(--limestone);
  border-color: transparent;
  background:
    radial-gradient(70% 50% at 100% 0%, rgba(255, 31, 208, 0.3), rgba(150, 60, 220, 0.12) 45%, rgba(150, 60, 220, 0) 72%),
    linear-gradient(160deg, var(--dusk) 0%, var(--twilight) 45%, var(--night) 100%);
  box-shadow: var(--edge-light), var(--shadow-lg), var(--glow-sun);
}
@media (min-width: 981px) {
  .tier-feature { margin-block: -14px; padding-block: calc(clamp(1.6rem, 2.8vw, 2.25rem) + 14px); }
}
.tier-feature .best { color: var(--sun-light); font-weight: 650; }
.tier-feature .checks li::before { background: var(--sun); }
.tier-feature .checks li::after { border-color: var(--on-accent); }
.tiers-note { margin-top: 1.75rem; color: var(--slate); }
@media (max-width: 980px) {
  .tiers { grid-template-columns: 1fr; }
}

/* ---------- Questions ---------- */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
  align-items: start;
  gap: 2rem 4rem;
}
.faq-layout h2 { max-width: 12ch; font-size: clamp(2.15rem, 4.5vw, 3.6rem); }
.faq { position: relative; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.3rem 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  margin-top: 0.3rem;
  margin-right: 0.2rem;
  border-right: 2px solid var(--river);
  border-bottom: 2px solid var(--river);
  transform: rotate(45deg);
  transition: transform 0.2s ease, margin 0.2s ease;
}
.faq details[open] summary::after { margin-top: 0.6rem; transform: rotate(-135deg); }
.faq summary:hover { color: var(--river); }
.faq details p { max-width: 44rem; padding-bottom: 1.4rem; color: var(--slate); }
@media (max-width: 860px) {
  .faq-layout { grid-template-columns: 1fr; }
}

/* ---------- Industry pages ---------- */
.needs { position: relative; }
.need {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 0.75rem 3rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}
.need h3 { font-size: 1.35rem; }
.need p { max-width: 42rem; color: var(--slate); font-size: 1.08rem; }
@media (max-width: 760px) {
  .need { grid-template-columns: 1fr; }
}

.callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 1.25rem 1.5rem;
  margin-top: 3rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.callout svg { width: 40px; height: 40px; }
.callout p { max-width: 48rem; font-size: 1.12rem; line-height: 1.55; }

.recommend {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 2rem 3.5rem;
  padding: clamp(1.75rem, 4vw, 3.25rem);
  position: relative;
  overflow: hidden;
  color: var(--limestone);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(60% 70% at 100% 110%, rgba(255, 31, 208, 0.4), rgba(150, 60, 220, 0.14) 45%, rgba(150, 60, 220, 0) 72%),
    linear-gradient(160deg, var(--dusk) 0%, var(--twilight) 45%, var(--night) 100%);
  box-shadow: var(--edge-light), var(--shadow-lg), var(--glow-sun);
}
.recommend h2 { max-width: 14ch; font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.recommend-copy > p { max-width: 30rem; margin: 1.1rem 0 1.75rem; color: var(--mist); font-size: 1.1rem; }
.recommend .checks { margin: 0; }
.recommend .checks li::before { background: var(--sun); }
.recommend .checks li::after { border-color: var(--on-accent); }
@media (max-width: 860px) {
  .recommend { grid-template-columns: 1fr; }
}

/* ---------- Booking page ----------
   The calendar panel rises out of the hero's water. The calendar itself is the
   Microsoft Bookings page, shown in a frame that fits the screen so its own
   pop-ups stay in view. From 1024px wide it switches to its two-column layout,
   which is why the panel takes the full page width. */
.book-hero .page-hero-content {
  padding-top: calc(var(--header-h) + clamp(2rem, 6vh, 4rem));
  padding-bottom: clamp(1.25rem, 3vh, 2rem);
}
/* a shorter headline block than other pages, so the calendar starts higher up */
.book-hero h1 { max-width: 20ch; font-size: clamp(2.2rem, 4.3vw, 3.7rem); }
.book-hero .breadcrumb { margin-bottom: 1.1rem; }
.book-hero .lead { margin: 1.1rem 0 0; }
.book-hero .page-horizon { height: clamp(150px, 24vh, 240px); }

.book {
  --lift: clamp(64px, 11vh, 116px);
  padding-top: 0;
}

.book-panel {
  position: relative;
  margin-top: calc(var(--lift) * -1);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: rise-small 0.9s var(--ease-out) 0.55s both;
}
/* a line of first light along the panel's top edge */
.book-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sun) 0%, var(--sun-light) 55%, rgba(255, 122, 230, 0.35) 100%);
}
.book-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem clamp(1.1rem, 2.5vw, 1.75rem) 1rem;
  border-bottom: 1px solid var(--line);
}
.book-panel-head h2 { font-size: 1.2rem; letter-spacing: -0.01em; }
.book-open {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--slate);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.book-open:hover { color: var(--ink); }
.book-open svg { width: 15px; height: 15px; }
/* tall enough to work in, short enough that the whole panel fits under the header */
.book-frame {
  position: relative;
  height: clamp(560px, calc(100vh - var(--header-h) - 8.25rem), 1000px);
  height: clamp(560px, calc(100svh - var(--header-h) - 8.25rem), 1000px);
}
.book-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.book-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--slate);
}
.book-note {
  padding: 0.95rem clamp(1.1rem, 2.5vw, 1.75rem);
  border-top: 1px solid var(--line);
  color: var(--slate);
  font-size: 0.92rem;
}

.book-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem clamp(1.5rem, 3vw, 2.75rem);
  margin: clamp(2.5rem, 5vw, 3.75rem) 0 0;
}
.book-facts div { padding-top: 1.1rem; border-top: 1.5px solid var(--ink); }
.book-facts dt { margin-bottom: 0.4rem; color: var(--slate); font-size: 0.92rem; }
.book-facts dd { margin: 0; font-size: 1.08rem; font-weight: 600; line-height: 1.4; }

@media (max-width: 960px) {
  .book-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .book-panel { margin-inline: calc(var(--gutter) * -0.5); border-radius: var(--radius-md); }
  .book-facts { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ---------- 404 page ---------- */
.page-404 { background: var(--river-deep); }
.lost-scene {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}
.lost {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding-top: calc(var(--header-h) + 4rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}
.lost h1 { max-width: 14ch; font-size: clamp(2.5rem, 6vw, 4.5rem); }
.lost p { max-width: 30rem; margin: 1.25rem 0 2rem; color: var(--mist); font-size: 1.125rem; }
.lost-horizon { height: clamp(140px, 24vh, 240px); }

/* ---------- Motion ----------
   One orchestrated entrance per page, then quiet reveals as you scroll.
   Scroll reveals only hide content once the script has confirmed it can show it again. */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(24px); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes rise-small {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes header-in {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: none; }
}

.hero-content > *,
.page-hero-content > *,
.lost > * { animation: rise-in 1.1s var(--ease-out) both; }
.hero-content > :nth-child(1), .page-hero-content > :nth-child(1), .lost > :nth-child(1) { animation-delay: 0.15s; }
.hero-content > :nth-child(2), .page-hero-content > :nth-child(2), .lost > :nth-child(2) { animation-delay: 0.3s; }
.hero-content > :nth-child(3), .page-hero-content > :nth-child(3), .lost > :nth-child(3) { animation-delay: 0.45s; }
.page-hero-content > :nth-child(4) { animation-delay: 0.6s; }
.hero-facts li { animation: rise-small 0.9s var(--ease-out) both; }
.hero-facts li:nth-child(1) { animation-delay: 0.75s; }
.hero-facts li:nth-child(2) { animation-delay: 0.85s; }
.hero-facts li:nth-child(3) { animation-delay: 0.95s; }

.reveal {
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-pending { opacity: 0; transform: translateY(28px); }

/* Rules that draw themselves in from the left */
.industry::before,
.feature-item::before,
.faq::before,
.needs::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--ink);
  transform-origin: left center;
  transition: transform 1.2s var(--ease-out);
  transition-delay: calc(var(--reveal-delay, 0s) + 0.1s);
}
.is-pending.industry::before,
.is-pending.feature-item::before,
.is-pending.faq::before,
.is-pending.needs::before { transform: scaleX(0); }

/* Timeline: the line runs across, then each step lights up in turn */
.steps::before { transform-origin: left center; transition: transform 1.5s var(--ease-out); }
.step::before { transition: transform 0.6s var(--ease-out), opacity 0.6s var(--ease-out); }
.step h3,
.step p { transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.step:nth-child(1)::before { transition-delay: 0.2s; }
.step:nth-child(2)::before { transition-delay: 0.65s; }
.step:nth-child(3)::before { transition-delay: 1.1s; }
.step:nth-child(1) h3, .step:nth-child(1) p { transition-delay: 0.3s; }
.step:nth-child(2) h3, .step:nth-child(2) p { transition-delay: 0.75s; }
.step:nth-child(3) h3, .step:nth-child(3) p { transition-delay: 1.2s; }
.steps.is-pending::before { transform: scaleX(0); }
.steps.is-pending .step::before { transform: scale(0.3); opacity: 0; }
.steps.is-pending .step h3,
.steps.is-pending .step p { opacity: 0; transform: translateY(14px); }
@media (max-width: 760px) {
  .steps::before { transform-origin: center top; }
  .steps.is-pending::before { transform: scaleY(0); }
}

/* Health check: a monitoring pass sweeps the rows and re-ticks each check */
.health li:nth-child(1) { --row: 0; }
.health li:nth-child(2) { --row: 1; }
.health li:nth-child(3) { --row: 2; }
.health li:nth-child(4) { --row: 3; }
.health li::before {
  content: "";
  position: absolute;
  inset: 0 -1.25rem;
  background: linear-gradient(90deg, rgba(99, 212, 159, 0), rgba(99, 212, 159, 0.12) 50%, rgba(99, 212, 159, 0));
  opacity: 0;
  animation: health-scan 7s ease-in-out infinite;
  animation-delay: calc(var(--row) * 0.4s + 1.6s);
  pointer-events: none;
}
.health .status svg path {
  stroke-dasharray: 14;
  animation: health-tick 7s var(--ease-out) infinite;
  animation-delay: calc(var(--row) * 0.4s + 1.75s);
}
@keyframes health-scan {
  0%, 100% { opacity: 0; }
  4% { opacity: 1; }
  12% { opacity: 0; }
}
@keyframes health-tick {
  0% { stroke-dashoffset: 14; }
  7%, 100% { stroke-dashoffset: 0; }
}

/* FAQ answers ease open */
.faq details[open] p { animation: rise-small 0.45s var(--ease-out) both; }

/* Featured dark cards catch a soft light where the pointer is */
.tile-feature::after,
.plan-feature::after,
.tier-feature::after,
.recommend::after,
.mega-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, -20%), rgba(255, 205, 246, 0.09), rgba(255, 205, 246, 0) 62%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.tile-feature:hover::after,
.plan-feature:hover::after,
.tier-feature:hover::after,
.recommend:hover::after,
.mega-feature:hover::after { opacity: 1; }

@media print {
  .reveal.is-pending,
  .steps.is-pending .step h3,
  .steps.is-pending .step p { opacity: 1 !important; transform: none !important; }
}

/* ---------- Intro ----------
   Plays once per browser tab. assets/intro.js adds "intro" to <html> before the
   first paint. The main script then starts it ("intro-play"): the top scene
   paints the horizon line, the sunrise and the reveal itself, so they are the
   same horizon and sun the page keeps, while the logo settles into the header.
   "intro-done" ends it. A timer in intro.js adds that class even if the main
   script fails, so the page can never stay covered. */
.intro-backdrop,
.intro-brand { display: none; }

html.intro:not(.intro-done) .intro-backdrop {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--night);
}
html.intro:not(.intro-done) .intro-brand {
  display: inline-flex;
  position: fixed;
  z-index: 202;
  left: var(--bl, 0px);
  top: var(--bt, 0px);
  color: var(--limestone);
  opacity: 0;
  transform-origin: 0 0;
  pointer-events: none;
  will-change: transform, opacity;
}
.im-dash { opacity: 0.7; }

/* stacking while the intro runs: backdrop, then the top scene, the logo, the header */
html.intro-play:not(.intro-done) .intro-stage { z-index: 201; }
html.intro:not(.intro-done) .site-header { z-index: 203; }
html.intro:not(.intro-done) .site-header .brand { visibility: hidden; }

/* hold the page's own entrance until the intro starts it */
html.intro:not(.intro-play):not(.intro-done) .site-header,
html.intro:not(.intro-play):not(.intro-done) .hero-content > *,
html.intro:not(.intro-play):not(.intro-done) .page-hero-content > *,
html.intro:not(.intro-play):not(.intro-done) .lost > *,
html.intro:not(.intro-play):not(.intro-done) .hero-facts li,
html.intro:not(.intro-play):not(.intro-done) .book-panel { animation: none; opacity: 0; }

/* the sequence */
html.intro-play .intro-backdrop { animation: intro-out 0.8s ease 1.45s forwards; }
html.intro-play .intro-brand {
  animation:
    intro-brand-in 0.9s var(--ease-out) 0.25s both,
    intro-brand-home 0.85s cubic-bezier(0.7, 0, 0.2, 1) 1.45s forwards;
}
html.intro-play .im-line {
  stroke-dasharray: 1;
  animation: intro-mark-line 0.7s cubic-bezier(0.65, 0, 0.35, 1) 0.3s both;
}
html.intro-play .im-sun { animation: intro-mark-sun 1s var(--ease-out) 0.5s both; }
html.intro-play .im-dash { animation: intro-mark-dash 0.6s ease 1s both; }

@keyframes intro-out { to { opacity: 0; visibility: hidden; } }
@keyframes intro-brand-in {
  from { opacity: 0; transform: translate(var(--bx, 0px), calc(var(--by, 0px) + 18px)) scale(var(--bs, 1)); filter: blur(6px); }
  to { opacity: 1; transform: translate(var(--bx, 0px), var(--by, 0px)) scale(var(--bs, 1)); filter: blur(0); }
}
@keyframes intro-brand-home {
  from { transform: translate(var(--bx, 0px), var(--by, 0px)) scale(var(--bs, 1)); }
  to { transform: none; }
}
@keyframes intro-mark-line { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes intro-mark-sun { from { transform: translateY(12px); } to { transform: none; } }
@keyframes intro-mark-dash { from { opacity: 0; } to { opacity: 0.7; } }

/* the page's entrance, re-timed to follow the reveal */
html.intro-play .site-header { animation-delay: 1.9s; }
html.intro-play .hero-content > :nth-child(1),
html.intro-play .page-hero-content > :nth-child(1),
html.intro-play .lost > :nth-child(1) { animation-delay: 1.95s; }
html.intro-play .hero-content > :nth-child(2),
html.intro-play .page-hero-content > :nth-child(2),
html.intro-play .lost > :nth-child(2) { animation-delay: 2.1s; }
html.intro-play .hero-content > :nth-child(3),
html.intro-play .page-hero-content > :nth-child(3),
html.intro-play .lost > :nth-child(3) { animation-delay: 2.25s; }
html.intro-play .page-hero-content > :nth-child(4) { animation-delay: 2.4s; }
/* the booking panel overlaps the scene, so it waits until the scene has finished the intro */
html.intro-play .book-panel { animation-delay: 2.95s; }
html.intro-play .hero-facts li:nth-child(1) { animation-delay: 2.3s; }
html.intro-play .hero-facts li:nth-child(2) { animation-delay: 2.4s; }
html.intro-play .hero-facts li:nth-child(3) { animation-delay: 2.5s; }

/* a click, tap, key press or scroll skips straight to the page */
html.intro-skip .site-header,
html.intro-skip .hero-content > *,
html.intro-skip .page-hero-content > *,
html.intro-skip .lost > *,
html.intro-skip .hero-facts li,
html.intro-skip .book-panel { animation-delay: 0s !important; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .reveal.is-pending { opacity: 1; transform: none; }
}
