/* ==========================================================================
   The first paddleboarding — a beginner's practical guide
   1920×1080 design stage, scaled to fill the viewport.
   ========================================================================== */

:root {
  --paper: #f7f5ee;
  --ink: #183c4c;
  --accent: #337c9b;
  --muted: #59737d;
  --rule: #a6bdc3;
  --wayline: #8daab7;
  --green: #358f71;
  --red: #b70e32;
  --brown: #4c3618;
  --amber: #b0793a;
  --step-rule: rgba(157, 183, 191, 0.5);
  --journey-line: rgba(118, 156, 172, 0.5);
  --ink-25: rgba(24, 60, 76, 0.25);
}

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

html, body { height: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Desktop: lock the viewport, the stage drives movement. */
@media (min-width: 901px) {
  html, body { overflow: hidden; }
}

#viewport {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--paper);
}

#stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1920px;
  height: 1248px;
  transform-origin: center center;
  background: var(--paper);
  /* transform set by JS: translate(-50%, -50%) scale(S) */
}

#track {
  position: absolute;
  left: 0;
  top: 0;
  width: 21120px; /* 1920 * 11 */
  height: 1248px;
  will-change: transform;
}

/* ---------------------------------------------------------------- slides */

.slide {
  position: absolute;
  top: 0;
  width: 1920px;
  height: 1248px;
  overflow: hidden;
  background: var(--paper);
}

/* Background wash. Quest slides get an extra 96px on the left so the
   background can drift right during transitions without revealing an edge. */
.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1248px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}
.slide.is-quest .slide-bg {
  left: -96px;
  width: 2016px;
  will-change: transform;
}
.slide-bg.photo { background-size: cover; }

/* Full-bleed background video (start + closing pages). */
.slide-bg.bg-video {
  object-fit: cover;
  width: 1920px;
  height: 1248px;
  background: #05262c;
}
.bg-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(4,31,36,.62), rgba(4,31,36,.38) 45%, rgba(4,31,36,.66));
}
/* Keep text + icons legible above the moving water. */
.slide.has-video .start-title,
.slide.has-video .scroll-hint p,
.slide.has-video .closing-h,
.slide.has-video .closing-sub,
.slide.has-video .social span {
  color: #fff;
  text-shadow: 0 2px 26px rgba(0,0,0,.55);
}
.slide.has-video .scroll-hint .chevron,
.slide.has-video .social img {
  filter: brightness(0) invert(1);
}
.slide.has-video .social-divider { background: rgba(255,255,255,.35); }
.slide.has-video .topic {
  background: rgba(6,30,36,.5);
  border-color: rgba(255,255,255,.28);
  color: #E2F1EE;
}

/* Scene clip: keeps illustration + copy clear of the pinned video column. */
.clip {
  position: absolute;
  left: 64px;
  top: 84px;
  width: 1484px;
  height: 1080px;
  overflow: hidden;
}
.ill {
  position: absolute;
  left: 0;
  top: 155px;
  width: 400px;
  will-change: transform;
}
.content {
  position: absolute;
  left: 456px; /* 520 - 64 */
  top: 160px;
  width: 1004px;
  will-change: transform;
}

/* Quest 1 drops the left illustration so the conditions board spans wider. */
.slide.no-ill .content {
  left: 24px;
  width: 1436px;
}

/* ----------------------------------------------------- illustration plate */

.folio {
  display: flex;
  align-items: flex-end;
  gap: 20px;
}
.folio-num {
  font-family: 'Lora', serif;
  font-weight: 400;
  font-size: 84px;
  line-height: 0.95;
  color: var(--accent);
}
.chapter { display: flex; flex-direction: column; gap: 9px; padding-bottom: 6px; }
.chapter-name {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.4px;
  color: var(--ink);
}
.chapter-sub {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1;
  color: var(--muted);
}
.ill-rule {
  width: 400px;
  height: 1px;
  background: var(--rule);
  margin: 14px 0;
}
.ill-img {
  width: 400px;
  height: 600px;
  border-radius: 3px;
  overflow: hidden;
}
.ill-img img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ------------------------------------------------------------- headings */

.heading { display: flex; flex-direction: column; gap: 10px; }
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.6px;
  color: var(--accent);
}
.title {
  font-family: 'Lora', serif;
  font-weight: 400;
  font-size: 52px;
  line-height: 1.12;
  letter-spacing: -1.2px;
  color: var(--ink);
  width: fit-content;
}

/* --------------------------------------------------------- instructions */

