/* ==========================================================
   Legend Consult｜傳說地圖 Design System
   Tokens live in :root as CSS custom properties so they can
   move into an Astro global stylesheet unchanged.
   Brand values from brief/DESIGN.md, converted to OKLCH.
   ========================================================== */

:root {
  /* Brand */
  --ink:   oklch(23.7% 0.028 245);   /* 墨夜藍 #13202B */
  --gold:  oklch(81.1% 0.166 85);    /* 皇冠金 #F2B705 */
  --moss:  oklch(44.1% 0.056 173);   /* 苔綠 #2F5D50 */
  --rope:  oklch(63.7% 0.184 36.5);  /* 繩索橙 #E4572E */
  --paper: oklch(95.9% 0.014 85);    /* 紙本米 #F6F1E7 */

  /* Semantic roles */
  --bg: var(--paper);
  --surface: oklch(98.6% 0.008 85);
  --surface-2: oklch(92.6% 0.024 84);
  --fg: var(--ink);
  --muted: oklch(41% 0.03 245);
  --border: oklch(82% 0.03 80);
  --accent: var(--gold);
  --focus: oklch(50% 0.17 36);

  /* Derived shades */
  --gold-hover: oklch(85.5% 0.15 88);
  --gold-wash: oklch(93% 0.07 90);
  --rope-text: oklch(51% 0.17 36);
  --moss-wash: oklch(89% 0.035 170);
  --kraft: oklch(48% 0.07 62);
  --lake: oklch(47% 0.09 238);
  --berry: oklch(49% 0.13 355);

  /* Activity type palette (fill / text-on-fill) */
  --type-warm: var(--gold);      --type-warm-on: var(--ink);
  --type-low: var(--moss);       --type-low-on: var(--surface);
  --type-high: var(--rope-text); --type-high-on: var(--surface);
  --type-night: var(--ink);      --type-night-on: var(--gold);
  --type-incl: var(--berry);     --type-incl-on: var(--surface);
  --type-vr: var(--lake);        --type-vr-on: var(--surface);
  --type-mind: var(--lake);      --type-mind-on: var(--surface);
  --type-craft: oklch(50% 0.1 55); --type-craft-on: var(--surface);
  --type-debrief: var(--kraft);  --type-debrief-on: var(--surface);
  --type-finale: var(--ink);     --type-finale-on: var(--gold);

  /* Type */
  --font-display: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --font-body: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --fs-xs: 0.9375rem;
  --fs-sm: 1rem;
  --fs-body: 1.125rem;
  --fs-lead: clamp(1.1875rem, 1.05rem + 0.5vw, 1.375rem);
  --fs-h3: clamp(1.3125rem, 1.15rem + 0.6vw, 1.625rem);
  --fs-h2: clamp(1.875rem, 1.3rem + 2.4vw, 3rem);
  --fs-h1: clamp(1.875rem, 1.1rem + 4.6vw, 4.25rem);
  --fs-stat: clamp(3.25rem, 2rem + 5vw, 6rem);

  /* Space & shape: buttons/chips are pills, cards 16px, inputs 10px */
  --gutter: 16px;
  --wrap: 1200px;
  --section-y: clamp(64px, 3.5rem + 4vw, 120px);
  --r-card: 16px;
  --r-input: 10px;
  --r-pill: 999px;
  --line: 2px solid var(--ink);
  --press: 0 4px 0 var(--ink);
  --shadow-soft: 0 1px 0 oklch(23.7% 0.028 245 / 0.06), 0 16px 30px -18px oklch(23.7% 0.028 245 / 0.5);
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
  --header-h: 64px;
}
@media (min-width: 768px) { :root { --gutter: 32px; --header-h: 72px; } }

[data-type="warm"]    { --c: var(--type-warm);    --on: var(--type-warm-on); }
[data-type="low"]     { --c: var(--type-low);     --on: var(--type-low-on); }
[data-type="high"]    { --c: var(--type-high);    --on: var(--type-high-on); }
[data-type="night"]   { --c: var(--type-night);   --on: var(--type-night-on); }
[data-type="incl"]    { --c: var(--type-incl);    --on: var(--type-incl-on); }
[data-type="vr"]      { --c: var(--type-vr);      --on: var(--type-vr-on); }
[data-type="mind"]    { --c: var(--type-mind);    --on: var(--type-mind-on); }
[data-type="craft"]   { --c: var(--type-craft);   --on: var(--type-craft-on); }
[data-type="debrief"] { --c: var(--type-debrief); --on: var(--type-debrief-on); }
[data-type="finale"]  { --c: var(--type-finale);  --on: var(--type-finale-on); }
[data-type="break"]   { --c: var(--surface-2);    --on: var(--muted); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  overflow-x: clip;
  font: 400 var(--fs-body)/1.75 var(--font-body);
  color: var(--fg);
  background-color: var(--bg);
  background-image: url("assets/contours.svg");
  background-size: 640px 640px;
  line-break: strict;
  -webkit-font-smoothing: antialiased;
}
/* Paper grain: fixed, non-interactive layer only */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.25 0 0 0 0 0.15 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.25; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--paper); border-radius: var(--r-input); font-weight: 700; }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section-y); }
.section-title { font-size: var(--fs-h2); font-weight: 900; }
.section-lede { margin-top: 12px; max-width: 38em; font-size: var(--fs-lead); color: var(--muted); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.phrase { display: inline-block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.65em 1.4em;
  border: var(--line); border-radius: var(--r-pill);
  font: 700 1.0625rem/1.2 var(--font-body); letter-spacing: 0.02em;
  text-decoration: none; white-space: nowrap;
  box-shadow: var(--press);
  transition: transform 120ms var(--ease-out), box-shadow 120ms var(--ease-out), background-color 150ms;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: var(--gold-hover); }
.btn-ghost { background: var(--surface); color: var(--ink); }
.btn-ghost:hover { background: var(--gold-wash); }
.btn-lg { min-height: 56px; font-size: 1.125rem; padding-inline: 1.6em; }
.btn-sm { min-height: 44px; padding: 0.4em 1.1em; font-size: 1rem; box-shadow: 0 3px 0 var(--ink); }
.btn .ph { font-size: 1.2em; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; text-decoration: underline; text-decoration-style: dashed; text-decoration-thickness: 2px; }
.link-arrow:hover { text-decoration-style: solid; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px dashed color-mix(in oklch, var(--ink) 35%, transparent);
}
.header-inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; min-height: 44px; }
.brand img { height: 44px; width: auto; }
.brand-name { display: none; font: 600 1rem/1.2 var(--font-display); letter-spacing: 0.06em; }
@media (min-width: 640px) { .brand-name { display: block; } }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; font-weight: 500; border-radius: var(--r-pill); }
.main-nav a:hover { background: var(--surface-2); }
.menu-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: var(--line); border-radius: 50%; background: var(--surface); font-size: 1.375rem; }
@media (max-width: 899px) {
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: var(--line); display: none; }
  .main-nav[data-open="true"] { display: block; }
  .main-nav ul { flex-direction: column; padding: 8px var(--gutter) 16px; }
  .main-nav a { min-height: 52px; font-size: 1.125rem; border-radius: var(--r-input); }
}
@media (min-width: 900px) {
  .menu-toggle { display: none; }
  .main-nav { margin-right: 8px; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(28px, 4vw, 64px) clamp(72px, 8vw, 112px); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.02fr 1fr; gap: 56px; } }
