/* ============================================================
   Sabivia — web
   Design: Apple-style materials + typography, Emil Kowalski motion
   One effect per page: the sea, hero only.
   ============================================================ */

/* ---------- Tokens ---------- */
/* Fallback first, so a browser without light-dark() still gets a light theme
   instead of SVG default black. The light-dark() block below wins where supported. */
:root {
  color-scheme: light dark;
  --bg: #f5f5f7;
  --bg-elevated: #ffffff;
  --bg-alt: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #4f4f55;
  --ink-3: #64646a;
  --hairline: rgba(0, 0, 0, 0.1);
  --accent: #0071e3;
  --accent-press: #0062c4;
  --accent-soft: rgba(0, 113, 227, 0.09);
  --chip: rgba(0, 0, 0, 0.05);
  --land: #e1eaf0;
  --land-line: #b8c8d3;
  --land-hover: #cddfea;
  --pin-sea: #0b7fc4;
  --pin-water: #15928c;
  --pin-green: #398b4f;
  --pin-land: #a9741f;
  --pin-ink: #ffffff;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.06), 0 20px 48px rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #06121b;
    --bg-elevated: #0f2029;
    --bg-alt: #08161f;
    --ink: #eef2f6;
    --ink-2: #b4bfca;
    --ink-3: #939fab;
    --hairline: rgba(255, 255, 255, 0.11);
    --accent: #4aa3ff;
    --accent-press: #2f8ff0;
    --accent-soft: rgba(74, 163, 255, 0.14);
    --chip: rgba(255, 255, 255, 0.07);
    --land: #0e2230;
    --land-line: #1d3a49;
    --land-hover: #143346;
    --pin-sea: #57b6ea;
    --pin-water: #4fd0c6;
    --pin-green: #63c47e;
    --pin-land: #d7a94e;
    --pin-ink: #04141d;
  }
}

:root[data-theme="dark"] {
  --bg: #06121b;
  --bg-elevated: #0f2029;
  --bg-alt: #08161f;
  --ink: #eef2f6;
  --ink-2: #b4bfca;
  --ink-3: #939fab;
  --hairline: rgba(255, 255, 255, 0.11);
  --accent: #4aa3ff;
  --accent-press: #2f8ff0;
  --accent-soft: rgba(74, 163, 255, 0.14);
  --chip: rgba(255, 255, 255, 0.07);
  --land: #0e2230;
  --land-line: #1d3a49;
  --land-hover: #143346;
  --pin-sea: #57b6ea;
  --pin-water: #4fd0c6;
  --pin-green: #63c47e;
  --pin-land: #d7a94e;
  --pin-ink: #04141d;
}

