/* =========================================================
   AIfRev LAB · Slow Journeys — travel landing (concept)
   Tokens → base → header → stage (hero/shrink/manifesto) →
   extension sections → motion states → responsive → reduced motion
   ========================================================= */

:root {
  /* Palette — "fjord at first light" (see DESIGN.md for contrast table) */
  --c-paper: #fbfbf8;        /* page */
  --c-white: #ffffff;
  --c-ink: #10262e;          /* fjord / deep-lake ink: headlines, primary text, tiles */
  --c-ink-2: #4e6168;        /* secondary text (6.26:1 on paper) */
  --c-mist: #e8efef;         /* glacier mist surfaces */
  --c-chip: #eef2f1;         /* grey pill chips */
  --c-line: #d5dfdf;         /* hairlines (decorative only) */
  --c-pine: #2e5a4c;         /* pine: tags, selected markers */
  --c-sand: #ede4d5;         /* warm sand: avatars, quiet accents */
  --c-coral: #e0644a;        /* sunset coral: graphic accent, tiles (not small text) */
  --c-coral-ink: #b4472f;    /* coral for text on paper (5.22:1) */
  --c-focus: #10262e;

  --glass-bg: rgba(255, 255, 255, 0.16);
  --glass-border: rgba(255, 255, 255, 0.34);

  /* Type */
  --f-display: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --f-sans: "Manrope", "Helvetica Neue", Arial, system-ui, sans-serif;

  /* Space / shape */
  --m: 12px;                 /* page margin around hero frame (video: thin white margin) */
  --r-frame: 26px;
  --r-card: 20px;
  --r-pill: 999px;
  --r-tile: 6px;
  --hh: 76px;                /* measured header clearance (JS overwrites) */
  --container: 1360px;
  --gutter: clamp(16px, 4vw, 48px);

  /* Motion */
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-hero: cubic-bezier(.2, .75, .2, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --t-fast: 180ms;
  --t-med: 420ms;
  --t-slow: 900ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
p, h1, h2, h3, figure, blockquote { margin: 0; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--c-ink); color: var(--c-white); padding: 10px 16px; border-radius: 10px;
  text-decoration: none; transition: top var(--t-fast) var(--ease-out);
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 3px; border-radius: 6px; }

section[id], footer { scroll-margin-top: var(--hh); }

/* ========================== HEADER ========================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  height: var(--hh);
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: calc(var(--m) + 14px) calc(var(--m) + 22px) 0;
  color: var(--c-white);
  pointer-events: none;
  transition: transform 520ms var(--ease-out), color 360ms var(--ease-soft);
}
.site-header > * { pointer-events: auto; }
.site-header.is-dark { color: var(--c-ink); }
.site-header.is-hidden { transform: translateY(calc(-100% - 8px)); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; border-radius: 9px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-lab { font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.brand-sub { font-size: 12px; opacity: .86; letter-spacing: .01em; }
.brand:hover .brand-mark { transform: rotate(-6deg); }
.brand-mark { transition: transform var(--t-med) var(--ease-out); }

/* Notch tab hanging from the hero frame's top edge */
.notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  padding: 9px 22px 10px; margin: 0;
  font-size: 13px; font-weight: 500; line-height: 1.3; color: var(--c-ink);
  white-space: nowrap;
  pointer-events: none;
}
.notch::before { /* tab body */
  content: ""; position: absolute; inset: 0;
  background: var(--c-paper);
  border-radius: 0 0 16px 16px;
  transition: opacity var(--t-med) var(--ease-soft);
}
.notch-text { position: relative; display: inline-flex; gap: 8px; align-items: center; }
.notch-badge {
  font-size: 11px; font-weight: 600; letter-spacing: .02em;
  padding: 1px 8px; border-radius: var(--r-pill); background: var(--c-mist); color: var(--c-pine);
}
.notch-text::before, .notch-text::after { /* concave fillets joining the frame's top edge */
  content: ""; position: absolute; top: calc(var(--m) - 9px); width: 16px; height: 16px;
  transition: opacity var(--t-med) var(--ease-soft);
}
.notch-text::before { left: -38px; background: radial-gradient(circle at 0 100%, transparent 15.5px, var(--c-paper) 16px); }
.notch-text::after { right: -38px; background: radial-gradient(circle at 100% 100%, transparent 15.5px, var(--c-paper) 16px); }
.is-shrunk .notch::before, .is-shrunk .notch-text::before, .is-shrunk .notch-text::after { opacity: 0; }

.menu-pill {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 40px; padding: 0 16px;
  border-radius: 10px; border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease-soft), border-color var(--t-fast), color var(--t-fast);
}
.menu-icon { width: 14px; height: 14px; fill: currentColor; transition: transform var(--t-med) var(--ease-out); }
.menu-pill:hover .menu-icon, .menu-pill:focus-visible .menu-icon { transform: rotate(45deg); }
.menu-pill:hover { background: rgba(255,255,255,.26); }
.is-dark .menu-pill { background: var(--c-chip); border-color: var(--c-chip); }
.is-dark .menu-pill:hover { background: var(--c-mist); border-color: var(--c-line); }
.menu-pill[aria-expanded="true"] { background: var(--c-ink); color: var(--c-white); border-color: var(--c-ink); }
.menu-pill:active { transform: translateY(1px); }