.hero-logo { width: clamp(150px, 22vw, 210px); height: auto; margin-bottom: 20px; }
.hero-title { font-size: var(--fs-h1); font-weight: 900; line-height: 1.2; }
.hero-title .phrase { white-space: nowrap; }
.hero-title mark { color: inherit; padding: 0 0.04em; background: linear-gradient(transparent 60%, var(--gold) 60% 90%, transparent 90%); }
.hero-sub { margin-top: 18px; font-size: var(--fs-lead); color: var(--muted); max-width: 26em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-map { position: relative; margin: 0 0 48px; }
.map-frame { background: var(--surface); border: var(--line); border-radius: 22px; box-shadow: 6px 8px 0 var(--ink); overflow: hidden; }
.map-frame svg { width: 100%; height: auto; }
.map-paper { fill: var(--surface); }
.map-border { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 2 5; opacity: 0.5; }
.hero-trail-bed { fill: none; stroke: var(--gold-wash); stroke-width: 14; stroke-linecap: round; opacity: 0.85; }
.hero-trail { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 0.1 12; }
.hero-trail-draw { fill: none; stroke: #fff; stroke-width: 30; stroke-dasharray: 1; stroke-dashoffset: 0; }
.halo { paint-order: stroke; stroke: var(--surface); stroke-width: 6px; stroke-linejoin: round; }
.map-title { font: italic 600 24px var(--font-display); fill: var(--ink); }
.map-subtitle { font: 600 15px var(--font-body); fill: var(--muted); letter-spacing: 0.12em; }
.map-stop circle.core { fill: var(--c); stroke: var(--ink); stroke-width: 2.5; }
.map-stop circle.ring { fill: var(--surface); stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 3 4; }
.map-stop .seal { font: 900 21px var(--font-display); fill: var(--on); }
.map-stop .label { font: 700 22px var(--font-display); fill: var(--ink); }
.map-compass polygon { fill: var(--ink); }
.map-compass .half { fill: var(--gold); }
.map-compass text { font: 700 14px var(--font-body); fill: var(--ink); }
.flag-pole { stroke: var(--ink); stroke-width: 2.5; }
.flag-cloth { fill: var(--rope); stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.flag-label { font: 700 18px var(--font-body); fill: var(--ink); }
.hero-photo {
  position: absolute; right: 8px; bottom: -52px; width: min(40%, 240px); margin: 0;
  padding: 8px 8px 6px; background: var(--surface); border: 1.5px solid var(--ink);
  border-radius: 6px; box-shadow: var(--shadow-soft); rotate: 3.5deg;
}
.hero-photo img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; object-position: 70% 40%; border-radius: 3px; }
.hero-photo figcaption { margin-top: 4px; font-size: 0.8125rem; line-height: 1.4; letter-spacing: 0.01em; color: var(--muted); }
@media (min-width: 960px) { .hero-photo { right: -14px; bottom: -60px; } }
@media (prefers-reduced-motion: no-preference) {
  .js .hero-trail-draw { stroke-dashoffset: 1; animation: draw 2.4s 0.3s var(--ease-out) forwards; }
  .js .map-stop { opacity: 0; animation: rise 420ms var(--d, 0.7s) var(--ease-out) forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; scale: 0.6; } to { opacity: 1; scale: 1; } }
@keyframes rise { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }

/* ---------- Trail connectors between sections ---------- */
.trail-seg { height: clamp(104px, 11vw, 150px); }
.trail-inner { position: relative; height: 100%; }
.trail-seg svg { position: absolute; left: calc(var(--gutter) + 30px); top: 0; width: calc(100% - var(--gutter) * 2 - 30px); height: calc(100% - 60px); max-width: none; overflow: visible; }
.trail-seg path { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 0.1 13; vector-effect: non-scaling-stroke; opacity: 0.8; }
.trail-seg + .section { padding-top: 28px; }
.stage-stamp { position: absolute; left: var(--gutter); bottom: 0; display: flex; align-items: center; gap: 12px; }
.stamp-seal {
  position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: var(--c); color: var(--on); border: var(--line);
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 5.5px var(--ink);
  font: 900 1.5rem/1 var(--font-display);
}
.stamp-label { font: 600 1.0625rem/1 var(--font-display); letter-spacing: 0.24em; }
.crown-mark { display: block; width: 44px; height: 22px; background: url("assets/logo.png") no-repeat -17.7px 0 / 79px auto; }
.stamp-seal .crown-mark { position: absolute; top: -20px; left: 50%; translate: -50% 0; width: 36px; height: 18px; background-position: -14.5px 0; background-size: 64.8px auto; }
.js .trail-seg svg { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease-out); }
.js .trail-seg.is-drawn svg { clip-path: inset(0 0 0 0); }
.js .trail-seg .stage-stamp { opacity: 0; scale: 0.7; transition: opacity 300ms 0.6s, scale 400ms 0.6s var(--ease-out); }
.js .trail-seg.is-drawn .stage-stamp { opacity: 1; scale: 1; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .js .trail-seg svg { transition: none; animation: trail-draw linear both; animation-timeline: view(); animation-range: entry 10% cover 55%; }
  }
}
@keyframes trail-draw { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

/* ---------- Entries ---------- */
.entry-grid { display: grid; gap: 18px; }
@media (min-width: 768px) { .entry-grid { grid-template-columns: 1fr 1fr; } .entry-org { grid-column: 1 / -1; } }
@media (min-width: 1080px) { .entry-grid { grid-template-columns: 1.15fr 1.15fr 0.9fr; } .entry-org { grid-column: auto; } }
.entry {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-content: start;
  padding: 24px; min-height: 100%;
  background: var(--surface); border: var(--line); border-radius: var(--r-card);
  box-shadow: 5px 6px 0 var(--ink); text-decoration: none;
  transition: transform 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
}
.entry::after { content: ""; position: absolute; inset: 0; z-index: -1; background: url("assets/map-contours.svg") 60% 30% / 520px auto no-repeat; opacity: 0.35; mask-image: linear-gradient(200deg, #000 10%, transparent 60%); -webkit-mask-image: linear-gradient(200deg, #000 10%, transparent 60%); }
.entry:hover { transform: translate(-2px, -2px); box-shadow: 7px 8px 0 var(--ink); }
.entry:active { transform: translate(3px, 4px); box-shadow: 2px 2px 0 var(--ink); }
.entry-seal { grid-row: span 2; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--c); color: var(--on); border: var(--line); box-shadow: 0 0 0 4px var(--surface), 0 0 0 5.5px var(--ink); font: 900 1.875rem/1 var(--font-display); }
.entry-title { font: 900 clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem)/1.2 var(--font-display); align-self: end; }
.entry-meta { color: var(--muted); font-weight: 500; }
.entry-desc { grid-column: 1 / -1; margin-top: 12px; }
.entry-go { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 700; text-decoration: underline dashed 2px; text-underline-offset: 0.25em; }
.entry-org { background: transparent; box-shadow: 3px 4px 0 var(--ink); }
.entry-org .entry-seal { width: 56px; height: 56px; font-size: 1.5rem; }
.entry-org .entry-title { font-size: 1.5rem; }

/* ---------- How it works ---------- */
.how-map { position: relative; }
.how-route { position: relative; display: grid; gap: 28px; margin-top: 8px; }
.how-route::before { content: ""; position: absolute; left: 35px; top: 30px; bottom: 30px; border-left: 4px dotted var(--ink); opacity: 0.7; }
.how-stop { position: relative; display: grid; grid-template-columns: 72px 1fr; gap: 4px 20px; }
.how-seal { grid-row: span 2; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--c); color: var(--on); border: var(--line); box-shadow: 0 0 0 5px var(--paper), 0 0 0 6.5px var(--ink); font: 900 1.875rem/1 var(--font-display); position: relative; }
.how-seal .crown-mark { position: absolute; top: -22px; left: 50%; translate: -50% 0; }
.how-stop h3 { font-size: var(--fs-h3); font-weight: 900; align-self: end; }
.how-stop p { color: var(--muted); max-width: 22em; }
.how-trail { display: none; }
@media (min-width: 900px) {
  .how-route { grid-template-columns: repeat(4, 1fr); gap: 28px; padding-top: 4px; }
  .how-route::before { display: none; }
  .how-trail { display: block; position: absolute; left: 0; right: 0; top: 0; height: 150px; width: 100%; pointer-events: none; }
  .how-trail path { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 0.1 13; vector-effect: non-scaling-stroke; opacity: 0.75; }
  .how-stop { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 14px; }
  .how-stop:nth-child(odd) { padding-top: 64px; }
  .how-stop p { margin-inline: auto; }
  .how-seal { grid-row: auto; }
}

