/* ============================================================
   NOCTURNAL CLUB — v6
   Black base · white accent · monochrome · high interaction
   ============================================================ */

:root {
  --bg: #000000;
  --surface: #0a0a0b;
  --raised: #101012;
  --tile: #131315;
  --white: #ffffff;
  --text: #f2f2f3;
  --text2: #b6b6ba;
  --sub: #77777d;
  --dim: #63636b;
  --line: rgba(255, 255, 255, 0.09);
  --line2: rgba(255, 255, 255, 0.18);
  --line3: rgba(255, 255, 255, 0.34);
  --font: 'Inter', 'Pretendard Variable', -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --r: 10px;
  --r-lg: 16px;
  --r-xl: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.42, 0.42, 1);
  --hd-h: 58px;

  --art-ink: #f2f2f3;
  --art-line: rgba(255, 255, 255, 0.26);
  --art-logo: rgba(255, 255, 255, 0.45);
  --art-detail: rgba(255, 255, 255, 0.25);
  --art-shadow: rgba(0, 0, 0, 0.6);
  --art-ghost: #131315;
  --art-bp: rgba(255, 255, 255, 0.75);
}

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

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.cart-open, body.wish-open, body.cmdk-open { overflow: hidden; }

::selection { background: var(--white); color: #000; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
b { font-weight: 700; }
code { font-family: var(--mono); font-size: 0.9em; }

.wrap { width: min(1240px, 100% - 44px); margin-inline: auto; }
.mono { font-family: var(--mono); }
.fine { color: var(--sub); font-size: 0.7rem; }
.fine.center { text-align: center; }
.tlink { color: var(--text2); border-bottom: 1px solid var(--line2); padding-bottom: 1px; transition: 0.15s; }
.tlink:hover { color: var(--white); border-color: var(--white); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #26262a; border: 3px solid var(--bg); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #3c3c42; }

:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; border-radius: 4px; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* uploaded product photos */
.pmedia { width: 100%; height: 100%; display: block; }
.pmedia.fit-cover { object-fit: cover; }
.pmedia.fit-contain { object-fit: contain; }

.noise {
  position: fixed; inset: -100px; z-index: 300; pointer-events: none; opacity: 0.32;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-28px, 18px); }
  50% { transform: translate(20px, -24px); } 75% { transform: translate(-12px, -10px); }
  100% { transform: translate(0, 0); }
}

/* ---------------- scroll progress ---------------- */

.scroll-bar { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200; pointer-events: none; }
.scroll-bar i { display: block; height: 100%; background: var(--white); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------------- header ---------------- */

.hd {
  position: fixed; top: 0; left: 0; right: 0; z-index: 150; height: var(--hd-h);
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.hd.is-stuck { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(16px) saturate(1.3); border-bottom-color: var(--line); }
.hd-in { width: min(1240px, 100% - 44px); margin-inline: auto; height: 100%; display: flex; align-items: center; gap: 28px; }
.hd-logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 0.78rem; letter-spacing: 0.1em; }
.hd-nav { display: flex; gap: 2px; }
.hd-nav a {
  position: relative; padding: 8px 13px; border-radius: 99px;
  font-size: 0.82rem; font-weight: 500; color: var(--sub); transition: color 0.15s, background 0.15s;
}
.hd-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.hd-nav a.is-on { color: var(--white); }
.hd-nav a.is-on::after {
  content: ''; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 1.5px;
  background: var(--white); border-radius: 2px;
}
.hd-r { margin-left: auto; display: flex; align-items: center; gap: 7px; }
.hd-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; min-width: 36px; padding: 0 10px; border-radius: 10px;
  border: 1px solid var(--line); color: var(--text2); transition: 0.16s var(--spring);
}
.hd-btn:hover { border-color: var(--line3); color: var(--white); transform: translateY(-1px); }
.badge {
  position: absolute; top: -6px; right: -6px; min-width: 17px; height: 17px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 99px;
  background: var(--white); color: #000; font-size: 10px; font-weight: 700; line-height: 1;
  opacity: 0; transform: scale(0.4); transition: 0.22s var(--spring);
}
.badge.show { opacity: 1; transform: none; }
.badge.pop { animation: bpop 0.36s var(--spring); }
@keyframes bpop { 45% { transform: scale(1.35); } }

body.on-landing .hd:not(.is-stuck) .hd-logo,
body.on-landing .hd:not(.is-stuck) .hd-nav a.is-on { color: var(--white); }

#app { padding-top: var(--hd-h); min-height: 70vh; transition: opacity 0.11s ease; }
#app.leaving { opacity: 0; }
body.on-landing #app { padding-top: 0; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 24px; border-radius: 99px;
  font-size: 0.85rem; font-weight: 600; letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform 0.18s var(--spring), background 0.18s, color 0.18s, border-color 0.18s;
  will-change: transform;
}
.btn:active { transform: scale(0.96) !important; }
.btn-fill { background: var(--white); color: #000; }
.btn-fill:hover { background: #d8d8dc; }
.btn-out { border-color: var(--line2); color: var(--text); }
.btn-out:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.06); }
.btn-sm { height: 34px; padding: 0 15px; font-size: 0.76rem; }
.btn-xl { height: 52px; font-size: 0.92rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.3; pointer-events: none; }

.ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--sub); transition: 0.14s; }
.ico:hover { background: rgba(255, 255, 255, 0.07); color: var(--white); }

.sel {
  height: 38px; padding: 0 34px 0 14px; border-radius: 99px; border: 1px solid var(--line);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2377777d' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 13px center;
  appearance: none; font-size: 0.8rem; color: var(--text2); cursor: pointer; transition: 0.15s;
}
.sel:hover { border-color: var(--line2); color: var(--text); }
.sel:focus { outline: none; border-color: var(--white); }

/* ---------------- section scaffolding ---------------- */

.sec { padding: 76px 0; }
.sec-sm { padding: 26px 0 60px; }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.sec-head-l { display: flex; align-items: baseline; gap: 16px; }
.sec-idx { font-family: var(--mono); font-size: 0.66rem; color: var(--dim); letter-spacing: 0.1em; }
.sec-title { font-size: clamp(19px, 2.1vw, 24px); font-weight: 700; letter-spacing: -0.025em; }
.sec-sub { color: var(--sub); font-size: 0.82rem; margin-top: 3px; }
.sec-link { display: inline-flex; align-items: center; gap: 4px; color: var(--sub); font-size: 0.8rem; font-weight: 500; transition: 0.15s; white-space: nowrap; }
.sec-link:hover { color: var(--white); }
.sec-link svg { transition: transform 0.2s; }
.sec-link:hover svg { transform: translateX(3px); }

.ptop { padding: 54px 0 8px; }
.ptop-kick { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.2em; color: var(--dim); text-transform: uppercase; }
.ptop-title { font-size: clamp(38px, 5.4vw, 62px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; margin-top: 8px; }
.ptop-sub { color: var(--sub); font-size: 0.88rem; margin-top: 10px; max-width: 62ch; text-wrap: balance; }
.ptop-sub b { color: var(--white); }

.crumbs { display: flex; gap: 8px; align-items: center; color: var(--dim); font-size: 0.76rem; margin-bottom: 22px; }
.crumbs a:hover { color: var(--white); }
.crumbs b { color: var(--text2); font-weight: 500; }

.empty { grid-column: 1/-1; text-align: center; color: var(--sub); padding: 70px 20px; border: 1px dashed var(--line2); border-radius: var(--r-lg); }

.shake { animation: shake 0.42s; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

/* ---------------- STAGE (landing hero) ---------------- */

.stage {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto; align-items: center;
  border-bottom: 1px solid var(--line);
}
.stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: calc(min(1240px, 100vw - 44px) / 4) 100%;
  background-position: center;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
  opacity: 0.5;
}
.stage-top, .stage-bot { position: relative; z-index: 3; }
.stage-top {
  padding-top: calc(var(--hd-h) + 22px);
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.18em; color: var(--dim); text-transform: uppercase;
}
.stage-mid { position: relative; z-index: 3; padding: 40px 0; }

.slogan { font-weight: 900; letter-spacing: -0.045em; line-height: 0.94; }
.sl-line { display: block; overflow: hidden; }
.sl-word {
  display: inline-block; font-size: clamp(38px, 8.4vw, 118px);
  transform: translateY(110%); opacity: 0;
  transition: transform 1s var(--ease), opacity 0.7s ease;
  transition-delay: calc(var(--i) * 110ms);
}
.sl-word.in { transform: none; opacity: 1; }
.sl-line:nth-child(2) .sl-word { color: var(--sub); }

/* Three lines, broken where the copy breaks. The rhythm is the point, so the
   line ends are set here rather than left to whatever the column width does. */
.stage-lede { margin-top: 24px; color: var(--text2); font-size: 0.98rem; display: grid; gap: 2px; }
.stage-lede span { display: block; text-wrap: balance; }
.stage-cta { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; }

.stage-bot { padding-bottom: 28px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.stage-stats { display: flex; gap: 40px; }
.stage-stats span { display: grid; gap: 2px; }
.stage-stats b { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stage-stats em { font-style: normal; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; color: var(--dim); text-transform: uppercase; }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; color: var(--sub); font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; transition: color 0.15s; }
.scroll-cue:hover { color: var(--white); }
.scroll-cue i { display: block; width: 1px; height: 34px; background: var(--line2); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; left: 0; width: 100%; height: 45%; background: var(--white); top: -45%; animation: drip 1.9s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

/* ---------------- spotlight surface ---------------- */

[data-spotlight] { position: relative; overflow: hidden; }
[data-spotlight]::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 50%), rgba(255, 255, 255, 0.07), transparent 70%);
}
[data-spotlight]:hover::before { opacity: 1; }

