/* 山脊线 · Ridgeline — weekend hike invitation
   Design language: machined titanium instruments, engraved contour lines, one copper accent (alpenglow). */

:root {
  --ink-0: #060709;
  --ink-1: #0b0d10;
  --ink-2: #14171b;
  --ti-050: #f6f7f8;
  --ti-100: #e8eaed;
  --ti-200: #cfd3d8;
  --ti-300: #b3b8be;
  --ti-500: #858b93;
  --ti-700: #4b5058;
  --line: rgba(214, 220, 228, 0.12);
  --line-2: rgba(214, 220, 228, 0.22);
  --glow: #e8834a;          /* Alpenglow copper — the signature colour */
  --glow-hi: #f6b88b;
  --glow-lo: #a5532a;
  --moon: #8fa7c4;

  --f-display: "Songti SC", "STSong", "Noto Serif SC", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
  --f-sans: "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --f-mono: "SF Mono", "JetBrains Mono", "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(20px, 5.5vw, 96px);
  --top: 76px;
}

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

html {
  background: var(--ink-0);
  color: var(--ti-200);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  background:
    radial-gradient(120% 80% at 70% 30%, #15181d 0%, #090a0c 55%, #050607 100%) fixed;
}

::selection { background: rgba(232, 131, 74, .35); color: #fff; }

a { color: inherit; }
img, svg { display: block; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

:focus-visible {
  outline: 1.5px solid var(--glow);
  outline-offset: 4px;
  border-radius: 6px;
}

/* ------------------------------------------------------------------ stage layers */

#scene {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.gl-ready #scene { opacity: 1; }
.no-webgl #scene { display: none; }

.poster {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: url("../img/poster.jpg") 62% 50% / cover no-repeat;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.4s var(--ease), transform 6s var(--ease-out);
}
.no-webgl .poster { opacity: .9; transform: none; }
.no-js .poster { opacity: .9; transform: none; }
.no-webgl .poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 6, 8, .82), rgba(5, 6, 8, .35) 55%, rgba(5, 6, 8, .2));
}

.veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s var(--ease);
}
.veil--left { background: linear-gradient(90deg, rgba(5, 6, 8, .78) 0%, rgba(5, 6, 8, .42) 34%, rgba(5, 6, 8, 0) 58%); }
.veil--right { background: linear-gradient(270deg, rgba(5, 6, 8, .8) 0%, rgba(5, 6, 8, .44) 36%, rgba(5, 6, 8, 0) 60%); }
.veil--bottom { background: linear-gradient(0deg, rgba(5, 6, 8, .92) 0%, rgba(5, 6, 8, .55) 40%, rgba(5, 6, 8, 0) 70%); }
body[data-side="left"] .veil--left,
body[data-side="right"] .veil--right { opacity: 1; }

.flash {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(60% 60% at 60% 45%, rgba(255, 214, 178, .55), rgba(232, 131, 74, .12) 45%, transparent 70%);
  opacity: 0;
  mix-blend-mode: screen;
}
.flash.is-on { animation: flash 1.6s var(--ease-out); }
@keyframes flash { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }

main, .footer { position: relative; z-index: 2; }

/* ------------------------------------------------------------------ type */

.kicker {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--glow-hi);
}

.metal-text {
  --sx: 30%;
  display: block;
  background-image:
    linear-gradient(100deg,
      #5d636b 0%,
      #c4c8cd calc(var(--sx) - 22%),
      #ffffff calc(var(--sx) - 3%),
      #fff4ea var(--sx),
      #aeb3b9 calc(var(--sx) + 10%),
      #6e747c calc(var(--sx) + 30%),
      #d8dbdf 92%,
      #8b9198 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .65)) drop-shadow(0 18px 30px rgba(0, 0, 0, .45));
}

h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.18;
  letter-spacing: .02em;
  color: var(--ti-050);
  text-wrap: balance;
}

/* ------------------------------------------------------------------ top bar */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: var(--top);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 var(--pad);
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.topbar::before {
  content: "";
  position: absolute;
  inset: 0 0 -38px;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5, 6, 8, .92) 0%, rgba(5, 6, 8, .66) 55%, rgba(5, 6, 8, 0) 100%);
  opacity: 0;
  transition: opacity .6s var(--ease);
  pointer-events: none;
}
.is-scrolled .topbar::before { opacity: 1; }

.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ti-100);
  margin-right: auto;
}
.wordmark__mark { width: 34px; height: 34px; transition: transform .9s var(--ease); }
.wordmark:hover .wordmark__mark { transform: rotate(-24deg); }
.wordmark__type { display: grid; line-height: 1; gap: 5px; }
.wordmark__type b {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .34em;
}
.wordmark__type i {
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .5em;
  color: var(--ti-500);
}

.topnav { display: flex; gap: 26px; }
.topnav a {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 13.5px;
  letter-spacing: .14em;
  text-decoration: none;
  color: var(--ti-300);
  padding: 6px 0;
  transition: color .3s;
}
.topnav a i {
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ti-500);
  letter-spacing: .1em;
}
.topnav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glow), transparent);
  transform: scaleX(0);
  transition: transform .5s var(--ease);
}
.topnav a:hover, .topnav a.is-active { color: var(--ti-050); }
.topnav a:hover::after, .topnav a.is-active::after { transform: scaleX(1); }

/* ------------------------------------------------------------------ buttons */

.btn {
  --mx: 50%;
  --my: 50%;
  --tx: 0px;
  --ty: 0px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  font: 600 15px/1 var(--f-sans);
  letter-spacing: .12em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transform: translate3d(var(--tx), var(--ty), 0);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), color .3s;
  -webkit-tap-highlight-color: transparent;
}
.btn > span, .btn > svg { position: relative; z-index: 2; transition: transform .5s var(--ease); }
.btn > svg { width: 18px; height: 18px; }
.btn:hover > svg { transform: translateX(4px); }
.btn--sm { height: 42px; padding: 0 20px; font-size: 13.5px; }
.btn--block { width: 100%; }