@supports (color: light-dark(#fff, #000)) {
  :root {
    color-scheme: light dark;
    --bg: light-dark(#f5f5f7, #06121b);
    --bg-elevated: light-dark(#ffffff, #0f2029);
    --bg-alt: light-dark(#ffffff, #08161f);
    --ink: light-dark(#1d1d1f, #eef2f6);
    --ink-2: light-dark(#4f4f55, #b4bfca);
    --ink-3: light-dark(#64646a, #939fab);
    --hairline: light-dark(rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0.11));
    --accent: light-dark(#0071e3, #4aa3ff);
    --accent-press: light-dark(#0062c4, #2f8ff0);
    --accent-soft: light-dark(rgba(0, 113, 227, 0.09), rgba(74, 163, 255, 0.14));
    --chip: light-dark(rgba(0, 0, 0, 0.05), rgba(255, 255, 255, 0.07));
    --shadow-1: 0 1px 2px light-dark(rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.55)),
                0 8px 24px light-dark(rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.5));
    --shadow-2: 0 2px 6px light-dark(rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.6)),
                0 20px 48px light-dark(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.65));
    --land: light-dark(#e1eaf0, #0e2230);
    --land-line: light-dark(#b8c8d3, #1d3a49);
    --land-hover: light-dark(#cddfea, #143346);
    --pin-sea: light-dark(#0b7fc4, #57b6ea);
    --pin-water: light-dark(#15928c, #4fd0c6);
    --pin-green: light-dark(#398b4f, #63c47e);
    --pin-land: light-dark(#a9741f, #d7a94e);
    --pin-ink: light-dark(#ffffff, #04141d);
  }
}

:root {
  /* motion — Emil: strong custom curves, never built-in easings */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --dur-press: 140ms;
  --dur-ui: 200ms;
  --dur-enter: 560ms;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-pill: 980px;

  --wrap: 1120px;
  --gutter: 24px;
  --nav-h: 56px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter,
          system-ui, "Helvetica Neue", Arial, sans-serif;
}

/* Manual theme override — the toggle sets this attribute; system stays the default. */
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

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

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  /* Sea-coloured canvas so a WebGL frame that is not ready yet never shows white. */
  background-color: light-dark(#cfe4ef, #06121b);
  background-image: linear-gradient(
    180deg,
    light-dark(#dcecf5, #030a11) 0%,
    light-dark(#b9d9ea, #0a2133) 46%,
    light-dark(#4e8aa6, #062334) 62%,
    light-dark(#123a52, #020b14) 100%
  );
  background-attachment: fixed;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  /* Scrollbar as part of the material: thin, rounded, translucent. */
  scrollbar-gutter: stable;
}

/* Firefox only: Chromium ignores ::-webkit-scrollbar when scrollbar-color is set. */
@supports not selector(::-webkit-scrollbar) {
  html {
    scrollbar-width: thin;
    scrollbar-color: light-dark(rgba(10, 27, 38, 0.32), rgba(255, 255, 255, 0.32)) transparent;
  }
}

html::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}
html::-webkit-scrollbar-track {
  background: transparent;
}
html::-webkit-scrollbar-thumb {
  background: light-dark(rgba(10, 27, 38, 0.26), rgba(255, 255, 255, 0.26));
  border: 3px solid transparent;
  background-clip: padding-box;
  border-radius: var(--radius-pill);
  transition: background-color var(--dur-ui) var(--ease-out);
}
html::-webkit-scrollbar-thumb:hover {
  background: light-dark(rgba(10, 27, 38, 0.45), rgba(255, 255, 255, 0.42));
  background-clip: padding-box;
}
html::-webkit-scrollbar-thumb:active {
  background: light-dark(rgba(10, 27, 38, 0.6), rgba(255, 255, 255, 0.55));
  background-clip: padding-box;
}
html::-webkit-scrollbar-corner {
  background: transparent;
}

/* Touch devices: no system bar at all, the content scrolls naturally. */
@media (hover: none) and (pointer: coarse) {
  html {
    scrollbar-width: none;
  }
  html::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }
}

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  /* Liquid Glass: the WebGL sea is the fixed background layer (.sea), so the body
     itself is transparent and every section is a sheet of glass that filters it. */
  background: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---------- Full-page sea (Liquid Glass backdrop) ---------- */
.sea {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* Static sea while the WebGL frame is not ready (or if it never is). */
  background-color: light-dark(#cfe4ef, #06121b);
  background-image: linear-gradient(
    180deg,
    light-dark(#dcecf5, #030a11) 0%,
    light-dark(#b9d9ea, #0a2133) 46%,
    light-dark(#4e8aa6, #062334) 62%,
    light-dark(#123a52, #020b14) 100%
  );
}
.sea canvas { display: block; width: 100%; height: 100%; }

/* The sea flows *between* the glass panels: main is a column of inset cards. */
main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(18px, 3vw, 30px);
  padding-block: 0 clamp(16px, 2.5vw, 28px);
}
main > section:not(.hero) {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

/* A sheet of glass: translucent, blurred, rounded, lifted off the moving sea. */
.glass {
  background: light-dark(color-mix(in srgb, var(--bg) 56%, transparent), color-mix(in srgb, var(--bg) 34%, transparent));
  -webkit-backdrop-filter: blur(26px) saturate(165%);
  backdrop-filter: blur(26px) saturate(165%);
  border: 1px solid light-dark(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 light-dark(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.06)), 0 18px 50px light-dark(rgba(12, 38, 56, 0.10), rgba(0, 0, 0, 0.42));
}

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

a { color: inherit; }

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform var(--dur-ui) var(--ease-out);
}
.skip-link:focus-visible { transform: translateY(0); }

/* ---------- Focus ---------- */
:where(a, button, summary, input, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Nav — melts into the sea, no hard edge ---------- */
.nav {
  --nav-solid: 0;
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) calc(var(--nav-solid) * 92%), transparent);
  -webkit-backdrop-filter: saturate(180%) blur(calc(var(--nav-solid) * 20px));
  backdrop-filter: saturate(180%) blur(calc(var(--nav-solid) * 20px));
  border: 0;
  box-shadow: 0 12px 34px rgba(0, 0, 0, calc(var(--nav-solid) * 0.06));
}
/* A veil that fades to nothing well below the bar: legible nav, no visible line. */
.nav::before {
  content: "";
  position: absolute;
  inset: 0 0 -60px 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    light-dark(rgba(248, 249, 251, 0.86), rgba(6, 18, 27, 0.84)) 0%,
    light-dark(rgba(248, 249, 251, 0.5), rgba(6, 18, 27, 0.44)) 30%,
    light-dark(rgba(248, 249, 251, 0.18), rgba(6, 18, 27, 0.16)) 60%,
    light-dark(rgba(248, 249, 251, 0), rgba(6, 18, 27, 0)) 100%
  );
  opacity: calc(1 - var(--nav-solid));
  transition: opacity 80ms linear;
}

.nav-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: opacity var(--dur-ui) var(--ease-out);
}
.brand:hover { opacity: 0.65; }
.brand-mark { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 28px;
  margin-inline-start: auto;
}.nav-links a {
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  position: relative;
  padding-block: 8px;
  transition: color var(--dur-ui) var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 2px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-ui) var(--ease-out);
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Language switcher — a glass pill with a custom menu, not a native select. */
.lang {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline);
  background: var(--chip);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
  color: var(--ink);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: border-color var(--dur-ui) var(--ease-out),
              background-color var(--dur-ui) var(--ease-out);
}
.lang-btn:hover { border-color: color-mix(in srgb, var(--ink) 28%, transparent); }
.lang-btn[aria-expanded="true"] {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.lang-globe { opacity: 0.55; }
.lang-chevron {
  opacity: 0.6;
  transition: transform var(--dur-ui) var(--ease-out);
}
.lang-btn[aria-expanded="true"] .lang-chevron { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  display: grid;
  gap: 2px;
  min-width: 178px;
  padding: 6px;
  margin: 0;
  list-style: none;
  border-radius: 16px;
  border: 1px solid light-dark(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.1));
  background: light-dark(rgba(255, 255, 255, 0.82), rgba(10, 24, 34, 0.82));
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  backdrop-filter: blur(26px) saturate(170%);
  box-shadow: inset 0 1px 0 light-dark(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.06)), 0 18px 50px light-dark(rgba(12, 38, 56, 0.10), rgba(0, 0, 0, 0.42));
  transform-origin: top right;
  animation: lang-in 150ms var(--ease-out);
}
.lang-menu[hidden] { display: none !important; }
.lang-menu [role="option"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13.5px;
  letter-spacing: -0.005em;
  color: var(--ink);
  cursor: pointer;
  outline: none;
  transition: background-color 120ms var(--ease-out), color 120ms var(--ease-out);
}
.lang-menu [role="option"]:hover,
.lang-menu [role="option"]:focus-visible {
  background: var(--chip);
}
.lang-menu [role="option"][aria-selected="true"] {
  color: var(--accent);
  font-weight: 600;
}
.lang-tick { opacity: 0; }
.lang-menu [role="option"][aria-selected="true"] .lang-tick { opacity: 1; }

.lang-sep {
  height: 1px;
  margin: 5px 8px;
  background: linear-gradient(90deg, transparent, var(--hairline) 15%, var(--hairline) 85%, transparent);
}
.lang-auto-hint {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

@keyframes lang-in {
  from { opacity: 0; transform: translateY(-5px) scale(0.97); }
}

@media (max-width: 420px) {
  .lang-globe { display: none; }
  .lang-btn { padding-inline: 10px; }
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-pill);
  background: var(--chip);
  border: 1px solid transparent;
  color: var(--ink);
  cursor: pointer;
  transition: transform var(--dur-press) var(--ease-out),
              background-color var(--dur-ui) var(--ease-out);
}
.theme-toggle:hover { background: var(--hairline); }
.theme-toggle:active { transform: scale(0.94); }
.theme-toggle svg { width: 17px; height: 17px; }

/* The icon shows the theme you'd switch to. */
.theme-toggle .i-sun { display: none; }
.theme-toggle .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-moon { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-press) var(--ease-out),
              background-color var(--dur-ui) var(--ease-out),
              border-color var(--dur-ui) var(--ease-out),
              box-shadow var(--dur-ui) var(--ease-out);
  will-change: transform;
}
.btn:active { transform: scale(0.97); }

.btn-small { padding: 8px 16px; min-height: 36px; font-size: 14px; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.btn-primary:hover { background: var(--accent-press); }

.btn-quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline);
}
.btn-quiet:hover { background: var(--chip); border-color: color-mix(in srgb, var(--ink) 30%, transparent); }

/* ---------- Hero — the page's one effect, now a sheet of glass over the full-page sea ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: max(640px, 100svh);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: light-dark(#0a1b26, #fff);
  text-align: center;
  /* Start under the nav so the sheet has no seam where the bar ends. */
  margin-top: calc(var(--nav-h) * -1);
  /* Glass over the moving sea. Light: a white veil with dark copy.
     Dark: a deep veil with white copy. Same material, both themes. */
  background: linear-gradient(
    180deg,
    light-dark(rgba(255, 255, 255, 0.22), transparent) 12%,
    light-dark(rgba(255, 255, 255, 0.58), rgba(2, 16, 26, 0.62)) 58%,
    light-dark(rgba(252, 252, 253, 0.97), rgba(2, 16, 26, 0.8)) 100%
  );
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 0;
  box-shadow:
    0 24px 60px light-dark(rgba(12, 38, 56, 0.10), rgba(0, 0, 0, 0.35));
  padding-top: calc(var(--nav-h) + clamp(64px, 16svh, 200px));
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(20px, 4svh, 44px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: light-dark(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.14));
  border: 1px solid light-dark(rgba(0, 0, 0, 0.08), rgba(255, 255, 255, 0.22));
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  backdrop-filter: blur(10px) saturate(160%);
  color: light-dark(#0a1b26, #fff);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6.4vw, 4.8rem);
  line-height: 1.03;
  letter-spacing: -0.038em;
  font-weight: 700;
  font-optical-sizing: auto;
  text-wrap: balance;
  text-shadow: 0 1px 30px light-dark(rgba(255, 255, 255, 0.6), rgba(2, 20, 30, 0.28));
}

.dim { color: var(--ink-3); }
.hero .dim { color: light-dark(rgba(10, 27, 38, 0.55), rgba(255, 255, 255, 0.66)); }

.lede {
  max-width: 600px;
  margin: 22px auto 0;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  text-wrap: pretty;
}
.hero .lede { color: light-dark(rgba(10, 27, 38, 0.8), rgba(255, 255, 255, 0.86)); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 30px;
}

.hero .btn-primary {
  background: light-dark(#0a1b26, #fff);
  color: light-dark(#fff, #08161f);
  box-shadow: 0 6px 24px light-dark(rgba(12, 38, 56, 0.22), rgba(2, 18, 28, 0.28));
}
.hero .btn-primary:hover { background: light-dark(#132c3c, #eef4f7); }
.hero .btn-quiet {
  color: light-dark(#0a1b26, #fff);
  border-color: light-dark(rgba(10, 27, 38, 0.2), rgba(255, 255, 255, 0.34));
  background: light-dark(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.12));
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
}
.hero .btn-quiet:hover { background: light-dark(rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.2)); }

/* Hero foot: catalogue chip, scroll cue, pause control */
.hero-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0 var(--gutter) calc(clamp(18px, 3svh, 28px) + env(safe-area-inset-bottom, 0px));
}

.hero-now {
  display: grid;
  gap: 2px;
  min-width: 232px;
  max-width: 300px;
  padding: 12px 16px;
  border-radius: 16px;
  text-align: left;
  background: light-dark(rgba(255, 255, 255, 0.62), rgba(3, 24, 35, 0.34));
  border: 1px solid light-dark(rgba(10, 27, 38, 0.08), rgba(255, 255, 255, 0.16));
  -webkit-backdrop-filter: blur(26px) saturate(175%);
  backdrop-filter: blur(26px) saturate(175%);
  transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out);
}
.hero-now.is-out { opacity: 0; transform: translateY(5px); }

.hero-now-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: light-dark(rgba(10, 27, 38, 0.6), rgba(255, 255, 255, 0.66));
}
.hero-now-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7fe3c4;
}
.hero-now-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: light-dark(#0a1b26, #fff);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-now-meta {
  font-size: 12.5px;
  color: light-dark(rgba(10, 27, 38, 0.68), rgba(255, 255, 255, 0.68));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  letter-spacing: -0.005em;
  color: light-dark(rgba(10, 27, 38, 0.7), rgba(255, 255, 255, 0.72));
  text-decoration: none;
  padding: 8px 4px;
  transition: color var(--dur-ui) var(--ease-out);
}
.scroll-cue:hover { color: light-dark(#0a1b26, #fff); }
.scroll-cue svg { animation: cue 2.6s var(--ease-in-out) infinite; }
@keyframes cue {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(2px); }
}

.sea-toggle {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: var(--radius-pill);
  color: light-dark(#0a1b26, #fff);
  background: light-dark(rgba(255, 255, 255, 0.62), rgba(3, 24, 35, 0.34));
  border: 1px solid light-dark(rgba(10, 27, 38, 0.1), rgba(255, 255, 255, 0.2));
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  cursor: pointer;
  transition: transform var(--dur-press) var(--ease-out),
              background-color var(--dur-ui) var(--ease-out);
}
.sea-toggle:hover { background: light-dark(rgba(255, 255, 255, 0.82), rgba(3, 24, 35, 0.55)); }
.sea-toggle:active { transform: scale(0.93); }
.sea-toggle .i-play { display: none; }
.sea-toggle[aria-pressed="true"] .i-pause { display: none; }
.sea-toggle[aria-pressed="true"] .i-play { display: block; }

/* ---------- Stats — glass over the sea ---------- */
.stats {
  border-bottom: none;
  overflow: clip;
  background: light-dark(color-mix(in srgb, var(--bg-alt) 58%, transparent), color-mix(in srgb, var(--bg-alt) 38%, transparent));
  -webkit-backdrop-filter: blur(26px) saturate(175%);
  backdrop-filter: blur(26px) saturate(175%);
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 light-dark(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.06)), 0 18px 50px light-dark(rgba(12, 38, 56, 0.10), rgba(0, 0, 0, 0.42));
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding-block: 34px;
}
.stat { display: grid; gap: 2px; padding-inline: 8px; }
.stat + .stat { position: relative; padding-inline-start: 24px; }
.stat + .stat::before {
  content: "";
  position: absolute;
  inset-block: 10%;
  inset-inline-start: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--hairline) 22%, var(--hairline) 78%, transparent);
}
.stat-n {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat-l { font-size: 13.5px; font-weight: 500; color: var(--ink-2); letter-spacing: -0.005em; }

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(72px, 10vw, 120px);
  /* Glass over the full-page sea: translucent, blurred, rounded, lifted. */
  overflow: clip;
  background: light-dark(color-mix(in srgb, var(--bg) 56%, transparent), color-mix(in srgb, var(--bg) 34%, transparent));
  -webkit-backdrop-filter: blur(26px) saturate(175%);
  backdrop-filter: blur(26px) saturate(175%);
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 light-dark(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.06)), 0 18px 50px light-dark(rgba(12, 38, 56, 0.10), rgba(0, 0, 0, 0.42));
}
.section-alt {
  background: light-dark(color-mix(in srgb, var(--bg-alt) 60%, transparent), color-mix(in srgb, var(--bg-alt) 40%, transparent));
  -webkit-backdrop-filter: blur(26px) saturate(175%);
  backdrop-filter: blur(26px) saturate(175%);
  border-color: light-dark(rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.06));
}

.section h2, .statement h2, .closing h2 {
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  font-optical-sizing: auto;
  text-wrap: balance;
}

.sub {
  max-width: 600px;
  margin-top: 18px;
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  color: var(--ink-2);
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.wrap-narrow { max-width: 720px; }

/* ---------- Explorer ---------- */
.map-section { padding-top: clamp(56px, 8vw, 96px); }

.explorer {
  margin-top: clamp(32px, 4vw, 48px);
}

.explorer-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.chips {
  display: flex;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 2px;
}
.chips::-webkit-scrollbar { display: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 34px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  -webkit-user-select: none;
  user-select: none;
  border: 1px solid var(--hairline);
  background: var(--bg-elevated);
  color: var(--ink-2);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background-color var(--dur-ui) var(--ease-out),
              color var(--dur-ui) var(--ease-out),
              border-color var(--dur-ui) var(--ease-out),
              transform var(--dur-press) var(--ease-out);
}
.chip:hover { color: var(--ink); border-color: color-mix(in srgb, var(--ink) 25%, transparent); }
.chip:active { transform: scale(0.97); }
.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.chip-n {
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
  opacity: 1;
}
.chip[aria-pressed="true"] .chip-n { color: inherit; opacity: 0.82; }

.search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 280px;
  min-height: 38px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline);
  background: var(--bg-elevated);
  color: var(--ink-2);
  transition: border-color var(--dur-ui) var(--ease-out),
              box-shadow var(--dur-ui) var(--ease-out);
}
.search:focus-within {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}
.search svg { flex: 0 0 auto; opacity: 0.7; }
.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  outline: none;
}
.search input::placeholder { color: var(--ink-3); }

.explorer-meta {
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: -0.005em;
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}

.explorer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 24px;
  align-items: start;
}

/* Map panel */
.map-panel {
  background: var(--bg-elevated);
  border: 0;
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-1);
}

.map-canvas {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  background:
    radial-gradient(120% 90% at 50% 8%, light-dark(#f4fafc, #0a1c26), light-dark(#dbe9f1, #061520));
}
.map-canvas.is-zoomed {
  touch-action: none;
  cursor: grab;
}
.map-canvas.is-zoomed:active { cursor: grabbing; }

.map-zoom {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  gap: 6px;
  z-index: 2;
}
.map-zoom-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: light-dark(rgba(255, 255, 255, 0.85), rgba(8, 22, 32, 0.72));
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  color: var(--ink);
  font-family: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 light-dark(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.08)),
    0 4px 14px light-dark(rgba(12, 38, 56, 0.14), rgba(0, 0, 0, 0.35));
  transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-ui) var(--ease-out);
}
.map-zoom-btn:hover { background: light-dark(#ffffff, rgba(14, 32, 44, 0.85)); }
.map-zoom-btn:active { transform: scale(0.94); }
.map-zoom-btn[hidden] { display: none; }
.map-canvas svg {
  display: block;
  width: 100%;
  height: auto;
  touch-action: manipulation;
}

.province {
  fill: var(--land);
  stroke: var(--land-line);
  stroke-width: 0.7;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  transition: fill var(--dur-ui) var(--ease-out);
}
.province:hover { fill: var(--land-hover); }
.province.is-active { fill: var(--accent-soft); }

.pins-group .pin { cursor: pointer; }
.pin-dot {
  fill: var(--pin-sea);
  stroke: var(--pin-ink);
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 160ms var(--ease-out), fill var(--dur-ui) var(--ease-out);
}
.pin--water .pin-dot { fill: var(--pin-water); }
.pin--green .pin-dot { fill: var(--pin-green); }
.pin--land .pin-dot { fill: var(--pin-land); }

.pin-hit { fill: transparent; }
.pins-group .pin:hover .pin-dot,
.pins-group .pin:focus-visible .pin-dot { transform: scale(1.45); }
.pins-group .pin:focus-visible { outline: none; }
.pins-group .pin:focus-visible .pin-dot {
  stroke: var(--ink);
  stroke-width: 2.2;
}
.pin.is-active .pin-dot {
  fill: var(--accent);
  transform: scale(1.55);
  stroke: var(--pin-ink);
  stroke-width: 1.6;
}
.pin.is-off { opacity: 0; pointer-events: none; }

.map-tip {
  position: absolute;
  z-index: 3;
  max-width: 220px;
  padding: 6px 10px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: -0.005em;
  pointer-events: none;
  box-shadow: var(--shadow-1);
  transform: translate(-50%, calc(-100% - 10px));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.map-note {
  margin-top: 12px;
  padding-inline: 4px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-3);
}

.map-noscript {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--chip);
  font-size: 14px;
  color: var(--ink-2);
}

/* Detail column */
.detail-col { display: grid; gap: 14px; }

.spot {
  background: var(--bg-elevated);
  border: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    inset 0 1px 0 light-dark(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.06)),
    0 10px 30px light-dark(rgba(12, 38, 56, 0.08), rgba(0, 0, 0, 0.35));
}

.spot-media {
  margin: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  background: var(--chip);
  transform: translateZ(0);
}
.spot-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0;
}

.spot-body { padding: 18px 20px 20px; }

.spot-kicker {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  color: var(--accent);
  margin-bottom: 4px;
}

.spot-name {
  font-size: 1.32rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.spot-summary {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

.spot-facts::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline) 10%, var(--hairline) 90%, transparent);
}
.spot-facts::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline) 10%, var(--hairline) 90%, transparent);
}
.spot-facts {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 14px;
  margin-top: 14px;
  padding-top: 16px;
  position: relative;
  font-size: 13px;
  line-height: 1.45;
}
.spot-facts dt {
  color: var(--ink-3);
  white-space: nowrap;
}
.spot-facts dd { color: var(--ink); }