/* ---------- Quest Builder ---------- */
.quest-kicker { font: italic 600 1.125rem/1 var(--font-display); color: var(--rope-text); letter-spacing: 0.02em; margin-bottom: 10px; }
.quest-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1024px) { .quest-grid { grid-template-columns: minmax(340px, 0.82fr) 1.18fr; gap: 36px; } }
@media (min-width: 1024px) and (min-height: 880px) { .quest-controls { position: sticky; top: calc(var(--header-h) + 20px); } }
.quest-controls { display: grid; gap: 22px; }
.q-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.q-field legend, .q-label { display: block; padding: 0; margin-bottom: 10px; font: 900 1.25rem/1.3 var(--font-display); }
.q-hint { margin-top: 8px; font-size: var(--fs-xs); color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 18px;
  background: var(--surface); border: var(--line); border-radius: var(--r-pill);
  font-weight: 500; font-size: 1.0625rem; cursor: pointer; user-select: none;
  transition: background-color 120ms, color 120ms, transform 100ms;
}
.chip span:hover { background: var(--gold-wash); }
.chip input:checked + span { background: var(--ink); color: var(--paper); }
.chip input:checked + span::before { content: "✓"; font-weight: 700; color: var(--gold); }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.chip input:disabled + span { opacity: 0.45; cursor: not-allowed; }
.chip input:disabled + span:hover { background: var(--surface); }
.chip span:active { transform: scale(0.97); }
.count-row { display: flex; align-items: center; gap: 12px; }
.count-out { min-width: 5.5em; font: 900 1.75rem/1 var(--font-display); }
.count-out small { font: 500 1rem var(--font-body); margin-left: 4px; }
.step-btn { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border: var(--line); border-radius: 50%; background: var(--surface); font-size: 1.25rem; box-shadow: 0 3px 0 var(--ink); }
.step-btn:active { translate: 0 2px; box-shadow: 0 1px 0 var(--ink); }
input[type="range"] { flex: 1; min-width: 0; height: 46px; margin: 0; background: transparent; accent-color: var(--ink); -webkit-appearance: none; appearance: none; }
input[type="range"]::-webkit-slider-runnable-track { height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--ink) var(--fill, 30%), var(--surface-2) var(--fill, 30%)); border: 1.5px solid var(--ink); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11.5px; border-radius: 50%; background: var(--gold); border: var(--line); box-shadow: 0 2px 0 var(--ink); }
input[type="range"]::-moz-range-track { height: 10px; border-radius: 99px; background: var(--surface-2); border: 1.5px solid var(--ink); }
input[type="range"]::-moz-range-progress { height: 10px; border-radius: 99px; background: var(--ink); }
input[type="range"]::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: var(--gold); border: var(--line); }
.pin-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pin-chip { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 6px 0 14px; border: 2px dashed var(--ink); border-radius: var(--r-pill); background: var(--gold-wash); font-weight: 500; }
.pin-chip button { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; font-size: 1.125rem; }
.pin-chip button:hover { background: var(--surface); }