.btn--metal {
  color: #15171b;
  background: linear-gradient(180deg, #fdfdfd 0%, #d3d6da 38%, #969ca4 50%, #b8bdc3 66%, #eef0f2 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -1px 1px rgba(0, 0, 0, .35),
    0 0 0 1px rgba(0, 0, 0, .6),
    0 16px 34px -14px rgba(0, 0, 0, .95),
    0 0 0 0 rgba(232, 131, 74, 0);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .7);
}
/* brushed grain + pointer-following hot spot */
.btn--metal::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background:
    radial-gradient(90px 46px at var(--mx) var(--my), rgba(255, 255, 255, .95), rgba(255, 246, 236, .35) 45%, transparent 75%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .045) 0 1px, rgba(255, 255, 255, .05) 1px 2px, transparent 2px 3px);
  opacity: .55;
  transition: opacity .4s;
}
/* the light band that sweeps across the metal */
.btn--metal::after,
.btn--ghost::after {
  content: "";
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: -70%;
  width: 46%;
  z-index: 1;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0) 18%, rgba(255, 255, 255, .92) 48%, rgba(255, 232, 210, .55) 56%, rgba(255, 255, 255, 0) 80%, transparent 100%);
  transform: skewX(-20deg);
  pointer-events: none;
}
.btn--metal:hover,
.btn--metal:focus-visible {
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -1px 1px rgba(0, 0, 0, .35),
    0 0 0 1px rgba(0, 0, 0, .6),
    0 22px 40px -16px rgba(0, 0, 0, .95),
    0 0 36px -4px rgba(232, 131, 74, .45);
}
.btn--metal:hover::before { opacity: 1; }
.btn:hover::after,
.btn:focus-visible::after { animation: sheen 1.05s var(--ease) both; }
.btn:active { transform: translate3d(var(--tx), var(--ty), 0) scale(.97); }
@keyframes sheen { from { left: -70%; } to { left: 135%; } }

.btn--ghost {
  color: var(--ti-100);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from 210deg at var(--mx) var(--my), rgba(255, 255, 255, .75), rgba(255, 255, 255, .12) 22%, rgba(232, 131, 74, .55) 48%, rgba(255, 255, 255, .1) 70%, rgba(255, 255, 255, .75));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.btn--ghost::after { opacity: .28; }
.btn--ghost:hover { color: #fff; box-shadow: 0 0 30px -8px rgba(232, 131, 74, .45); }

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--ti-200);
  font: inherit;
  font-size: 14px;
  letter-spacing: .06em;
  cursor: pointer;
  background-image: linear-gradient(90deg, var(--glow), var(--glow-hi));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .5s var(--ease), color .3s;
}
.link:hover { color: #fff; background-size: 100% 1px; }
.link span { transition: transform .4s var(--ease); }
.link:hover span { transform: translateX(4px); }

/* ------------------------------------------------------------------ sections */

.scene {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--top) + 6vh) var(--pad) 10vh;
  display: flex;
}

.panel {
  position: relative;
  width: min(560px, 46vw);
}
.panel--left { margin-right: auto; }
.panel--right { margin-left: auto; width: min(540px, 44vw); }
@media (min-width: 861px) {
  .panel--right { margin-right: clamp(40px, 7vw, 110px); width: min(520px, 42vw); }
}
.panel--wide { width: min(760px, 58vw); }

.sec-head { margin-bottom: 36px; }
.sec-head__no {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--ti-500);
}
.sec-head__no i {
  font-style: normal;
  color: var(--glow-hi);
  padding-right: 14px;
  border-right: 1px solid var(--line-2);
}
.sec-head__lede {
  margin-top: 16px;
  max-width: 30em;
  color: var(--ti-300);
  font-size: 15px;
}
.sec-head__lede b { color: var(--glow-hi); font-weight: 600; }

/* hero ------------------------------------------------------------- */

.scene--hero {
  align-items: center;
  padding-top: var(--top);
  padding-bottom: 12vh;
}
.hero { max-width: 620px; }
.hero .kicker { margin-bottom: 26px; }
.hero__title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(46px, 7vw, 112px);
  line-height: 1.06;
  letter-spacing: .03em;
  margin-left: -.04em;
}
.hero__lede {
  margin-top: 30px;
  max-width: 27em;
  font-size: clamp(15px, 1.15vw, 17px);
  color: var(--ti-300);
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 22px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--ti-200);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 22px; }
.hero__meta span + span::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-left: -13px;
  margin-right: -9px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 10px var(--glow);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.hero__hint {
  position: absolute;
  right: calc(var(--pad) + 64px);
  bottom: 9vh;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--ti-500);
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero__hint::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--glow);
  box-shadow: 0 0 12px var(--glow), inset 0 0 6px var(--glow);
  animation: pulse 2.4s ease-in-out infinite;
}
.hint-touch { display: none; }
.touch .hint-desktop { display: none; }
.touch .hint-touch { display: inline; }
@keyframes pulse { 50% { transform: scale(1.5); opacity: .5; } }

.scroll-cue {
  position: absolute;
  left: var(--pad);
  bottom: 6vh;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .32em;
  color: var(--ti-500);
}
.scroll-cue i {
  position: relative;
  width: 1px;
  height: 46px;
  background: var(--line-2);
  overflow: hidden;
}
.scroll-cue i::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 1px;
  height: 40%;
  background: linear-gradient(180deg, transparent, var(--glow-hi));
  animation: drip 2.2s var(--ease) infinite;
}
@keyframes drip { to { top: 110%; } }

/* day -------------------------------------------------------------- */