/* ---------------- countdown (editorial numerals) ---------------- */

.tm { display: inline-flex; align-items: baseline; }
.tm-grp { display: inline-flex; align-items: baseline; }
.tm-num {
  display: inline-flex; font-variant-numeric: tabular-nums;
  font-weight: 700; letter-spacing: -0.045em; color: var(--white); line-height: 1;
}
.tm-dg { display: inline-block; }
.tm-dg b { display: block; font-weight: inherit; }
.tm-dg.flip b { animation: roll 0.28s var(--ease); }
@keyframes roll {
  0% { transform: translateY(-18%); opacity: 0.25; }
  100% { transform: none; opacity: 1; }
}
.tm-u { font-style: normal; font-family: var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; }
.tm-col { display: inline-block; background: var(--line2); border-radius: 1px; }

/* One font-size drives the whole XL timer: the separators and unit labels are
   in em, so the row scales as a single object instead of the digits growing
   while the gaps between them stay put. */
.tm-xl { font-size: clamp(30px, 5.8vw, 72px); }
.tm-xl .tm-num { font-size: 1em; }
.tm-xl .tm-u { font-size: 0.15em; margin-left: 0.13em; }
.tm-xl .tm-col { width: 1px; height: 0.42em; margin: 0 0.28em; transform: translateY(-0.04em); }

.tm-md .tm-num { font-size: 25px; }
.tm-md .tm-u { font-size: 0.54rem; margin-left: 5px; }
.tm-md .tm-col { width: 1px; height: 14px; margin: 0 11px; transform: translateY(-2px); }

.tm-inline { font-family: var(--mono); font-size: 0.76rem; font-variant-numeric: tabular-nums; color: var(--text); }
.tm-inline b { font-weight: 600; }
.tm-cap { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.22em; color: var(--dim); text-transform: uppercase; display: block; }
.tm-cap.sm { display: inline; margin-right: 6px; }

/* elapsed-window gauge */
.gauge { display: grid; gap: 9px; width: 100%; max-width: 340px; margin-top: 10px; }
.gauge-rail { height: 2px; background: rgba(255, 255, 255, 0.13); border-radius: 2px; overflow: hidden; }
.gauge-rail i { display: block; height: 100%; background: var(--white); border-radius: 2px; transition: width 0.8s var(--ease); }
.gauge-txt { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.06em; color: var(--dim); }
.gauge-txt b { color: var(--text2); font-weight: 600; }

/* ---------------- status dot ---------------- */

.dot { display: inline-flex; align-items: center; gap: 7px; font-size: 0.74rem; font-weight: 500; color: var(--sub); }
.dot i { width: 6px; height: 6px; border-radius: 50%; background: var(--sub); }
.dot.is-live { color: var(--white); }
.dot.is-live i { background: var(--white); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6); animation: ping 1.6s infinite; }
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); } }
.dot.is-upcoming { color: var(--text2); }
.dot.is-upcoming i { background: var(--text2); }

.pill {
  display: inline-flex; align-items: center; height: 21px; padding: 0 8px; border-radius: 5px;
  font-size: 0.64rem; font-weight: 600; letter-spacing: 0.02em;
  background: rgba(0, 0, 0, 0.6); border: 1px solid var(--line2); color: var(--text2); backdrop-filter: blur(6px);
}
.pill-solid { background: var(--white); color: #000; border-color: var(--white); }
.pill-mute { color: var(--dim); }
.pill-lock { position: absolute; top: 10px; left: 10px; }
.closed-mark { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.08em; color: var(--dim); text-transform: uppercase; }
.closed-mark.big { font-size: 1.4rem; letter-spacing: -0.01em; text-transform: none; color: var(--sub); }

/* ---------------- feature (landing drop) ---------------- */

.feature {
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
  padding: 38px 40px; border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.25s, transform 0.25s var(--spring);
}
.feature:hover { border-color: var(--line2); transform: translateY(-3px); }
.feature-kick { display: flex; gap: 14px; align-items: center; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; color: var(--dim); }
.feature-title { font-size: clamp(30px, 4vw, 50px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin: 14px 0 8px; }
.feature-tag { color: var(--text2); font-size: 0.92rem; }
.feature-thumbs { display: flex; gap: 8px; margin-top: 22px; }
.dthumb { width: 50px; height: 60px; border-radius: 8px; background: var(--tile); overflow: hidden; flex: none; }
.dthumb svg { width: 100%; height: 100%; }
.feature-r { display: grid; gap: 12px; justify-items: end; }
.feature-window { font-family: var(--mono); font-size: 0.66rem; color: var(--dim); }

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

.gear-rail {
  /* Cap the column: with a full rail the min wins anyway (the row overflows),
     but a single card would take 1fr — the whole width — and the 4/5 media box
     would then stretch to a 1500px-tall panel. */
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 300px);
  gap: 14px; overflow-x: auto; padding: 4px max(22px, calc((100vw - 1240px) / 2)) 20px;
  scrollbar-width: none; cursor: grab; scroll-snap-type: x proximity;
}
.gear-rail::-webkit-scrollbar { display: none; }
.gear-rail.dragging { cursor: grabbing; scroll-behavior: auto; }
.gcard { scroll-snap-align: start; }
.gcard-media {
  position: relative; aspect-ratio: 4/5; border-radius: var(--r-lg); overflow: hidden;
  background: var(--tile); border: 1px solid var(--line); transition: border-color 0.2s, transform 0.25s var(--spring);
}
.gcard:hover .gcard-media { border-color: var(--line2); transform: translateY(-4px); }
.gcard-meta { display: grid; gap: 2px; padding: 11px 3px 0; }
.gcard-meta span { font-size: 0.8rem; font-weight: 600; }
.gcard-meta em { font-style: normal; color: var(--sub); font-size: 0.74rem; }
.gcard-end .gcard-end-in {
  aspect-ratio: 4/5; border-radius: var(--r-lg); border: 1px dashed var(--line2);
  display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center;
  transition: 0.2s; color: var(--text2);
}
.gcard-end:hover .gcard-end-in { border-color: var(--white); color: var(--white); }
.gcard-end b { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.gcard-end span { font-size: 1.3rem; }

/* ---------------- creed ---------------- */

.creed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.creed-item { background: var(--bg); padding: 30px 28px; transition: background 0.25s; }
.creed-item:hover { background: var(--surface); }
.creed-n { font-family: var(--mono); font-size: 0.64rem; color: var(--dim); letter-spacing: 0.1em; }
.creed-item b { display: block; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; margin: 12px 0 8px; }
.creed-item p { color: var(--sub); font-size: 0.86rem; }

/* ---------------- product card ---------------- */

.grid { display: grid; gap: 30px 18px; }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card { position: relative; }
.card-media {
  position: relative; aspect-ratio: 5/6; border-radius: var(--r-lg); overflow: hidden;
  background: var(--tile); border: 1px solid var(--line);
  transition: border-color 0.2s, transform 0.25s var(--spring);
}
.card:hover .card-media { border-color: var(--line2); transform: translateY(-4px); }
.card-hit { position: absolute; inset: 0; z-index: 1; }
.card-frames { position: absolute; inset: 0; }
.frame { position: absolute; inset: 7%; opacity: 0; transition: opacity 0.22s ease; }
.frame.is-on { opacity: 1; }
.frame svg { width: 100%; height: 100%; }
/* photos bleed to the tile edge; drawings keep their inset */
.has-photo .frame, .qv-media .frame:has(.pmedia), .gcard-media .frame:has(.pmedia) { inset: 0; }
.dthumb .pmedia, .cmdk-thumb .pmedia, .crow-thumb .pmedia, .wrow-thumb .pmedia { border-radius: inherit; }
.card-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; z-index: 2; opacity: 0; transition: opacity 0.2s; }
.card:hover .card-dots { opacity: 1; }
.card-dots i { width: 14px; height: 2px; border-radius: 2px; background: var(--line2); transition: background 0.2s; }
.card-dots i.is-on { background: var(--white); }
.card-pills { position: absolute; top: 10px; left: 10px; display: flex; gap: 5px; z-index: 2; pointer-events: none; }

.wish {
  position: absolute; top: 9px; right: 9px; z-index: 3;
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.55); border: 1px solid var(--line); color: var(--text2);
  backdrop-filter: blur(6px); transition: 0.16s var(--spring);
}
.wish:hover { color: var(--white); border-color: var(--line3); transform: scale(1.08); }
.wish.is-on { color: var(--white); border-color: var(--white); }
.wish.is-on svg path { fill: var(--white); }
.wish.pop { animation: bpop 0.36s var(--spring); }
.wish.lg { position: static; width: 40px; height: 40px; background: transparent; }

