/* LUX: The Seamless Training Tee
   Built on the gymlux.co.uk design system: Unbounded for display, Manrope for text,
   charcoal and ivory, square corners, hairlines.
   Layout idea: one studio stage where the tee stays put and the camera moves; then the lights go off. */

:root {
  color-scheme: dark;
  --bg: #0B0B0D;
  --ink: #F3F1EC;
  --ink2: #C9C6BF;
  --mute: #8F8D88;
  --hair: rgba(243, 241, 236, 0.16);
  --paper: #F3F1EC;
  --onpaper: #0B0B0D;
  --display: 'Unbounded', "Helvetica Neue", Arial, sans-serif;
  --body: 'Manrope', -apple-system, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 80px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
html.motion { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; padding: 12px 16px; background: var(--ink); color: var(--bg); }
.skip:focus { left: 0; }

/* ---------- type ---------- */
.display {
  font: 600 clamp(40px, 7vw, 112px)/0.98 var(--display);
  letter-spacing: -0.01em; text-transform: uppercase; text-wrap: balance;
}
.display--hero { font-size: clamp(36px, 12.2vw, 58px); }
.display--m { font-size: clamp(23px, 6.4vw, 34px); line-height: 1.04; }
.display--l { font-size: clamp(24px, 6.4vw, 72px); line-height: 1.04; }
.eyebrow { margin: 0 0 20px; font: 600 11px/1 var(--body); letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink2); }
.lede { max-width: 48ch; font: 400 clamp(16px, 1.25vw, 19px)/1.6 var(--body); color: var(--ink2); }
.disclosure { font: 600 10.5px/1.5 var(--body); letter-spacing: 0.22em; text-transform: uppercase; color: var(--mute); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 18px 28px;
  border: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink);
  font: 700 12px/1 var(--body); letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid:hover { background: #fff; }
.btn--pill { padding: 12px 18px; font-size: 11px; }
.btn--onpaper { border-color: var(--onpaper); color: var(--onpaper); }
.btn--onpaper:hover { background: var(--onpaper); color: var(--paper); }
.btn--onpaper.btn--solid { background: var(--onpaper); color: var(--paper); }
.btn--onpaper.btn--solid:hover { background: #2b2b30; }
.btn[disabled] { opacity: 0.55; cursor: default; }

/* ---------- nav ---------- */
.nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50; height: 72px; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; color: var(--ink);
  transition: background 0.35s, color 0.25s;
}
.motion .nav { position: fixed; }
.nav__logo { display: inline-flex; align-items: center; height: 44px; }
.nav__logo img { width: 70px; transition: filter 0.25s; }
.nav--ink { color: var(--onpaper); }
.nav--ink .nav__logo img { filter: invert(1); }
.nav--ink .btn { border-color: var(--onpaper); color: var(--onpaper); }
.nav--ink .btn:hover { background: var(--onpaper); color: var(--paper); }
.nav--solid { background: rgba(11, 11, 13, 0.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--hair); }

/* ---------- stage: plain layout first (no script, or reduced motion) ---------- */
.stage { background: var(--paper); color: var(--onpaper); }
.pin { padding: 104px var(--gutter) 40px; }
.view { max-width: 520px; margin: 0 auto 40px; }
.cam { position: relative; aspect-ratio: 2411 / 2612; }
.turn { position: absolute; inset: 0; }
.face { position: absolute; inset: 0; width: 100%; height: 100%; }
.back, .floor, .night, .lights, .count { display: none; }
.beat { max-width: 640px; margin: 0 0 44px; }
.beat .eyebrow { color: #5c5a55; }
.beat .lede { margin-top: 16px; color: #3a3a3c; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- stage: pinned, scroll-driven ---------- */
.motion .stage { height: 780vh; height: 780svh; background: var(--bg); }
.motion .pin { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 0; overflow: hidden; background: var(--paper); }

.motion .view, .motion .lights { position: absolute; left: 0; right: 0; top: 72px; height: calc(60% - 72px); max-width: none; margin: 0; overflow: hidden; }
.motion .view { background: radial-gradient(ellipse 85% 80% at 50% 52%, #F7F7F6 0, #EFEFED 55%, #E2E2E0 100%); }
.motion .lights { display: block; z-index: 4; pointer-events: none; }

.motion .cam { position: absolute; left: 0; top: 0; aspect-ratio: auto; transform-origin: 0 0; will-change: transform; }
.motion .face { will-change: opacity; }
.motion .back { display: block; opacity: 0; }
.motion .floor {
  display: block; position: absolute; left: 22%; right: 22%; top: 93.2%; height: 4.4%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0)); opacity: var(--floor, 1);
}

.motion .panel { position: absolute; left: 0; right: 0; bottom: 0; height: 40%; padding: 26px var(--gutter) 0; }
.motion .beats { position: relative; height: 100%; }
.motion .beat { position: absolute; left: 0; right: 0; top: 0; max-width: none; margin: 0; opacity: 0; pointer-events: none; will-change: opacity; }
.motion .beat.is-on { pointer-events: auto; }
.motion .beat__in { will-change: transform; }

.motion .count {
  display: flex; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 22px;
  align-items: center; gap: 14px; opacity: 0;
  font: 600 11px/1 var(--body); letter-spacing: 0.24em; color: #5c5a55;
}
.count__line { position: relative; flex: 1; height: 1px; background: rgba(11, 11, 13, 0.18); }
.count__line b { position: absolute; inset: 0; background: var(--onpaper); transform-origin: 0 50%; transform: scaleX(0); }

.motion .night { display: block; position: absolute; inset: 0; z-index: 3; background: var(--bg); opacity: 0; pointer-events: none; }
.motion .panel--night { z-index: 5; pointer-events: none; color: var(--ink); }
.motion .panel--night .lede { color: var(--ink2); }

.motion .spark {
  position: absolute; width: 4.1%; height: 0.36%; background: #fff; border-radius: 99px; opacity: 0;
  box-shadow: 0 0 5px 1px #fff, 0 0 16px 3px rgba(255, 255, 255, 0.7);
}
.motion .spark::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 900%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.09) 38%, rgba(255, 255, 255, 0) 100%);
}
.spark--r { left: 88.52%; top: 40.49%; transform: translate(-50%, -50%) rotate(-20deg); }
.spark--l { left: 11.23%; top: 40.62%; transform: translate(-50%, -50%) rotate(21deg); }