.steps { display: flex; flex-direction: column; gap: 16px; margin-top: 34px; }
.step {
  display: flex;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--step-rule);
}
.step-num {
  flex: 0 0 34px;
  font-family: 'Lora', serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.2;
  color: var(--accent);
}
.step-text {
  flex: 1;
  font-family: 'Noto Serif', serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.45;
  color: var(--ink);
}
/* key-point emphasis — used sparingly inside step text */
.hl { color: var(--accent); font-weight: 600; }

/* ------------------------------------------------------------- field note */

.field-note {
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px 24px;
  margin-top: 26px;
}
.fn-label {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.5px;
  color: var(--accent);
  margin-bottom: 8px;
}
.fn-text {
  font-family: 'Lora', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.3;
  color: var(--ink);
}

/* ----------------------------------------------------- reserved table box */

.reserve-label {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.4px;
  color: var(--muted);
}
.reserve-box {
  border: 1px dashed var(--rule);
  border-radius: 3px;
  background: rgba(250, 249, 243, 0.5);
}
.weather { display: flex; flex-direction: column; gap: 14px; margin-top: 46px; }
.weather .reserve-box { height: 520px; }

/* ------------------------------------------------------------------ gear */

.gear { display: flex; flex-direction: column; gap: 0; margin-top: 30px; position: relative; }
.gear-col { display: flex; flex-direction: column; gap: 10px; width: 488px; }
.gear-item { display: flex; gap: 12px; align-items: flex-start; }
.gear-icon {
  flex: 0 0 26px;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.5;
  color: var(--accent);
}
.gear-text {
  flex: 1;
  font-family: 'Noto Serif', serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink);
}
.gear-text .lead {
  font-family: 'Noto Serif', serif;
  font-weight: 600;
  color: var(--green);
}
.gear-text .warn { color: var(--red); }
.gear-table { display: flex; flex-direction: column; gap: 8px; padding: 0 0 8px 38px; }
.gear-table .reserve-box { height: 180px; }
.gear-table .reserve-label { font-size: 12px; }
.gear-products { display: flex; flex-direction: column; gap: 12px; padding-left: 38px; width: fit-content; }
.gear-products .row { display: flex; gap: 14px; }
.gear-product { display: flex; flex-direction: column; gap: 8px; }
.gear-product .thumb {
  display: block;
  width: 150px;
  height: 110px;
  border-radius: 3px;
  overflow: hidden;
  background: #ffffff;
}
.gear-product .thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gear-product .name {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  text-align: center;
  color: var(--muted);
}
.gear-shop {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  text-align: center;
  color: var(--muted);
}
.rental-note {
  background: rgba(223, 234, 240, 0.5);
  border-left: 2px solid var(--accent);
  padding: 12px 16px;
  margin-left: 38px;
  margin-top: 30px;
  font-family: 'Noto Serif', serif;
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink);
}
.rental-note .lead { font-family: 'Noto Serif', serif; font-weight: 600; color: var(--green); }
.rental-note .warn { color: var(--red); }

/* brush connector — a hand-drawn swipe links "Best for beginners" to the Paddleboard item */
.gear-link {
  position: absolute;
  left: 481px;
  top: 30px;
  width: 44px;
  height: 38px;
  pointer-events: auto;
  cursor: default;
  animation: gl-float 3s ease-in-out infinite;
}
.gear-link .gl-brush { fill: var(--green); transition: fill .25s ease, transform .25s ease; }
.gear-link.hot .gl-brush { fill: var(--accent); transform: translateX(2px); }

@keyframes gl-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Quest 2 gear page — enlarged photo with clickable numbered hotspots. */
.slide.gear-slide .ill { width: 480px; }
.slide.gear-slide .ill-rule { width: 480px; }
.slide.gear-slide .ill-img { width: 480px; height: 720px; }
.slide.gear-slide .ill-img img { animation: none; }
.slide.gear-slide .ill-img:hover img { transform: none; }
.slide.gear-slide .content { left: 540px; width: 920px; bottom: 0; display: flex; flex-direction: column; }
.slide.gear-slide .gear { flex: 1 1 auto; justify-content: center; margin-top: 0; }

.gear-photo { position: relative; }
.gear-dot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: var(--accent);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(24, 60, 76, 0.35);
  transition: transform 0.18s ease, background 0.18s ease;
  z-index: 2;
}
.gear-dot:hover { transform: translate(-50%, -50%) scale(1.16); }
.gear-dot.active {
  transform: translate(-50%, -50%) scale(1.18);
  box-shadow: 0 0 0 3px #ffffff, 0 4px 14px rgba(24, 60, 76, 0.5);
}

/* framed sticker hint — pinned to the top-right corner of the gear page */
.gear-hint {
  position: absolute;
  top: 120px;
  right: 0;
  max-width: 320px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background: var(--green);
  color: #ffffff;
  border: 2px dashed rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(24, 60, 76, 0.28);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0.1px;
  transform: rotate(1.6deg);
}
.gear-hint .gh-ico { font-size: 20px; line-height: 1.15; }
.gear-hint .gh-txt { display: block; }