.card-actions { position: absolute; left: 9px; right: 9px; bottom: 9px; z-index: 3; display: grid; gap: 6px; }
.ca-btn, .ca-size {
  background: rgba(10, 10, 11, 0.86); backdrop-filter: blur(8px);
  border: 1px solid var(--line2); color: var(--text);
  font-size: 0.74rem; font-weight: 600; border-radius: 8px; transition: 0.15s;
}
.ca-btn { height: 34px; opacity: 0; transform: translateY(8px); transition: 0.24s var(--spring); }
.card:hover .ca-btn { opacity: 1; transform: none; }
.ca-btn:hover { background: var(--white); color: #000; border-color: var(--white); }
.ca-sizes { display: flex; gap: 4px; opacity: 0; transform: translateY(8px); transition: 0.24s var(--spring) 0.04s; }
.card:hover .ca-sizes, .card-actions:focus-within .ca-sizes { opacity: 1; transform: none; }
.ca-size { flex: 1; height: 30px; font-size: 0.68rem; }
.ca-size:hover { background: var(--white); color: #000; border-color: var(--white); }
/* The one that carries words rather than a size letter. */
.ca-wide {
  display: flex; align-items: center; justify-content: center;
  text-transform: capitalize; letter-spacing: 0.01em;
}
@media (pointer: coarse) { .ca-btn, .ca-sizes { opacity: 1; transform: none; } .card-dots { opacity: 1; } }

.card-meta { display: grid; gap: 2px; padding: 12px 3px 0; }
.card-name { font-size: 0.82rem; font-weight: 600; }
.card:hover .card-name { text-decoration: underline; text-underline-offset: 3px; }
.card-sub { color: var(--sub); font-size: 0.74rem; }
.card-price { font-size: 0.8rem; color: var(--text2); margin-top: 4px; font-variant-numeric: tabular-nums; }
.card.is-sold .frame { opacity: 0.28; filter: grayscale(1); }
.card.is-sold .frame.is-on { opacity: 0.28; }
.card.is-sold .card-name { color: var(--sub); text-decoration: line-through; }
.card.is-ghost .card-media { background: var(--raised); }

/* ---------------- drop cards ---------------- */

.dgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.dcard {
  display: block; padding: 26px 28px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.2s, transform 0.25s var(--spring);
}
.dcard:hover { border-color: var(--line2); transform: translateY(-3px); }
.dcard.is-ended { opacity: 0.55; }
.dcard-top { display: flex; justify-content: space-between; align-items: center; }
.dcard-code { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; color: var(--dim); }
.dcard-title { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -0.035em; margin-top: 12px; }
.dcard-tag { color: var(--sub); font-size: 0.84rem; margin-top: 4px; }
.dcard-thumbs { display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.dcard-n { color: var(--dim); font-size: 0.72rem; margin-left: 4px; }
.dcard-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.dcard-cd { display: grid; gap: 8px; }
.dcard-window { font-family: var(--mono); font-size: 0.62rem; color: var(--dim); }

/* ---------------- segmented ---------------- */

.seg { position: relative; display: inline-flex; gap: 2px; padding: 4px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 24px; }
.seg-btn { position: relative; z-index: 2; height: 32px; padding: 0 16px; border-radius: 99px; font-size: 0.8rem; font-weight: 500; color: var(--sub); transition: color 0.16s; display: inline-flex; align-items: center; gap: 6px; }
.seg-btn { white-space: nowrap; }
.seg-btn em { font-style: normal; font-family: var(--mono); font-size: 0.62rem; opacity: 0.65; }
.seg-btn.is-on { color: #000; }
.seg-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; z-index: 1; width: 60px; border-radius: 99px; background: var(--white); transition: transform 0.32s var(--spring), width 0.32s var(--spring); }

.bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 26px; flex-wrap: wrap; }
.chips { display: flex; gap: 5px; flex-wrap: wrap; }
.chip { height: 34px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); color: var(--sub); font-size: 0.78rem; transition: 0.16s var(--spring); }
.chip:hover { color: var(--text); border-color: var(--line2); transform: translateY(-1px); }
.chip.is-on { background: var(--white); border-color: var(--white); color: #000; font-weight: 600; }

/* ---------------- drop detail ---------------- */

.dd { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 40px; align-items: start; padding: 30px 32px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); min-width: 0; }
.dd-l, .dd-r { min-width: 0; }
.dd-kick { display: flex; gap: 14px; align-items: center; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; color: var(--dim); }
.dd-title { font-size: clamp(36px, 5vw, 62px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin: 14px 0 10px; }
.dd-tag { color: var(--text2); font-size: 1rem; }
.dd-desc { color: var(--sub); font-size: 0.88rem; margin-top: 14px; max-width: 56ch; }
/* The countdown column is a fraction of a capped wrap, so it stops growing
   long before the viewport does. Size the timer off this column instead of
   off the screen — sized off vw it outgrew the card past ~1080px and took the
   date out of the card with it. */
.dd-r { display: grid; gap: 12px; justify-items: end; text-align: right; container-type: inline-size; }
.dd-r .tm-xl { font-size: min(11.5cqi, 72px); }
.dd-window { font-family: var(--mono); font-size: 0.64rem; color: var(--dim); }
.dd-left { font-size: 0.76rem; color: var(--text2); }
.dd-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin: 34px 0 18px; }
.dd-bar span { color: var(--sub); font-size: 0.78rem; }

/* ---------------- product detail ---------------- */

.pd { padding-bottom: 40px; }
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin-top: 6px; }
.pd-gal { position: sticky; top: calc(var(--hd-h) + 16px); }
.pd-stage { aspect-ratio: 5/6; border-radius: var(--r-xl); background: var(--tile); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.pd-stage svg { width: 86%; height: 86%; }
.pd-stage .pmedia { width: 100%; height: 100%; }
.pd-stage.swap svg, .pd-stage.swap .pmedia { animation: fadein 0.32s ease; }
@keyframes fadein { from { opacity: 0; } }

.pd-thumbs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.pthumb {
  width: 62px; aspect-ratio: 5/6; border-radius: 9px; overflow: hidden;
  border: 1px solid var(--line); background: var(--tile); opacity: 0.5;
  transition: opacity 0.16s, border-color 0.16s, transform 0.16s var(--spring);
}
.pthumb:hover { opacity: 0.9; transform: translateY(-2px); }
.pthumb.is-on { opacity: 1; border-color: var(--white); }
.pthumb svg { width: 100%; height: 100%; }
.pthumb .pmedia { width: 100%; height: 100%; }
.pd-gal { display: grid; justify-items: center; }
.pd-gal > .pd-stage { width: 100%; }

.pd-cat { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; color: var(--dim); text-transform: uppercase; }
.pd-name-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.pd-name { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; margin-top: 8px; }
.pd-sub { color: var(--sub); font-size: 0.88rem; margin-top: 5px; }
.pd-price-row { display: flex; align-items: center; gap: 18px; margin-top: 18px; flex-wrap: wrap; }
.pd-price { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }

.stock { display: inline-flex; align-items: center; gap: 9px; font-size: 0.76rem; color: var(--sub); }
.stock-bar { width: 56px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.stock-bar i { display: block; height: 100%; background: var(--text2); border-radius: 3px; transition: width 0.7s var(--ease); }
.stock.is-low { color: var(--white); }
.stock.is-low .stock-bar i { background: var(--white); }
.stock.is-sold { color: var(--dim); }

.pd-drop { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; padding: 13px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); font-size: 0.82rem; transition: 0.18s; }
.pd-drop:hover { border-color: var(--line2); }
.pd-blurb { color: var(--text2); font-size: 0.92rem; margin-top: 20px; }
.pd-lab { font-size: 0.72rem; font-weight: 600; color: var(--sub); letter-spacing: 0.02em; }
.pd-lab-row { display: flex; justify-content: space-between; align-items: baseline; }
.pd-lab-row .tlink { font-size: 0.76rem; }
.pd-cw { display: flex; align-items: center; gap: 10px; margin-top: 22px; }
.cw { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); font-size: 0.74rem; color: var(--text2); }
.cw i { width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--line2); }
.pd-sizes { margin-top: 22px; }
.sizes { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 10px; }
.size { min-width: 50px; height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line2); font-size: 0.8rem; font-weight: 500; color: var(--text2); transition: 0.15s var(--spring); }
.size:hover:not([disabled]) { border-color: var(--white); transform: translateY(-1px); }
/* The selected chip is already white-on-black-text; letting the hover rule
   repaint the label white would leave it invisible against its own fill. */