.site-menu {
  position: absolute; top: calc(var(--hh) - 6px); right: calc(var(--m) + 22px);
  width: min(320px, calc(100vw - 32px));
  background: var(--c-paper); color: var(--c-ink);
  border: 1px solid var(--c-line); border-radius: 18px;
  padding: 10px; box-shadow: 0 24px 60px -20px rgba(16, 38, 46, .35);
  transform-origin: top right;
  animation: menu-in 260ms var(--ease-out);
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.site-menu a {
  display: flex; align-items: baseline; gap: 14px;
  padding: 12px 14px; border-radius: 12px; text-decoration: none;
  font-weight: 600; font-size: 16px;
  transition: background var(--t-fast), padding var(--t-fast) var(--ease-out);
}
.site-menu a:hover, .site-menu a:focus-visible { background: var(--c-mist); padding-left: 18px; }
.menu-num { font-family: var(--f-display); font-size: 14px; color: var(--c-coral-ink); font-weight: 500; }

/* ========================== STAGE ========================== */
/* Base (no JS / reduced motion): hero frame in flow, manifesto below as a normal section. */
.stage { position: relative; }
.stage-sticky { position: relative; }

.hero-frame {
  position: relative;
  margin: var(--m);
  height: calc(100svh - 2 * var(--m));
  min-height: 560px;
  border-radius: var(--r-frame);
  overflow: hidden;
  background: #1d2a26;
  isolation: isolate;
  z-index: 2;
}
.hero-media { position: absolute; inset: 0; will-change: transform; }
.hero-img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; /* role hero.jpg: keep a calm, darker upper band for the white headline */
  transform-origin: 50% 0%; /* zoom away from the dark upper band that carries the headline */
  animation: kenburns 28s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to   { transform: scale(1.13) translate3d(-1.4%, -1%, 0); }
}
.kb-paused .hero-img, .is-thumb .hero-img { animation-play-state: paused; }

/* Tracking boxes (decorative; visible when the frame has become the manifesto thumbnail) */
.track { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.tbox {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h);
  border: 1px solid rgba(255, 255, 255, .78);
  transform: scale(1.35); opacity: 0;
  transition: transform 520ms var(--ease-out), opacity 320ms var(--ease-soft);
}
.tbox::after { /* center tick */
  content: ""; position: absolute; left: 50%; top: 50%; width: 2px; height: 2px; background: #fff; transform: translate(-50%, -50%);
}
.tbox i {
  position: absolute; left: -1px; top: -12px; font-style: normal;
  font: 600 8px/1 var(--f-sans); color: #fff; letter-spacing: .02em; white-space: nowrap;
}
.is-thumb .track { opacity: 1; }
.is-thumb .tbox { opacity: 1; transform: none; }
.is-thumb .tbox:nth-child(2) { transition-delay: 70ms; }
.is-thumb .tbox:nth-child(3) { transition-delay: 140ms; }
.is-thumb .tbox:nth-child(4) { transition-delay: 210ms; }
.is-thumb .tbox:nth-child(5) { transition-delay: 280ms; }
.is-thumb .tbox:nth-child(6) { transition-delay: 350ms; }
.is-thumb .tbox:nth-child(7) { transition-delay: 420ms; }
.is-thumb .tbox:nth-child(8) { transition-delay: 490ms; }

/* Hero UI */
.hero-ui {
  position: absolute; inset: 0; z-index: 2;
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  padding: calc(var(--hh) + 2vh) 4% 4.5%;
  color: var(--c-white);
}
.hero-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-variation-settings: "opsz" 28; /* lower optical size = sturdier hairlines over a busy photo */
  font-size: clamp(48px, 7.6vw, 128px);
  line-height: 1;
  letter-spacing: -0.025em;
  text-align: center;
  margin: 0;
}
.hero-title .word { display: inline-block; white-space: nowrap; }
.hero-title .char { display: inline-block; }

.hero-mid {
  align-self: end;
  width: 100%;
  display: grid; grid-template-columns: 1fr minmax(0, 460px) 1fr; align-items: start; gap: 24px;
  margin-bottom: clamp(28px, 6vh, 72px);
}
.glass-chips { display: flex; gap: 12px; flex-wrap: wrap; }
.glass-chips--left { justify-content: flex-start; padding-left: 2%; }
.glass-chips--right { justify-content: flex-end; padding-right: 2%; }
.glass-chip {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 42px; padding: 0 14px 0 16px;
  border-radius: 10px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(16px) saturate(1.1); backdrop-filter: blur(16px) saturate(1.1);
  font-size: 14px; font-weight: 500; color: var(--c-white); white-space: nowrap;
}
.glass-chip svg, .pain-chip svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.hero-copy { text-align: center; }
.hero-copy-title { font-size: clamp(22px, 2.1vw, 32px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.hero-copy-body { margin-top: 12px; font-size: 16px; line-height: 1.5; color: rgba(255,255,255,.94); }

/* CTA pill: white pill + contrasting inset rounded-square tile with straight arrow */
.cta-pill {
  display: inline-flex; align-items: center; gap: 22px;
  min-height: 58px; padding: 6px 6px 6px 24px;
  background: var(--c-white); color: var(--c-ink);
  border-radius: 12px; text-decoration: none;
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
  box-shadow: 0 10px 30px -14px rgba(16, 38, 46, .45);
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
}
.cta-tile {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--r-tile);
  background: var(--c-ink); color: var(--c-white);
  transition: background var(--t-med) var(--ease-out);
}
.cta-tile svg, .sq-arrow svg, .sq-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--t-med) var(--ease-out); }
.cta-pill:hover, .cta-pill:focus-visible { box-shadow: 0 18px 40px -16px rgba(16, 38, 46, .55); }
.cta-pill:hover .cta-tile, .cta-pill:focus-visible .cta-tile { background: var(--c-coral); color: var(--c-ink); }
.cta-pill:hover .cta-tile svg, .cta-pill:focus-visible .cta-tile svg { transform: translateX(3px); }
.cta-pill:active { transform: translateY(1px) scale(.99); }
.cta-pill--hero { position: relative; z-index: 1; }

