:root {
  --bg: #0d110e;
  --ink: #f3efe6;
  --dim: rgba(243, 239, 230, 0.68);
  --line: rgba(243, 239, 230, 0.16);
  --accent: #ffc65c;
  --panel: rgba(13, 17, 14, 0.62);
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --t-xfast: 100ms; --t-fast: 200ms; --t-normal: 300ms; --t-slow: 400ms; --t-xslow: 500ms; --t-xxslow: 800ms;
  --ease-out: cubic-bezier(.15, 1, .35, 1);
  --ease-in-out: cubic-bezier(.65, 0, 0, 1);
  --ease-in: cubic-bezier(.8, 0, 1, 1);
  --gut: clamp(16px, 4vw, 56px);
}
@media (prefers-reduced-motion: reduce) {
  :root { --t-xfast: 0ms; --t-fast: 0ms; --t-normal: 0ms; --t-slow: 0ms; --t-xslow: 0ms; --t-xxslow: 0ms; }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--ink); }
body { font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
button { font: inherit; color: inherit; }
a { color: inherit; }

#stage { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; }
.vignette { position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(5, 7, 6, 0.55) 100%),
              linear-gradient(90deg, rgba(5, 7, 6, 0.55), transparent 48%);
  transition: opacity var(--t-xxslow) var(--ease-out); }
body:not([data-state="landing"]) .vignette { opacity: 0.55; }
.grain { position: fixed; inset: -50%; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } 100% { transform: translate(0, 0); } }
@media (prefers-reduced-motion: reduce) { .grain { animation: none; } }

/* ---------- header ---------- */
.bar { position: fixed; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between;
  padding: max(18px, env(safe-area-inset-top)) var(--gut) 18px; z-index: 5; pointer-events: none; }
.bar > * { pointer-events: auto; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.logo svg { width: 28px; height: 28px; }
.logo em { font-style: normal; font-weight: 300; opacity: 0.75; }
.bar nav { display: flex; gap: clamp(14px, 3vw, 32px); }
.bar nav a { text-decoration: none; font-size: 14px; font-weight: 500; opacity: 0.85; position: relative; padding: 6px 0;
  transition: opacity var(--t-fast) var(--ease-out); }
.bar nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform var(--t-normal) var(--ease-out); }
.bar nav a:hover { opacity: 1; }
.bar nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- what shows in each state ---------- */
[data-show] { opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--t-xslow) var(--ease-out), translate var(--t-xxslow) var(--ease-out), visibility 0s linear var(--t-xxslow); }
body[data-state="landing"] [data-show="landing"],
body[data-state="bag"] [data-show="bag"],
body[data-state="club"] [data-show="club"] { opacity: 1; visibility: visible; pointer-events: auto; translate: 0 0;
  transition: opacity var(--t-xxslow) var(--ease-out) 0.35s, translate var(--t-xxslow) var(--ease-out) 0.35s, visibility 0s; }

/* ---------- landing ---------- */
.hero { position: fixed; left: var(--gut); bottom: clamp(56px, 12vh, 120px); max-width: 860px; z-index: 3; translate: 0 24px; }
.eyebrow { font: 500 12px/1.2 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin: 0 0 18px; }
.hero h1 { font-weight: 300; font-size: clamp(44px, 6.1vw, 96px); line-height: 0.98; letter-spacing: -0.035em; margin: 0 0 22px;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.25); }
.hero h1 span { color: var(--accent); }
.lede { font-size: clamp(16px, 1.35vw, 19px); color: var(--dim); max-width: 440px; margin: 0 0 30px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: transparent; border-radius: 999px;
  padding: 14px 22px; font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out), scale var(--t-fast) var(--ease-out); }
.btn:active { scale: 0.97; }
.btn i { font-style: normal; transition: translate var(--t-normal) var(--ease-out); }
.btn:hover i { translate: 4px 0; }
.btn.primary { background: var(--ink); color: #111; border-color: var(--ink); }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); }
.btn.ghost { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); background: rgba(10, 14, 12, 0.25); }
.btn.ghost:hover { border-color: var(--ink); }
.btn:focus-visible, .chips button:focus-visible, .steps button:focus-visible, .bar a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.scrollcue { position: fixed; right: var(--gut); bottom: clamp(56px, 12vh, 120px); font: 500 11px var(--mono); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--dim); display: flex; flex-direction: column; align-items: center; gap: 12px; z-index: 3; }
.scrollcue span { width: 1px; height: 48px; background: linear-gradient(var(--ink), transparent); transform-origin: top; animation: cue 2.2s var(--ease-in-out) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- the bag ---------- */
.hint { position: fixed; left: 50%; top: max(84px, calc(env(safe-area-inset-top) + 70px)); transform: translateX(-50%); translate: 0 -8px; z-index: 3;
  font-size: 13px; color: var(--dim); background: var(--panel); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.hint b { color: var(--ink); font-weight: 500; }
.chips { position: fixed; left: 50%; bottom: max(28px, calc(env(safe-area-inset-bottom) + 16px)); transform: translateX(-50%); translate: 0 16px; z-index: 3;
  display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.chips button { border: 0; background: transparent; padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; cursor: pointer; color: var(--dim);
  transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out); }
.chips button:hover { color: var(--ink); }
.chips button[aria-pressed="true"] { background: var(--ink); color: #111; }

.tag { position: fixed; left: 0; top: 0; z-index: 4; pointer-events: none; display: flex; gap: 10px; align-items: baseline;
  margin: -54px 0 0 18px; padding: 8px 12px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 14px; white-space: nowrap;
  opacity: 0; scale: 0.92; transition: opacity var(--t-fast) var(--ease-out), scale var(--t-fast) var(--ease-out); }
.tag.on { opacity: 1; scale: 1; }
.tag b { font-weight: 500; }
.tag span { font: 500 12px var(--mono); color: var(--accent); }

/* ---------- the club's card ---------- */
.spec { position: fixed; right: var(--gut); top: calc(50% + 24px); translate: 32px -50%; width: min(400px, 34vw); max-height: calc(100vh - 120px); overflow: auto; z-index: 3;
  padding: 24px 26px 20px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line);
  backdrop-filter: blur(22px) saturate(1.2); -webkit-backdrop-filter: blur(22px) saturate(1.2); }
body[data-state="club"] .spec { translate: 0 -50%; }
.spec-top { display: flex; justify-content: space-between; align-items: center; }
.spec .eyebrow { margin: 0; }
.steps { display: flex; gap: 6px; }
.steps button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer;
  transition: background var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out); }
