/* =========================================================
   $THUG — Thug Life
   ========================================================= */

:root {
  --paper: #efeee9;
  --paper-2: #e4e3dd;
  --ink: #0b0b0b;
  --ink-2: #161616;
  --mute: #6d6c67;
  --mute-dark: #8b8a85;
  --line: rgba(11, 11, 11, .14);
  --line-dark: rgba(239, 238, 233, .16);

  --pad: clamp(20px, 4vw, 56px);
  --maxw: 1440px;

  --f-bl: "UnifrakturCook", "Old English Text MT", serif;
  --f-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9' shape-rendering='crispEdges'%3E%3Cpath d='M4 0h1v1h-1zM3 1h3v1h-3zM3 2h3v1h-3zM0 3h9v1h-9zM1 4h7v1h-7zM2 5h5v1h-5zM2 6h5v1h-5zM1 7h3v1h-3zM5 7h3v1h-3zM1 8h2v1h-2zM6 8h2v1h-2z'/%3E%3C/svg%3E");
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg, canvas { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol, dl, dd { margin: 0; }
ol { padding: 0; list-style: none; }
::selection { background: var(--ink); color: var(--paper); }

.mono {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.bl {
  font-family: var(--f-bl);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  font-variation-settings: normal;
}

/* ---------- pixel glasses (vector, from source art) ---------- */
.px-glasses {
  display: block;
  aspect-ratio: 5 / 1;
  background: url("../assets/glasses.svg") center / 100% 100% no-repeat;
}

/* ---------- film grain ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  overflow: hidden;
}
.grain::before {
  content: "";
  position: absolute;
  inset: -50%;
  opacity: .06;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -4%); }
  60%  { transform: translate(-4%, -1%); }
  80%  { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  --bg: transparent; --fg: var(--ink); --bd: var(--ink); --sh: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  background: var(--bg);
  color: var(--fg);
  border: 1.5px solid var(--bd);
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-variation-settings: "wdth" 100;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), background-color .18s, color .18s;
}
.btn:hover { transform: translate(-3px, -3px); box-shadow: 3px 3px 0 var(--sh); }
.btn:active { transform: translate(0, 0); box-shadow: 0 0 0 var(--sh); }
.btn:focus-visible, .chip:focus-visible, .ca:focus-visible, .contract__value:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.btn[disabled] { opacity: .35; pointer-events: none; }

.btn--solid { --bg: var(--ink); --fg: var(--paper); }
.btn--ghost { --bg: transparent; }
.btn--light { --bg: var(--paper); --fg: var(--ink); --bd: var(--paper); --sh: var(--paper); box-shadow: 0 0 0 transparent; }
.btn--light:hover { box-shadow: 3px 3px 0 #555; }
.btn--ghost-light { --fg: var(--paper); --bd: rgba(239,238,233,.5); --sh: var(--paper); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 11px; }
.btn--block { display: flex; width: 100%; }
.btn--text { border-color: transparent; height: 40px; color: var(--mute); }
.btn--text:hover { transform: none; box-shadow: none; color: var(--ink); }

.ico-x { width: 14px; height: 14px; fill: currentColor; }

/* =========================================================
   Nav
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px var(--pad);
  color: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav__brand { display: inline-flex; align-items: center; gap: 12px; justify-self: start; }
.nav__glasses { width: 52px; filter: invert(1); }
.nav__ticker { font-family: var(--f-sans); font-weight: 800; font-size: 15px; letter-spacing: .04em; font-variation-settings: "wdth" 80; }
.nav__links { display: flex; gap: 32px; }
.nav__links a {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  position: relative; padding: 4px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { display: flex; gap: 10px; justify-self: end; }
.nav .btn { --fg: #fff; --bd: #fff; --sh: #fff; }
.nav .btn--solid { --bg: #fff; --fg: #000; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  --F: min(17.5vw, 31vh, 280px);
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: minmax(0, 1fr);
  padding: 92px var(--pad) clamp(28px, 4vh, 48px);
  max-width: var(--maxw);
  margin: 0 auto;
}

.hero__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--mute);
}
.hero__wanted { display: inline-flex; align-items: center; gap: 14px; }

/* timecode: REC while the glasses fall, FREEZE when they land */
.tc { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-variant-numeric: tabular-nums; }
.tc__dot { width: 8px; height: 8px; background: var(--ink); border-radius: 50%; animation: blink 1s steps(1) infinite; }
.tc__label { font-weight: 700; min-width: 6ch; }
.tc__time { color: var(--mute); }
.tc.is-frozen .tc__dot { border-radius: 0; width: 8px; height: 9px; background: none; border-left: 3px solid var(--ink); border-right: 3px solid var(--ink); animation: none; }
@keyframes blink { 50% { opacity: 0; } }

/* viewfinder crop marks */
.crop { position: absolute; width: 22px; height: 22px; border: 0 solid var(--ink); opacity: .55; pointer-events: none; }
.crop--tl { left: 0; top: 2vh; border-top-width: 1.5px; border-left-width: 1.5px; }
.crop--tr { right: 0; top: 2vh; border-top-width: 1.5px; border-right-width: 1.5px; }
.crop--bl { left: 0; bottom: 2vh; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.crop--br { right: 0; bottom: 2vh; border-bottom-width: 1.5px; border-right-width: 1.5px; }

.stars { display: inline-flex; gap: 6px; }
.stars i {
  width: 16px; height: 16px;
  background: var(--line);
  -webkit-mask: var(--star) center / contain no-repeat;
          mask: var(--star) center / contain no-repeat;
  transition: background-color .12s;
}
.stars i.on { background: var(--ink); animation: starpop .32s var(--ease-out); }
@keyframes starpop { 0% { transform: scale(1.7); } 100% { transform: scale(1); } }

.hero__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3vh 0;
}

.hero__word {
  font-family: var(--f-bl);
  font-weight: 700;
  font-size: var(--F);
  line-height: 1;
  letter-spacing: -.005em;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.hero__props {
  position: relative;
  width: calc(var(--F) * 1.32);
  height: calc(var(--F) * 1.05);
  margin-left: calc(var(--F) * .14);
  flex: none;
}

.hero__glasses {
  position: absolute;
  left: 0;
  top: calc(var(--F) * .33);
  width: 100%;
  z-index: 3;
  cursor: pointer;
}
.hero__glasses .px-glasses { width: 100%; }

.hero__joint {
  position: absolute;
  left: 50%;
  top: calc(var(--F) * .62);
  width: calc(var(--F) * .66);
  z-index: 2;
}
.hero__joint img { width: 100%; height: auto; filter: grayscale(1) contrast(1.08); user-select: none; }

/* smoke from the lit end */
.smoke { position: absolute; right: 9%; bottom: 22%; width: 0; height: 0; pointer-events: none; }
.smoke i {
  position: absolute; left: -14px; top: -14px;
  width: 28px; height: 28px; border-radius: 50%;
  background: radial-gradient(circle, rgba(60,60,60,.32) 0%, rgba(60,60,60,0) 70%);
  filter: blur(4px);
  opacity: 0;
  animation: smoke 4.2s linear infinite;
  animation-play-state: paused;
}
.smoke i:nth-child(2) { animation-delay: 1.05s; }
.smoke i:nth-child(3) { animation-delay: 2.1s; }
.smoke i:nth-child(4) { animation-delay: 3.15s; }
.is-landed .smoke i { animation-play-state: running; }
@keyframes smoke {
  0%   { transform: translate(0, 0) scale(.5); opacity: 0; }
  12%  { opacity: .9; }
  50%  { transform: translate(-14px, -70px) scale(1.6); opacity: .5; }
  100% { transform: translate(10px, -150px) scale(2.6); opacity: 0; }
}

.hero__foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  padding-top: 24px;
}
.hero__lede {
  font-family: var(--f-sans);
  font-size: clamp(22px, 2.3vw, 34px);
  line-height: 1.1;
  font-weight: 800;
  text-transform: uppercase;
  font-variation-settings: "wdth" 70;
  letter-spacing: -.005em;
}
.hero__lede em { font-style: normal; color: var(--mute); }

.hero__actions { display: grid; gap: 12px; justify-items: end; }
.hero__btns { display: flex; gap: 12px; }

/* CA pill */
.ca {
  display: inline-flex;
  align-items: stretch;
  height: 52px;
  border: 1.5px solid var(--ink);
  max-width: 100%;
  text-align: left;
  background: transparent;
  transition: background-color .2s;
}
.ca__label { display: grid; place-items: center; padding: 0 14px; background: var(--ink); color: var(--paper); font-weight: 700; }
.ca__value { display: block; line-height: 49px; padding: 0 16px; text-transform: none; letter-spacing: .02em; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ca__copy { display: grid; place-items: center; padding: 0 16px; border-left: 1.5px solid var(--ink); font-weight: 700; transition: background-color .2s, color .2s; }
.ca:hover .ca__copy { background: var(--ink); color: var(--paper); }

/* ---------- intro choreography (only with JS) ---------- */
.js .hero__word { opacity: 0; }
.js .hero__glasses { transform: translateY(-120vh); }
.js .hero__joint { opacity: 0; transform: translate(30vw, 6vh) rotate(8deg); }
.js .hero__meta, .js .hero__foot { opacity: 0; transform: translateY(16px); }

.js .is-dropping .hero__glasses {
  transform: translateY(0);
  transition: transform 1.55s cubic-bezier(.33, .02, .52, 1);
}
.js .is-landed .hero__word { opacity: 1; }
.js .is-landed .hero__glasses { transform: translateY(0); }
.js .is-landed .hero__joint {
  opacity: 1; transform: none;
  transition: transform .75s var(--ease-out) .12s, opacity .2s linear .12s;
}
.js .is-landed .hero__meta,
.js .is-landed .hero__foot {
  opacity: 1; transform: none;
  transition: opacity .8s ease .5s, transform .8s var(--ease-out) .5s;
}
.is-thud { animation: thud .38s steps(1, end); }
@keyframes thud {
  0%   { transform: translate(0, 0); filter: invert(1); }
  14%  { transform: translate(-7px, 5px); filter: none; }
  28%  { transform: translate(6px, -4px); }
  42%  { transform: translate(-4px, 3px); }
  56%  { transform: translate(3px, -1px); }
  70%  { transform: translate(-1px, 1px); }
  100% { transform: translate(0, 0); }
}

/* =========================================================
   Marquee
   ========================================================= */
.marquee {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding: 18px 0 14px;
  border-bottom: 1px solid var(--line-dark);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee span { font-family: var(--f-bl); font-size: clamp(30px, 3.6vw, 52px); line-height: 1; white-space: nowrap; }
.marquee span.sans {
  font-family: var(--f-sans); font-weight: 900; text-transform: uppercase;
  font-variation-settings: "wdth" 62; letter-spacing: .01em;
  font-size: clamp(28px, 3.3vw, 48px);
}
.marquee b { width: 12px; height: 12px; background: var(--paper); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   Shared section bits
   ========================================================= */
.section-label {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 18px;
  margin-bottom: clamp(40px, 7vw, 96px);
  border-top: 1px solid var(--line);
  color: var(--mute);
}
.section-label span:first-child { color: var(--ink); font-weight: 700; }
.section-label span:last-child::before { content: "/"; margin-right: 18px; color: var(--mute); }

.display {
  font-family: var(--f-sans);
  font-weight: 850;
  text-transform: uppercase;
  font-variation-settings: "wdth" 66;
  font-size: clamp(44px, 7.4vw, 124px);
  line-height: .9;
  letter-spacing: -.012em;
  max-width: 17ch;
  text-wrap: balance;
}
.display .bl { font-size: 1.08em; line-height: .8; }
.display--sm { font-size: clamp(36px, 4.6vw, 76px); max-width: 18ch; }

/* =========================================================
   Lore (dark)
   ========================================================= */
.lore {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(80px, 11vw, 160px) 0;
}
.lore .section-label, .buy .section-label { border-color: var(--line-dark); color: var(--mute-dark); }
.lore .section-label span:first-child, .buy .section-label span:first-child { color: var(--paper); }

.lore__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 6vw, 120px);
  margin-top: clamp(56px, 8vw, 120px);
}
.lore__intro {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.55;
  color: #c9c8c2;
  max-width: 38ch;
}
.beats { display: grid; }
.beat {
  display: grid;
  grid-template-columns: 64px 1fr 1.25fr;
  gap: 24px;
  align-items: baseline;
  padding: 28px 0;
  border-top: 1px solid var(--line-dark);
}
.beat:last-child { border-bottom: 1px solid var(--line-dark); }
.beat__n { color: var(--mute-dark); }
.beat h3 {
  font-family: var(--f-bl); font-weight: 700; font-size: clamp(30px, 2.8vw, 42px); line-height: 1;
}
.beat p { color: #b4b3ad; font-size: 16px; }
.beat strong { color: var(--paper); }

.vice { margin-top: clamp(100px, 14vw, 200px); }
.vice__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 6vw, 120px);
  align-items: start;
}
.vice__meter {
  border: 1px solid var(--line-dark);
  padding: clamp(28px, 3vw, 44px);
  display: grid;
  gap: 22px;
  justify-items: start;
}
.stars--big { gap: clamp(8px, 1vw, 14px); }
.stars--big i { width: clamp(30px, 3.6vw, 54px); height: clamp(30px, 3.6vw, 54px); background: rgba(239,238,233,.12); }
.stars--big i.on { background: var(--paper); }
.vice__caption { color: var(--mute-dark); }
.vice__body {
  margin-top: 36px;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
  color: #b4b3ad;
  max-width: 56ch;
}
.vice__body strong { color: var(--paper); font-weight: 600; }

/* =========================================================
   Studio
   ========================================================= */
.studio { padding: clamp(80px, 11vw, 160px) 0; }
.studio__head {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 48px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.studio__sub { color: var(--mute); font-size: 17px; max-width: 42ch; justify-self: end; }

.studio__body {
  display: grid;
  grid-template-columns: 1fr 320px;
  border: 1.5px solid var(--ink);
}

.stage {
  position: relative;
  min-height: clamp(420px, 62vh, 680px);
  background: var(--ink-2);
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 24px 24px;
  display: grid;
  place-items: center;
  overflow: hidden;
  touch-action: none;
}
.stage canvas { max-width: 100%; max-height: 100%; touch-action: none; cursor: default; }
.stage.has-image canvas { box-shadow: 0 30px 80px rgba(0,0,0,.45); }

.drop {
  position: absolute;
  inset: clamp(14px, 2vw, 28px);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  border: 1.5px dashed rgba(239,238,233,.28);
  color: var(--paper);
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.drop:hover, .stage.is-over .drop { border-color: var(--paper); background: rgba(239,238,233,.04); }
.drop__glasses { width: clamp(160px, 22vw, 260px); filter: invert(1); transition: transform .5s var(--ease-out); }
.drop:hover .drop__glasses { transform: translateY(6px); }
.drop__title { font-family: var(--f-bl); font-size: clamp(40px, 4.4vw, 64px); line-height: 1; }
.drop__hint { color: var(--mute-dark); }
.stage.has-image .drop { display: none; }

.stage__hint {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  color: rgba(239,238,233,.55); font-size: 10.5px; white-space: nowrap;
  pointer-events: none; opacity: 0; transition: opacity .3s;
}
.stage.has-image .stage__hint { opacity: 1; }

.panel {
  border-left: 1.5px solid var(--ink);
  display: flex;
  flex-direction: column;
}
.panel__group { padding: 20px 22px; border-bottom: 1px solid var(--line); display: grid; gap: 14px; }
.panel__group--end { margin-top: auto; border-bottom: 0; border-top: 1px solid var(--line); gap: 6px; }
.panel__label { color: var(--mute); display: flex; justify-content: space-between; }
.panel__label em { font-style: normal; color: var(--ink); font-weight: 700; }
.panel__row { display: grid; gap: 8px; }
.panel__row--3 { grid-template-columns: repeat(3, 1fr); }
#selGroup.is-empty .slider, #selGroup.is-empty .panel__row { opacity: .35; pointer-events: none; }

.chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 6px;
  border: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: border-color .15s, background-color .15s, color .15s;
}
.chip:hover { border-color: var(--ink); }
.chip:active { background: var(--ink); color: var(--paper); }
.chip__ico { width: 46px; height: 12px; }
.chip__ico--joint { width: auto; height: 22px; filter: grayscale(1); }
.chip__ico--bl { font-family: var(--f-bl); font-size: 24px; line-height: 12px; height: 18px; display: grid; place-items: center; text-transform: none; }
.chip:has(.chip__ico) { min-height: 76px; }

.slider { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 12px; color: var(--mute); }
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 22px; background: transparent; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: var(--ink); }
input[type="range"]::-moz-range-track { height: 2px; background: var(--ink); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; margin-top: -6px; background: var(--ink); border: 0; border-radius: 0;
}
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; background: var(--ink); border: 0; border-radius: 0; }

.toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 14px; font-weight: 600; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle__track { width: 40px; height: 22px; border: 1.5px solid var(--ink); position: relative; flex: none; }
.toggle__track span { position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; background: var(--ink); transition: transform .2s var(--ease-out); }
.toggle input:checked + .toggle__track { background: var(--ink); }
.toggle input:checked + .toggle__track span { background: var(--paper); transform: translateX(18px); }
.toggle input:focus-visible + .toggle__track { outline: 2px solid var(--ink); outline-offset: 3px; }

/* =========================================================
   Buy (dark)
   ========================================================= */
.buy {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(80px, 11vw, 160px) 0;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(48px, 6vw, 88px);
  border-top: 1px solid var(--line-dark);
}
.step {
  padding: 28px 28px 36px 0;
  display: grid;
  gap: 14px;
  align-content: start;
}
.step + .step { padding-left: 28px; border-left: 1px solid var(--line-dark); }
.step__n { color: var(--mute-dark); }
.step h3 { font-family: var(--f-bl); font-weight: 700; font-size: clamp(28px, 2.5vw, 38px); line-height: 1; }
.step p { color: #b4b3ad; font-size: 15.5px; }

.contract {
  margin-top: clamp(64px, 8vw, 120px);
  border: 1px solid var(--line-dark);
  padding: clamp(24px, 3.5vw, 48px);
  display: grid;
  gap: 28px;
}
.contract__label { color: var(--mute-dark); }
.contract__value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  text-align: left;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-dark);
}
.contract__value [data-ca] {
  font-size: clamp(14px, 2.25vw, 34px);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
  word-break: break-all;
  transition: opacity .2s;
}
.contract__value:hover [data-ca] { opacity: .75; }
.contract__copy {
  flex: none;
  padding: 10px 14px;
  border: 1px solid rgba(239,238,233,.5);
  font-weight: 700;
  transition: background-color .2s, color .2s;
}
.contract__value:hover .contract__copy { background: var(--paper); color: var(--ink); }
.contract__value:focus-visible { outline-color: var(--paper); }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.facts dt { color: var(--mute-dark); margin-bottom: 6px; }
.facts dd { font-weight: 800; font-size: clamp(20px, 2vw, 28px); text-transform: uppercase; font-variation-settings: "wdth" 70; line-height: 1.1; }
.contract__btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* =========================================================
   Footer
   ========================================================= */
.footer { padding-top: clamp(64px, 8vw, 110px); overflow: hidden; }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 16px; }
.footer__brand .px-glasses { width: 72px; }
.footer__links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__legal { margin-top: 28px; color: var(--mute); text-transform: none; letter-spacing: .02em; font-size: 11.5px; line-height: 1.7; max-width: 980px; margin-left: auto; margin-right: auto; }
.footer__giant {
  font-family: var(--f-bl);
  font-weight: 700;
  font-size: 27vw;
  line-height: .78;
  text-align: center;
  white-space: nowrap;
  margin-top: clamp(32px, 4vw, 64px);
  margin-bottom: -.16em;
  letter-spacing: -.01em;
  user-select: none;
}