.kb-toggle {
  position: absolute; right: 18px; bottom: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 36px; padding: 0 12px; border-radius: 9px;
  background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--c-white);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 12px; font-weight: 600; cursor: pointer;
  transition: background var(--t-fast);
}
.kb-toggle:hover { background: rgba(255,255,255,.28); }
.kb-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kb-toggle .kb-play { display: none; fill: currentColor; }
.kb-toggle[aria-pressed="true"] .kb-play { display: block; }
.kb-toggle[aria-pressed="true"] .kb-pause { display: none; }

/* Manifesto — base flow version */
.manifesto {
  position: relative;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(96px, 14vh, 160px) var(--gutter);
  gap: clamp(28px, 5vh, 56px);
  z-index: 3;
  pointer-events: none;
}
.manifesto-title {
  font-family: var(--f-display); font-weight: 400; font-variation-settings: "opsz" 96;
  font-size: clamp(38px, min(6.2vw, 10vh), 100px);
  line-height: 1.02; letter-spacing: -0.03em; color: var(--c-ink);
}
.mline { display: block; overflow: hidden; padding: 0 .04em .1em; margin-bottom: -.1em; }
.mline-in { display: inline-block; }

.manifesto-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center;
  width: 100%;
}
.pain-chips { display: flex; align-items: center; gap: 12px; position: relative; z-index: 2; }
.pain-chips--l { justify-content: flex-end; margin-right: -26px; }
.pain-chips--r { justify-content: flex-start; margin-left: -26px; }
.pain-chip {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 42px; padding: 0 14px 0 16px; border-radius: 10px;
  background: var(--c-chip); color: var(--c-ink);
  border: 1px solid rgba(16, 38, 46, .06);
  font-size: 14px; font-weight: 500; white-space: nowrap;
  box-shadow: 0 8px 22px -14px rgba(16, 38, 46, .35);
}
.manifesto-thumb {
  flex: none;
  width: clamp(220px, min(23vw, 36vh), 360px);
  aspect-ratio: 3 / 2;
  border-radius: 12px; overflow: hidden;
  position: relative; z-index: 1;
}
.manifesto-thumb img { width: 100%; height: 100%; object-fit: cover; }
.manifesto-body {
  max-width: 34em; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.55; color: var(--c-ink);
}

/* ---------- Stage ON (JS, motion allowed): sticky scroll-linked shrink ---------- */
.stage-on .stage { height: 290vh; }
.stage-on .stage-sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  background: var(--c-paper);
}
.stage-on .hero-frame {
  position: absolute; margin: 0; min-height: 0;
  left: var(--fx, var(--m)); top: var(--fy, var(--m));
  width: var(--fw, calc(100vw - 2 * var(--m)));
  height: var(--fh, calc(100vh - 2 * var(--m)));
  border-radius: var(--fr, var(--r-frame));
}
.stage-on .hero-ui {
  /* keep the UI at full-frame geometry while the frame shrinks (it fades out first) */
  inset: auto; left: 50%; top: 50%;
  width: calc(100vw - 2 * var(--m)); height: calc(100vh - 2 * var(--m));
  transform: translate(-50%, -50%);
  opacity: var(--ui-o, 1);
  visibility: var(--ui-v, visible);
}
.stage-on .manifesto {
  position: absolute; inset: 0;
  justify-content: center;
  padding: calc(var(--hh) + 2vh) var(--gutter) 5vh;
}
.stage-on .manifesto-thumb { visibility: hidden; } /* the real frame lands here */

/* Manifesto line reveal (blur → sharp, line by line) */
.js .manifesto .mline-in,
.js .manifesto .manifesto-body,
.js .manifesto .pain-chip { will-change: transform, opacity, filter; }
.stage-on .manifesto .mline-in {
  transform: translateY(40%); opacity: 0; filter: blur(14px);
  transition: transform 900ms var(--ease-out), opacity 700ms var(--ease-soft), filter 900ms var(--ease-out);
}
.stage-on .manifesto .mline:nth-child(2) .mline-in { transition-delay: 140ms; }
.stage-on .manifesto .mline:nth-child(3) .mline-in { transition-delay: 280ms; }
.stage-on.m-lines .manifesto .mline-in { transform: none; opacity: 1; filter: blur(0); }
.stage-on:not(.m-lines) .manifesto .mline-in { transition-delay: 0ms; transition-duration: 380ms; }

.stage-on .manifesto .pain-chip {
  opacity: 0; filter: blur(4px);
  transition: transform 640ms var(--ease-hero), opacity 360ms var(--ease-soft), filter 500ms var(--ease-soft);
  transition-delay: calc((var(--o) - 1) * 160ms);
}
.stage-on .manifesto .pain-chip[data-side="l"] { transform: translateX(calc(60% * var(--o))) scale(.7); }
.stage-on .manifesto .pain-chip[data-side="r"] { transform: translateX(calc(-60% * var(--o))) scale(.7); }
.stage-on.m-chips .manifesto .pain-chip { opacity: 1; filter: none; transform: none; }
.stage-on:not(.m-chips) .manifesto .pain-chip { transition-delay: 0ms; transition-duration: 280ms; }

.stage-on .manifesto .manifesto-body {
  opacity: 0; transform: translateY(14px); filter: blur(6px);
  transition: opacity 700ms var(--ease-soft), transform 800ms var(--ease-out), filter 800ms var(--ease-out);
}
.stage-on.m-body .manifesto .manifesto-body { opacity: 1; transform: none; filter: none; }

/* ---------- Hero entrance (time-based, once) ---------- */
.js .hero-title .char {
  opacity: 0; filter: blur(14px); transform: translateX(-0.12em);
  transition: opacity 620ms var(--ease-soft), filter 760ms var(--ease-out), transform 760ms var(--ease-out);
  transition-delay: calc(240ms + var(--c) * 42ms);
}
.js .hero-in .hero-title .char, .hero-in .hero-title .char { opacity: 1; filter: blur(0); transform: none; }