.route-card { background: var(--surface); border: var(--line); border-radius: 22px; box-shadow: 6px 8px 0 var(--ink); padding: clamp(18px, 2.6vw, 32px); }
.route-head { display: grid; gap: 8px; padding-bottom: 18px; border-bottom: 2px dashed var(--border); }
.route-title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); font-weight: 900; }
.route-summary { color: var(--muted); }
.route-groups { font-weight: 500; }
.route-map { position: relative; margin: 20px 0 8px; border-radius: 14px; background: var(--paper) url("assets/contours.svg") 0 0 / 520px; border: 1.5px solid var(--border); overflow: hidden; }
.route-map svg { width: 100%; height: auto; }
.route-path-bed { fill: none; stroke: var(--gold-wash); stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; }
.route-path { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 0.1 11; }
.route-mask-path { fill: none; stroke: #fff; stroke-width: 34; stroke-linecap: round; stroke-linejoin: round; }
.route-mask-path.is-animating { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1s var(--ease-out) forwards; }
.stop .ring { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 3 4; }
.stop .core { fill: var(--c); stroke: var(--ink); stroke-width: 2.5; }
.stop .seal { font: 900 18px var(--font-display); fill: var(--on); }
.stop .seal.is-latin { font: 700 13px var(--font-body); }
.stop .num circle { fill: var(--surface); stroke: var(--ink); stroke-width: 1.5; }
.stop .num text { font: 700 11px var(--font-body); fill: var(--ink); }
.stop .name { font: 700 15px var(--font-body); fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 5px; stroke-linejoin: round; }
.stop .kind { font: 500 13px var(--font-body); fill: var(--muted); paint-order: stroke; stroke: var(--paper); stroke-width: 5px; stroke-linejoin: round; }
.stop .day { font: 700 13px var(--font-body); fill: var(--surface); }
.stop .day-bg { fill: var(--rope-text); }
@media (prefers-reduced-motion: no-preference) {
  .stop.is-new { animation: rise 380ms var(--ease-out) both; }
}
.route-schedule { margin-top: 18px; }
.sch-day + .sch-day { margin-top: 18px; }
.sch-day h4 { font-size: 1.125rem; font-weight: 900; margin-bottom: 6px; }
.sch-row { display: grid; grid-template-columns: 40px 1fr; gap: 2px 14px; align-items: center; padding: 10px 0; }
.sch-row .sch-seal { grid-column: 1; grid-row: 1 / span 2; }
.sch-row .sch-when, .sch-row .sch-what { grid-column: 2; min-width: 0; }
.sch-row + .sch-row { border-top: 1px dashed var(--border); }
.sch-seal { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c); color: var(--on); border: 2px solid var(--ink); font: 900 1rem/1 var(--font-display); }
.sch-seal.is-latin { font: 700 0.8125rem/1 var(--font-body); }
.sch-when { font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.sch-what { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.sch-what strong { font-weight: 700; }
.sch-what span { font-size: var(--fs-xs); color: var(--muted); }
.sch-break .sch-seal { border-style: dashed; }
@media (min-width: 640px) {
  .sch-row { grid-template-columns: 7.5em 40px 1fr; }
  .sch-row .sch-seal { grid-column: 2; grid-row: 1; }
  .sch-row .sch-when { grid-column: 1; grid-row: 1; }
  .sch-row .sch-what { grid-column: 3; grid-row: 1; }
}
.route-notes { margin-top: 16px; display: grid; gap: 8px; }
.route-notes li { display: flex; gap: 10px; padding: 10px 14px; border-radius: var(--r-input); background: var(--gold-wash); font-size: var(--fs-sm); }
.route-notes .ph { flex: none; margin-top: 0.3em; }
.route-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.route-fine { margin-top: 14px; font-size: var(--fs-xs); color: var(--muted); }
.quest-peek {
  position: sticky; bottom: 12px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 20px; padding: 10px 10px 10px 20px; min-height: 56px;
  background: var(--ink); color: var(--paper); border-radius: var(--r-pill); text-decoration: none; font-weight: 700;
  box-shadow: 0 10px 24px -10px oklch(23.7% 0.028 245 / 0.7);
}
.quest-peek .peek-go { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: var(--r-pill); background: var(--gold); color: var(--ink); }
.quest-peek { transition: opacity 200ms, translate 200ms var(--ease-out); }
.quest-peek.is-away { opacity: 0; translate: 0 12px; pointer-events: none; visibility: hidden; }
@media (min-width: 1024px) { .quest-peek { display: none; } }
.toast { position: fixed; left: 50%; bottom: 20px; z-index: 60; translate: -50% 0; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; max-width: calc(100vw - 32px); background: var(--ink); color: var(--paper); border-radius: var(--r-pill); font-weight: 500; box-shadow: 0 12px 30px -12px oklch(23.7% 0.028 245 / 0.8); }
.toast { transition: opacity 200ms, translate 200ms var(--ease-out); }
.toast:not(.is-shown) { opacity: 0; translate: -50% 16px; pointer-events: none; }
.toast:not(.is-shown) a { visibility: hidden; }
.toast a { color: var(--ink); background: var(--gold); padding: 8px 14px; border-radius: var(--r-pill); text-decoration: none; font-weight: 700; white-space: nowrap; }

/* ---------- Activity codex (collectible cards) ---------- */
.codex-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.filter-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: var(--line); border-radius: var(--r-pill); background: var(--surface); font-weight: 500; }
.filter-btn i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--c, var(--ink)); border: 1.5px solid var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.filter-btn:hover:not([aria-pressed="true"]) { background: var(--gold-wash); }
.codex-count { font-size: var(--fs-xs); color: var(--muted); margin-bottom: 10px; }
.codex-deck {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(80%, 300px); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin-inline: calc(var(--gutter) * -1); padding: 14px var(--gutter) 28px; scroll-padding-inline: var(--gutter);
}
@media (min-width: 900px) {
  .codex-deck { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); overflow: visible; margin-inline: 0; padding: 10px 0 8px; gap: 26px 22px; }
  .codex-deck:not(.is-expanded) .qcard:nth-child(n + 9) { display: none; }
}
.qcard {
  scroll-snap-align: start; display: flex; flex-direction: column;
  padding: 8px; background: var(--surface); border-radius: 20px;
  box-shadow: 0 0 0 1px oklch(23.7% 0.028 245 / 0.14), var(--shadow-soft);
  rotate: var(--tilt, 0deg); transition: rotate 200ms var(--ease-out), translate 200ms var(--ease-out);
}
.qcard:hover, .qcard:focus-within { rotate: 0deg; translate: 0 -4px; }
.qcard-face { position: relative; height: 116px; border: var(--line); border-radius: 14px; background-color: var(--c); overflow: hidden; }
.qcard-seal { position: absolute; left: 12px; bottom: 12px; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--surface); color: var(--ink); border: var(--line); font: 900 1.625rem/1 var(--font-display); }
.qcard-seal.is-latin { font: 700 1.125rem/1 var(--font-body); }
.qcard-corner { position: absolute; top: -2px; right: -2px; display: grid; place-items: center; width: 64px; height: 40px; background: var(--surface); border: var(--line); border-radius: 0 14px 0 14px; }
.qcard-chip { position: absolute; right: 10px; bottom: 12px; padding: 2px 12px; border-radius: var(--r-pill); background: var(--surface); border: var(--line); font-size: 0.875rem; font-weight: 700; line-height: 1.6; }
.qcard-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 14px 8px 6px; }
.qcard-name { font-size: 1.3125rem; font-weight: 900; line-height: 1.3; }
.qcard-focus { font-size: var(--fs-xs); font-weight: 500; color: var(--muted); }
.qcard-desc { font-size: var(--fs-sm); line-height: 1.7; }
.qcard-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.qcard-tags li { padding: 0 10px; border: 1.5px solid var(--ink); border-radius: var(--r-pill); font-size: 0.875rem; line-height: 1.75; }
.qcard-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1.5px dashed var(--border); font-size: 0.9375rem; }
.qcard-place { display: inline-flex; align-items: center; gap: 6px; }
.qcard-level { letter-spacing: 0.08em; color: var(--rope-text); }
.qcard-level .dim { color: var(--border); }
.qcard-pin { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; margin-top: 4px; border: var(--line); border-radius: var(--r-pill); background: var(--surface); font-weight: 700; transition: background-color 120ms; }
.qcard-pin:hover { background: var(--gold-wash); }
.qcard-pin[aria-pressed="true"] { background: var(--gold); }
.qcard-note { margin-top: 4px; min-height: 44px; display: grid; place-items: center; font-size: var(--fs-xs); color: var(--muted); border: 1.5px dashed var(--border); border-radius: var(--r-pill); }
/* Geometric card faces, one per activity type */
.qcard[data-type="warm"] .qcard-face { background-image: repeating-conic-gradient(from 0deg at 82% 125%, oklch(100% 0 0 / 0.28) 0 7deg, transparent 7deg 16deg); }
.qcard[data-type="mind"] .qcard-face { background-image: repeating-radial-gradient(circle at 50% 120%, oklch(100% 0 0 / 0.22) 0 2px, transparent 3px 16px); }
.qcard[data-type="craft"] .qcard-face { background-image: repeating-linear-gradient(45deg, oklch(100% 0 0 / 0.2) 0 6px, transparent 6px 18px); }
.qcard[data-type="low"] .qcard-face { background-image: radial-gradient(circle, oklch(100% 0 0 / 0.22) 0 5px, transparent 6px); background-size: 22px 22px; }
.qcard[data-type="high"] .qcard-face { background-image: linear-gradient(135deg, oklch(100% 0 0 / 0.2) 25%, transparent 25%), linear-gradient(225deg, oklch(100% 0 0 / 0.2) 25%, transparent 25%); background-size: 30px 30px; background-position: -15px 0; }
.qcard[data-type="night"] .qcard-face { background-image: radial-gradient(circle at 70% 26%, var(--ink) 0 15px, transparent 16px), radial-gradient(circle at 75% 32%, var(--gold) 0 18px, transparent 19px), radial-gradient(1.5px 1.5px at 20% 30%, var(--gold) 99%, transparent), radial-gradient(1.5px 1.5px at 42% 18%, var(--paper) 99%, transparent), radial-gradient(1.5px 1.5px at 55% 48%, var(--gold) 99%, transparent), radial-gradient(1.5px 1.5px at 90% 70%, var(--paper) 99%, transparent), radial-gradient(1.5px 1.5px at 33% 62%, var(--paper) 99%, transparent); }
.qcard[data-type="incl"] .qcard-face { background-image: radial-gradient(circle, transparent 0 13px, oklch(100% 0 0 / 0.26) 14px 16px, transparent 17px), radial-gradient(circle, transparent 0 13px, oklch(100% 0 0 / 0.26) 14px 16px, transparent 17px); background-size: 40px 40px; background-position: 0 0, 20px 20px; }
.qcard[data-type="vr"] .qcard-face { background-image: linear-gradient(oklch(100% 0 0 / 0.2) 2px, transparent 2px), linear-gradient(90deg, oklch(100% 0 0 / 0.2) 2px, transparent 2px); background-size: 24px 24px; }
.qcard[data-type="debrief"] .qcard-face { background-image: repeating-linear-gradient(-14deg, oklch(100% 0 0 / 0.18) 0 10px, transparent 10px 24px); }
.codex-more { margin-top: 26px; display: none; }
@media (min-width: 900px) { .codex-more:not([hidden]) { display: inline-flex; } }
.codex-hint { font-size: var(--fs-xs); color: var(--muted); }
@media (min-width: 900px) { .codex-hint { display: none; } }

