/* VAEL store — light. White page, black type, one live-green dot.
   (Token names are from the dark version: --black is the page, --silver is the ink.) */
:root {
  --black: #ffffff;
  --coal: #f4f4f2;
  --smoke: #ffffff;
  --silver: #0b0b0b;
  --mute: rgba(11, 11, 11, 0.62);
  --faint: rgba(11, 11, 11, 0.42);
  --line: rgba(11, 11, 11, 0.12);
  --warn: #c2341f;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Geist', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, Menlo, monospace;
  --pad: clamp(18px, 3.2vw, 48px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--black); -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
body { background: var(--black); color: var(--silver); font-family: var(--sans); font-weight: 300; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
::selection { background: var(--silver); color: var(--black); }
[hidden] { display: none !important; }
:focus-visible { outline: 1px solid var(--silver); outline-offset: 4px; }
.mono { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.serif em, .display em { font-style: italic; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--silver); color: var(--black); padding: 10px 14px; }
.skip:focus { left: 8px; }
.kicker { color: var(--mute); margin-bottom: 18px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 30px; border-radius: 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; transition: background 0.3s, color 0.3s, border-color 0.3s, opacity 0.3s; }
.btn-silver, .btn-light, .btn-red { background: var(--silver); color: var(--black); }
.btn-silver:hover, .btn-light:hover, .btn-red:hover { background: #333; }
.btn-ghost { border: 1px solid var(--faint); color: var(--silver); }
.btn-ghost:hover { border-color: var(--silver); }
.btn-full { width: 100%; height: 60px; }
.btn[disabled] { opacity: 0.35; pointer-events: none; }

/* top bar */
.bar, .nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 18px var(--pad); transition: background 0.5s; }
.bar.solid { background: rgba(255, 255, 255, 0.94); border-bottom: 1px solid var(--line); }
.word, .logo { font-family: var(--sans); font-weight: 500; font-size: 15px; letter-spacing: 0.5em; text-decoration: none; }
.bar-mid { color: var(--mute); text-align: center; }
.bar-shop { justify-self: end; text-decoration: none; }
.bar-shop:hover { color: #fff; }

/* shared film layer */
.film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.veil { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 45%, rgba(5,5,5,0.05), rgba(5,5,5,0.7)), linear-gradient(180deg, rgba(5,5,5,0.4), rgba(5,5,5,0) 30%, rgba(5,5,5,0) 60%, rgba(5,5,5,0.85)); }
.veil--deep { background: rgba(5, 5, 5, 0.8); }
.credits-stage .film { filter: blur(3px) brightness(0.7); transform: scale(1.04); }
/* live drop counter */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.live { position: relative; min-height: 100svh; overflow: hidden; display: grid; align-items: center; background: #000; }
.live-film { position: absolute; left: 50%; top: 50%; width: min(120vh, 110vw); height: auto; aspect-ratio: 16 / 9; object-fit: cover; transform: translate(-50%, -50%) scale(1.25); opacity: 0.5; }
.live-shade { position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 50%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 70%, #000 100%); }
.live-inner { position: relative; z-index: 2; width: 100%; max-width: 1200px; margin: 0 auto; padding: 110px var(--pad) 60px; display: grid; justify-items: center; text-align: center; }
.live-tag { display: inline-flex; align-items: center; gap: 10px; color: var(--silver); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); animation: pulse 1.8s ease-out infinite; }
.live.closed .dot { background: var(--silver); animation: none; }
.live.sold .dot { background: var(--warn); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); } 100% { box-shadow: 0 0 0 12px rgba(74, 222, 128, 0); } }
.count { margin: 3vh 0 1vh; }
.count-num { font-family: var(--sans); font-weight: 600; font-size: clamp(150px, 30vw, 420px); line-height: 0.82; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.count-num small { font-size: 0.22em; letter-spacing: -0.02em; color: var(--mute); font-weight: 500; margin-left: 0.15em; }
.live.closed .count-num { font-size: clamp(64px, 12vw, 190px); letter-spacing: -0.04em; }
.count-label { color: var(--mute); font-size: 13px; margin-top: 14px; }
.count.bump .count-num span { animation: bump 0.6s var(--ease); }
@keyframes bump { from { opacity: 0.3; transform: translateY(-6%); } to { opacity: 1; transform: none; } }
.count-num span { display: inline-block; }
.size-bars { list-style: none; display: grid; gap: 12px; width: min(520px, 100%); margin: 5vh 0 4vh; }
.size-bars li { display: grid; grid-template-columns: 26px 1fr 70px; align-items: center; gap: 14px; }
.size-bars li span { text-align: left; color: var(--silver); }
.size-bars li b { text-align: right; color: var(--mute); font-weight: 400; }
.size-bars i { display: block; height: 2px; background: var(--line); }
.size-bars u { display: block; height: 100%; width: 0; background: var(--silver); transition: width 1.2s var(--ease); }
.size-bars li.out span, .size-bars li.out b { color: var(--faint); text-decoration: line-through; }
.live-row { display: grid; justify-items: center; gap: 16px; }
.live-meta { color: var(--faint); }
.feed { list-style: none; margin-top: 5vh; display: grid; gap: 6px; color: var(--mute); font-size: 10px; }
.feed li { animation: in 0.8s var(--ease) both; }
.feed li b { color: var(--silver); font-weight: 400; }
@keyframes in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* shop / the reveal */
.shop { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); padding: clamp(100px, 14vh, 160px) var(--pad) clamp(80px, 12vh, 140px); background: var(--black); }
.reveal { position: sticky; top: 90px; align-self: start; }
.stage { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #000; }
.stage-film { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); }
.stage-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumbs { list-style: none; display: flex; gap: 10px; margin-top: 12px; }
.thumb { width: 72px; height: 72px; overflow: hidden; background: #000; border: 1px solid var(--line); display: grid; place-items: center; transition: border-color 0.3s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-on { border-color: var(--silver); }
.thumb span { font-size: 10px; }

.buy { padding-top: 10px; }
.buy-title { font-size: clamp(64px, 7vw, 120px); line-height: 0.9; }
.price { font-family: var(--serif); font-size: 44px; margin: 10px 0 22px; color: var(--silver); }
.lede { font-size: 16px; line-height: 1.65; color: var(--mute); max-width: 44ch; }
.colors { border: 0; display: flex; gap: 10px; margin-top: 28px; }
.colors legend { margin-bottom: 12px; color: var(--mute); }
.colors label { position: relative; flex: 1; max-width: 132px; }
.colors input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.colors label span { display: flex; align-items: center; justify-content: center; gap: 10px; height: 48px; border: 1px solid var(--line); font-size: 14px; }
.colors input:checked + span { border-color: var(--silver); }
.colors input:focus-visible + span { outline: 1px solid var(--silver); outline-offset: 3px; }
.swatch { width: 14px; height: 14px; border: 1px solid #888; border-radius: 50%; }
.swatch-black { background: #181818; }
.swatch-white { background: #eceae4; }
.variant-preview { min-height: 440px; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; color: var(--silver); }
.variant-preview p { font-size: 90px; }
.variant-preview span { color: var(--mute); }
.co-summary.no-image { grid-template-columns: 1fr; }
.shipping-note { text-align: left; margin-top: 0; line-height: 1.6; color: var(--mute); }
.sizes { border: 0; display: flex; gap: 10px; margin-top: 34px; }
.sizes legend { width: 100%; margin-bottom: 12px; color: var(--mute); }
.size-msg { color: var(--warn); margin-left: 8px; }
.sizes label { position: relative; flex: 1; max-width: 132px; }
.sizes input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.sizes label span { display: grid; gap: 4px; place-items: center; height: 70px; border: 1px solid var(--line); transition: background 0.25s, color 0.25s, border-color 0.25s; }
.sizes label span b { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1; }
.sizes label span small { font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; color: var(--mute); text-transform: uppercase; }
.sizes label:hover span { border-color: var(--faint); }
.sizes input:checked + span { background: var(--silver); color: var(--black); border-color: var(--silver); }
.sizes input:checked + span small { color: rgba(255, 255, 255, 0.65); }
.sizes input:focus-visible + span { outline: 1px solid var(--silver); outline-offset: 3px; }
.sizes input:disabled + span { opacity: 0.3; }
.sizes input:disabled + span b { text-decoration: line-through; }
.sizes input:disabled { cursor: not-allowed; }
.qty { display: flex; align-items: center; gap: 16px; margin: 22px 0 26px; }
.qty button { width: 40px; height: 40px; border: 1px solid var(--line); font-size: 16px; }
.qty button:hover { border-color: var(--faint); }
.qty output { min-width: 14px; text-align: center; font-family: var(--mono); }
.qty-max { color: var(--faint); margin-left: auto; }
.fine { color: var(--faint); margin-top: 14px; text-align: center; font-size: 10px; }
.stock-line { margin-top: 44px; display: grid; gap: 10px; }
.stock-line i { display: block; height: 1px; background: var(--line); }
.stock-line u { display: block; height: 100%; width: 100%; background: var(--silver); transition: width 1.2s var(--ease); }
.stock-line p { color: var(--mute); }

/* end credits */
.credits { position: relative; height: 260vh; }
.credits-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.roll { position: absolute; left: 50%; top: 0; width: min(92vw, 640px); transform: translate(-50%, 100vh); z-index: 4; text-align: center; padding-bottom: 20vh; will-change: transform; }
.c-k { color: var(--mute); }
.c-title { font-size: clamp(56px, 7vw, 108px); line-height: 0.95; margin: 14px 0 9vh; }
.c-list { display: grid; gap: 26px; margin-bottom: 9vh; }
.c-list div { display: grid; gap: 8px; }
.c-list dt { color: var(--faint); }
.c-list dd { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; }
.c-list a { text-underline-offset: 4px; text-decoration-thickness: 1px; }
.c-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 26px; }
.c-legal a { color: var(--mute); text-decoration: none; }
.c-legal a:hover { color: var(--silver); }
.c-biz { color: var(--faint); margin-top: 18px; text-transform: none; letter-spacing: 0.04em; line-height: 1.7; }
.c-end { font-size: clamp(40px, 5vw, 76px); margin: 14vh 0 18px; }
.c-copy { color: var(--faint); }

/* unfilled business details stand out until js/business.js is filled in */
.todo { background: rgba(224, 121, 111, 0.16); outline: 1px dashed var(--warn); padding: 0 4px; }

/* checkout */
.checkout { margin: auto 0 auto auto; height: 100%; max-height: 100dvh; width: min(560px, 100%); max-width: 100%; border: 0; border-left: 1px solid var(--line); background: var(--coal); color: var(--silver); }
.checkout[open] { animation: slide 0.6s var(--ease); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.checkout::backdrop { background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(6px); }
.co { padding: 28px var(--pad) 44px; display: grid; gap: 22px; }
.co-head { display: flex; justify-content: space-between; align-items: center; }
.co-head h2 { font-size: 46px; line-height: 1; }
.co-close { width: 44px; height: 44px; border: 1px solid var(--line); font-size: 13px; }
.co-summary { display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: center; padding: 16px; border: 1px solid var(--line); }
.co-summary img { width: 76px; height: 76px; object-fit: cover; }
.co-summary b { font-family: var(--serif); font-weight: 400; font-size: 22px; }
.co-summary dl { grid-column: 1 / -1; display: grid; gap: 7px; border-top: 1px solid var(--line); padding-top: 12px; color: var(--mute); }
.co-summary dl div { display: flex; justify-content: space-between; }
.co-total { color: var(--silver); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f { display: grid; gap: 7px; }
.f-wide { grid-column: 1 / -1; }
.f span { color: var(--mute); }
.f input, .f textarea, .f select { height: 50px; padding: 0 16px; border: 1px solid var(--line); background: var(--smoke); font-size: 16px; color: var(--silver); border-radius: 0; width: 100%; min-width: 0; }
.f input::placeholder { color: var(--faint); }
.f input:focus, .f textarea:focus { outline: none; border-color: var(--silver); }
.f em, .accept em { font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--warn); }
.f.bad input, .f.bad select { border-color: var(--warn); }
.accept { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--mute); }
.accept input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--silver); }
.accept span { flex: 1; }
.accept a { color: var(--silver); }
.accept em { flex-basis: 100%; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.co-error { color: var(--warn); text-transform: none; letter-spacing: 0.04em; font-size: 12px; }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 95; background: var(--silver); color: var(--black); padding: 14px 22px; text-transform: none; letter-spacing: 0.04em; font-size: 12px; max-width: calc(100% - 32px); text-align: center; }

/* legacy names used by thanks/cancel pages */
.display { font-family: var(--serif); font-weight: 400; line-height: 0.92; font-size: clamp(64px, 9vw, 150px); }
.display span { display: block; }
.display--md { font-size: clamp(52px, 6.5vw, 110px); }
.display--sm { font-size: clamp(38px, 4vw, 56px); }

/* small screens */
@media (max-width: 860px) {
  .bar { grid-template-columns: 1fr auto; }
  .bar-mid { display: none; }
  .shop { grid-template-columns: 1fr; padding-top: 80px; }
  .reveal { position: static; }
  .fields { grid-template-columns: 1fr; }
  .checkout { margin: 0; width: 100%; border-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .checkout[open], .stock-line u, .size-bars u, .dot { transition: none; animation: none; }
  .roll { transform: translate(-50%, 0) !important; position: relative; }
  .credits { height: auto; }
  .credits-stage { position: relative; height: auto; padding: 14vh 0; }
}

/* ===================================================== immersive layer (home) */
body.is-loading { overflow: hidden; }
.boot { position: fixed; inset: 0; z-index: 120; background: #000; display: grid; grid-template-rows: auto 1fr auto; padding: 28px var(--pad); transition: opacity 1s var(--ease), visibility 1s; }
.boot.out { opacity: 0; visibility: hidden; }
.boot-lines { display: grid; gap: 6px; color: var(--faint); }
.boot-lines p:first-child { color: var(--silver); }
.boot-lines p[data-boot-line]::before { content: '— '; }
.boot-lines p[data-boot-line].on { color: var(--mute); }
.boot-lines p[data-boot-line].on::after { content: '  ok'; color: #4ade80; }
.boot-num { align-self: center; justify-self: center; font-family: var(--sans); font-weight: 600; font-size: clamp(120px, 24vw, 340px); letter-spacing: -0.06em; line-height: 0.8; font-variant-numeric: tabular-nums; }
.boot-num small { font-size: 0.2em; color: var(--mute); letter-spacing: 0; margin-left: 0.1em; }
.boot-bar { height: 1px; background: var(--line); }
.boot-bar i { display: block; height: 100%; width: 0; background: var(--silver); }
.boot.gated .boot-num, .boot.gated .boot-bar, .boot.gated .boot-lines { opacity: 0; transition: opacity 0.6s; }
.gate { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 30px; text-align: center; padding: var(--pad); animation: gate-in 1.2s var(--ease) both; }
@keyframes gate-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.gate-k { color: var(--mute); }
.gate-q { font-family: var(--sans); font-weight: 600; font-size: clamp(52px, 8vw, 128px); letter-spacing: -0.045em; line-height: 0.9; }
.gate-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.hero-gl { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 0.6s; }
.gl-on .hero-gl { opacity: 0.55; }
.gl-on .fallback-film { display: none; }
.gl-on .live { background: transparent; }
.gl-on .live-shade { background: radial-gradient(60% 60% at 50% 50%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.35) 70%, rgba(0,0,0,0.85) 100%); }
main { position: relative; z-index: 1; }
.shop, .credits { position: relative; z-index: 2; }

.sound-btn { display: inline-flex; align-items: center; gap: 3px; height: 32px; color: var(--mute); }
.sound-btn i { width: 2px; height: 5px; background: currentColor; transition: height 0.3s; }
.sound-btn span { margin-left: 8px; }
.sound-btn[aria-pressed='true'] { color: var(--silver); }
.sound-btn[aria-pressed='true'] i { animation: eq 0.9s ease-in-out infinite alternate; }
.sound-btn[aria-pressed='true'] i:nth-child(2) { animation-delay: -0.3s; }
.sound-btn[aria-pressed='true'] i:nth-child(3) { animation-delay: -0.6s; }
@keyframes eq { from { height: 3px; } to { height: 13px; } }

/* spec walk */
.spec { position: relative; height: 480vh; }
.spec-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.spec-list { list-style: none; }
.spec-item { position: absolute; right: var(--pad); top: 34vh; width: min(360px, 34vw); display: grid; gap: 12px; opacity: 0; transform: translateY(14px); transition: opacity 0.6s, transform 0.9s var(--ease); }
.spec-item.on { opacity: 1; transform: none; }
.spec-item span { color: var(--mute); }
.spec-item b { font-family: var(--sans); font-weight: 600; font-size: clamp(34px, 3.6vw, 58px); line-height: 0.95; letter-spacing: -0.035em; }
.spec-item em { font-style: normal; color: var(--mute); line-height: 1.6; font-size: 15px; }
.spec-item::before { content: ''; position: absolute; left: -16px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.leader { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.leader line { stroke: var(--silver); stroke-width: 1; opacity: 0; transition: opacity 0.4s; }
.leader circle { fill: var(--silver); opacity: 0; transition: opacity 0.4s; }
.leader.on line { opacity: 0.55; }
.leader.on circle { opacity: 1; }
.spec-hud { position: absolute; left: var(--pad); bottom: 28px; color: var(--faint); font-variant-numeric: tabular-nums; }
.spec-cta { position: absolute; right: var(--pad); bottom: 22px; }
.no-gl .spec { height: auto; }
.no-gl .spec-stage { position: relative; height: auto; padding: 120px var(--pad); }
.no-gl .spec-item { position: relative; right: auto; top: auto; width: auto; opacity: 1; transform: none; margin-bottom: 40px; }

/* the white version in 3D */
.variant-preview { position: absolute; inset: 0; background: radial-gradient(70% 70% at 50% 45%, #1a1a1a, #000); }
.white-gl { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.white-note { position: absolute; left: 14px; bottom: 12px; color: var(--mute); }

@media (max-width: 860px) {
  .spec-item { left: var(--pad); right: var(--pad); top: auto; bottom: 90px; width: auto; }
  .spec-item::before { display: none; }
  .spec-cta { left: var(--pad); right: var(--pad); }
  .spec-hud { top: 74px; bottom: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .gate, .boot { animation: none; transition: none; }
}