.scene--day { min-height: 135vh; align-items: center; }
.plates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.plates .plate:nth-child(2n) { transform: translateY(26px) perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); }
.intro {
  margin-top: 54px;
  max-width: 34em;
  color: var(--ti-300);
  font-size: 15.5px;
  padding-left: 18px;
  border-left: 1px solid var(--line-2);
}

/* plate — anodised titanium card */
.plate {
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 50%;
  --ang: var(--sun-ang, 135deg);
  --lit: 0;
  position: relative;
  padding: 22px 22px 20px;
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(64, 69, 77, .5) 0%, rgba(22, 25, 29, .74) 48%, rgba(10, 11, 13, .86) 100%);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow:
    0 34px 60px -34px rgba(0, 0, 0, .95),
    inset 0 1px 0 rgba(255, 255, 255, .07),
    inset 0 -1px 0 rgba(0, 0, 0, .5);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .6s var(--ease);
  will-change: transform;
}
.plate.is-hover { transition: transform .16s linear; }
/* bevel: a thin edge that catches the light where the cursor is */
.plate::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--ang),
    rgba(255, 255, 255, .78) 0deg,
    rgba(255, 238, 222, .28) 26deg,
    rgba(255, 255, 255, .05) 70deg,
    rgba(232, 131, 74, .28) 150deg,
    rgba(255, 255, 255, .04) 220deg,
    rgba(255, 255, 255, .22) 300deg,
    rgba(255, 255, 255, .78) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
/* specular spot + brushed grain */
.plate::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(280px circle at var(--mx) var(--my), rgba(255, 232, 210, .17), rgba(255, 232, 210, .04) 40%, transparent 65%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 3px);
  opacity: calc(.3 + var(--lit) * .7);
  mix-blend-mode: screen;
  transition: opacity .5s;
}
.plate__k {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  letter-spacing: .16em;
  color: var(--ti-300);
}
.plate__k i {
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .28em;
  color: var(--ti-500);
}
.plate__v {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 18px 0 8px;
  font-family: var(--f-mono);
  color: var(--ti-050);
}
.plate__v b {
  font-weight: 500;
  font-size: clamp(32px, 3vw, 44px);
  letter-spacing: -.02em;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff 0%, #cfd3d8 55%, #8e949b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.plate__v small { font-size: 13px; color: var(--ti-300); letter-spacing: .1em; }
.plate__s { font-size: 13px; line-height: 1.6; color: var(--ti-300); }
.plate__s span { color: var(--glow-hi); }

/* route ------------------------------------------------------------ */

.scene--route { padding-bottom: 30vh; }
.scene--route .panel { padding-top: 6vh; }

.timeline {
  position: relative;
  margin-top: 10px;
  padding-left: 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 82px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: repeating-linear-gradient(180deg, var(--line-2) 0 4px, transparent 4px 9px);
}
.timeline::after {
  content: "";
  position: absolute;
  left: 82px;
  top: 10px;
  width: 1px;
  height: calc(var(--fill, 0) * (100% - 20px));
  background: linear-gradient(180deg, var(--glow-lo), var(--glow), var(--glow-hi));
  box-shadow: 0 0 10px rgba(232, 131, 74, .6);
}

.tl {
  position: relative;
  display: grid;
  align-items: start;
  grid-template-columns: 64px 1fr auto;
  gap: 0 36px;
  min-height: 40vh;
  padding: 18px 0;
  outline: none;
  cursor: default;
}
.tl__time {
  font-family: var(--f-mono);
  font-size: 15px;
  letter-spacing: .06em;
  color: var(--ti-500);
  padding-top: 3px;
  transition: color .4s;
}
.tl__rivet {
  position: absolute;
  left: 76px;
  top: 25px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, #a9aeb5 45%, #3f444b 100%);
  box-shadow: 0 0 0 3px var(--ink-1), 0 0 0 4px var(--line-2);
  transition: box-shadow .5s var(--ease), transform .5s var(--ease), background .5s;
  z-index: 1;
}
.tl__body {
  padding: 16px 20px 18px;
  margin: -16px -20px 0;
  border-radius: 16px;
  transition: background .5s var(--ease), transform .6s var(--ease);
}
.tl__body h3 {
  font-family: var(--f-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ti-100);
  transition: color .4s;
}
.tl__place {
  margin: 6px 0 10px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--ti-500);
}
.tl__body p:last-child { font-size: 14.5px; color: var(--ti-300); max-width: 26em; }
.tl__km {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--ti-500);
  padding-top: 5px;
}
.tl.is-active .tl__time,
.tl:hover .tl__time,
.tl:focus-visible .tl__time { color: var(--glow-hi); }
.tl.is-active .tl__rivet,
.tl:hover .tl__rivet,
.tl:focus-visible .tl__rivet {
  background: radial-gradient(circle at 35% 30%, #fff6ee, #f0a070 40%, #8b3f1c 100%);
  box-shadow: 0 0 0 3px var(--ink-1), 0 0 0 4px rgba(232, 131, 74, .6), 0 0 22px 4px rgba(232, 131, 74, .55);
  transform: scale(1.18);
}
.tl.is-active .tl__body h3,
.tl:hover .tl__body h3 { color: #fff; }
.tl:hover .tl__body,
.tl:focus-visible .tl__body {
  background: linear-gradient(120deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .01));
  transform: translateX(6px);
}

/* notes ------------------------------------------------------------ */

.scene--notes { min-height: 150vh; align-items: center; }
.notes {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 16px;
  align-items: start;
}
.notes .note:nth-child(2) { margin-top: 48px; }
.notes .note:nth-child(3) { margin-top: -32px; }
.note ul { display: grid; gap: 8px; margin-top: 14px; }
.note li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ti-300);
}
.note li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 6px;
  height: 1px;
  background: var(--glow);
}
.note li b { color: var(--ti-050); font-weight: 600; }
.gear li { display: grid; grid-template-columns: 4.6em 1fr; padding-left: 0; }
.gear li::before { display: none; }
.gear li b {
  font-weight: 600;
  color: var(--ti-100);
  letter-spacing: .06em;
}