/* ---------- School plans (bento) ---------- */
.plans-grid { display: grid; gap: 18px; }
@media (min-width: 900px) {
  .plans-grid { grid-template-columns: repeat(6, 1fr); }
  .plan-day { grid-column: span 3; grid-row: span 2; }
  .plan-camp, .plan-lead { grid-column: span 3; }
  .plan-incl { grid-column: span 2; }
  .plan-out, .plan-sport { grid-column: span 2; }
  .plan-mind { grid-column: 1 / -1; }
}
.plan { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; border: var(--line); border-radius: var(--r-card); background: var(--surface); box-shadow: 4px 5px 0 var(--ink); overflow: hidden; }
.plan h3 { font-size: var(--fs-h3); font-weight: 900; }
.plan-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.plan-meta li { padding: 0 12px; border-radius: var(--r-pill); background: var(--surface-2); font-size: var(--fs-xs); font-weight: 500; line-height: 2; }
.plan p { max-width: 30em; }
.plan .link-arrow { margin-top: auto; align-self: flex-start; }
.plan-photo { margin: -24px -24px 8px; border-bottom: var(--line); }
.plan-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 900px) { .plan-day .plan-photo img { aspect-ratio: 4 / 3; object-position: 62% 50%; } }
.plan-camp { background: var(--ink) radial-gradient(1.5px 1.5px at 12% 20%, var(--gold) 99%, transparent) 0 0 / 90px 70px; color: var(--paper); }
.plan-camp .plan-meta li { background: oklch(100% 0 0 / 0.12); }
.plan-camp .link-arrow { color: var(--gold); }
.plan-lead { background: var(--gold-wash); }
.lead-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; font-weight: 700; }
.lead-chain li { padding: 2px 12px; border: 1.5px solid var(--ink); border-radius: var(--r-pill); background: var(--surface); font-size: var(--fs-xs); }
.lead-chain li.arrow { border: 0; background: none; padding: 0 2px; }
.plan-incl { background: var(--surface) radial-gradient(circle at 100% 0, color-mix(in oklch, var(--berry) 18%, transparent) 0 90px, transparent 91px); }
.plan-mind { background: var(--surface) radial-gradient(circle at 0 100%, color-mix(in oklch, var(--lake) 16%, transparent) 0 110px, transparent 111px); }
.plan-sport { background: var(--surface) radial-gradient(circle at 100% 100%, color-mix(in oklch, var(--moss) 16%, transparent) 0 90px, transparent 91px); }