/* =========================================================
   Toast
   ========================================================= */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 95;
  transform: translate(-50%, 20px);
  padding: 14px 18px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid rgba(239,238,233,.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .35s var(--ease-out);
  display: flex; align-items: center; gap: 12px;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast::before { content: ""; width: 34px; aspect-ratio: 5/1; background: url("../assets/glasses.svg") center/100% 100% no-repeat; filter: invert(1); }

/* =========================================================
   Reveal
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform 1s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav { grid-template-columns: 1fr auto; }
  .beat { grid-template-columns: 48px 1fr; }
  .beat p { grid-column: 2; }
  .studio__body { grid-template-columns: 1fr 280px; }
}

@media (max-width: 900px) {
  .hero { --F: min(25vw, 22vh); }
  .hero__stage { flex-direction: column; padding: 2vh 0 4vh; }
  .hero__props { order: -1; width: calc(var(--F) * 2.3); height: calc(var(--F) * .9); margin: 0; }
  .hero__glasses { top: 0; }
  .hero__joint { left: 52%; top: calc(var(--F) * .5); width: calc(var(--F) * .8); z-index: 0; }
  .hero__foot { grid-template-columns: minmax(0, 1fr); }
  .hero__actions { justify-items: stretch; }
  .hero__btns { display: grid; grid-template-columns: 1fr 1fr; }
  .hero__actions { grid-template-columns: minmax(0, 1fr); }
  .ca { width: 100%; min-width: 0; }
  .ca__value { flex: 1 1 0; width: 0; }

  .lore__grid, .vice__grid, .studio__head { grid-template-columns: 1fr; }
  .studio__sub { justify-self: start; }
  .studio__body { grid-template-columns: 1fr; }
  .panel { border-left: 0; border-top: 1.5px solid var(--ink); }
  .stage { min-height: 380px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .facts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .nav__cta .btn--ghost { display: none; }
  .hero__wanted { gap: 8px; font-size: 0; }
  .stars i { width: 13px; height: 13px; }
  .tc__label { min-width: 0; }
  .hero__btns { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding-left: 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line-dark); }
  .contract__value { flex-direction: column; align-items: flex-start; }
  .stage__hint { display: none; }
  .footer__giant { font-size: 30vw; }
}

@media (prefers-reduced-motion: reduce) {
  .grain::before, .marquee__track, .smoke i { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