.js .hero-ui .enter {
  opacity: 0; transform: translateY(16px); filter: blur(6px);
  transition: opacity 700ms var(--ease-soft), transform 800ms var(--ease-hero), filter 800ms var(--ease-out);
}
.js .hero-ui .enter--left { transform: translateX(-22px); }
.js .hero-ui .enter--right { transform: translateX(22px); }
.js .hero-in .glass-chips .enter { transition-delay: calc(1150ms + var(--i) * 110ms); }
.js .hero-in .glass-chips--right .enter { transition-delay: calc(1200ms + var(--i) * 110ms); }
.js .hero-in .hero-copy .enter { transition-delay: calc(1320ms + var(--i) * 140ms); }
.js .hero-in .cta-pill--hero.enter { transition-delay: 1620ms; }
.js .hero-in .enter { opacity: 1; transform: none; filter: none; }
.js .hero-in.hero-settled .enter, .js .hero-in.hero-settled .char { transition-delay: 0ms; }
.js .hero-in .cta-pill--hero .cta-tile { animation: tile-in 700ms var(--ease-hero) 1900ms both; }
@keyframes tile-in { from { transform: translateX(-10px); opacity: 0; } }

.js .site-header .notch { animation: notch-in 700ms var(--ease-out) 120ms both; }
@keyframes notch-in { from { transform: translate(-50%, -100%); } }
.js .site-header .brand, .js .site-header .menu-pill { animation: fade-in 600ms var(--ease-soft) 80ms both; }
@keyframes fade-in { from { opacity: 0; } }

/* CTA detaches and leaves as the frame starts shrinking (scroll-linked via --cta-y) */
.stage-on .cta-pill--hero { translate: 0 var(--cta-y, 0px); }

/* ========================== SECTIONS (extension) ========================== */
.section { padding: clamp(72px, 8vw, 128px) var(--gutter); max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; }
.section-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.section-head .eyebrow { grid-column: 1 / -1; }
.section-head--center { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--c-ink-2);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c-coral); }
.display-2 {
  font-family: var(--f-display); font-weight: 400; font-variation-settings: "opsz" 96;
  font-size: clamp(42px, 6vw, 92px); line-height: 1.02; letter-spacing: -0.03em;
}
.section-lead { color: var(--c-ink-2); font-size: 17px; max-width: 30em; }
.concept-note { margin-top: 28px; font-size: 13px; color: var(--c-ink-2); }

/* Retreats: staggered 4-up editorial strip */
.retreat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); align-items: start; }
.retreat:nth-child(2) { margin-top: clamp(40px, 6vw, 96px); }
.retreat-link { display: block; text-decoration: none; border-radius: var(--r-card); }
.retreat-link:focus-visible { outline-offset: 6px; }
.retreat-media {
  position: relative; display: block; aspect-ratio: 4 / 5;
  border-radius: var(--r-card); overflow: hidden; background: var(--c-mist);
}
.retreat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1100ms var(--ease-out); }
.retreat-notch, .itin-notch, .final-notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  padding: 6px 16px 8px; background: var(--c-paper); color: var(--c-ink);
  border-radius: 0 0 12px 12px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em; white-space: nowrap;
  transition: padding var(--t-med) var(--ease-out);
}
.retreat-notch::before, .retreat-notch::after,
.itin-notch::before, .itin-notch::after,
.final-notch::before, .final-notch::after {
  content: ""; position: absolute; top: 0; width: 12px; height: 12px;
}
.retreat-notch::before, .itin-notch::before, .final-notch::before { left: -12px; background: radial-gradient(circle at 0 100%, transparent 11.5px, var(--c-paper) 12px); }
.retreat-notch::after, .itin-notch::after, .final-notch::after { right: -12px; background: radial-gradient(circle at 100% 100%, transparent 11.5px, var(--c-paper) 12px); }
.retreat-body { display: grid; gap: 4px; padding: 18px 4px 0; }
.retreat-title { font-family: var(--f-display); font-size: clamp(22px, 1.9vw, 28px); line-height: 1.15; letter-spacing: -0.01em; }
.retreat-meta { font-size: 14px; color: var(--c-ink-2); }
.retreat-go { display: inline-flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 14px; font-weight: 600; transition: color var(--t-fast); }
.sq-arrow { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 5px; background: var(--c-ink); color: var(--c-white); transition: background var(--t-med) var(--ease-out); }
.sq-arrow svg { width: 18px; height: 18px; }
.retreat-link:hover .retreat-media img, .retreat-link:focus-visible .retreat-media img { transform: scale(1.05); }
.retreat-link:hover .retreat-notch, .retreat-link:focus-visible .retreat-notch { padding-left: 24px; padding-right: 24px; }
.retreat-link:hover .retreat-go, .retreat-link:focus-visible .retreat-go { color: var(--c-coral-ink); }
.retreat-link:hover .sq-arrow, .retreat-link:focus-visible .sq-arrow { background: var(--c-coral); color: var(--c-ink); }
.retreat-link:hover .sq-arrow svg, .retreat-link:focus-visible .sq-arrow svg { transform: translateX(3px); }
.retreat-link:active .retreat-media { transform: scale(.99); }
.retreat-media { transition: transform var(--t-fast) var(--ease-out); }