.gear-detail {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.gear-detail-empty {
  font-family: 'Noto Serif', serif;
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  color: var(--muted);
}
.gear-detail-card { animation: riseIn 0.4s ease both; }
.gear-detail-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.gear-detail-num {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: var(--accent);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(24, 60, 76, 0.35);
}
.gear-detail-name {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
}
.gear-detail-intro {
  font-family: 'Noto Serif', serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink);
  max-width: 660px;
}
.gear-detail-intro .warn { color: var(--red); font-weight: 600; }
.gear-detail-intro .good { color: var(--green); font-weight: 600; }
.gear-detail-intro .em   { color: var(--accent); font-weight: 600; }
.gear-detail-intro .hot  { color: var(--amber); font-weight: 600; }
.gear-detail .types { margin-top: 20px; max-width: 760px; }
.gear-detail .gear-products { padding-left: 0; margin-top: 20px; }
.gear .rental-note { margin-left: 0; margin-top: 24px; max-width: 760px; }

/* ------------------------------------------------------------ data tables */

.sup-table {
  width: 100%;
  border-collapse: collapse;
}
.sup-table th {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 0 12px 10px;
  border-bottom: 1px solid var(--rule);
  vertical-align: bottom;
}
.sup-table td {
  font-family: 'Noto Serif', serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  padding: 11px 12px;
  vertical-align: top;
  border-bottom: 1px solid var(--step-rule);
}
.sup-table tbody tr:last-child td { border-bottom: none; }
.sup-table tbody tr { transition: background .18s ease; }
.sup-table tbody tr:hover td { background: rgba(223, 234, 240, 0.45); }
.sup-table a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.sup-table a:hover { color: #25627c; }

/* safety / conditions — Quest 1 */
.cond { margin-top: 18px; }
.cond .sup-table { table-layout: fixed; }
.cond .sup-table .ico { margin-right: 8px; }
.cond .sup-table td.check {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  white-space: nowrap;
  vertical-align: middle;
}

/* Big photo header band per column — the scene instantly signals safe / caution / avoid. */
.cond .sup-table th.cond-head {
  height: 220px;
  padding: 0 18px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(157, 183, 191, 0.35);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.3px;
  text-transform: none;
  text-align: left;
  overflow: hidden;
  transition: filter .35s ease;
}
.cond .sup-table th.cond-head:hover { filter: brightness(1.14) saturate(1.06); }
.cond .sup-table th.cond-head.safe { background: linear-gradient(180deg, rgba(4,31,36,.12), rgba(4,31,36,.52)), url(assets/safe.jpg) center/cover no-repeat; }
.cond .sup-table th.cond-head.caution { background: linear-gradient(180deg, rgba(4,31,36,.12), rgba(4,31,36,.52)), url(assets/caution.jpg) center/cover no-repeat; }
.cond .sup-table th.cond-head.avoid { background: linear-gradient(180deg, rgba(4,31,36,.12), rgba(4,31,36,.52)), url(assets/avoid.jpg) center/cover no-repeat; }
.cond .sup-table th.cond-head .cond-head-tag { display: inline-flex; align-items: center; gap: 10px; text-shadow: 0 1px 14px rgba(0,0,0,.55); }
.cond .sup-table th.cond-head .ico { font-size: 26px; }

/* Roomier, readable body cells on a light paper scrim. */
.cond .sup-table td.safe,
.cond .sup-table td.caution,
.cond .sup-table td.avoid {
  font-size: 16px;
  line-height: 1.5;
  padding: 14px 18px;
  background: rgba(250, 248, 242, 0.9);
  vertical-align: middle;
}
.cond .sup-table td.safe { box-shadow: inset 4px 0 0 var(--green); }
.cond .sup-table td.caution { box-shadow: inset 4px 0 0 var(--amber); }
.cond .sup-table td.avoid { box-shadow: inset 4px 0 0 var(--red); }

/* Interactive spotlight — the row you're reading pops while the others recede. */
.cond .sup-table td.check .ico { display: inline-block; transition: transform .22s ease; }
.cond .sup-table tbody tr { transition: opacity .25s ease; }
.cond .sup-table tbody:hover tr:not(:hover) { opacity: .45; }
.cond .sup-table tbody tr:hover td { background: #ffffff; }
.cond .sup-table tbody tr:hover td.check { color: var(--accent); }
.cond .sup-table tbody tr:hover td.check .ico { transform: scale(1.3); }

.cond-sources {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}
.cond-sources b { display: block; margin-bottom: 6px; color: var(--ink); font-weight: 600; }
.cond-sources-links { display: flex; flex-wrap: wrap; gap: 4px 22px; justify-content: center; }
.cond-sources-links + .cond-sources-links { margin-top: 4px; }
.cond-sources-links a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cond-sources-links a:hover { color: #25627c; }

/* paddleboard types — Quest 2 */
.types { width: 100%; }
.types .sup-table { table-layout: fixed; }
.types .sup-table td { font-size: 13px; padding: 8px 12px; }
.types .sup-table td.type {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.types .sup-table tr.hl td { background: rgba(223, 234, 240, 0.5); }
.types .sup-table tr.hl td.type { color: var(--accent); }
.types .sup-table tr.hl:hover td { background: rgba(199, 220, 230, 0.7); }
.types .sup-table .tico svg { transition: transform .25s ease; }
.types .sup-table tr:hover .tico svg { transform: scale(1.15); }
.types .sup-table .tico { display: inline-block; vertical-align: middle; margin-right: 7px; }
.types .sup-table .tname { display: inline; line-height: 1.3; }
.types .sup-table .badge {
  display: block;
  width: fit-content;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--green);
  background: rgba(53, 143, 113, 0.12);
  border: 1px solid rgba(53, 143, 113, 0.35);
  padding: 2px 6px;
  border-radius: 6px;
  white-space: nowrap;
}
.types .sup-table .best {
  display: block;
  font-family: 'Noto Serif', serif;
  font-weight: 600;
  color: var(--green);
  font-size: 13px;
  line-height: 1.4;
}
.types .sup-table .traits {
  display: block;
  margin-top: 5px;
  font-family: 'Noto Serif', serif;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.types-sources {
  margin-top: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--muted);
}
.types-sources a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.types-sources a:hover { color: #25627c; }

/* -------------------------------------------------------------- pinned UI */

#pinned {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}
#pinned.visible { opacity: 1; }

.masthead {
  position: absolute;
  left: 64px;
  top: 136px;
  width: 1792px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.identity { display: flex; align-items: center; gap: 16px; }
.lake-mark { width: 42px; height: 26px; }
.lake-mark img { width: 100%; height: 100%; display: block; }
.identity-text {
  font-family: 'Lora', serif;
  font-weight: 400;
  font-size: 27px;
  line-height: 1;
  color: var(--ink);
}
.masthead-right {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.6px;
  white-space: pre;
  color: var(--muted);
}
.masthead-rule {
  position: absolute;
  left: 64px;
  top: 196px;
  width: 1792px;
  height: 1px;
  background: var(--rule);
}

/* video tutorial */
.video {
  position: absolute;
  left: 1580px;
  top: 424px;
  width: 276px;
}
.video-label {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.5px;
  color: var(--accent);
  margin-bottom: 18px;
}
.video-heading {
  font-family: 'Lora', serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 18px;
}
.video-desc {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 18px;
}
.video-thumb {
  display: block;
  width: 276px;
  height: 156px;
  border: 1px dashed var(--rule);
  border-radius: 3px;
  overflow: hidden;
  background: #eef0e7;
  pointer-events: auto;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-reserved {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  display: none;
}
.video-rule {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin-top: 18px;
}

/* gear products inside the pinned video column (gear quest only) */
.video-products {
  position: absolute;
  left: 1580px;
  top: 866px;
  width: 276px;
  display: none;
  pointer-events: auto;
}
.video-products.on { display: block; }
.video-products .vp-row { display: flex; gap: 12px; }
.video-products .gear-product .thumb { width: 132px; height: 97px; }
.video-products .gear-product .thumb img { object-fit: cover; }
.video-products .gear-shop { margin-top: 10px; }

/* journey progression */
.progress {
  position: absolute;
  left: 64px;
  top: 1050px;
  width: 1792px;
  height: 84px;
}
.scroll-dir {
  position: absolute;
  top: 0;
  left: 0;
  width: 1792px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sd-left {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.4px;
  white-space: pre;
  color: var(--ink);
}
.sd-right {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--ink);
}
.journey-line {
  position: absolute;
  top: 45px;
  left: 0;
  width: 1792px;
  height: 1px;
  background: var(--journey-line);
}
.route {
  position: absolute;
  top: 44px;
  left: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.8s cubic-bezier(0.45, 0, 0.55, 1);
}
.route-rider {
  position: absolute;
  top: 28px;
  left: 0;
  width: 88px;
  height: 34px;
  pointer-events: none;
  transition: left 0.8s cubic-bezier(0.45, 0, 0.55, 1);
  will-change: left;
}
.route-rider svg { width: 100%; height: 100%; display: block; }
.waypoints {
  position: absolute;
  top: 34px;
  left: 0;
  width: 1792px;
  display: flex;
}
.waypoint {
  width: 224px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.waypoint .marker {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 11px;
  background: var(--paper);
  color: var(--muted);
  border: 1px solid var(--wayline);
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}
.waypoint .label {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: var(--muted);
  transition: color 0.4s ease, font-weight 0.4s ease;
}
.waypoint.done .marker { border-color: var(--accent); }
.waypoint.active .marker {
  background: var(--accent);
  border-color: var(--accent);
  color: #f7f5ee;
}
.waypoint.active .label { color: var(--ink); font-weight: 700; }

/* ------------------------------------------------------------- start page */

.start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.start-title {
  width: 1600px;
  text-align: center;
  font-family: 'Lora', serif;
  font-weight: 400;
  font-size: 96px;
  line-height: 1.2;
  color: var(--ink);
}
.scroll-hint {
  position: absolute;
  right: 64px;
  bottom: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.scroll-hint p {
  font-family: 'Lora', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  color: var(--ink);
  opacity: 0.9;
}
.scroll-hint .chevron { width: 24px; height: 24px; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* -------------------------------------------------------- simulation page */

.slide.sim-slide { background: #04262c; }

.sim-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1100px 560px at 76% 16%, rgba(51, 124, 155, 0.30), transparent 62%),
    radial-gradient(860px 500px at 16% 84%, rgba(53, 143, 113, 0.20), transparent 60%),
    linear-gradient(180deg, #05262c 0%, #0a3642 52%, #05262c 100%);
}

.sim {
  position: absolute;
  left: 88px;
  top: 150px;
  right: 88px;
  bottom: 84px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.sim-title {
  font-family: 'Lora', serif;
  font-weight: 400;
  font-size: 56px;
  line-height: 1.16;
  color: #eef6f4;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sim-q {
  font-size: 40px;
  color: #cfe0dd;
}
.sim-cta {
  color: #7fd8c4;
  text-shadow: 0 0 26px rgba(127, 216, 196, 0.35);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.sim-cta:hover { color: #bff4e6; text-shadow: 0 0 34px rgba(127, 216, 196, 0.6); }
.sim-caret {
  display: inline-block;
  width: 3px;
  height: 0.95em;
  margin-left: 12px;
  vertical-align: -0.08em;
  background: #7fd8c4;
  animation: caretBlink 1.1s step-end infinite;
}
@keyframes caretBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.sim-rule {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, #7fd8c4, rgba(127, 216, 196, 0.08));
  transform-origin: left;
}
.sim-box {
  flex: 1;
  background: rgba(8, 40, 48, 0.6);
  border: 1px solid rgba(127, 216, 196, 0.35);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.sim-game {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* bottom frame — closes the page like a finished puzzle piece */
.sim-foot {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 4px;
}
.sf-label {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.6px;
  color: #7fd8c4;
  white-space: nowrap;
}
.sf-divider {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(127, 216, 196, 0.5), rgba(127, 216, 196, 0.08));
}
.sf-note {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 17px;
  color: #9fc3bd;
  white-space: nowrap;
}

/* ---------------------------------------------------------- closing page */

.closing {
  position: absolute;
  left: 0;
  right: 0;
  top: 84px;
  bottom: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.closing-msg {
  width: 1450px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin-bottom: 160px; /* 抵消底部 160px 黑色 footer，让文字在 footer 上方区域居中 */
}
.closing-h {
  font-family: 'Lora', serif;
  font-weight: 400;
  font-size: 64px;
  line-height: 1.2;
  text-align: center;
  color: var(--ink);
}
.closing-sub {
  width: 1190px;
  font-family: 'Lora', serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.5;
  text-align: center;
  color: var(--ink);
}
.socials { display: flex; align-items: center; gap: 48px; }
.social { display: flex; align-items: center; gap: 14px; padding: 12px 8px; text-decoration: none; color: inherit; }
.social img { width: 36px; height: 36px; }
.social span {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 24px;
  color: var(--ink);
}
.social-divider { width: 1px; height: 32px; background: var(--ink-25); }
.topics {
  position: absolute;
  bottom: 270px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
}
.topic {
  padding: 12px 22px;
  border-radius: 100px;
  border: 1px solid var(--ink-25);
  background: rgba(247, 245, 238, 0.27);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: var(--ink);
  white-space: nowrap;
}
.closing-foot {
  position: absolute;
  left: 0;
  bottom: -84px; /* extend the black bar into the bottom bleed so it reaches the screen bottom */
  width: 100%;
  height: 244px; /* 160px text + 84px bleed */
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  padding: 15px 96px 0;
}
.closing-foot .ft-h { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 28px; line-height: 38px; color: #fff; }
.closing-foot .ft-s { font-family: 'Inter', sans-serif; font-weight: 400; font-size: 16px; line-height: 26px; color: #BFD1CF; }
.closing-foot .ft-c { font-family: 'Inter', sans-serif; font-weight: 400; font-size: 14px; line-height: 22px; color: #A6BDB8; }

/* -------------------------------------------------------- interactions (hover) */

.ill-img img,
.gear-product .thumb img,
.video-thumb img,
.social img,
.lake-mark img {
  transition: transform .5s cubic-bezier(.22, .61, .36, 1), filter .5s ease;
}
.ill-img:hover img { transform: scale(1.05); }
.gear-product .thumb:hover img { transform: scale(1.08); }
.video-thumb:hover img { transform: scale(1.06); }
.social:hover img { transform: scale(1.14) rotate(-4deg); }
.lake-mark:hover img { transform: scale(1.1); }

/* ------------------------------------------------------ entrance animations */

@keyframes riseIn {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes folioIn {
  0% { opacity: 0; transform: translateY(-80px) scale(1.4) rotate(-7deg); }
  60% { opacity: 1; transform: translateY(8px) scale(0.97) rotate(2deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-52px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes wipeIn {
  from { clip-path: inset(-0.7em 100% -0.7em 0); transform: translateY(16px); }
  to { clip-path: inset(-0.7em -0.3em -0.7em -0.3em); transform: translateY(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-140%); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes titleIn {
  0% { opacity: 0; transform: translateY(24px) scale(0.97); filter: blur(8px); }
  60% { opacity: 1; transform: translateY(-3px) scale(1.01); filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes scaleXIn {
  from { opacity: 0; transform: scaleX(0); }
  to { opacity: 1; transform: scaleX(1); }
}
@keyframes closingIn {
  0% { opacity: 0; transform: translateY(64px) scale(0.94); filter: blur(16px); }
  58% { opacity: 1; transform: translateY(-10px) scale(1.02); filter: blur(0); }
  80% { transform: translateY(5px) scale(0.99); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes closingSubIn {
  0% { opacity: 0; transform: translateY(40px); filter: blur(10px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes popIn {
  0% { opacity: 0; transform: translateY(18px) scale(0.5); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* quest pages — heading cascade; body is revealed by the page tear */
.slide.enter .folio-num { animation: folioIn .6s cubic-bezier(.22, .61, .36, 1) .02s both; }
.slide.enter .ill-img { animation: slideInLeft .85s cubic-bezier(.22, .61, .36, 1) .08s both; }
.slide.enter .chapter-name { animation: dropIn .5s ease .12s both; }
.slide.enter .chapter-sub { animation: dropIn .5s ease .2s both; }
.slide.enter .heading .eyebrow { animation: dropIn .5s ease .16s both; }
.slide.enter .heading .title { animation: wipeIn 1s linear .2s both; }

/* quest body — staggered cascade so each step washes in like a stroke */
.slide.enter .ill-rule { animation: scaleXIn .6s ease .14s both; }
.slide.enter .step { animation: riseIn .55s cubic-bezier(.22, .61, .36, 1) both; }
.slide.enter .step:nth-child(1) { animation-delay: .22s; }
.slide.enter .step:nth-child(2) { animation-delay: .28s; }
.slide.enter .step:nth-child(3) { animation-delay: .34s; }
.slide.enter .step:nth-child(4) { animation-delay: .40s; }
.slide.enter .step:nth-child(5) { animation-delay: .46s; }
.slide.enter .step:nth-child(6) { animation-delay: .52s; }
.slide.enter .step .step-num { animation: popIn .45s cubic-bezier(.34, 1.56, .64, 1) both; }
.slide.enter .step:nth-child(1) .step-num { animation-delay: .22s; }
.slide.enter .step:nth-child(2) .step-num { animation-delay: .28s; }
.slide.enter .step:nth-child(3) .step-num { animation-delay: .34s; }
.slide.enter .step:nth-child(4) .step-num { animation-delay: .40s; }
.slide.enter .step:nth-child(5) .step-num { animation-delay: .46s; }
.slide.enter .step:nth-child(6) .step-num { animation-delay: .52s; }
.slide.enter .field-note { animation: riseIn .7s cubic-bezier(.22, .61, .36, 1) .58s both; }

/* weather page — condition rows cascade */
.slide.enter .cond .sup-table thead { animation: riseIn .5s ease .18s both; }
.slide.enter .cond .sup-table tbody tr { animation: riseIn .5s cubic-bezier(.22, .61, .36, 1) both; }
.slide.enter .cond .sup-table tbody tr:nth-child(1) { animation-delay: .26s; }
.slide.enter .cond .sup-table tbody tr:nth-child(2) { animation-delay: .32s; }
.slide.enter .cond .sup-table tbody tr:nth-child(3) { animation-delay: .38s; }
.slide.enter .cond .sup-table tbody tr:nth-child(4) { animation-delay: .44s; }
.slide.enter .cond .sup-table tbody tr:nth-child(5) { animation-delay: .50s; }
.slide.enter .cond .sup-table tbody tr:nth-child(6) { animation-delay: .56s; }
.slide.enter .cond .sup-table tbody tr:nth-child(7) { animation-delay: .62s; }
.slide.enter .cond-sources { animation: riseIn .6s ease .66s both; }

/* gear page — items cascade down each column */
.slide.enter .gear-col > div { animation: riseIn .55s cubic-bezier(.22, .61, .36, 1) both; }
.slide.enter .gear-col > div:nth-child(1) { animation-delay: .22s; }
.slide.enter .gear-col > div:nth-child(2) { animation-delay: .28s; }
.slide.enter .gear-col > div:nth-child(3) { animation-delay: .34s; }
.slide.enter .gear-col > div:nth-child(4) { animation-delay: .40s; }
.slide.enter .gear-col > div:nth-child(5) { animation-delay: .46s; }
.slide.enter .gear-col > div:nth-child(6) { animation-delay: .52s; }
.slide.enter .gear-col > div:nth-child(7) { animation-delay: .58s; }
.slide.enter .gear-col > div:nth-child(8) { animation-delay: .64s; }
.slide.enter .gear-col > div:nth-child(9) { animation-delay: .70s; }

/* illustration — a slow buoy keeps the board "floating" after the entrance */
@keyframes buoy {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}
.slide.is-quest .ill-img img { animation: buoy 6s ease-in-out 1.2s infinite; }

/* start / simulation / closing — hero titles only */
.slide.enter .start-title { animation: titleIn .7s cubic-bezier(.22, .61, .36, 1) .05s both; }
.slide.enter .sim-q { animation: riseIn .6s cubic-bezier(.22, .61, .36, 1) .05s both; }
.slide.enter .sim-cta { animation: titleIn .7s cubic-bezier(.22, .61, .36, 1) .18s both; }
.slide.enter .sim-rule { animation: scaleXIn .7s ease .3s both; }
.slide.enter .sim-box { animation: riseIn .7s cubic-bezier(.22, .61, .36, 1) .4s both; }
.slide.enter .sim-foot { animation: riseIn .6s ease .55s both; }

/* closing page — orchestrated strong entrance */
.slide.enter .closing-h { animation: closingIn 1s cubic-bezier(.16, .84, .3, 1) .05s both; }
.slide.enter .closing-sub { animation: closingSubIn .8s cubic-bezier(.22, .61, .36, 1) .3s both; }
.slide.enter .socials .social:nth-child(1) { animation: popIn .5s cubic-bezier(.34, 1.56, .64, 1) .52s backwards; }
.slide.enter .socials .social-divider { animation: riseIn .45s ease .6s backwards; }
.slide.enter .socials .social:nth-child(3) { animation: popIn .5s cubic-bezier(.34, 1.56, .64, 1) .68s backwards; }
.slide.enter .topics .topic { animation: popIn .5s cubic-bezier(.34, 1.56, .64, 1) .8s backwards; }
.slide.enter .topics .topic:nth-child(2) { animation-delay: .88s; }
.slide.enter .topics .topic:nth-child(3) { animation-delay: .96s; }
.slide.enter .topics .topic:nth-child(4) { animation-delay: 1.04s; }
.slide.enter .topics .topic:nth-child(5) { animation-delay: 1.12s; }

/* pinned masthead / video / progress — burst once when entering the quests */
#pinned.burst .identity { animation: riseIn .5s ease .04s both; }
#pinned.burst .masthead-right { animation: riseIn .5s ease .12s both; }
#pinned.burst .masthead-rule { animation: scaleXIn .5s ease .16s both; }
#pinned.burst .video { animation: riseIn .55s cubic-bezier(.22, .61, .36, 1) .2s both; }
#pinned.burst .progress { animation: riseIn .6s ease .3s both; }

/* -------------------------------------------------------- clickable waypoints */

.waypoints { pointer-events: auto; }
.waypoint { cursor: pointer; }
.waypoint .marker {
  transition: transform .25s ease, background .4s ease, color .4s ease, border-color .4s ease;
}
.waypoint:hover .marker { transform: scale(1.22); }
.waypoint:not(.active):hover .marker { border-color: var(--accent); color: var(--accent); }
.waypoint:hover .label { color: var(--ink); }

/* ------------------------------------------------------ closing page hover */

.topic { transition: background .3s ease, color .3s ease, border-color .3s ease, transform .3s ease; }
.topic:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateY(-2px); }
.social { transition: transform .3s ease; }
.social:hover { transform: translateY(-3px); }

/* ------------------------------------------------------------ reduced motion */

@media (prefers-reduced-motion: reduce) {
  .scroll-hint .chevron { animation: none; }
  .slide.enter *, #pinned.burst * { animation: none !important; }
  .slide.is-quest .ill-img img { animation: none; }
  .gear-link { animation: none !important; }
  .sim-caret { animation: none; }
  .ill-img img, .gear-product .thumb img, .video-thumb img, .social img, .lake-mark img,
  .route, .route-rider, .waypoint .marker, .waypoint .label, .topic, .social { transition: none; }
}

/* -------------------------------------------------------------- mobile */

.mobile { display: none; }

@media (max-width: 900px) {
  html, body { overflow: auto; }
  #viewport { display: none; }
  .mobile { display: block; padding: 24px 20px 60px; }
  .m-start { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
  .m-start h1 { font-family: 'Nunito', sans-serif; font-weight: 400; font-size: 34px; line-height: 1.2; color: var(--ink); }
  .m-start .hint { margin-top: 24px; font-family: 'Lora', serif; font-style: italic; font-size: 18px; color: var(--ink); opacity: 0.85; }
  .m-quest { padding: 48px 0 8px; border-bottom: 1px solid var(--rule); }
  .m-eyebrow { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 0.6px; color: var(--accent); }
  .m-title { font-family: 'Lora', serif; font-weight: 400; font-size: 30px; line-height: 1.15; letter-spacing: -0.5px; color: var(--ink); margin: 8px 0 20px; }
  .m-ill { width: 100%; max-width: 420px; border-radius: 3px; overflow: hidden; margin: 0 auto 20px; background: #eef0e7; }
  .m-ill img { width: 100%; height: auto; display: block; }
  .m-step { padding: 14px 0; border-bottom: 1px solid var(--step-rule); }
  .m-step p { font-family: 'Noto Serif', serif; font-size: 18px; line-height: 1.5; color: var(--ink); }
  .m-step .n { color: var(--accent); font-family: 'Lora', serif; }
  .m-note { border-left: 3px solid var(--accent); padding: 6px 0 6px 16px; margin: 18px 0; }
  .m-note .lbl { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 12px; color: var(--accent); }
  .m-note p { font-family: 'Lora', serif; font-style: italic; font-size: 18px; line-height: 1.3; color: var(--ink); margin-top: 6px; }
  .m-reserve { border: 1px dashed var(--rule); border-radius: 3px; padding: 40px 16px; text-align: center; color: var(--muted); font-family: 'Inter', sans-serif; font-size: 13px; margin-top: 12px; }
  .cond, .types { margin-top: 16px; }
  .sup-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .sup-table { min-width: 560px; }
  .sup-table th { font-size: 10px; padding: 0 10px 8px; }
  .sup-table td { font-size: 13px; padding: 9px 10px; }
  .cond .sup-table td.check { font-size: 12.5px; }
  .cond .sup-table th.cond-head { height: 120px; font-size: 17px; padding: 0 12px; }
  .cond .sup-table th.cond-head .ico { font-size: 18px; }
  .cond .sup-table td.safe,
  .cond .sup-table td.caution,
  .cond .sup-table td.avoid { font-size: 13px; padding: 10px 12px; }
  .cond-sources { font-size: 12px; }
  .cond-sources-links { gap: 6px 16px; }
  .cond-sources-links a { flex: 0 0 100%; }
  .types-sources { font-size: 11.5px; }
  .m-sim { padding: 64px 0 8px; }
  .m-sim h2 { font-family: 'Lora', serif; font-weight: 400; font-size: 28px; line-height: 1.2; color: var(--ink); text-align: center; margin-bottom: 24px; }
  .m-sim .m-game { display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--rule); border-radius: 3px; background: #bcd9e2; }
  .m-close { padding: 72px 0 8px; text-align: center; }
  .m-close .h1 { font-family: 'Lora', serif; font-size: 30px; line-height: 1.25; color: var(--ink); }
  .m-close .sub { font-family: 'Lora', serif; font-size: 20px; line-height: 1.5; color: var(--ink); margin: 20px auto 0; max-width: 520px; }
  .m-socials { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin: 24px 0; }
  .m-social { display: flex; align-items: center; gap: 10px; }
  .m-social img { width: 28px; height: 28px; }
  .m-social span { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 18px; color: var(--ink); }
  .m-topics { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
  .m-topic { padding: 9px 16px; border-radius: 100px; border: 1px solid var(--ink-25); font-family: 'Inter', sans-serif; font-size: 15px; color: var(--ink); }
}