.spot-credit {
  margin-top: 12px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--ink-3);
}

.spot-approx {
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--ink-3);
}

.spot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

/* Saved shortlist */
.saved {
  background: var(--bg-elevated);
  border: 0;
  border-radius: var(--radius);
  padding: 4px 18px 18px;
  box-shadow: inset 0 1px 0 light-dark(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.05)), 0 8px 24px light-dark(rgba(12, 38, 56, 0.06), rgba(0, 0, 0, 0.28));
}
.saved summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  list-style: none;
  cursor: pointer;
  padding-block: 14px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.saved summary::-webkit-details-marker { display: none; }
.saved summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 1.6px solid var(--ink-3);
  border-bottom: 1.6px solid var(--ink-3);
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--dur-ui) var(--ease-out);
}
.saved[open] summary::after { transform: translateY(2px) rotate(-135deg); }

.saved-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding-inline: 7px;
  margin-inline-start: auto;
  border-radius: var(--radius-pill);
  background: var(--chip);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.saved-body { display: grid; gap: 10px; }
.saved-empty {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.saved-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 6px;
}
.saved-item {
  display: flex;
  align-items: stretch;
  gap: 4px;
  border-radius: 10px;
}
.saved-open {
  flex: 1 1 auto;
  display: grid;
  gap: 1px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: var(--chip);
  color: var(--ink);
  text-align: left;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background-color var(--dur-ui) var(--ease-out);
}
.saved-open:hover { background: var(--accent-soft); }
.saved-open small {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--ink-3);
}
.saved-remove {
  flex: 0 0 auto;
  width: 32px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-3);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--dur-ui) var(--ease-out),
              color var(--dur-ui) var(--ease-out);
}
.saved-remove:hover { background: var(--chip); color: var(--ink); }
.saved-note {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-3);
}