.size:hover:not([disabled]):not(.is-on) { color: var(--white); }
.size.is-on { background: var(--white); border-color: var(--white); color: #000; font-weight: 600; }
.size[disabled] { opacity: 0.3; }

/* The quantity break, said on the page rather than left for the cart to
   reveal — it only changes what goes in the basket if it is read first. */
.pd-bulk {
  margin-top: 10px; padding: 9px 13px; border-radius: 10px;
  border: 1px dashed var(--line2); color: var(--text2);
  font-size: 0.78rem; line-height: 1.5;
}
.pd-bulk b { color: var(--white); font-weight: 600; }
.crow-bulk { color: var(--sub); font-size: 0.68rem; }

/* Text options — one piece, several versions of it. Wider than a size chip
   because the choice is a phrase, and stacked one per row so the phrases can
   be read down the list rather than hunted for between wrapped pills. */
.opts { display: grid; gap: 7px; margin-top: 10px; }
.opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 44px; padding: 9px 15px; text-align: left;
  border-radius: 10px; border: 1px solid var(--line2);
  font-size: 0.82rem; font-weight: 500; color: var(--text2);
  transition: 0.15s var(--spring);
}
.opt:hover:not([disabled]) { border-color: var(--white); transform: translateY(-1px); }
/* Same trap as the size chips: the selected row is white, so the hover colour
   has to stay off it or the text disappears into its own background. */
.opt:hover:not([disabled]):not(.is-on) { color: var(--white); }
.opt.is-on { background: var(--white); border-color: var(--white); color: #000; font-weight: 600; }
.opt-txt { line-height: 1.4; }
.opt[disabled] { opacity: 0.36; cursor: not-allowed; }
/* Sold out stays legible rather than dimmed to nothing: a customer reading the
   list needs to see which phrase went, not just that something is greyed. */
.opt.is-gone .opt-txt { text-decoration: line-through; text-decoration-thickness: 1px; }
.opt-gone {
  flex: none; font-family: var(--mono); font-size: 0.6rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--sub);
}
/* Road-use warning on display-only pieces. Deliberately plainer than the rest
   of the page — it has to read as a notice, not as marketing. */
/* Checkout consent. Reads as a control, not as fine print — it is the only
   thing standing between us and somebody else's traffic offence. */