.steps button:hover { border-color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.spec h2 { font-weight: 300; font-size: clamp(30px, 2.8vw, 42px); letter-spacing: -0.03em; line-height: 1.02; margin: 14px 0 0; }
.loft { font: 400 clamp(52px, 5.4vw, 80px)/1 var(--mono); letter-spacing: -0.06em; color: var(--accent); margin: 4px 0 10px; }
.for { color: var(--dim); margin: 0 0 16px; font-size: 15px; }
.spec dl { margin: 0 0 18px; border-top: 1px solid var(--line); }
.spec dl div { display: flex; justify-content: space-between; gap: 18px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec dt { color: var(--dim); }
.spec dd { margin: 0; text-align: right; font-family: var(--mono); font-size: 13px; }
.actions { display: flex; gap: 8px; }
.actions .btn { flex: 1; padding: 13px 14px; font-size: 14px; }
.actions .btn { justify-content: center; }
.small { font-size: 12px; color: var(--dim); margin: 14px 0 0; }

.toast { position: fixed; left: 50%; bottom: 32px; translate: -50% 20px; z-index: 6; max-width: min(520px, calc(100vw - 32px));
  background: var(--ink); color: #111; padding: 12px 18px; border-radius: 14px; font-size: 14px; font-weight: 500;
  opacity: 0; pointer-events: none; transition: opacity var(--t-normal) var(--ease-out), translate var(--t-slow) var(--ease-out); }
.toast.on { opacity: 1; translate: -50% 0; }

/* ---------- loading and fallbacks ---------- */
.loader { position: fixed; inset: 0; z-index: 10; background: var(--bg); display: grid; place-content: center; gap: 18px; justify-items: center;
  transition: opacity 0.9s var(--ease-out) 0.1s, visibility 0s linear 1s; }
.loader .mark { font-weight: 300; font-size: 28px; letter-spacing: -0.02em; }
.loader .line { width: 120px; height: 1px; background: var(--line); overflow: hidden; }
.loader .line span { display: block; height: 100%; width: 40%; background: var(--accent); animation: load 1.1s var(--ease-in-out) infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
body.ready .loader { opacity: 0; visibility: hidden; }
.nogl, .nojs { display: none; position: fixed; inset: 0; z-index: 11; place-content: center; padding: 32px; text-align: center; background: var(--bg); color: var(--dim); }
body[data-state="nogl"] .nogl { display: grid; }
.nojs { display: grid; }

/* ---------- phones ---------- */
@media (max-width: 760px), (orientation: portrait) and (max-width: 1024px) {
  .hero { top: max(96px, calc(env(safe-area-inset-top) + 80px)); bottom: max(28px, calc(env(safe-area-inset-bottom) + 16px)); right: var(--gut);
    display: flex; flex-direction: column; }
  .hero h1 { font-size: clamp(40px, 11.5vw, 72px); }
  .lede { font-size: 16px; margin-bottom: 22px; }
  .cta { margin-top: auto; flex-wrap: nowrap; }
  .cta .btn { flex: 1; justify-content: center; }
  .scrollcue { display: none; }
  .vignette { background: radial-gradient(120% 90% at 50% 55%, transparent 50%, rgba(5, 7, 6, 0.5) 100%),
                         linear-gradient(180deg, rgba(5, 7, 6, 0.6), transparent 42%, transparent 75%, rgba(5, 7, 6, 0.55)); }
  .hint { font-size: 12px; }
  .hint .long { display: none; }
  .chips { left: 16px; right: 16px; transform: none; justify-content: space-between; overflow-x: auto; }
  .chips button { padding: 9px 12px; font-size: 13px; }
  .spec { left: 12px; right: 12px; top: auto; bottom: max(12px, env(safe-area-inset-bottom)); width: auto; max-height: 46vh; translate: 0 40px; padding: 20px 20px 16px; border-radius: 20px; }
  body[data-state="club"] .spec { translate: 0 0; }
  .spec h2 { margin-top: 10px; font-size: 30px; }
  .spec { display: flex; flex-direction: column; }
  .loft { display: none; }
  .for { font-size: 14px; margin-bottom: 14px; }
  .actions { order: 2; margin-bottom: 14px; }
  .actions .btn { padding: 12px 10px; font-size: 14px; }
  .spec dl { order: 3; }
  .small { order: 4; margin-top: 0; }
}