/* ---------- Photo chapters ---------- */
.chapters {
  list-style: none;
  padding: 0;
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.chapter a {
  display: grid;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.chapter-frame {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  transform: translateZ(0);
  background: var(--chip);
  box-shadow:
    inset 0 1px 0 light-dark(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.05)),
    0 10px 28px light-dark(rgba(12, 38, 56, 0.08), rgba(0, 0, 0, 0.32));
}
.chapter-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
  transition: transform 700ms var(--ease-out);
}
.chapter a:hover .chapter-frame img { transform: scale(1.04); }

/* photo-chapters moment: clip reveal, once (only when JS is on) */
.js .chapter.reveal .chapter-frame {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 900ms var(--ease-out);
}
.js .chapter.reveal.is-in .chapter-frame { clip-path: inset(0 0 0 0); }

.chapter-text { display: grid; gap: 3px; }
.chapter-kind {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.chapter-name {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  transition: color var(--dur-ui) var(--ease-out);
}
.chapter a:hover .chapter-name { color: var(--accent); }
.chapter-arrow { display: inline-block; transition: transform var(--dur-ui) var(--ease-out); }
.chapter a:hover .chapter-arrow { transform: translateX(4px); }
.chapter-where { font-size: 14px; color: var(--ink-2); }

/* ---------- Site vs app ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.split-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 26px;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 0;
  box-shadow: inset 0 1px 0 light-dark(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.05)), 0 10px 28px light-dark(rgba(12, 38, 56, 0.07), rgba(0, 0, 0, 0.3));
}
.split-card--app {
  background: color-mix(in srgb, var(--accent) 7%, var(--bg-elevated));
  border-color: color-mix(in srgb, var(--accent) 28%, transparent);
}
.split-card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.ticks {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.ticks li {
  position: relative;
  padding-left: 26px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 11px;
  height: 6px;
  border-left: 1.8px solid var(--accent);
  border-bottom: 1.8px solid var(--accent);
  transform: rotate(-45deg);
}
.split-note {
  margin-top: auto;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-3);
}
.split-card--app .btn { align-self: flex-start; }

/* ---------- Marquee ---------- */
.marquee {
  margin-top: 48px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-3);
  white-space: nowrap;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Statement — the heavier, dimmed glass (focus moment) ---------- */
.statement {
  padding-block: clamp(88px, 12vw, 150px);
  /* Thicker material + a dark scrim: the sea shows through, but the page dims to focus. */
  color: var(--ink);
  text-align: center;
  background: light-dark(color-mix(in srgb, var(--bg) 62%, transparent), color-mix(in srgb, var(--bg-alt) 46%, transparent));
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid light-dark(rgba(255, 255, 255, 0.22), rgba(0, 0, 0, 0.35));
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 light-dark(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.06)), 0 18px 50px light-dark(rgba(12, 38, 56, 0.10), rgba(0, 0, 0, 0.42));
}
.statement h2 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  letter-spacing: -0.04em;
}
.statement p {
  max-width: 620px;
  margin: 22px auto 0;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}