.meter {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 18px;
}
.meter i {
  width: 26px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .6);
}
.meter i.on {
  background: linear-gradient(180deg, var(--glow-hi), var(--glow) 60%, var(--glow-lo));
  box-shadow: 0 0 10px rgba(232, 131, 74, .45);
}
.meter span {
  margin-left: 10px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--ti-100);
}
.profile { width: 100%; height: 56px; margin-top: 14px; overflow: visible; }
.profile__fill { fill: url(#none); fill: rgba(232, 131, 74, .08); }
.profile__line {
  fill: none;
  stroke: var(--glow-hi);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  transition: stroke-dashoffset 2.2s var(--ease-out) .3s;
}
.is-in .profile__line { stroke-dashoffset: 0; }
.note__big {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 14px;
  font-family: var(--f-mono);
}
.note__big b {
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.02em;
  background: linear-gradient(180deg, #fff, #c0c5cb 60%, #7d838a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.note__big small { color: var(--ti-300); }

/* join ------------------------------------------------------------- */

.scene--join { min-height: 120vh; align-items: center; padding-bottom: 14vh; }
.join { width: min(680px, 56vw); }
.join h2 { font-size: clamp(34px, 4.4vw, 64px); }
.join__ritual {
  display: flex;
  align-items: center;
  gap: 44px;
  margin-top: 46px;
}
.join__side { display: grid; gap: 16px; }
.join__help {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .24em;
  color: var(--ti-500);
}
.contact {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
}
.contact div { display: grid; grid-template-columns: 3.4em 1fr; }
.contact dt { color: var(--ti-500); letter-spacing: .1em; }
.contact dd { color: var(--ti-100); font-family: var(--f-mono); font-size: 13px; }
.contact a { text-decoration: none; border-bottom: 1px solid var(--line-2); }
.contact a:hover { border-color: var(--glow); }
.join__status {
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ti-050);
  background: rgba(232, 131, 74, .12);
  box-shadow: inset 0 0 0 1px rgba(232, 131, 74, .45);
}
.join__status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 10px var(--glow);
}

/* seal — sunburst-brushed medallion, hold to confirm */
.seal {
  --ang: 30deg;
  --charge: 0;
  position: relative;
  flex: none;
  width: 200px;
  height: 200px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #1a1c20;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  background:
    radial-gradient(circle, transparent 0 60%, rgba(0, 0, 0, .28) 61%, transparent 63%),
    conic-gradient(from var(--ang),
      rgba(255, 255, 255, .62) 0deg, rgba(255, 255, 255, 0) 40deg,
      rgba(255, 255, 255, 0) 140deg, rgba(255, 255, 255, .5) 180deg,
      rgba(255, 255, 255, 0) 220deg, rgba(255, 255, 255, 0) 320deg,
      rgba(255, 255, 255, .62) 360deg),
    repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .07) 0deg .5deg, rgba(0, 0, 0, .07) .5deg 1deg),
    radial-gradient(circle at 50% 38%, #e4e7ea 0%, #a7acb3 52%, #5a6068 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .7),
    inset 0 2px 1px rgba(255, 255, 255, .7),
    inset 0 -4px 8px rgba(0, 0, 0, .45),
    0 34px 60px -24px rgba(0, 0, 0, .95),
    0 0 calc(20px + var(--charge) * 90px) calc(var(--charge) * 14px) rgba(232, 131, 74, calc(.12 + var(--charge) * .5));
  transform: scale(calc(1 - var(--charge) * .045));
  transition: transform .5s var(--ease), box-shadow .3s;
}
.seal:hover { transform: scale(calc(1.02 - var(--charge) * .065)); }
.seal::after {
  /* copper heat that wells up from the centre while held */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 190, 140, .95), rgba(232, 131, 74, .55) 35%, rgba(232, 131, 74, 0) 70%);
  opacity: calc(var(--charge) * .85);
  mix-blend-mode: overlay;
  pointer-events: none;
}
.seal__ring {
  position: absolute;
  inset: -14px;
  width: calc(100% + 28px);
  height: calc(100% + 28px);
  transform: rotate(-90deg);
  pointer-events: none;
}
.seal__track { fill: none; stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 2 5; }
.seal__progress {
  fill: none;
  stroke: var(--glow);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 578.05;
  stroke-dashoffset: calc(578.05 * (1 - var(--charge)));
  filter: drop-shadow(0 0 6px rgba(232, 131, 74, .9));
}
.seal__face {
  position: absolute;
  inset: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  background:
    repeating-radial-gradient(circle, rgba(255, 255, 255, .05) 0 1px, rgba(0, 0, 0, .04) 1px 2px),
    radial-gradient(circle at 50% 30%, #f1f3f5, #b9bec4 60%, #8a9097);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .35), inset 0 -1px 0 rgba(255, 255, 255, .6), 0 1px 0 rgba(255, 255, 255, .5);
}
.seal__face svg { width: 40px; height: 40px; color: #2a2d32; margin-bottom: 2px; }
.seal__face b {
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: .3em;
  margin-right: -.3em;
  color: #23262b;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .8), 0 -1px 0 rgba(0, 0, 0, .25);
}
.seal__face i {
  font-style: normal;
  font-size: 11px;
  letter-spacing: .32em;
  margin-right: -.32em;
  color: #4a4f56;
}
.seal.is-holding .seal__face svg { color: var(--glow-lo); }
.seal.is-sealed { --charge: 1; }
.seal.is-sealed .seal__face b { color: var(--glow-lo); }

/* ------------------------------------------------------------------ HUD */

.hud {
  position: fixed;
  right: calc(var(--pad) * .5);
  top: 50%;
  z-index: 5;
  width: 92px;
  transform: translateY(-50%);
  font-family: var(--f-mono);
  color: var(--ti-500);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s var(--ease) .6s;
}
.gl-ready .hud { opacity: 1; }
.hud__scene { display: grid; gap: 4px; margin-bottom: 18px; font-size: 10px; letter-spacing: .26em; }
.hud__scene b { font-family: var(--f-sans); font-weight: 500; font-size: 12px; letter-spacing: .24em; color: var(--ti-100); }
.hud__track {
  position: relative;
  height: 30vh;
  margin-left: 4px;
}
.hud__ticks {
  position: absolute;
  inset: 0 auto 0 0;
  width: 14px;
  background:
    repeating-linear-gradient(180deg, var(--line-2) 0 1px, transparent 1px 10px) left / 6px 100% no-repeat,
    repeating-linear-gradient(180deg, rgba(214, 220, 228, .4) 0 1px, transparent 1px 50px) left / 12px 100% no-repeat;
}
.hud__marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 70px;
  height: 1px;
  background: linear-gradient(90deg, var(--glow), rgba(232, 131, 74, 0));
  transform: translateY(var(--y, 0px));
  will-change: transform;
}
.hud__marker i {
  position: absolute;
  left: -3px;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 12px var(--glow);
}
.hud__data { display: grid; gap: 8px; margin-top: 18px; }
.hud__data div { display: grid; gap: 1px; }
.hud__data dt { font-size: 9.5px; letter-spacing: .3em; }
.hud__data dd { display: flex; align-items: baseline; gap: 3px; color: var(--ti-100); }
.hud__data b { font-weight: 500; font-size: 15px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.hud__data small { font-size: 10px; color: var(--ti-500); }
.hud__coord { margin-top: 14px; font-size: 9.5px; letter-spacing: .14em; line-height: 1.6; white-space: pre-line; }

/* ------------------------------------------------------------------ 3D-anchored labels */

.labels { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
.wp-label {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: opacity .5s var(--ease);
  will-change: transform, opacity;
}
.wp-label.is-on { opacity: 1; }
.wp-label.is-faint { opacity: .55; }
.wp-label__stem {
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, rgba(246, 184, 139, .9), rgba(246, 184, 139, 0));
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform .6s var(--ease);
}
.wp-label.is-on .wp-label__stem, .wp-label.is-faint .wp-label__stem { transform: scaleX(1); }
.wp-label__card {
  display: grid;
  gap: 2px;
  padding: 7px 11px 8px;
  border-radius: 10px;
  background: rgba(10, 11, 13, .62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  white-space: nowrap;
}
.wp-label__card i { font-style: normal; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .24em; color: var(--glow-hi); }
.wp-label__card b { font-weight: 600; font-size: 13px; letter-spacing: .08em; color: var(--ti-050); }
.wp-label__card em { font-style: normal; font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; color: var(--ti-300); }
.wp-label.is-faint .wp-label__card em { display: none; }

/* ------------------------------------------------------------------ reticle cursor */

.reticle {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 50;
  width: 0;
  height: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
}
.has-reticle .reticle { opacity: 1; }
.has-reticle.cursor-out .reticle,
.has-reticle.dialog-open .reticle { opacity: 0; }
.reticle__ring,
.reticle__dot,
.reticle__sun,
.reticle__label { position: absolute; left: 0; top: 0; }
.reticle__ring {
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(232, 236, 240, .45);
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), box-shadow .45s, background .45s;
}
.reticle__sun {
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  transform: rotate(var(--sun, 0deg));
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease);
}
.reticle__sun::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -3px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 8px var(--glow);
}
.reticle__dot {
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: var(--ti-050);
}
.reticle__label {
  margin: 30px 0 0 16px;
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--ti-050);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .3s, transform .4s var(--ease);
}
.reticle.is-hot .reticle__ring,
.reticle.is-hot .reticle__sun { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
.reticle.is-hot .reticle__ring {
  background: rgba(232, 131, 74, .08);
  box-shadow: inset 0 0 0 1px rgba(246, 184, 139, .8), 0 0 24px rgba(232, 131, 74, .25);
}
.reticle.is-hot .reticle__label { opacity: 1; transform: none; }
.reticle.is-down .reticle__ring { transform: scale(.82); }
.reticle.is-down .reticle__label { opacity: 0; }
.reticle.is-text { opacity: 0; }
.has-reticle body,
.has-reticle a,
.has-reticle button,
.has-reticle .tl { cursor: none; }
.has-reticle input,
.has-reticle textarea,
.has-reticle dialog { cursor: auto; }
.has-reticle dialog button,
.has-reticle dialog a,
.has-reticle dialog label { cursor: pointer; }

/* ------------------------------------------------------------------ footer */

.footer {
  padding: 60px var(--pad) 48px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(6, 7, 9, 0), rgba(6, 7, 9, .9) 40%);
}
.footer__line {
  font-family: var(--f-display);
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--ti-100);
}
.footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-top: 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--ti-500);
}
.footer__meta a { text-decoration: none; border-bottom: 1px solid var(--line-2); }