/* ---------- manifesto ---------- */
.manifesto { padding: clamp(100px, 16vh, 180px) var(--gutter); }
.manifesto__text { max-width: 1100px; font: 500 clamp(22px, 3.4vw, 52px)/1.18 var(--display); text-transform: uppercase; }
.manifesto__sign { margin-top: 40px; }
.motion .ink .w, .motion .ink[data-ink="line"] > span { opacity: 0.18; transition: opacity 0.25s linear; }

/* ---------- the tee, on paper ---------- */
.collection { background: var(--paper); color: var(--onpaper); padding: clamp(80px, 12vh, 140px) 0; }
.section__head { max-width: 1200px; padding: 0 var(--gutter); }
.collection .eyebrow { color: #5c5a55; }
.collection .lede { margin-top: 20px; color: #3a3a3c; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 1100px; padding: 48px var(--gutter) 0; }
.card__img { aspect-ratio: 3 / 4; overflow: hidden; background: #ECE9E3; }
.card__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transition: transform 0.6s var(--ease); }
.card:hover .card__img img { transform: scale(1.03); }
.card h3 { margin-top: 16px; font: 600 13px/1.3 var(--display); letter-spacing: 0.04em; text-transform: uppercase; }
.card p { margin-top: 4px; color: #6f6d68; font-size: 14px; }
.collection__note { padding: 28px var(--gutter) 0; color: #6f6d68; }

/* ---------- fabric brief ---------- */
.brief { padding: clamp(90px, 14vh, 160px) var(--gutter); }
.brief .display > span { display: block; }
.nowrap { white-space: nowrap; }
.brief .lede { margin-top: 28px; }

/* ---------- waitlist ---------- */
.join { padding: clamp(110px, 18vh, 200px) var(--gutter); border-top: 1px solid var(--hair); }
.join__inner { max-width: 760px; }
.join .lede { margin-top: 24px; }
.join__form { max-width: 560px; margin-top: 48px; }

.field { display: block; margin-bottom: 28px; }
.field__label, .sizes legend {
  display: block; margin-bottom: 10px; padding: 0;
  font: 700 10.5px/1 var(--body); letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink2);
}
.field input {
  width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid rgba(243, 241, 236, 0.4); border-radius: 0;
  background: transparent; color: var(--ink); font: 400 18px/1.4 var(--body);
}
.field input:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.field__err { display: block; margin-top: 8px; color: #E58C7A; font-size: 14px; }
.field__err[hidden] { display: none; }

.sizes { margin: 0 0 28px; padding: 0; border: 0; }
.sizes__row { display: flex; flex-wrap: wrap; gap: 8px; }
.sizes input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.sizes label {
  display: inline-flex; align-items: center; justify-content: center; min-width: 52px; height: 48px; padding: 0 14px;
  border: 1px solid rgba(243, 241, 236, 0.4); font: 700 12px/1 var(--body); letter-spacing: 0.12em; cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.sizes input:checked + label { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.sizes input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 3px; }

.check { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; color: var(--ink2); font-size: 14px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.check a { text-underline-offset: 0.25em; }
.hp { position: absolute; left: -9999px; }
.join__form .btn { width: 100%; margin-top: 28px; }
.status { min-height: 22px; margin-top: 14px; color: var(--ink2); font-size: 14px; }

.done { margin-top: 48px; max-width: 560px; }
.done h3 { font: 600 clamp(22px, 2.6vw, 34px)/1.15 var(--display); text-transform: uppercase; }
.done p { margin-top: 16px; color: var(--ink2); }
.done b { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.done:focus { outline: none; }
.prefs { margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--hair); }
.prefs .prefs__intro { margin: 0 0 28px; }
.prefs .btn { width: 100%; margin-top: 4px; }
.prefs .sizes label { text-transform: uppercase; }
.prefs__saved { color: var(--ink); }

/* ---------- footer ---------- */
.foot { background: #000; padding: 64px var(--gutter) 40px; color: var(--mute); font-size: 14px; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px 24px; align-items: start; }
.foot__logo img { width: 70px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; margin-top: -11px; color: var(--ink2); text-underline-offset: 0.25em; overflow-wrap: anywhere; }
.foot .foot__second { margin-top: 0; }
.foot .disclosure { margin-top: 48px; }

/* ---------- privacy page ---------- */
.doc { min-height: 100vh; background: var(--paper); color: var(--onpaper); padding: 136px var(--gutter) 96px; }
.doc__in { max-width: 680px; }
.doc h1 { margin-bottom: 14px; }
.doc h2 { margin: 40px 0 10px; font: 600 13px/1.3 var(--display); letter-spacing: 0.04em; text-transform: uppercase; }
.doc p, .doc li { color: #26262a; }
.doc p + p { margin-top: 12px; }
.doc ul { margin: 8px 0 0; padding-left: 20px; }
.doc li + li { margin-top: 6px; }
.doc__meta { color: #6f6d68; }
.doc a { text-underline-offset: 0.25em; }

/* ---------- tablets held upright ---------- */
@media (min-width: 600px) and (max-width: 899px) {
  .display--hero { font-size: clamp(58px, 9.4vw, 84px); }
  .display--m { font-size: clamp(34px, 5.4vw, 48px); }
  .motion .panel { padding-top: 36px; }
  .beat .lede { font-size: 18px; }
}

/* ---------- wide screens ---------- */
@media (min-width: 900px) {
  .display--hero { font-size: clamp(44px, 4.9vw, 88px); }
  .display--m { font-size: clamp(28px, 3vw, 52px); }

  .motion .view, .motion .lights { left: 42%; right: var(--gutter); bottom: var(--gutter); height: auto; }
  .motion .panel { top: 0; right: auto; width: 42%; height: auto; padding: 0; }
  .motion .beats { position: absolute; left: var(--gutter); right: 3vw; top: 50%; height: auto; }
  .motion .beat { transform: translateY(-50%); }
  .motion .count { right: 3vw; bottom: 40px; }

  .foot__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card__img img { transition: none; }
}