.consent {
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start;
  border: 1px solid var(--line2); border-radius: var(--r);
  padding: 14px 16px; cursor: pointer;
}
.consent:has(input:checked) { border-color: var(--line3); }
.consent input { width: 18px; height: 18px; margin-top: 1px; accent-color: #fff; flex: none; cursor: pointer; }
.consent > span { display: grid; gap: 8px; color: var(--text2); font-size: 0.78rem; line-height: 1.6; }
.consent em { font-style: normal; color: var(--sub); font-size: 0.74rem; line-height: 1.65; }
.consent .tlink { justify-self: start; font-size: 0.74rem; }

/* ---------------- order lookup ---------------- */

.lookup { padding-bottom: 60px; max-width: 620px; }
.lookup-form { display: grid; gap: 14px; margin-top: 34px; }
.lookup-err { margin-top: 20px; color: var(--danger, #ff5b4a); font-size: 0.86rem; }

.lookup-card {
  margin-top: 30px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); padding: 24px; display: grid; gap: 22px;
}
.lk-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.lk-code { font-family: var(--mono); font-size: 1.05rem; letter-spacing: 0.06em; color: var(--text); }
.lk-when { color: var(--sub); font-size: 0.78rem; }

/* the three states, as a line you read left to right */
.tl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tl li { display: grid; gap: 7px; align-content: start; opacity: 0.4; }
.tl li i { display: block; height: 2px; border-radius: 2px; background: var(--line2); }
.tl li b { font-size: 0.84rem; font-weight: 600; letter-spacing: -0.01em; }
.tl li span { color: var(--sub); font-size: 0.74rem; line-height: 1.5; min-height: 1em; }
.tl li.is-done { opacity: 0.75; }
.tl li.is-done i { background: var(--text2); }
.tl li.is-now { opacity: 1; }
.tl li.is-now i { background: var(--white); }
.tl-dead { display: grid; gap: 7px; border-left: 2px solid var(--line3); padding-left: 14px; }
.tl-dead b { font-size: 0.9rem; }
.tl-dead span { color: var(--sub); font-size: 0.8rem; line-height: 1.6; }

.lk-block { display: grid; gap: 8px; justify-items: start; }
.lk-block p { color: var(--text2); font-size: 0.86rem; line-height: 1.6; }
.lk-lab { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.lk-due { border: 1px solid var(--line2); border-radius: var(--r); padding: 16px 18px; }
.lk-due b { font-size: 0.95rem; }
.lk-bank { font-family: var(--mono); font-size: 0.94rem; color: var(--text) !important; letter-spacing: 0.02em; }
.lk-track { font-family: var(--mono); font-size: 1.15rem; letter-spacing: 0.06em; }

.lk-items { display: grid; gap: 9px; border-top: 1px solid var(--line); padding-top: 18px; }
.lk-items > div { display: flex; justify-content: space-between; gap: 14px; font-size: 0.86rem; color: var(--text2); }
.lk-items > div b { color: var(--text); white-space: nowrap; }
.lk-off { color: var(--sub) !important; }
.lk-total { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 3px; font-weight: 600; }
.lk-total span, .lk-total b { color: var(--text) !important; font-size: 0.95rem; }

@media (max-width: 560px) { .tl { grid-template-columns: 1fr; gap: 14px; } }

/* ---------------- legal ---------------- */

.legal { padding-bottom: 60px; max-width: 780px; }
.legal-sec { margin-top: 44px; }
.legal-sec h2 {
  display: flex; align-items: baseline; gap: 14px;
  font-size: 1.15rem; font-weight: 800; letter-spacing: -0.025em;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.legal-n { font-family: var(--mono); font-size: 0.72rem; color: var(--dim); font-weight: 500; }
.legal-list { margin: 20px 0 0; padding-left: 0; list-style: none; counter-reset: cl; display: grid; gap: 14px; }
.legal-list li {
  counter-increment: cl; position: relative; padding-left: 46px;
  color: var(--text2); font-size: 0.86rem; line-height: 1.75;
}
.legal-list li::before {
  content: '1.' counter(cl); position: absolute; left: 0; top: 0.15em;
  font-family: var(--mono); font-size: 0.72rem; color: var(--dim);
}
.legal-foot { margin-top: 44px; color: var(--sub); font-size: 0.82rem; }

.roadwarn {
  border: 1px solid var(--line2); border-left: 2px solid var(--text2);
  border-radius: var(--r); padding: 16px 18px; display: grid; gap: 10px;
}
.roadwarn b { font-size: 0.86rem; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.roadwarn ul { margin: 0; padding-left: 17px; display: grid; gap: 7px; }
.roadwarn li { color: var(--sub); font-size: 0.78rem; line-height: 1.6; }
.roadwarn .tlink { font-size: 0.76rem; justify-self: start; }

.pd-buy { margin-top: 24px; }

.accs { margin-top: 30px; border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 15px 2px; font-size: 0.86rem; font-weight: 600; color: var(--text2); cursor: pointer; transition: color 0.15s; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--white); }
.acc summary i { position: relative; width: 12px; height: 12px; }
.acc summary i::before, .acc summary i::after { content: ''; position: absolute; inset: 0; margin: auto; background: currentColor; border-radius: 2px; transition: transform 0.26s var(--ease); }
.acc summary i::before { width: 12px; height: 1.5px; }
.acc summary i::after { width: 1.5px; height: 12px; }
.acc[open] summary i::after { transform: rotate(90deg); }
.acc[open] summary { color: var(--white); }
.acc-anim { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s var(--ease); }
.acc[open] .acc-anim { grid-template-rows: 1fr; }
.acc-anim > .acc-in { overflow: hidden; }
.acc-in { color: var(--sub); font-size: 0.85rem; padding-bottom: 16px; }
.acc-in p { padding: 3px 0; }
.feats { list-style: none; }
.feats li { padding: 5px 0 5px 16px; position: relative; }
.feats li::before { content: ''; position: absolute; left: 1px; top: 13px; width: 4px; height: 4px; border-radius: 50%; background: var(--dim); }
.gtable { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.gtable th, .gtable td { border: 1px solid var(--line); padding: 8px 10px; text-align: center; color: var(--text2); }
.gtable th { background: var(--raised); color: var(--sub); font-weight: 600; }
.related { border-top: 1px solid var(--line); margin-top: 56px; padding-top: 30px; }
.related .sec-title { margin-bottom: 22px; }

/* ---------------- crew ---------------- */

.crew-grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: 20px; align-items: start; margin-top: 12px; }
.ride-list { display: grid; gap: 12px; }
.ride { display: grid; grid-template-columns: 66px 1fr; gap: 20px; padding: 22px 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: border-color 0.2s, transform 0.22s var(--spring); }
.ride:hover { border-color: var(--line2); transform: translateY(-2px); }
.ride-when { display: grid; justify-items: center; align-content: start; gap: 1px; padding-top: 2px; }
.rw-mon { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; color: var(--dim); }
.rw-day { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; }
.rw-time { font-family: var(--mono); font-size: 0.68rem; color: var(--sub); }
.ride-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ride-title { font-size: 1.02rem; font-weight: 700; letter-spacing: -0.02em; }
.pace { height: 23px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 99px; border: 1px solid var(--line2); font-size: 0.68rem; font-weight: 600; color: var(--text2); }
.pace-fast { border-color: var(--line3); color: var(--white); }
.ride-meta { display: block; color: var(--sub); font-size: 0.78rem; margin-top: 4px; }
.ride-desc { color: var(--text2); font-size: 0.84rem; margin-top: 9px; }
.ride-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.ride-people { display: flex; align-items: center; gap: 10px; color: var(--sub); font-size: 0.78rem; }
.avatars { display: inline-flex; }
.avatars i { width: 25px; height: 25px; border-radius: 50%; background: var(--tile); border: 1.5px solid var(--bg); display: grid; place-items: center; font-size: 10.5px; font-style: normal; font-weight: 700; color: var(--text2); margin-left: -7px; }
.avatars i:first-child { margin-left: 0; }
.rsvp { display: flex; gap: 8px; }
.rsvp input { width: 128px; height: 34px; padding: 0 13px; border-radius: 99px; border: 1px solid var(--line2); background: transparent; font-size: 0.78rem; transition: 0.15s; }
.rsvp input:focus { outline: none; border-color: var(--white); }
.joined { font-size: 0.78rem; font-weight: 600; color: var(--white); }
.ride-cd { display: flex; align-items: center; gap: 4px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }

.map-col { position: sticky; top: calc(var(--hd-h) + 16px); }
.map-card { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.map-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.map-top b { font-size: 0.88rem; }
.map-top span { color: var(--dim); font-size: 0.7rem; }
.map-box { height: 460px; position: relative; background: var(--raised); }
.map-box .leaflet-container { height: 100%; width: 100%; background: #0a0a0b; font-family: var(--font); }
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--sub); font-size: 0.8rem; }
.nc-marker-wrap { background: none; border: none; }
.nc-marker { position: relative; width: 18px; height: 18px; }
/* The tiles are brightened almost to white, so the dot carries its own dark
   ring rather than relying on the map staying dark underneath it. */
.nc-marker-dot {
  /* 18px icon box, 5.5px inset -> a 7px dot: halfway between the original 8
     and the 6 it was briefly shrunk to */
  position: absolute; inset: 5.5px; border-radius: 50%; background: var(--white);
  box-shadow: 0 0 0 2.75px rgba(0, 0, 0, 0.85), 0 0 13px rgba(255, 255, 255, 0.62);
  opacity: 0.8;
  transition: transform 0.2s var(--spring);
}
.nc-marker-pulse {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--white); opacity: 0.6; animation: mp 2s infinite;
}
.nc-marker-wrap.is-hot .nc-marker-dot { transform: scale(1.35); }
@keyframes mp { 0% { transform: scale(0.6); opacity: 0.7; } 100% { transform: scale(2); opacity: 0; } }
.leaflet-popup-content-wrapper { background: #0d0d0f !important; color: var(--text) !important; border: 1px solid var(--line2); border-radius: 10px !important; }
.leaflet-popup-tip { background: #0d0d0f !important; }
/* Leaflet's close button is a pale gray link by default — bring it into the
   dark popup and give it a big enough hit area to actually tap. */
.leaflet-popup-close-button {
  width: 26px !important; height: 26px !important;
  padding: 0 !important; font: 400 16px/26px var(--mono) !important;
  color: var(--dim) !important; transition: color 0.15s;
}
.leaflet-popup-close-button:hover { color: var(--white) !important; background: none !important; }
.map-pop { padding-right: 16px; }
.map-pop { font-size: 0.78rem; line-height: 1.7; }
.leaflet-control-zoom a { background: #0d0d0f !important; color: var(--text) !important; border-color: var(--line) !important; }

.past { border-top: 1px solid var(--line); }
.past-row { display: grid; grid-template-columns: 160px 1fr auto auto; gap: 18px; align-items: baseline; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 0.8rem; color: var(--sub); }
.past-row b { color: var(--text); font-weight: 600; }

/* ---------------- ride feature (landing) ---------------- */

.ride-feature { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding: 34px 36px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); transition: border-color 0.2s, transform 0.25s var(--spring); }
.ride-feature:hover { border-color: var(--line2); transform: translateY(-3px); }
.rf-date { font-family: var(--mono); font-size: 0.72rem; color: var(--text2); letter-spacing: 0.04em; }
.rf-title { display: block; font-size: clamp(24px, 3vw, 36px); font-weight: 800; letter-spacing: -0.035em; margin: 10px 0 6px; }
.rf-meta { color: var(--sub); font-size: 0.82rem; }
.rf-desc { color: var(--text2); font-size: 0.86rem; margin-top: 12px; max-width: 52ch; }
.rf-r { display: grid; gap: 10px; justify-items: end; }
.rf-count { font-size: 0.8rem; color: var(--sub); }
.rf-count b { color: var(--white); }

/* ---------------- dispatch ---------------- */

.dispatch { display: flex; justify-content: space-between; align-items: center; gap: 26px; padding: 30px 34px; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); flex-wrap: wrap; }
.dispatch b { font-size: 1.05rem; letter-spacing: -0.02em; }
.dispatch p { color: var(--sub); font-size: 0.84rem; margin-top: 3px; }
.dispatch-form { display: flex; gap: 9px; }
.dispatch-form input { width: min(280px, 54vw); height: 46px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--line2); background: transparent; font-size: 0.86rem; transition: 0.15s; }
.dispatch-form input:focus { outline: none; border-color: var(--white); }
.dispatch-form input::placeholder { color: var(--dim); }

/* ---------------- sheets ---------------- */

.veil { position: fixed; inset: 0; z-index: 240; background: rgba(0, 0, 0, 0.68); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
body.cart-open [data-cart-backdrop], body.wish-open [data-wish-backdrop] { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 250; width: min(404px, 100vw);
  background: var(--surface); border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  transform: translateX(101%); transition: transform 0.4s var(--spring);
}
body.cart-open .sheet:not(.sheet-wish), body.wish-open .sheet-wish { transform: none; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.sheet-head b { font-size: 0.98rem; letter-spacing: -0.01em; }
.sheet-body { flex: 1; overflow-y: auto; padding: 14px 20px; }
.sheet-foot { border-top: 1px solid var(--line); padding: 16px 20px 20px; display: grid; gap: 12px; }
.sheet-empty { display: grid; gap: 16px; justify-items: center; padding: 80px 0; color: var(--sub); }

.ship { display: grid; gap: 9px; padding: 12px 14px; border-radius: var(--r); background: var(--raised); font-size: 0.78rem; color: var(--text2); margin-bottom: 14px; }
.ship.ok { color: var(--white); }
.ship-track { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.ship-track i { display: block; height: 100%; background: var(--white); border-radius: 3px; transition: width 0.5s var(--ease); }

.crow, .wrow { display: grid; grid-template-columns: 60px 1fr auto; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.crow-thumb, .wrow-thumb { width: 60px; height: 72px; border-radius: 8px; background: var(--tile); overflow: hidden; }
.crow-thumb svg, .wrow-thumb svg { width: 100%; height: 100%; }
.crow-mid, .wrow-mid { display: grid; gap: 4px; align-content: start; }
.crow-name, .wrow-name { font-size: 0.82rem; font-weight: 600; }
.crow-name:hover, .wrow-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.crow-opt, .wrow-sub { color: var(--sub); font-size: 0.74rem; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line2); border-radius: 8px; width: fit-content; margin-top: 4px; }
.stepper button { width: 26px; height: 26px; display: grid; place-items: center; color: var(--text2); border-radius: 6px; transition: 0.13s; }
.stepper button:hover { background: var(--white); color: #000; }
.stepper span { min-width: 24px; text-align: center; font-size: 0.78rem; font-weight: 600; }
.crow-r { display: grid; justify-items: end; align-content: space-between; }
.crow-r b { font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.ctotal { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.86rem; }
.ctotal b { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; }

/* ---------------- modals ---------------- */

.modal-veil { position: fixed; inset: 0; z-index: 300; background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 22px; overflow-y: auto; }
.modal-veil[hidden] { display: none; }
.modal { position: relative; width: min(520px, 100%); background: var(--surface); border: 1px solid var(--line2); border-radius: var(--r-xl); padding: 30px; animation: mopen 0.32s var(--spring); }
@keyframes mopen { from { opacity: 0; transform: translateY(16px) scale(0.985); } }
.modal-x { position: absolute; top: 14px; right: 14px; }
.modal-title { font-size: 1.18rem; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 18px; }
.modal-qv { width: min(760px, 100%); padding: 22px; }
.qv-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 26px; }
.qv-media { position: relative; aspect-ratio: 5/6; border-radius: var(--r-lg); background: var(--tile); border: 1px solid var(--line); overflow: hidden; }
.qv-info { display: grid; align-content: start; gap: 4px; padding-top: 6px; }
.qv-name { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.03em; margin-top: 6px; }
.qv-sub { color: var(--sub); font-size: 0.82rem; }
.qv-price { font-size: 1.1rem; font-weight: 700; margin-top: 10px; font-variant-numeric: tabular-nums; }
.qv-blurb { color: var(--text2); font-size: 0.84rem; margin: 10px 0 4px; }
.qv-info .sizes { margin: 8px 0 14px; }
.qv-more { justify-self: start; margin-top: 12px; font-size: 0.8rem; }
.qv-optnote { margin-top: 10px; color: var(--sub); font-size: 0.72rem; text-align: center; }

.co-sum { display: grid; gap: 8px; padding: 14px 16px; border-radius: var(--r); background: var(--raised); margin-bottom: 18px; font-size: 0.8rem; }
.co-line { display: flex; justify-content: space-between; gap: 14px; color: var(--sub); }
.co-line b { color: var(--text2); font-variant-numeric: tabular-nums; }
.co-line.co-total { border-top: 1px solid var(--line); padding-top: 9px; color: var(--text); }
.co-line.co-total b { color: var(--white); font-size: 0.95rem; }
.co-form { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field span { font-size: 0.74rem; font-weight: 600; color: var(--sub); }
.field span em { font-style: normal; color: var(--dim); font-weight: 400; }
.field input { height: 44px; padding: 0 15px; border-radius: 10px; border: 1px solid var(--line2); background: transparent; font-size: 0.88rem; transition: 0.15s; }
.field input:focus { outline: none; border-color: var(--white); }
.field input::placeholder { color: var(--dim); }
.modal-done { text-align: center; display: grid; justify-items: center; gap: 10px; }
.check { color: var(--white); }
.check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 0.5s 0.18s var(--ease) forwards; }
.check circle { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw 0.7s var(--ease) forwards; opacity: 0.35; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done-code { font-family: var(--mono); font-size: 1.15rem; letter-spacing: 0.08em; }
.done-sub { color: var(--sub); font-size: 0.84rem; margin-bottom: 10px; }
.done-sub b { color: var(--text); font-weight: 600; }

/* The transfer slip. Someone is about to retype an account number into a
   banking app, so the number is the largest thing on it and sits on its own. */
.pay-box { width: 100%; margin: 6px 0 4px; padding: 18px; border: 1px solid var(--line2); border-radius: var(--r); background: rgba(255, 255, 255, 0.02); display: grid; gap: 4px; justify-items: center; }
.pay-cap { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.pay-acct { font-family: var(--mono); font-size: 0.82rem; color: var(--sub); margin: 2px 0 0; }
.pay-acct b { display: block; margin-top: 5px; font-size: 1.18rem; letter-spacing: 0.06em; color: var(--white); word-break: break-all; }
.pay-holder { font-size: 0.84rem; color: var(--text); margin: 0; }
.pay-amt { display: flex; align-items: baseline; justify-content: center; gap: 10px; width: 100%; margin: 12px 0 14px; padding-top: 13px; border-top: 1px solid var(--line); }
.pay-amt span { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.pay-amt b { font-size: 1.1rem; color: var(--white); }

/* ---------------- palette ---------------- */

.cmdk { position: fixed; inset: 0; z-index: 320; }
.cmdk[hidden] { display: none; }
.cmdk-veil { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(4px); }
.cmdk-panel { position: relative; width: min(580px, calc(100vw - 32px)); margin: 13vh auto 0; background: var(--surface); border: 1px solid var(--line2); border-radius: var(--r-lg); overflow: hidden; animation: mopen 0.28s var(--spring); }
.cmdk-top { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); color: var(--sub); }
.cmdk-input { flex: 1; border: 0; background: none; font-size: 0.98rem; color: var(--text); }
.cmdk-input:focus { outline: none; }
.cmdk-input::placeholder { color: var(--dim); }
.cmdk-list { max-height: 384px; overflow-y: auto; padding: 8px; }
.cmdk-item { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 8px 10px; border-radius: 10px; transition: background 0.1s; }
.cmdk-item.is-sel { background: rgba(255, 255, 255, 0.07); }
.cmdk-thumb { width: 38px; height: 46px; border-radius: 7px; background: var(--tile); overflow: hidden; flex: none; }
.cmdk-thumb svg { width: 100%; height: 100%; }
.cmdk-ico { width: 38px; height: 46px; border-radius: 7px; background: var(--raised); display: grid; place-items: center; color: var(--dim); flex: none; }
.cmdk-txt { flex: 1; min-width: 0; display: grid; }
.cmdk-txt b { font-size: 0.86rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk-txt em { font-style: normal; color: var(--sub); font-size: 0.74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk-none { padding: 44px; text-align: center; color: var(--sub); font-size: 0.84rem; }

/* ---------------- toasts ---------------- */

.toast-root { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 350; display: grid; gap: 8px; justify-items: center; width: min(400px, calc(100vw - 40px)); }
.toast { padding: 12px 20px; border-radius: 99px; background: var(--white); color: #000; font-size: 0.82rem; font-weight: 600; opacity: 0; transform: translateY(14px) scale(0.96); transition: 0.32s var(--spring); }
.toast.show { opacity: 1; transform: none; }
.toast-err { background: #1a1a1c; color: var(--white); border: 1px solid var(--line3); }

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

.ft { border-top: 1px solid var(--line); margin-top: 70px; }
.ft-in { display: grid; grid-template-columns: 1fr auto; gap: 16px 30px; padding: 38px 0 44px; align-items: start; }
.ft-brand b { font-size: 0.86rem; font-weight: 800; letter-spacing: 0.08em; }
.ft-brand span { display: block; color: var(--sub); font-size: 0.78rem; margin-top: 5px; }
.ft-nav { display: flex; gap: 3px; }
.ft-nav a { padding: 7px 12px; border-radius: 99px; color: var(--sub); font-size: 0.8rem; transition: 0.15s; }
.ft-nav a:hover { color: var(--white); background: rgba(255, 255, 255, 0.06); }
.ft-fine { grid-column: 1/-1; color: var(--dim); font-size: 0.72rem; border-top: 1px solid var(--line); padding-top: 18px; }

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

@media (max-width: 1080px) {
  .grid.cols-4 { grid-template-columns: repeat(3, 1fr); }
  .pd-grid { grid-template-columns: 1fr; gap: 28px; }
  .pd-gal { position: static; }
  .crew-grid { grid-template-columns: 1fr; }
  .map-col { position: static; order: -1; }
  .map-box { height: 300px; }
  .dd { grid-template-columns: 1fr; }
  .dd-r { justify-items: start; text-align: left; }
  .dgrid { grid-template-columns: 1fr; }
  .feature, .ride-feature { grid-template-columns: 1fr; gap: 26px; }
  .feature-r, .rf-r { justify-items: start; }
  .creed { grid-template-columns: 1fr; }
  .qv-grid { grid-template-columns: 1fr; }
  .qv-media { max-width: 260px; }
}

@media (max-width: 720px) {
  .wrap { width: calc(100% - 30px); }
  .hd-in { width: calc(100% - 30px); gap: 10px; }
  .hd-logo span { display: none; }
  /* Five items no longer fit a phone. Scroll the strip and fade its right
     edge so a clipped label reads as "there is more", not as a broken layout —
     app.js keeps the current page's item scrolled into view. */
  .hd-nav {
    gap: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(to right, #000 82%, rgba(0, 0, 0, 0.15));
  }
  .hd-nav::-webkit-scrollbar { display: none; }
  .hd-nav a { padding: 8px 8px; font-size: 0.76rem; white-space: nowrap; }
  .sec { padding: 54px 0; }
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); gap: 22px 10px; }
  .stage-top { font-size: 0.56rem; }
  .stage-stats { gap: 22px; }
  .stage-stats b { font-size: 1.15rem; }
  .stage-bot { flex-direction: column; align-items: flex-start; }
  .scroll-cue i { height: 22px; }
  /* 모바일: 4열 그리드, 단위는 숫자 아래로 */
  .tm-xl { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; }
  .tm-xl .tm-grp { flex-direction: column; align-items: flex-start; }
  .tm-xl .tm-num { font-size: clamp(30px, 10vw, 44px); }
  .tm-xl .tm-u { font-size: 0.54rem; margin: 4px 0 0; }
  .tm-xl .tm-col { display: none; }
  .dd-desc, .dd-tag, .dd-title { max-width: 100%; overflow-wrap: anywhere; }
  .gauge { max-width: 100%; }
  .feature, .ride-feature, .dd, .dispatch { padding: 24px 20px; }
  .dispatch-form { width: 100%; }
  .dispatch-form input { flex: 1; width: auto; }
  .ride { grid-template-columns: 1fr; gap: 10px; }
  .ride-when { grid-auto-flow: column; justify-content: start; align-items: baseline; gap: 8px; }
  .past-row { grid-template-columns: 1fr auto; }
  .past-row span:nth-child(3) { display: none; }
  .modal { padding: 22px 18px; }
  .ft-in { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .sl-word { transform: none; opacity: 1; }
}

/* ============================================================
   v7 — gallery, high-contrast map, partner codes, content guard
   ============================================================ */

/* ---------------- content guard ---------------- */

body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, [contenteditable="true"] { -webkit-user-select: text; user-select: text; }
img, video, svg, .pmedia { -webkit-user-drag: none; user-drag: none; }

/* ---------------- partner bar ---------------- */

.promo-bar {
  position: fixed; top: var(--hd-h); left: 0; right: 0; z-index: 140;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 8px 16px; background: var(--white); color: #000;
  font-size: 0.78rem; font-weight: 600;
  animation: promo-in 0.4s var(--spring);
}
.promo-bar[hidden] { display: none; }
@keyframes promo-in { from { transform: translateY(-100%); } }
.promo-bar .ico { width: 24px; height: 24px; color: rgba(0, 0, 0, 0.55); }
.promo-bar .ico:hover { background: rgba(0, 0, 0, 0.1); color: #000; }
body:has(.promo-bar:not([hidden])) #app { padding-top: calc(var(--hd-h) + 36px); }
body.on-landing:has(.promo-bar:not([hidden])) #app { padding-top: 0; }

.promo-row { display: flex; gap: 8px; }
.promo-row input {
  flex: 1; height: 36px; padding: 0 13px; border-radius: 9px;
  border: 1px solid var(--line2); background: transparent; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.promo-row input:focus { outline: none; border-color: var(--white); }
.promo-row input::placeholder { text-transform: none; letter-spacing: 0; color: var(--dim); }
.cline { display: flex; justify-content: space-between; font-size: 0.76rem; color: var(--text2); }
.cline b { color: var(--white); }
.done-save { color: var(--white); font-weight: 600; font-size: 0.84rem; }

/* ---------------- gallery ---------------- */



/* lightbox */
body.lb-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 320; background: rgba(0, 0, 0, 0.94);
  display: grid; place-items: center; padding: 46px 60px;
  animation: fadein 0.24s ease;
}
.lb-figure { display: grid; gap: 14px; justify-items: center; max-width: 100%; max-height: 100%; }
.lb-img, .lb-vid { max-width: min(1100px, 88vw); max-height: 78vh; border-radius: var(--r); display: block; }
.lb-embed { width: min(1100px, 88vw); aspect-ratio: 16/9; border: 0; border-radius: var(--r); }
.lb-cap { display: grid; gap: 3px; justify-items: center; text-align: center; }
.lb-cap b { font-size: 0.92rem; }
.lb-cap span { color: var(--sub); font-size: 0.8rem; }
.lb-cap em { font-style: normal; font-family: var(--mono); font-size: 0.66rem; color: var(--dim); margin-top: 4px; }
.lb-x { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border: 1px solid var(--line2); border-radius: 50%; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line2);
  font-size: 1.5rem; line-height: 1; color: var(--text2); transition: 0.16s var(--spring);
}
.lb-nav:hover { background: var(--white); color: #000; border-color: var(--white); }
.lb-nav.prev { left: 16px; }
.lb-nav.next { right: 16px; }

/* ---------------- map: high contrast night ---------------- */

/* Carto dark tiles, brightness-lifted: roads/water/labels become legible while
   the surrounding canvas stays black. Tuned against the live map. */
.nc-map .nc-tiles { filter: brightness(2.35) contrast(1.22) saturate(0); }
.nc-map .leaflet-container { background: #000; }
.nc-map .leaflet-control-attribution {
  background: rgba(0, 0, 0, 0.6) !important; color: var(--dim) !important;
  font-size: 9px !important; padding: 2px 6px !important; border-radius: 5px 0 0 0;
  backdrop-filter: blur(4px);
}
.nc-map .leaflet-control-attribution a { color: var(--sub) !important; }
.nc-map .leaflet-control-zoom { border: 1px solid var(--line2) !important; border-radius: 8px; overflow: hidden; }
.nc-map .leaflet-control-zoom a {
  background: rgba(10, 10, 11, 0.9) !important; color: var(--text) !important;
  border-color: var(--line) !important; width: 30px; height: 30px; line-height: 30px;
}
.nc-map .leaflet-control-zoom a:hover { background: var(--white) !important; color: #000 !important; }

.map-pop { display: grid; gap: 2px; }
.map-pop b { font-size: 0.84rem; }
.map-pop span { color: var(--sub); font-size: 0.74rem; }

.map-legend { border-top: 1px solid var(--line); display: grid; }
.ml-row {
  display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center;
  padding: 10px 16px; text-align: left; font-size: 0.78rem;
  border-bottom: 1px solid var(--line); transition: background 0.14s;
}
.ml-row:last-child { border-bottom: 0; }
.ml-row:hover { background: rgba(255, 255, 255, 0.05); }
.ml-n { font-family: var(--mono); font-size: 0.66rem; color: var(--dim); }
.ml-name { color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-row:hover .ml-name { color: var(--white); }
.ml-km { font-family: var(--mono); font-size: 0.7rem; color: var(--sub); }
.map-hint { color: var(--dim); font-size: 0.7rem; }

.crew-stats { display: flex; gap: 34px; margin-top: 22px; flex-wrap: wrap; }
.crew-stats span { display: grid; gap: 2px; }
.crew-stats b { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.crew-stats em {
  font-style: normal; font-family: var(--mono); font-size: 0.66rem;
  letter-spacing: 0.13em; color: var(--dim); text-transform: uppercase;
}

@media (max-width: 720px) {
  .lightbox { padding: 60px 14px 24px; }
  .lb-nav { width: 38px; height: 38px; }
  .lb-nav.prev { left: 6px; } .lb-nav.next { right: 6px; }
  .crew-stats { gap: 20px; }
  .crew-stats b { font-size: 1.15rem; }
}

/* ---------------- people ---------------- */

/* One block of names. Hovering the wall dims every name so the one under the
   cursor is the only thing lit — the reveal class stays on the wall, not on the
   names, so its 0.6s opacity transition can't fight the dimming. */
.pp-wall { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 26px; }
.pp-n {
  display: inline-flex; align-items: baseline; gap: 4px;
  font-size: clamp(30px, 4.4vw, 56px); font-weight: 800; letter-spacing: -0.04em;
  line-height: 1.06; color: var(--text2);
  transition: color 0.18s, opacity 0.18s;
}
.pp-n i { font-style: normal; font-size: 0.3em; color: var(--dim); transition: transform 0.24s var(--spring), color 0.18s; }

/* :has, not :hover, on the wall — otherwise resting the cursor in the gap
   between two names dims every one of them and lights nothing. */
.pp-wall:has(.pp-n:hover) .pp-n,
.pp-wall:has(a.pp-n:focus-visible) .pp-n { opacity: 0.26; }
.pp-wall a.pp-n:hover, .pp-wall a.pp-n:focus-visible { opacity: 1; color: var(--white); }
a.pp-n:hover i, a.pp-n:focus-visible i { color: var(--white); transform: translate(2px, -3px); }
a.pp-n:focus-visible { outline: none; text-decoration: underline; text-underline-offset: 6px; }

/* Nobody bound a link yet — dimmer, and it stays put on hover. */
.pp-n.is-flat { color: var(--dim); }

/* the empty state is a flex child here, so let it take the whole row */
.pp-wall .empty { flex: 1 1 100%; }

.pp-count {
  display: block; margin-top: 34px; font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim);
}

@media (max-width: 720px) {
  /* a little vertical padding turns the names into comfortable tap targets
     without opening up the block */
  /* three columns of ~105px: the label only fits on one line if the tracking
     comes in, and a ragged two-line label under a big number reads as broken */
  .stage-stats { gap: 14px; }
  .stage-stats em { font-size: 0.6rem; letter-spacing: 0.06em; }
  .crew-stats em { letter-spacing: 0.08em; }

  .pp-wall { gap: 0 18px; }
  .pp-n { padding: 5px 0; }
}

@media (max-width: 720px) {
  .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .seg::-webkit-scrollbar { display: none; }
}

/* Copy that names a gesture has to match the device — telling a phone user to
   hover is just wrong. */
.on-touch { display: none; }
@media (pointer: coarse) {
  .on-hover { display: none; }
  .on-touch { display: inline; }
}

/* ---------------- mobile touch & input hardening ---------------- */

@media (max-width: 720px) {
  /* Grow the hit area without changing the look: padding pushes the box out,
     the negative margin pulls the layout back. Anything under ~40px tall is a
     coin-flip to tap on a phone. */
  .hd-logo { padding: 10px 0; margin: -10px 0; }
  .hd-nav a { padding-top: 11px; padding-bottom: 11px; }
  .crumbs a { padding: 10px 0; margin: -10px 0; }
  .sec-link { padding: 11px 0; margin: -11px 0; }
  .scroll-cue { padding: 10px 0; margin: -10px 0; }
  .tlink { padding: 10px 0; margin: -10px 0; }
  .wish { width: 38px; height: 38px; }
  .ml-row { min-height: 42px; }

  /* iOS zooms the whole page in when a focused field is under 16px, and never
     zooms back out on its own. 16px is the threshold, not a design choice —
     the two form inputs set their own size, so they are named explicitly. */
  input, textarea, select, .cmdk-input, .sel,
  .dispatch-form input, .rsvp input { font-size: 16px; }

  /* the rest of the sub-40px controls people actually aim at */
  .chip { height: 40px; }
  .ca-btn { min-height: 40px; }
  .ca-size { height: 36px; }
  .seg-btn { height: 40px; }
  .rsvp .btn-sm { height: 40px; }
  .ft-nav a { padding: 10px 0; margin: -10px 0; }
  .ico { width: 40px; height: 40px; }
  .leaflet-control-zoom a { width: 36px !important; height: 36px !important; line-height: 36px !important; }

  /* the tab strip scrolls here, so fade the edge to say so */
  .seg { mask-image: linear-gradient(to right, #000 90%, rgba(0, 0, 0, 0.25)); }
}

/* ============================================================
   v8 — affiliate page
   Everything here is prefixed .af- so it cannot collide with the
   section/card classes it sits next to.
   ============================================================ */

.af-hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }

/* ---------------- 01 steps ---------------- */

.af-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.af-step { background: var(--bg); padding: 28px 24px 32px; display: grid; gap: 8px; align-content: start; transition: background 0.25s; }
.af-step:hover { background: var(--surface); }
.af-step-n { font-family: var(--mono); font-size: 1.35rem; color: var(--white); font-variant-numeric: tabular-nums; line-height: 1; }
.af-step b { font-size: 0.95rem; font-weight: 700; letter-spacing: -0.02em; }
.af-step p { color: var(--sub); font-size: 0.84rem; }
.af-step code {
  font-family: var(--mono); font-size: 0.78rem; color: var(--text2);
  background: var(--tile); border: 1px solid var(--line); border-radius: 5px;
  padding: 1px 5px; overflow-wrap: anywhere;
}

/* ---------------- 02 terms ---------------- */

.af-terms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.af-term {
  border: 1px solid var(--line2); border-radius: var(--r-lg);
  padding: 30px 28px; background: var(--surface);
  display: grid; gap: 10px; align-content: start;
}
.af-term-k { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--white); }
.af-term p { color: var(--text2); font-size: 0.88rem; }
.af-note {
  margin-top: 18px; border-left: 2px solid var(--line3); padding-left: 14px;
  color: var(--text2); font-size: 0.86rem; max-width: 74ch;
}

/* ---------------- 03 console ---------------- */

.af-list {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border-block: 1px solid var(--line);
}
.af-li { background: var(--bg); padding: 20px 18px; display: grid; gap: 4px; align-content: start; }
.af-li b { font-size: 0.9rem; font-weight: 650; letter-spacing: -0.015em; }
.af-li span { color: var(--sub); font-size: 0.82rem; }

.af-walls { display: grid; gap: 11px; margin-top: 24px; }
.af-wall { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; color: var(--text2); font-size: 0.86rem; }
.af-wall i {
  font-style: normal; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em;
  color: var(--white); border: 1px solid var(--line2); border-radius: 4px; padding: 1px 7px; flex: none;
}

/* ---------------- 04 who ---------------- */

.af-who-row {
  display: grid; grid-template-columns: 190px 1fr; gap: 26px; align-items: baseline;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.af-who-row:first-child { border-top: 1px solid var(--line); }
.af-who-row b { font-size: clamp(17px, 2vw, 22px); font-weight: 800; letter-spacing: -0.03em; }
.af-who-row span { color: var(--sub); font-size: 0.88rem; }

/* ---------------- cta ---------------- */

.af-cta {
  display: flex; justify-content: space-between; align-items: center; gap: 26px;
  padding: 32px 34px; border-radius: var(--r-xl);
  border: 1px solid var(--line); background: var(--surface); flex-wrap: wrap;
}
.af-cta > div:first-child b { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.025em; }
.af-cta > div:first-child p { color: var(--sub); font-size: 0.86rem; margin-top: 5px; max-width: 48ch; }
.af-cta-r { display: grid; gap: 10px; justify-items: end; }
.af-cta-r .fine { text-align: right; }

@media (max-width: 1080px) {
  .af-steps { grid-template-columns: repeat(2, 1fr); }
  .af-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .af-steps, .af-list { grid-template-columns: 1fr; }
  .af-terms { grid-template-columns: 1fr; }
  .af-who-row { grid-template-columns: 1fr; gap: 6px; }
  .af-cta { padding: 26px 22px; }
  .af-cta-r { justify-items: stretch; width: 100%; }
  .af-cta-r .fine { text-align: left; }
  /* Not `flex: 1` — a zero basis keeps both buttons on one line, and a button
     cannot shrink below its own label, so they push past the viewport on a
     narrow phone. Stacking also gives each one a full-width tap target. */
  .af-hero-cta { flex-direction: column; align-items: stretch; }
}

/* ---------------- gallery: contact sheet ---------------- */

/* Uniform frames in a hairline grid. The photographs are night shots that run
   almost to black, so the grid lines are what separate them from the page and
   from each other — without them the wall reads as one dark rectangle. */
/* Rules are drawn per frame, not as a background behind the gaps: a last row
   that only half fills would otherwise show the sheet's backing colour in the
   empty cells. */
.csheet {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line2); border-left: 1px solid var(--line2);
}
.cs-frame {
  position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #000;
  display: block; width: 100%; padding: 0; cursor: pointer;
  border-right: 1px solid var(--line2); border-bottom: 1px solid var(--line2);
  transition: opacity 0.3s;
}
.cs-img, .cs-vid { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s var(--ease); }

/* Same spotlight as the People wall: the sheet dims, the frame you point at stays. */
.csheet:has(.cs-frame:hover) .cs-frame { opacity: 0.3; }
.cs-frame:hover, .cs-frame:focus-visible { opacity: 1; }
.cs-frame:hover .cs-img, .cs-frame:hover .cs-vid { transform: scale(1.06); }
.cs-frame:focus-visible { outline: 1px solid var(--white); outline-offset: -1px; }

.cs-n {
  position: absolute; top: 8px; left: 9px; z-index: 2;
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.85); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}
.cs-play {
  position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.7); z-index: 2;
  background: rgba(0, 0, 0, 0.35); backdrop-filter: blur(2px);
}
.cs-play::after {
  content: ''; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%);
  border-left: 9px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.cs-cap {
  position: absolute; inset: auto 0 0 0; z-index: 2; display: grid; gap: 1px;
  padding: 30px 10px 9px; text-align: left;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92), transparent);
  opacity: 0; transition: opacity 0.25s;
}
.cs-frame:hover .cs-cap, .cs-frame:focus-visible .cs-cap { opacity: 1; }
.cs-cap b { font-size: 0.8rem; font-weight: 600; }
.cs-cap em { font-style: normal; font-size: 0.72rem; color: var(--text2); }
.cs-cap u {
  text-decoration: none; margin-top: 3px;
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--sub);
}

@media (max-width: 1080px) { .csheet { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) {
  .csheet { grid-template-columns: repeat(2, 1fr); }
  /* no hover on a phone — the caption has to be there without one */
  .cs-cap { opacity: 1; padding-top: 24px; }
  .csheet:has(.cs-frame:hover) .cs-frame { opacity: 1; }
}