/* Itinerary: media panel + vertical day tabs */
.itin { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.itin-panels { display: grid; gap: 64px; }
.itin-media { position: relative; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; background: var(--c-mist); margin-bottom: 28px; }
.itin-media img { width: 100%; height: 100%; object-fit: cover; }
.itin-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 3vw, 44px); line-height: 1.08; letter-spacing: -0.02em; }
.itin-text { margin-top: 12px; color: var(--c-ink-2); max-width: 38em; font-size: 17px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags li { padding: 6px 12px; border-radius: 8px; background: var(--c-chip); font-size: 13px; font-weight: 600; color: var(--c-pine); }

.tabs-on .itin-panels { gap: 0; }
.tabs-on .itin-panel.is-entering .itin-media img { animation: media-up 760ms var(--ease-out) both; }
.tabs-on .itin-panel.is-entering .itin-title,
.tabs-on .itin-panel.is-entering .itin-text,
.tabs-on .itin-panel.is-entering .tags { animation: rise-in 620ms var(--ease-out) both; }
.tabs-on .itin-panel.is-entering .itin-text { animation-delay: 80ms; }
.tabs-on .itin-panel.is-entering .tags { animation-delay: 160ms; }
@keyframes media-up { from { clip-path: inset(100% 0 0 0); transform: scale(1.06); } to { clip-path: inset(0); transform: none; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } }

.itin-list { display: grid; border-top: 1px solid var(--c-line); }
.itin-tab {
  position: relative;
  display: grid; grid-template-columns: 72px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 16px;
  text-align: left; padding: 20px 16px 20px 12px; min-height: 84px;
  background: transparent; border: 0; border-bottom: 1px solid var(--c-line);
  cursor: pointer; border-radius: 0;
  transition: background var(--t-fast) var(--ease-soft);
}
.itin-tab::before { /* selection bar */
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 2px;
  background: var(--c-coral); transform: scaleY(0); transition: transform var(--t-med) var(--ease-out);
}
.itin-num { grid-row: 1 / span 2; font-family: var(--f-display); font-size: 40px; line-height: 1; color: var(--c-ink-2); transition: transform var(--t-med) var(--ease-out), color var(--t-fast); }
.itin-tab-t { font-size: 18px; font-weight: 600; line-height: 1.3; }
.itin-tab-m { font-size: 13px; color: var(--c-ink-2); }
.itin-tab:hover { background: var(--c-mist); }
.itin-tab:hover .itin-num { transform: translateX(4px); }
.itin-tab[aria-selected="true"] { background: var(--c-chip); }
.itin-tab[aria-selected="true"]::before { transform: scaleY(1); }
.itin-tab[aria-selected="true"] .itin-num { color: var(--c-ink); }
.itin-tab:active { background: var(--c-mist); }
.itin-tab:focus-visible { outline-offset: -2px; }

/* Reviews */
.review-box {
  max-width: 1120px; margin: 0 auto; text-align: center;
  display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center;
  background: var(--c-mist); border-radius: 32px; padding: clamp(20px, 3vw, 40px) clamp(20px, 4vw, 64px) clamp(20px, 3vw, 40px) clamp(20px, 3vw, 40px);
}
.review-photo { position: relative; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: var(--c-paper); }
.review-photo img { width: 100%; height: 100%; object-fit: cover; }
.review-photo .itin-notch::before, .review-photo .itin-notch::after { background: radial-gradient(circle at 0 100%, transparent 11.5px, var(--c-mist) 12px); }
.review-photo .itin-notch { background: var(--c-mist); }
.review-photo .itin-notch::after { background: radial-gradient(circle at 100% 100%, transparent 11.5px, var(--c-mist) 12px); }
.review blockquote p {
  font-family: var(--f-display); font-weight: 400; font-variation-settings: "opsz" 72;
  font-size: clamp(26px, 3vw, 44px); line-height: 1.14; letter-spacing: -0.02em;
}
.review figcaption { display: inline-flex; align-items: center; gap: 14px; margin-top: 32px; text-align: left; font-size: 15px; }
.review figcaption strong { display: block; font-weight: 700; }
.review-trip { display: block; color: var(--c-ink-2); font-size: 14px; }
.avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c-sand); font-family: var(--f-display); font-size: 20px; }
.review.is-entering blockquote p { animation: blur-in 760ms var(--ease-out) both; }
.review.is-entering figcaption { animation: rise-in 600ms var(--ease-out) 140ms both; }
@keyframes blur-in { from { opacity: 0; filter: blur(10px); transform: translateY(10px); } }
.review-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 36px; }
.review-count { font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 600; color: var(--c-ink-2); min-width: 4.5em; }
.sq-btn {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 8px;
  background: var(--c-paper); border: 1px solid var(--c-ink); color: var(--c-ink); cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.sq-btn:hover, .sq-btn:focus-visible { background: var(--c-ink); color: var(--c-white); }
.sq-btn[data-prev]:hover svg, .sq-btn[data-prev]:focus-visible svg { transform: translateX(-3px); }
.sq-btn[data-next]:hover svg, .sq-btn[data-next]:focus-visible svg { transform: translateX(3px); }
.sq-btn:active { transform: translateY(1px); }

/* Final CTA: reprise of the hero frame + notch */
.final { padding-top: clamp(48px, 6vw, 96px); padding-bottom: 0; }
.final-frame {
  position: relative; border-radius: var(--r-frame); overflow: hidden;
  min-height: min(84vh, 760px); display: grid; place-items: end center;
  background: #213a2f;
}
.final-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.final-notch { z-index: 1; font-size: 13px; padding: 9px 20px 10px; top: 0; align-self: start; }
.final-copy { position: relative; z-index: 1; display: grid; justify-items: center; gap: 32px; padding: 120px var(--gutter) clamp(40px, 6vh, 64px); text-align: center; color: var(--c-white); }
.final-title { font-family: var(--f-display); font-weight: 500; font-variation-settings: "opsz" 28; font-size: clamp(44px, 7vw, 116px); line-height: 1; letter-spacing: -0.03em; }
.final-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.ghost-pill {
  display: inline-flex; align-items: center; min-height: 58px; padding: 0 24px; border-radius: 12px;
  border: 1px solid var(--glass-border); background: var(--glass-bg); color: var(--c-white);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  text-decoration: none; font-weight: 600; font-size: 16px;
  transition: background var(--t-fast);
}
.ghost-pill:hover, .ghost-pill:focus-visible { background: rgba(255,255,255,.3); }
.final .cta-pill:focus-visible, .ghost-pill:focus-visible { outline-color: var(--c-white); }

/* Footer */
.site-footer { max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(64px, 8vw, 120px) var(--gutter) 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--c-line); }
.footer-heading { font-family: var(--f-display); font-size: clamp(36px, 4.6vw, 68px); line-height: 1.04; letter-spacing: -0.02em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-links a { position: relative; text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 0; }
.footer-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--t-med) var(--ease-out); }
.footer-links a:hover::after, .footer-links a:focus-visible::after { transform: scaleX(1); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-top: 28px; }
.brand--footer { color: var(--c-ink); }
.credits { font-size: 13px; color: var(--c-ink-2); max-width: 46em; }