/* ------------------------------------------------------------------ RSVP dialog */

.rsvp {
  width: min(560px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  overflow: visible;
}
.rsvp::backdrop {
  background: radial-gradient(80% 80% at 50% 50%, rgba(10, 8, 6, .55), rgba(3, 4, 5, .82));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.rsvp[open] { animation: rise .7s var(--ease-out); }
@keyframes rise { from { opacity: 0; transform: translateY(26px) scale(.98); } to { opacity: 1; transform: none; } }
.rsvp__panel {
  position: relative;
  max-height: calc(100dvh - 28px);
  overflow: auto;
  padding: 34px 32px 30px;
  border-radius: 24px;
  background: linear-gradient(165deg, rgba(48, 52, 59, .96), rgba(16, 18, 21, .98) 45%, rgba(9, 10, 12, .98));
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 1px rgba(255, 255, 255, .08);
}
.rsvp__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: var(--ti-200);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background .3s, transform .5s var(--ease);
}
.rsvp__close:hover { background: rgba(255, 255, 255, .12); transform: rotate(90deg); }
.rsvp h3 {
  margin-top: 14px;
  font-family: var(--f-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ti-050);
}
.rsvp__lead { margin: 8px 0 24px; font-size: 14px; color: var(--ti-300); }
.rsvp__note { margin-top: 18px; font-size: 12.5px; line-height: 1.7; color: var(--ti-500); }
.rsvp__step[data-step="ticket"] { padding-top: 34px; }
.rsvp .link { margin-top: 8px; font-size: 13px; }

#rsvp-form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field__k { font-size: 12.5px; letter-spacing: .14em; color: var(--ti-300); padding: 0; }
.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  color: var(--ti-050);
  background: rgba(0, 0, 0, .35);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .07), 0 1px 0 rgba(255, 255, 255, .05);
  transition: box-shadow .3s;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ti-700); }