/* ---------- Proof: numbers + trust ---------- */
.stats { display: grid; gap: 8px; margin-top: 8px; }
.stat { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 0 16px; padding: 18px 0; border-bottom: 2px dashed var(--border); }
.stat-num { font: 900 var(--fs-stat)/1 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-num sup { font-size: 0.5em; color: var(--rope-text); vertical-align: 0.6em; margin-left: 2px; }
.stat-label { font: 900 var(--fs-h3)/1.3 var(--font-display); }
.stat-note { grid-column: 2; font-size: var(--fs-xs); color: var(--muted); }
@media (min-width: 860px) {
  .stats { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .stat { grid-template-columns: 1fr; padding: 8px 28px 8px 0; border-bottom: 0; border-right: 2px dashed var(--border); }
  .stat + .stat { padding-left: 28px; }
  .stat:last-child { border-right: 0; }
  .stat-note { grid-column: 1; }
}
.repeat-note { margin-top: 22px; font: 600 var(--fs-lead)/1.5 var(--font-display); }
.trust {
  display: grid; grid-template-columns: auto 1fr; gap: 18px 22px; align-items: center;
  margin-top: clamp(36px, 5vw, 56px); padding: clamp(22px, 3vw, 34px);
  background: var(--surface); border: var(--line); border-radius: var(--r-card);
  box-shadow: 0 0 0 6px var(--surface), 0 0 0 7.5px var(--ink);
}
.trust-seal { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--ink); border: var(--line); box-shadow: 0 0 0 4px var(--surface), 0 0 0 5.5px var(--ink); }
.trust-seal .crown-mark { width: 48px; height: 24px; background-position: -19.3px 0; background-size: 86.4px auto; }
.trust-line { font: 900 clamp(1.375rem, 1.1rem + 1.1vw, 2rem)/1.4 var(--font-display); }
.trust-sub { grid-column: 1 / -1; color: var(--muted); }
@media (min-width: 640px) { .trust-sub { grid-column: 2; } }

/* ---------- Partners: map place-name wall ---------- */
.places { display: grid; gap: 28px; }
@media (min-width: 640px) { .places { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
@media (min-width: 1000px) { .places { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.place-region h3 { font: 600 1rem/1 var(--font-body); letter-spacing: 0.3em; color: var(--muted); padding-bottom: 12px; margin-bottom: 14px; border-bottom: 2px solid var(--ink); }
.place-list { display: grid; gap: 10px; }
.place { display: flex; align-items: baseline; gap: 10px; font: 600 1.0625rem/1.45 var(--font-display); letter-spacing: 0.03em; }
.place::before { content: ""; flex: none; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 9px solid var(--moss); translate: 0 -1px; }
.places-more { margin-top: 28px; color: var(--muted); font-style: italic; font-family: var(--font-display); }

/* ---------- Season heat bar ---------- */
.season-board { display: grid; gap: 22px; margin-top: 8px; }
.season-bar { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px 0; }
@media (min-width: 760px) { .season-bar { grid-template-columns: repeat(12, 1fr); } }
.month { position: relative; display: grid; grid-template-rows: 26px 26px auto; justify-items: stretch; gap: 6px; min-height: 96px; padding: 0 0 6px; border: 0; background: none; text-align: center; border-radius: 10px; }
.month .heat { grid-row: 2; height: 26px; background: var(--moss-wash); border-block: 2px solid var(--ink); }
.month.is-hot .heat { background: var(--rope); background-image: repeating-linear-gradient(-45deg, oklch(100% 0 0 / 0.2) 0 4px, transparent 4px 9px); }
.month:first-child .heat, .month:nth-child(7) .heat { border-left: 2px solid var(--ink); border-radius: 99px 0 0 99px; }
.month:nth-child(6) .heat, .month:last-child .heat { border-right: 2px solid var(--ink); border-radius: 0 99px 99px 0; }
@media (min-width: 760px) {
  .month:nth-child(6) .heat { border-right: 0; border-radius: 0; }
  .month:nth-child(7) .heat { border-left: 0; border-radius: 0; }
}
.month .tag { grid-row: 1; align-self: end; justify-self: center; font-size: 0.8125rem; font-weight: 700; line-height: 1.5; padding: 0 8px; border-radius: var(--r-pill); }
.month.is-hot .tag { background: var(--ink); color: var(--paper); }
.month .m-label { grid-row: 3; font: 700 1.0625rem/1.2 var(--font-body); }
.month .now { display: block; font-size: 0.8125rem; font-weight: 500; color: var(--rope-text); }
.month:hover .m-label { text-decoration: underline dashed 2px; text-underline-offset: 0.3em; }
.month[aria-pressed="true"] { background: var(--gold-wash); box-shadow: inset 0 0 0 2px var(--ink); }
.season-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: var(--fs-xs); color: var(--muted); }
.season-legend span { display: inline-flex; align-items: center; gap: 8px; }
.season-legend i { width: 26px; height: 12px; border: 1.5px solid var(--ink); border-radius: 99px; background: var(--moss-wash); }
.season-legend i.hot { background: var(--rope); }
.season-advice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 18px 22px; border: 2px dashed var(--ink); border-radius: var(--r-card); background: var(--surface); }
.season-advice p { font: 600 var(--fs-lead)/1.5 var(--font-display); }

/* ---------- Contact / footer (night map) ---------- */
.site-footer { position: relative; isolation: isolate; background: var(--ink); color: var(--paper); padding-block: var(--section-y) 32px; }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("assets/contours.svg") 0 0 / 640px; filter: invert(1); opacity: 0.6; pointer-events: none; }
.site-footer :focus-visible { outline-color: var(--gold); }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1fr 1.2fr; gap: 64px; } }
.cartouche { display: inline-block; padding: 18px 22px; background: var(--paper); border-radius: var(--r-card); box-shadow: 0 0 0 5px var(--ink), 0 0 0 7px var(--gold); }
.cartouche img { width: 170px; height: auto; }
.footer-slogan { margin-top: 28px; font: italic 600 clamp(2rem, 1.5rem + 2vw, 3rem)/1.15 var(--font-display); color: var(--gold); }
.footer-belief { margin-top: 14px; max-width: 24em; font-size: var(--fs-lead); color: oklch(88% 0.015 85); }
.footer-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.site-footer .btn-ghost { background: transparent; color: var(--paper); border-color: var(--paper); box-shadow: 0 4px 0 var(--paper); }
.site-footer .btn-ghost:hover { background: oklch(100% 0 0 / 0.08); box-shadow: 0 5px 0 var(--paper); }
.site-footer .btn-primary { border-color: var(--paper); box-shadow: 0 4px 0 var(--paper); }
.contact-title { font-size: var(--fs-h2); font-weight: 900; margin-bottom: 18px; }
.contact-list { display: grid; gap: 6px; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px dashed oklch(100% 0 0 / 0.22); }
.contact-list .ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold); font-size: 1.25rem; }
.contact-list small { display: block; font-size: 0.875rem; color: oklch(80% 0.02 85); letter-spacing: 0.04em; }
.contact-list a, .contact-list address { font-style: normal; font-size: 1.125rem; font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; color: var(--gold); }
.contact-list .big { font: 900 1.625rem/1.2 var(--font-display); letter-spacing: 0.04em; }
.site-footer.is-slim { padding-block: 28px; }
.site-footer.is-slim .footer-base { margin-top: 0; padding-top: 0; border-top: 0; }
.footer-base { margin-top: 56px; padding-top: 20px; border-top: 1px solid oklch(100% 0 0 / 0.2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 0.875rem; color: oklch(80% 0.02 85); }

/* ---------- Quote page ---------- */
.quote-page { padding-block: clamp(28px, 4vw, 56px) var(--section-y); }
.quote-head h1 { font-size: var(--fs-h1); font-weight: 900; }
.quote-head p { margin-top: 10px; font-size: var(--fs-lead); color: var(--muted); }
.quote-grid { display: grid; gap: 32px; margin-top: 32px; align-items: start; }
@media (min-width: 1024px) { .quote-grid { grid-template-columns: 1fr 340px; gap: 48px; } .quote-aside { position: sticky; top: calc(var(--header-h) + 20px); } }
.prefill { padding: 20px 22px; border: 2px dashed var(--ink); border-radius: var(--r-card); background: var(--gold-wash); }
.prefill[hidden] { display: none; }
.prefill h2 { font-size: 1.375rem; font-weight: 900; }
.prefill-list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.prefill-list li { display: inline-flex; align-items: center; gap: 6px; padding: 2px 12px 2px 4px; border-radius: var(--r-pill); background: var(--surface); border: 1.5px solid var(--ink); font-size: var(--fs-xs); font-weight: 500; }
.prefill-list .dot { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c); color: var(--on); font: 900 0.8125rem/1 var(--font-display); }
.prefill-actions { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 12px; }
.prefill-actions button { border: 0; background: none; padding: 0; }
.quote-form { display: grid; gap: 28px; margin-top: 24px; }
.form-block { padding: clamp(20px, 3vw, 30px); background: var(--surface); border: var(--line); border-radius: var(--r-card); box-shadow: 4px 5px 0 var(--ink); }
.form-block > h2 { font-size: var(--fs-h3); font-weight: 900; margin-bottom: 18px; }
.fields { display: grid; gap: 20px; }
@media (min-width: 680px) { .fields.two { grid-template-columns: 1fr 1fr; } .fields .span-2 { grid-column: 1 / -1; } }
.field { display: grid; gap: 8px; align-content: start; min-width: 0; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.field > label, .field > legend { padding: 0; font-weight: 700; font-size: var(--fs-sm); }
.req { color: var(--rope-text); margin-left: 2px; }
.optional { font-weight: 400; color: var(--muted); font-size: var(--fs-xs); margin-left: 6px; }
.hint { font-size: var(--fs-xs); color: var(--muted); }
.input {
  width: 100%; min-height: 52px; padding: 11px 14px;
  border: var(--line); border-radius: var(--r-input); background: var(--surface);
  font-size: 1.0625rem; line-height: 1.5;
}
textarea.input { min-height: 120px; resize: vertical; }
#f-notes { min-height: 220px; }
.input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.input[aria-invalid="true"] { border-color: var(--rope-text); background: oklch(97% 0.02 40); box-shadow: inset 0 0 0 1px var(--rope-text); }
.field-error { display: flex; gap: 6px; align-items: center; color: var(--rope-text); font-weight: 700; font-size: var(--fs-xs); }
.field-error[hidden] { display: none; }
.form-alert { padding: 14px 18px; border: 2px solid var(--rope-text); border-radius: var(--r-input); background: oklch(96% 0.03 40); color: var(--rope-text); font-weight: 700; }
.form-alert[hidden] { display: none; }
.form-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-submit p { font-size: var(--fs-xs); color: var(--muted); }
.aside-card { padding: 22px; background: var(--surface); border: var(--line); border-radius: var(--r-card); }
.aside-card + .aside-card { margin-top: 18px; }
.aside-card h2 { font-size: 1.25rem; font-weight: 900; margin-bottom: 10px; }
.aside-card .contact-quick { display: grid; gap: 8px; }
.aside-card .contact-quick a { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.aside-card .contact-quick a:hover { text-decoration: underline; }
.aside-card .contact-quick .ph { font-size: 1.25rem; }
.aside-trust { display: flex; gap: 14px; align-items: center; }
.aside-trust .trust-seal { flex: none; width: 56px; height: 56px; }
.aside-trust .crown-mark { width: 36px; height: 18px; background-position: -14.5px 0; background-size: 64.8px auto; }
.aside-trust p { font: 600 1.0625rem/1.6 var(--font-display); }
.success { padding: clamp(26px, 4vw, 44px); background: var(--surface); border: var(--line); border-radius: 22px; box-shadow: 6px 8px 0 var(--ink); }
.success[hidden] { display: none; }
.success .trust-seal { margin-bottom: 22px; }
.success h2 { font-size: var(--fs-h2); font-weight: 900; }
.success p { margin-top: 12px; font-size: var(--fs-lead); max-width: 30em; }
.success .route-actions { margin-top: 26px; }

/* ---------- Reduced motion ---------- */

/* ---------- Multi-page additions (2026-10-29) ---------- */
.main-nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.page-head { padding-block: clamp(36px, 6vw, 80px) clamp(8px, 2vw, 24px); }
.page-title { margin-top: 6px; font-size: clamp(2.25rem, 1.4rem + 3.2vw, 3.75rem); font-weight: 900; line-height: 1.15; }
.page-head .hero-ctas { margin-top: 24px; }
.cta-band .cta-inner { display: grid; gap: 22px; justify-items: start; padding: clamp(24px, 4vw, 44px); border: var(--line); border-radius: 22px; background: var(--gold-wash); box-shadow: 6px 8px 0 var(--ink); }
.how-route.how-six { grid-template-columns: 1fr; }
.how-route.how-six .how-stop:nth-child(odd) { padding-top: 0; }
@media (min-width: 900px) {
  .how-route.how-six { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .how-route.how-six::before { display: none; }
}
@media (min-width: 900px) {
  .corp-grid .plan-camp, .corp-grid .plan-lead { grid-column: span 3; grid-row: auto; }
  .corp-grid .plan-incl, .corp-grid .plan-sport { grid-column: span 3; }
  .corp-grid .plan-mind { grid-column: 1 / -1; }
}
.places.corp-places { grid-template-columns: 1fr; }
.corp-places .place-list { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.codex-deck.is-page { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); overflow: visible; margin-inline: 0; padding: 10px 0 8px; gap: 22px; }
.codex-deck.is-page .qcard:nth-child(n) { display: flex; }
.phone-row { display: flex; align-items: stretch; gap: 8px; }
.phone-row .input { flex: 1; min-width: 0; }
.phone-prefix { display: grid; place-items: center; padding: 0 14px; border: var(--line); border-radius: var(--r-input); background: var(--surface-2); font-weight: 700; font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .js .trail-seg svg { clip-path: none; animation: none; }
  .js .trail-seg .stage-stamp { opacity: 1; scale: 1; }
  .route-mask-path.is-animating { animation: none; stroke-dashoffset: 0; }
  .qcard, .qcard:hover { rotate: 0deg; translate: none; }
}