/* ---------- Section entrances (40% gate, once) ---------- */
.js [data-reveal] .r-item {
  opacity: 0; transform: translateY(18px);
  transition: opacity 700ms var(--ease-soft), transform 850ms var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal] .mline-in {
  transform: translateY(105%);
  transition: transform 850ms var(--ease-out);
}
.js [data-reveal] .mline:nth-child(2) .mline-in { transition-delay: 100ms; }
.js [data-reveal] .r-card .retreat-media { clip-path: inset(100% 0 0 0 round var(--r-card)); transition: clip-path 900ms var(--ease-out), transform var(--t-fast) var(--ease-out); transition-delay: calc(200ms + var(--d) * 120ms); }
.js [data-reveal] .r-card .retreat-body { opacity: 0; transform: translateY(12px); transition: opacity 600ms var(--ease-soft), transform 700ms var(--ease-out); transition-delay: calc(560ms + var(--d) * 120ms); }
.js [data-reveal] .r-media { clip-path: inset(100% 0 0 0 round var(--r-frame)); transition: clip-path 1000ms var(--ease-out); }
.js [data-reveal] .final-title .mline-in { transition-delay: 520ms; }
.js [data-reveal] .final-title .mline:nth-child(2) .mline-in { transition-delay: 620ms; }

.js [data-reveal].is-in .r-item,
.js [data-reveal].is-in .r-card .retreat-body { opacity: 1; transform: none; }
.js [data-reveal].is-in .mline-in { transform: none; }
.js [data-reveal].is-in .r-card .retreat-media { clip-path: inset(0 0 0 0 round var(--r-card)); }
.js [data-reveal].is-in .r-media { clip-path: inset(0 0 0 0 round var(--r-frame)); }
/* After settling, release delays so hover feedback is immediate */
.js [data-reveal].is-settled .r-item,
.js [data-reveal].is-settled .r-card .retreat-media,
.js [data-reveal].is-settled .r-card .retreat-body { transition-delay: 0ms; }
.js [data-reveal].is-settled .r-card .retreat-media { clip-path: none; }

/* Failsafe: script never ran → everything visible */
.motion-failsafe [data-reveal] .r-item, .motion-failsafe [data-reveal] .mline-in,
.motion-failsafe [data-reveal] .r-card .retreat-media, .motion-failsafe [data-reveal] .r-card .retreat-body,
.motion-failsafe [data-reveal] .r-media, .motion-failsafe .hero-ui .enter, .motion-failsafe .hero-title .char {
  opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important;
}

/* ========================== RESPONSIVE ========================== */
@media (max-width: 1100px) {
  .retreat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .retreat:nth-child(2) { margin-top: 48px; }
  .glass-chips--left .glass-chip:nth-child(2), .glass-chips--right .glass-chip:nth-child(2) { display: none; }
  .pain-chip[style*="--o:2"] { display: none; }
}