.field input:focus,
.field textarea:focus {
  outline: none;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(232, 131, 74, .75), 0 0 0 4px rgba(232, 131, 74, .14);
}
.field.is-invalid input { box-shadow: inset 0 1px 3px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 120, 100, .8); }
.field__err { font-style: normal; font-size: 12px; color: #ff9a85; min-height: 0; }
.field__err:empty { display: none; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--ti-300);
  background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  transition: all .35s var(--ease);
}
.seg label:hover span { color: var(--ti-050); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.seg input:checked + span {
  color: #17191d;
  font-weight: 600;
  background: linear-gradient(180deg, #fafafa, #c7cbd0 48%, #9ba1a8 52%, #e2e4e7);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(0, 0, 0, .5), 0 6px 16px -8px rgba(0, 0, 0, .9);
}
.seg input:focus-visible + span { outline: 1.5px solid var(--glow); outline-offset: 3px; }
#rsvp-form .btn { margin-top: 6px; }

/* ticket — polished metal, notched like a real stub */
.ticket {
  --mx: 30%;
  --my: 30%;
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  padding: 24px 24px 20px;
  border-radius: 18px;
  color: #17191d;
  background:
    radial-gradient(240px circle at var(--mx) var(--my), rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 60%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .025) 0 1px, rgba(255, 255, 255, .04) 1px 2px, transparent 2px 3px),
    linear-gradient(115deg, #eceef0 0%, #b6bbc1 30%, #f7f8f9 48%, #a0a6ad 68%, #dadde0 100%);
  -webkit-mask:
    radial-gradient(circle 13px at 0 71%, #0000 96%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 13px at 100% 71%, #0000 96%, #000) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle 13px at 0 71%, #0000 96%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 13px at 100% 71%, #0000 96%, #000) right / 51% 100% no-repeat;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .6s var(--ease);
  animation: mint 1.1s var(--ease-out);
}
@keyframes mint { from { opacity: 0; transform: perspective(900px) rotateX(24deg) translateY(30px); filter: brightness(2); } }
.ticket__top { display: flex; justify-content: space-between; gap: 12px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .2em; }
.ticket__no { color: var(--glow-lo); font-weight: 700; }
.ticket__name {
  margin-top: 18px;
  font-family: var(--f-display);
  font-size: 34px;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.15;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .8), 0 -1px 0 rgba(0, 0, 0, .2);
  word-break: break-all;
}
.ticket__sub { margin-top: 4px; font-size: 13px; color: #464b52; }
.ticket__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-top: 18px; }
.ticket__grid span { display: block; font-size: 10.5px; letter-spacing: .2em; color: #5c626a; }
.ticket__grid b { font-size: 13.5px; font-weight: 600; }
.ticket__stub {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1.5px dashed rgba(0, 0, 0, .25);
  font-size: 12px;
  line-height: 1.6;
  color: #3c4148;
}
.ticket__stub span { color: #5c626a; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; }
.ticket__map { width: 64px; height: 64px; flex: none; }
.ticket-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.ticket-actions .btn { flex: 1 1 auto; }
.ticket-actions .btn.is-done { color: var(--glow-hi); }

/* ------------------------------------------------------------------ reveal */

.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  filter: blur(6px);
  transition: opacity 1.1s var(--ease-out) var(--d, 0s), transform 1.2s var(--ease-out) var(--d, 0s), filter 1.1s var(--ease-out) var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
.js .plate[data-reveal].is-in { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); }
.js .plates .plate[data-reveal].is-in:nth-child(2n) { transform: translateY(26px) perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); }
.js .plate[data-reveal].is-in { transition: opacity 1.1s var(--ease-out) var(--d, 0s), transform .6s var(--ease), filter 1.1s var(--ease-out) var(--d, 0s); }
.js .plate[data-reveal].is-in.is-hover { transition: opacity 1.1s var(--ease-out), transform .16s linear, filter 1.1s; }

/* ------------------------------------------------------------------ responsive */

@media (max-width: 1100px) {
  .topnav { display: none; }
  .hud { width: 78px; }
  .panel--wide { width: min(700px, 66vw); }
}

@media (max-width: 860px) {
  :root { --top: 64px; }
  body[data-side] .veil--left,
  body[data-side] .veil--right { opacity: 0; }
  .veil--bottom { opacity: 1; }
  .wordmark__type i { display: none; }
  .hud {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    width: auto;
    transform: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
    background: linear-gradient(0deg, rgba(5, 6, 8, .96) 0%, rgba(5, 6, 8, .82) 70%, rgba(5, 6, 8, .4) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .hud__scene { margin: 0; grid-auto-flow: column; gap: 8px; align-items: baseline; }
  .hud__track, .hud__coord { display: none; }
  .hud__data { display: flex; gap: 16px; margin: 0; }
  .hud__data dt { display: none; }

  .scene { padding: calc(var(--top) + 3vh) var(--pad) 12vh; }
  .scene--hero { align-items: flex-end; padding-bottom: 18vh; }
  .hero__title { font-size: clamp(44px, 13vw, 72px); }
  .hero__hint { display: none; }
  .scroll-cue { bottom: 9vh; }
  .panel, .panel--right, .panel--wide, .join { width: 100%; margin: 0; }
  .scene--day, .scene--notes, .scene--join { align-items: flex-end; }
  .scene--day { min-height: 150vh; }
  .scene--route .panel { padding-top: 46vh; }
  .timeline::before, .timeline::after { left: 60px; }
  .tl { grid-template-columns: 50px 1fr; gap: 0 26px; min-height: 52vh; }
  .tl__rivet { left: 54px; }
  .tl__km { display: none; }
  .tl__body { padding: 14px 16px 16px; margin: -14px -16px 0; background: rgba(8, 9, 11, .6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .notes { grid-template-columns: 1fr; }
  .notes .note:nth-child(n) { margin-top: 0; }
  .scene--notes { min-height: auto; padding-top: 60vh; }
  .join__ritual { flex-direction: column; align-items: flex-start; gap: 30px; }
  .seal { width: 172px; height: 172px; }
  .footer { padding-bottom: 90px; }
}

@media (max-width: 520px) {
  .plates { grid-template-columns: 1fr 1fr; gap: 10px; }
  .plate { padding: 16px 15px 15px; }
  .plate__k i { display: none; }
  .plates .plate:nth-child(2n),
  .js .plates .plate[data-reveal].is-in:nth-child(2n) { transform: none; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__meta { gap: 6px 14px; }
  .hero__meta span + span::before { display: none; }
  .topbar .btn--sm { padding: 0 16px; }
  .rsvp__panel { padding: 28px 20px 24px; }
  .ticket__name { font-size: 28px; }
}

.no-webgl .hud, .no-webgl .labels, .no-webgl .hero__hint { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js [data-reveal] { filter: none; transform: none; }
}

/* ================================================================== bilingual
   English is the default (any html without data-lang="zh"); Chinese keeps the original CJK typography. */
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215;
}

html:not([data-lang="zh"]) {
  --f-display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Songti SC", serif;
  --f-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", sans-serif;
}
html:not([data-lang="zh"]) body { line-height: 1.62; }

/* display serif has a single (regular) weight — never fake-bold it */
html:not([data-lang="zh"]) h2,
html:not([data-lang="zh"]) .wordmark__type b,
html:not([data-lang="zh"]) .hero__title,
html:not([data-lang="zh"]) .tl__body h3,
html:not([data-lang="zh"]) .seal__face b,
html:not([data-lang="zh"]) .footer__line,
html:not([data-lang="zh"]) .rsvp h3,
html:not([data-lang="zh"]) .ticket__name { font-weight: 400; }

html:not([data-lang="zh"]) .hero { max-width: 780px; }
html:not([data-lang="zh"]) .hero__title {
  font-size: clamp(56px, 7.8vw, 128px);
  line-height: .96;
  letter-spacing: -.012em;
  margin-left: -.03em;
}
html:not([data-lang="zh"]) .hero__title .metal-text { padding-right: .08em; padding-bottom: .04em; }
html:not([data-lang="zh"]) .hero__title .metal-text + .metal-text { font-style: italic; }
html:not([data-lang="zh"]) .hero__lede { max-width: 31em; }

html:not([data-lang="zh"]) h2 {
  font-size: clamp(36px, 4.3vw, 64px);
  line-height: 1.04;
  letter-spacing: -.008em;
}
html:not([data-lang="zh"]) .join h2 { font-size: clamp(42px, 5.4vw, 82px); }
html:not([data-lang="zh"]) .sec-head__no span { text-transform: uppercase; }

html:not([data-lang="zh"]) .wordmark__type b { font-size: 22px; letter-spacing: .015em; }
html:not([data-lang="zh"]) .wordmark__type i { font-family: var(--f-sans); letter-spacing: .42em; font-size: 9.5px; }
html:not([data-lang="zh"]) .topnav a { letter-spacing: .05em; }

html:not([data-lang="zh"]) .plate__k { text-transform: uppercase; font-size: 11.5px; letter-spacing: .2em; }
html:not([data-lang="zh"]) .plate__k i { font-family: var(--f-sans); letter-spacing: .3em; }
html:not([data-lang="zh"]) .tl__body h3 { font-size: 25px; letter-spacing: 0; line-height: 1.2; }
html:not([data-lang="zh"]) .gear li { grid-template-columns: 5.4em 1fr; }

html:not([data-lang="zh"]) .seal__face b { font-style: italic; font-size: 31px; letter-spacing: 0; margin-right: 0; line-height: 1.05; }
html:not([data-lang="zh"]) .seal__face i { text-transform: uppercase; font-size: 9px; letter-spacing: .2em; margin-right: -.2em; }

html:not([data-lang="zh"]) .footer__line { font-style: italic; font-size: clamp(24px, 2.6vw, 36px); letter-spacing: 0; }
html:not([data-lang="zh"]) .rsvp h3 { font-size: 38px; letter-spacing: 0; line-height: 1.05; }
html:not([data-lang="zh"]) .ticket__name { font-size: 44px; letter-spacing: 0; line-height: 1; word-break: normal; overflow-wrap: anywhere; }
html:not([data-lang="zh"]) .ticket__brand { text-transform: uppercase; }
html:not([data-lang="zh"]) .ticket__grid span { text-transform: uppercase; font-size: 9.5px; letter-spacing: .22em; }

/* Latin glyphs are narrower than CJK — the wide CJK tracking reads as gaps in English */
html:not([data-lang="zh"]) .btn { letter-spacing: .045em; }
html:not([data-lang="zh"]) .hero__hint { letter-spacing: .16em; text-transform: uppercase; font-size: 10px; }
html:not([data-lang="zh"]) .scroll-cue { letter-spacing: .22em; text-transform: uppercase; }
html:not([data-lang="zh"]) .hud__scene b { letter-spacing: .1em; white-space: nowrap; }
html:not([data-lang="zh"]) .join__help { letter-spacing: .12em; }
html:not([data-lang="zh"]) .field__k { letter-spacing: .04em; }
html:not([data-lang="zh"]) .wp-label__card b { letter-spacing: .02em; }
html:not([data-lang="zh"]) .tl__place { letter-spacing: .06em; }
html:not([data-lang="zh"]) .reticle__label { letter-spacing: .14em; }
html:not([data-lang="zh"]) .contact div { grid-template-columns: 6.2em 1fr; }
html:not([data-lang="zh"]) .contact dt { letter-spacing: .04em; }
html:not([data-lang="zh"]) .kicker { letter-spacing: .26em; }

/* ------------------------------------------------------------- language toggle (machined pill) */
.lang {
  --w: 40px;
  position: relative;
  display: inline-flex;
  flex: none;
  height: 34px;
  padding: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .015));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    inset 0 -1px 0 rgba(0, 0, 0, .45),
    0 0 0 1px var(--line-2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: box-shadow .5s var(--ease);
}
.lang:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .16),
    inset 0 -1px 0 rgba(0, 0, 0, .45),
    0 0 0 1px rgba(246, 184, 139, .38),
    0 0 22px -6px rgba(232, 131, 74, .45);
}
.lang button {
  position: relative;
  z-index: 1;
  width: var(--w);
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ti-300);
  font: 600 10.5px/1 var(--f-mono);
  letter-spacing: .14em;
  cursor: pointer;
  transition: color .45s var(--ease), transform .45s var(--ease);
}
.lang button[lang="zh-CN"] {
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 12.5px;
  letter-spacing: 0;
}
.lang button:not([aria-pressed="true"]):hover { color: var(--ti-050); transform: translateY(-1px); }
.lang button[aria-pressed="true"] { color: #15171b; cursor: default; }
.lang button:focus-visible { outline: 1.5px solid var(--glow); outline-offset: 2px; }
.lang__thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: var(--w);
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(180deg, #fdfdfd 0%, #d3d6da 38%, #969ca4 50%, #b8bdc3 66%, #eef0f2 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .8),
    inset 0 -1px 0 rgba(0, 0, 0, .25),
    0 4px 12px -2px rgba(0, 0, 0, .55);
  transition: transform .62s cubic-bezier(.34, 1.42, .5, 1), box-shadow .5s var(--ease);
}
.lang__thumb::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(105deg, transparent 28%, rgba(255, 255, 255, .95) 48%, rgba(246, 184, 139, .7) 54%, transparent 72%);
  transform: translateX(-130%);
}
.lang:hover .lang__thumb { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 -1px 0 rgba(0, 0, 0, .25), 0 0 0 1px rgba(246, 184, 139, .55), 0 6px 18px -4px rgba(232, 131, 74, .55); }
.lang[data-active="zh"] .lang__thumb { transform: translateX(var(--w)); }
/* a fresh glint sweeps the thumb every time the language changes (animation name swaps → restarts) */
.lang[data-active="en"] .lang__thumb::after { animation: lang-glint-a .9s .12s var(--ease) both; }
.lang[data-active="zh"] .lang__thumb::after { animation: lang-glint-b .9s .12s var(--ease) both; }
@keyframes lang-glint-a { from { transform: translateX(-130%); } to { transform: translateX(130%); } }
@keyframes lang-glint-b { from { transform: translateX(-130%); } to { transform: translateX(130%); } }

/* ------------------------------------------------------------- switching: copy dissolves, re-sets, returns */
main, .footer, .topnav, .labels, .hud__scene, .rsvp__panel {
  transition-property: opacity, filter;
  transition-duration: .26s;
  transition-timing-function: var(--ease);
}
.topbar .btn > span { transition: transform .5s var(--ease), opacity .26s var(--ease); }
.lang-out main,
.lang-out .footer,
.lang-out .topnav,
.lang-out .labels,
.lang-out .hud__scene,
.lang-out .rsvp__panel,
.lang-out .topbar .btn > span { opacity: 0; }
.lang-out .rsvp__panel { filter: blur(3px); }

/* first paint for returning Chinese visitors: hold copy until the dictionary is applied (inline script has a safety timeout) */
.i18n-wait .topbar,
.i18n-wait main,
.i18n-wait .footer,
.i18n-wait .hud { visibility: hidden; }

@media (max-width: 860px) {
  .topbar { gap: 12px; }
  .lang { --w: 36px; height: 32px; }
  html:not([data-lang="zh"]) .kicker { letter-spacing: .16em; font-size: 10.5px; }
  html:not([data-lang="zh"]) .hero__title { font-size: clamp(46px, 12.4vw, 70px); }
  html:not([data-lang="zh"]) h2 { font-size: clamp(34px, 9vw, 48px); }
  html:not([data-lang="zh"]) .join h2 { font-size: clamp(38px, 10.5vw, 56px); }
  html:not([data-lang="zh"]) .wordmark__type b { font-size: 20px; }
}
@media (max-width: 380px) {
  .wordmark__type { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lang__thumb { transition: none; }
  .lang[data-active] .lang__thumb::after { animation: none; }
}