.statement em { font-style: normal; color: var(--accent); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { margin-top: 32px; }
.faq details {
  position: relative;
}
.faq details::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline) 6%, var(--hairline) 94%, transparent);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 40px 22px 0;
  position: relative;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color var(--dur-ui) var(--ease-out);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 11px;
  height: 11px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--dur-ui) var(--ease-out);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p {
  padding: 0 0 22px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 60ch;
}

/* ---------- Closing ---------- */
.closing {
  padding-block: clamp(88px, 12vw, 140px);
  text-align: center;
  /* Glass over the full-page sea. */
  background: light-dark(color-mix(in srgb, var(--bg) 56%, transparent), color-mix(in srgb, var(--bg) 34%, transparent));
  -webkit-backdrop-filter: blur(26px) saturate(175%);
  backdrop-filter: blur(26px) saturate(175%);
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 light-dark(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.06)), 0 18px 50px light-dark(rgba(12, 38, 56, 0.10), rgba(0, 0, 0, 0.42));
}
.closing p {
  max-width: 540px;
  margin: 18px auto 0;
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  color: var(--ink-2);
}
.closing .actions { margin-top: 26px; }

/* Store buttons + what the app adds */
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 214px;
  padding: 12px 18px;
  border: 0;
  border-radius: 16px;
  background: light-dark(#0a1b26, #f5f7fa);
  color: light-dark(#ffffff, #0a1b26);
  font-family: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 24px light-dark(rgba(12, 38, 56, 0.18), rgba(0, 0, 0, 0.35));
  transition: transform var(--dur-press) var(--ease-out),
              background-color var(--dur-ui) var(--ease-out);
}
.store-btn:hover { background: light-dark(#132c3c, #ffffff); }
.store-btn:active { transform: scale(0.97); }
.store-btn svg { flex: 0 0 auto; }
.store-text { display: grid; gap: 1px; line-height: 1.15; }
.store-text small {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0.65;
}
.store-text strong { font-size: 15px; font-weight: 600; letter-spacing: -0.012em; }
.store-btn.is-soon {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}
.store-btn.is-soon:hover { background: light-dark(#0a1b26, #f5f7fa); }
.store-btn.is-soon:active { transform: none; }

.store-note {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--ink-3);
  text-align: center;
}

.closing-more {
  max-width: 760px;
  margin: 36px auto 0;
  display: grid;
  gap: 12px;
  text-align: left;
}
.closing-features-title {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.closing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px 22px;
}
.closing-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
}
.closing-features li::before {
  content: "✓";
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
}

/* ---------- Footer ---------- */
.footer {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
  margin-block: 0 clamp(16px, 2.5vw, 28px);
  border: 0;
  border-radius: var(--radius-lg);
  padding-block: 40px;
  background: light-dark(color-mix(in srgb, var(--bg) 56%, transparent), color-mix(in srgb, var(--bg) 34%, transparent));
  -webkit-backdrop-filter: blur(26px) saturate(175%);
  backdrop-filter: blur(26px) saturate(175%);
  box-shadow: inset 0 1px 0 light-dark(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.06)), 0 18px 50px light-dark(rgba(12, 38, 56, 0.10), rgba(0, 0, 0, 0.42));
}
.footer-inner {
  display: grid;
  gap: 20px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a {
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  transition: color var(--dur-ui) var(--ease-out);
}
.footer-links a:hover { color: var(--ink); }
.credits {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 70ch;
}

/* ---------- Entrance (once, on load) ---------- */
.enter {
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  animation: enter var(--dur-enter) var(--ease-out) forwards;
}
.enter[data-i="0"] { animation-delay: 40ms; }
.enter[data-i="1"] { animation-delay: 110ms; }
.enter[data-i="2"] { animation-delay: 190ms; }
.enter[data-i="3"] { animation-delay: 270ms; }
.enter[data-i="4"] { animation-delay: 360ms; }

@keyframes enter {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .explorer-grid { grid-template-columns: 1fr; }
  .detail-col { grid-template-columns: minmax(0, 1fr); }
  .spot-media img { aspect-ratio: 16 / 9; }
}

@media (max-width: 780px) {
  :root { --gutter: 20px; }
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
  .nav-actions { margin-inline-start: auto; }

  .hero {
    min-height: max(600px, 100svh);
    padding-top: 14svh;
  }
  .hero h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
  .hero-now { max-width: 240px; min-width: 0; padding: 10px 13px; }
  .scroll-cue { display: none; }
  .actions .btn { flex: 1 1 auto; }

  .stats-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 0; }
  .stat + .stat { padding-inline-start: 8px; }
  .stat + .stat::before { display: none; }
  .stat:nth-child(even) { padding-inline-start: 20px; }
  .stat:nth-child(even)::before { display: block; }

  .explorer-bar { align-items: stretch; }
  /* Every filter visible: wrap the chips instead of scrolling sideways. */
  .chips {
    flex-wrap: wrap;
    overflow: visible;
    padding-block: 0;
  }
  .chip { flex: 0 1 auto; }
  .search { flex: 1 1 100%; }
  .chapters { grid-template-columns: 1fr; gap: 32px; }
  .chapter-frame img { aspect-ratio: 3 / 2; }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  .hero h1 { letter-spacing: -0.03em; }  .actions { flex-direction: column; }
  .actions .btn { width: 100%; }
  .hero-foot { gap: 10px; }
  .hero-now-name { font-size: 14px; }
  .marquee-track { gap: 32px; }
  .spot-body { padding: 16px; }
}

/* Short screens: tighten the hero so the whole first screen fits. */
@media (max-height: 720px) {
  .hero { padding-top: calc(var(--nav-h) + 9svh); }
  .badge { margin-bottom: 14px; }
  .hero .lede { margin-top: 14px; }
  .hero .actions { margin-top: 18px; }
}

/* ---------- Reduced motion (Apple: gentler equivalent, never nothing) ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .enter {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .js .chapter.reveal .chapter-frame { clip-path: none; transition: none; }
  .marquee-track { animation: none; }
  .scroll-cue svg { animation: none; }
  .hero-now { transition: none; }
  .chapter-frame img,
  .btn,
  .nav-links a::after,
  .faq summary::after,
  .pin-dot { transition-duration: 1ms; }
}

/* ---------- Reduced transparency (Apple) ---------- */
@media (prefers-reduced-transparency: reduce) {
  .nav,
  .section,
  .section-alt,
  .stats,
  .closing,
  .statement,
  .footer {
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-color: var(--hairline);
  }
  .badge,
  .hero-now,
  .sea-toggle,
  .hero .btn-quiet {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(3, 24, 35, 0.66);
  }
  .hero {
    background: #04283c;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* ---------- More contrast (Apple) ---------- */
@media (prefers-contrast: more) {
  :root {
    --ink-2: light-dark(#3a3a3c, #d1d1d6);
    --hairline: light-dark(rgba(0, 0, 0, 0.35), rgba(255, 255, 255, 0.45));
  }
  .hero .lede { color: #fff; }
  .hero .dim { color: rgba(255, 255, 255, 0.85); }
  .spot-summary,
  .saved-empty { color: var(--ink); }
}