@media (max-width: 860px) {
  .hero-mid { grid-template-columns: 1fr; justify-items: center; gap: 16px; }
  .hero-copy { order: -1; max-width: 420px; }
  .glass-chips { justify-content: center; padding: 0; }
  .hero-mid { display: flex; flex-direction: column; align-items: center; }
  .hero-mid .glass-chips--left, .hero-mid .glass-chips--right { display: contents; }
  .hero-mid { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .hero-copy { flex-basis: 100%; }
  .section-head { grid-template-columns: 1fr; }
  .itin { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  :root { --m: 8px; --r-frame: 20px; --hh: 66px; }
  .site-header { padding: calc(var(--m) + 10px) calc(var(--m) + 10px) 0; }
  .brand-name { display: none; }
  .brand--footer .brand-name { display: flex; }
  .brand-mark { width: 34px; height: 34px; }
  .notch { font-size: 11.5px; padding: 8px 14px 9px; }
  .notch-badge { display: none; }
  .notch-text::before { left: -30px; }
  .notch-text::after { right: -30px; }
  .menu-pill { min-height: 36px; padding: 0 12px; gap: 8px; font-size: 12px; }

  .hero-ui { padding: calc(var(--hh) + 3vh) 18px 22px; }
  .hero-title { font-size: clamp(44px, 15vw, 72px); line-height: .98; }
  .hero-title .word { display: block; }
  .hero-title .word + .word { margin-top: .02em; }
  .hero-img { object-position: 64% 50%; }
  .hero-copy-title { font-size: 22px; }
  .hero-copy-body { font-size: 15px; }
  .hero-mid { gap: 10px; margin-bottom: 22px; }
  .glass-chip { min-height: 38px; font-size: 13px; padding: 0 12px; }
  .cta-pill { min-height: 54px; font-size: 16px; }
  .cta-tile { width: 42px; height: 42px; }
  .kb-toggle { right: 12px; bottom: 12px; padding: 0 10px; }
  .kb-toggle .kb-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

  .manifesto-title { font-size: clamp(32px, 9.4vw, 46px); }
  .manifesto-thumb { width: min(56vw, 230px); }
  .pain-chip { min-height: 34px; font-size: 12px; padding: 0 10px; gap: 6px; }
  .pain-chip svg { width: 14px; height: 14px; }
  /* Narrow: thumbnail on its own row, the two remaining chips pop out from under its lower edge */
  .manifesto-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 0 4px; }
  .manifesto-thumb { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
  .pain-chips--l { grid-column: 1; grid-row: 2; margin: -17px 4px 0 0; }
  .pain-chips--r { grid-column: 2; grid-row: 2; margin: -17px 0 0 4px; }
  .manifesto-body { font-size: 15px; }

  .retreat-grid { grid-template-columns: 1fr; gap: 40px; }
  .retreat:nth-child(n) { margin-top: 0; }
  .retreat-media { aspect-ratio: 4 / 5; }
  .review-box { grid-template-columns: 1fr; }
  .review-photo { max-width: 220px; justify-self: center; }
  .itin-tab { grid-template-columns: 52px minmax(0, 1fr); padding: 16px 10px 16px 12px; }
  .itin-num { font-size: 30px; }
  .itin-tab-t { font-size: 16px; }
  .review-box { border-radius: 24px; }
  .final-frame { min-height: 620px; }
  .final-img { object-position: 60% 100%; }
  .final-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; }
  .final-actions .cta-pill { justify-content: space-between; }
  .ghost-pill { justify-content: center; }
}

/* ========================== REDUCED MOTION ========================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: 1ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .hero-img { animation: none !important; transform: scale(1.02); }
  .js .hero-title .char, .js .hero-ui .enter, .js [data-reveal] .r-item, .js [data-reveal] .mline-in,
  .js [data-reveal] .r-card .retreat-body { opacity: 1 !important; transform: none !important; filter: none !important; }
  .js [data-reveal] .r-card .retreat-media, .js [data-reveal] .r-media { clip-path: none !important; }
  .kb-toggle { display: none; }
  .is-thumb .track, .track { opacity: 0; }
}

/* ===== Hero image v2 (GPT-generated alpine sunrise, bright sky) — 2026-11-09 =====
   The new hero has a light sky in the upper band, so hero type flips to fjord ink.
   No overlay on the photo: only bounded chips / the copy card carry their own surface. */
.site-header { color: var(--c-ink); }
.site-header .menu-pill { background: rgba(251, 251, 248, .72); border-color: rgba(255, 255, 255, .7); }
.site-header .menu-pill:hover { background: rgba(251, 251, 248, .92); }
.hero-img { object-position: 50% 0%; }
.hero-ui { color: var(--c-ink); }
.hero-ui .glass-chip, .hero-ui .kb-toggle {
  background: rgba(251, 251, 248, .74); border-color: rgba(255, 255, 255, .72); color: var(--c-ink);
}
.hero-ui .kb-toggle:hover { background: rgba(251, 251, 248, .94); }
.hero-copy {
  justify-self: center; padding: 16px 22px 18px; border-radius: 14px;
  background: rgba(251, 251, 248, .8); border: 1px solid rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.hero-copy-body { color: var(--c-ink-2); margin-top: 8px; font-size: 15px; }
@media (max-width: 700px) {
  .hero-img { object-position: 72% 0%; }
}

/* Boot guard (2026-11-09): prevents the manifesto flashing over the hero before app.js applies the stage state. */
.sj-boot .manifesto { visibility: hidden; }
.sj-boot .manifesto, .sj-boot .manifesto * { transition: none !important; }

/* Final CTA with hero v2: copy moves into the light sky band and flips to ink (no photo overlay). */
.final-frame { place-items: start center; }
.final-img { object-position: 50% 20%; }
.final-copy { color: var(--c-ink); padding-top: clamp(84px, 12vh, 128px); }
.final .ghost-pill { background: rgba(251, 251, 248, .74); border-color: rgba(255, 255, 255, .72); color: var(--c-ink); }
.final .ghost-pill:hover, .final .ghost-pill:focus-visible { background: rgba(251, 251, 248, .94); }
.final .cta-pill:focus-visible, .final .ghost-pill:focus-visible { outline-color: var(--c-ink); }
@media (max-width: 700px) { .final-img { object-position: 72% 20%; } }

/* Display font swap (Owner, 2026-11-09): Bodoni Moda → Instrument Serif (single 400 weight, no optical-size axis). */
.hero-title, .manifesto-title, .section-title, .itin-title, .final-title, .footer-heading,
.retreat-title, .itin-num, .avatar, .menu-num, .review-quote, blockquote {
  font-weight: 400; font-variation-settings: normal; font-synthesis: none;
}
.hero-title { letter-spacing: -0.012em; line-height: .98; }
.manifesto-title { letter-spacing: -0.01em; line-height: 1; }
.final-title { letter-spacing: -0.012em; }
.footer-heading, .itin-title { letter-spacing: -0.005em; }
.display-2 { font-variation-settings: normal; letter-spacing: -0.01em; }
.review blockquote p { font-variation-settings: normal; letter-spacing: -0.005em; }

/* Itinerary alignment (Owner, 2026-11-09): the day list spans exactly the media height, top and bottom aligned. */
@media (min-width: 861px) {
  .itin { align-items: start; }
  .itin-list { height: var(--itin-media-h, auto); grid-auto-rows: 1fr; border-top: 1px solid var(--c-line); }
  .itin-tab { min-height: 0; align-content: center; }
}
/* Header gets its own paper bar once the hero stage is over, so it never sits transparently on content. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--c-paper);
  border-bottom: 1px solid var(--c-line); opacity: 0; transition: opacity 240ms var(--ease-soft);
}
.site-header.is-solid::before { opacity: 1; }
.site-header.is-solid .notch::before, .site-header.is-solid .notch-text::before, .site-header.is-solid .notch-text::after { opacity: 0; }

/* ===== Stage v2 — scroll-scrubbed, more legible choreography (Owner: “调得更直观”, 2026-11-09) =====
   p 0.00–0.15  hero UI fades and eases back (scale .96), CTA lifts away
   p 0.05–0.60  the photo itself shrinks into the manifesto thumbnail (eased)
   p 0.22–0.58  manifesto lines rise one by one, blur → sharp, WHILE the photo shrinks
   p 0.60–0.80  pain chips slide out from behind the landed thumbnail (inner pair first)
   p 0.74–0.88  paragraph settles;  p 0.88–1.00 hold
   All values are tied to scroll position (no time-based transitions), so pausing freezes it
   and scrolling up plays it backwards. Reduced motion: stage is off → static stacked layout. */
.stage-on .stage { height: 240vh; }
.stage-on .hero-ui { transform: translate(-50%, -50%) scale(calc(.96 + .04 * var(--ui-o, 1))); }

.stage-on .stage .manifesto .mline .mline-in,
.stage-on .stage .manifesto .pain-chips .pain-chip,
.stage-on .stage .manifesto .manifesto-body { transition: none; transition-delay: 0ms; }

.stage-on .stage .manifesto .mline:nth-child(1) .mline-in { --k: var(--ml1, 0); }
.stage-on .stage .manifesto .mline:nth-child(2) .mline-in { --k: var(--ml2, 0); }
.stage-on .stage .manifesto .mline:nth-child(3) .mline-in { --k: var(--ml3, 0); }
.stage-on .stage .manifesto .mline .mline-in {
  opacity: var(--k);
  transform: translateY(calc((1 - var(--k)) * 60%));
  filter: blur(calc((1 - var(--k)) * 12px));
}

.stage-on .stage .manifesto .pain-chips .pain-chip[style*="--o:1"] { --k: var(--mc1, 0); }
.stage-on .stage .manifesto .pain-chips .pain-chip[style*="--o:2"] { --k: var(--mc2, 0); }
.stage-on .stage .manifesto .pain-chips .pain-chip {
  opacity: var(--k);
  filter: blur(calc((1 - var(--k)) * 4px));
}
.stage-on .stage .manifesto .pain-chips .pain-chip[data-side="l"] { transform: translateX(calc((1 - var(--k)) * 70% * var(--o))) scale(calc(.75 + .25 * var(--k))); }
.stage-on .stage .manifesto .pain-chips .pain-chip[data-side="r"] { transform: translateX(calc((1 - var(--k)) * -70% * var(--o))) scale(calc(.75 + .25 * var(--k))); }

.stage-on .stage .manifesto .manifesto-body {
  opacity: var(--mb, 0);
  transform: translateY(calc((1 - var(--mb, 0)) * 18px));
  filter: blur(calc((1 - var(--mb, 0)) * 6px));
}

/* Scroll cue: tells people the hero responds to scrolling; fades with the hero UI. */
.scroll-cue {
  position: absolute; left: 18px; bottom: 18px; margin: 0;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 36px; padding: 0 14px 0 10px; border-radius: 9px;
  background: rgba(251, 251, 248, .74); border: 1px solid rgba(255, 255, 255, .72); color: var(--c-ink);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 12px; font-weight: 600;
}
.scroll-cue-track { position: relative; width: 2px; height: 18px; border-radius: 2px; background: rgba(16, 38, 46, .2); overflow: hidden; }
.scroll-cue-dot { position: absolute; left: 0; top: 0; width: 2px; height: 7px; border-radius: 2px; background: var(--c-coral); animation: cue-drop 1.8s var(--ease-soft) infinite; }
@keyframes cue-drop { 0% { transform: translateY(-8px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(20px); opacity: 0; } }
.js:not(.stage-on) .scroll-cue { display: none; }
@media (max-width: 700px) { .scroll-cue { display: none; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue-dot { animation: none; top: 5px; } }

/* ===== Stage v3 — performance (Owner: “滚动掉帧”, 2026-11-09) =====
   Frame + photo move on the compositor (translate/scale set by JS); no per-frame layout,
   no per-frame blur, no :root variable writes. Real layout only once the photo has landed. */
.stage-on .hero-frame { transform-origin: 0 0; will-change: translate, scale; contain: layout paint; }
.stage-on .hero-media { transform-origin: 0 0; will-change: translate, scale; }
.is-shrunk .hero-img { animation-play-state: paused; }
.stage-on.is-thumb .hero-img { object-position: 50% 50%; }
/* scrubbed manifesto: opacity + transform only (blur re-rasterises text every frame) */
.stage-on .stage .manifesto .mline .mline-in,
.stage-on .stage .manifesto .pain-chips .pain-chip,
.stage-on .stage .manifesto .manifesto-body { filter: none; will-change: opacity, transform; }
.stage-on .stage .manifesto .mline .mline-in { transform: translateY(calc((1 - var(--k)) * 45%)); }
/* while moving, the photo box is the full cover size (JS sets left/top/width/height) */
.stage-on:not(.is-landed) .hero-img { position: absolute; max-width: none; object-fit: fill; transform-origin: 50% 0%; }
