:root {
  --bg: #0b0a08;
  --bg-2: #14120f;
  --ink: #f1e9da;
  --ink-dim: #a39b8c;
  --line: rgba(241, 233, 218, .12);
  --gold: #ffc53d;
  --gold-2: #ff8a1f;
  --night: #070b1a;
  --display: 'Anton', Impact, sans-serif;
  --body: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --pad: clamp(16px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.6;
  overflow-x: clip; -webkit-font-smoothing: antialiased;
}
body.loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--gold); color: var(--bg); }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; place-content: center; text-align: center; gap: 8px; }
.loader-count { font-family: var(--display); font-size: clamp(90px, 20vw, 220px); line-height: .9; }
.loader-count small { font-family: var(--mono); font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-dim); }
.loader-line { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); min-height: 1.5em; }
.loader-line.gold { color: var(--gold); }

.grain {
  position: fixed; inset: -50%; z-index: 80; pointer-events: none; opacity: .05;
  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='3' stitchTiles='stitch'/%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%,100% { transform: translate(0,0) } 20% { transform: translate(-3%,2%) } 40% { transform: translate(2%,-4%) } 60% { transform: translate(-4%,-1%) } 80% { transform: translate(3%,3%) } }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px var(--pad); transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(11,10,8,.72); backdrop-filter: blur(14px); border-color: var(--line); }
.logo { font-family: var(--display); font-size: 24px; letter-spacing: .02em; display: flex; align-items: center; gap: 6px; }
.logo-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.nav-links { display: flex; gap: 28px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--gold); }
@media (max-width: 760px) { .nav-links { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--mono); font-weight: 600; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase;
  transition: transform .2s, background .2s, color .2s, box-shadow .2s, border-color .2s; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--bg); }
.btn-gold:hover { box-shadow: 0 10px 40px -8px rgba(255,197,61,.7); }
.btn-ghost { background: rgba(241,233,218,.04); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 9px 16px; font-size: 11px; }
.btn-xl { padding: 18px 34px; font-size: 14px; }
[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
[aria-disabled="true"]:hover { transform: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(30px, 5vw, 80px);
  padding: 110px var(--pad) 70px; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; width: 70vw; height: 70vw; right: -20vw; top: -20vw; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(255,197,61,.13), transparent 60%);
}
.hero-copy, .hero-visual { position: relative; z-index: 1; min-width: 0; }

.kicker { margin: 0 0 22px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-dim); display: inline-flex; align-items: center; gap: 10px; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,197,61,.7) } 100% { box-shadow: 0 0 0 12px rgba(255,197,61,0) } }

.hero-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(44px, 5.6vw, 88px); line-height: .96; text-transform: uppercase; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .03em; }
.hero-title .line > span { display: inline-block; }
.hero-title .gold { color: var(--gold); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }

.ca-pill {
  margin-top: 30px; display: inline-flex; align-items: center; gap: 12px; max-width: 100%;
  padding: 8px 8px 8px 14px; border-radius: 999px; border: 1px dashed var(--line); background: transparent;
  font-family: var(--mono); font-size: 12px; transition: border-color .2s;
}
.ca-pill:hover { border-color: var(--gold); }
.ca-k { color: var(--gold); letter-spacing: .14em; }
.ca-v { color: var(--ink-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ca-copy { padding: 5px 12px; border-radius: 999px; background: rgba(241,233,218,.07); text-transform: uppercase; letter-spacing: .12em; font-size: 10.5px; }

.hero-visual { display: flex; justify-content: center; align-items: center; min-height: 520px; }
.stack { position: relative; width: min(100%, 400px); aspect-ratio: 4 / 4.9; }
.polaroid {
  position: absolute; inset: 0; margin: 0; padding: 14px 14px 0; background: #f6f1e7; border-radius: 6px;
  display: flex; flex-direction: column; box-shadow: 0 30px 60px -20px rgba(0,0,0,.75), 0 2px 6px rgba(0,0,0,.35);
  will-change: transform;
}
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; filter: saturate(1.05); }
.polaroid figcaption { flex: 1; display: grid; place-items: center; font-family: 'Caveat', cursive; font-size: clamp(26px, 2.6vw, 36px); color: #2a2520; line-height: 1; }
.polaroid::before { content: ''; position: absolute; top: -12px; left: 50%; width: 96px; height: 26px; translate: -50% 0; rotate: -3deg; background: rgba(255,197,61,.75); box-shadow: 0 2px 4px rgba(0,0,0,.2); }
.badge { position: absolute; z-index: 10; width: 120px; height: 120px; right: -40px; top: -34px; animation: spin 16s linear infinite; }
.badge-bg { fill: var(--gold); }
.badge text { font-family: var(--mono); font-weight: 600; font-size: 15px; letter-spacing: 3.2px; fill: var(--bg); }
.badge .badge-goat { font-size: 46px; letter-spacing: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 96px; gap: 36px; }
  .hero-visual { order: -1; min-height: 0; padding: 10px 0 20px; }
  .stack { width: min(72vw, 330px); }
  .badge { width: 88px; height: 88px; right: -24px; top: -26px; }
  }

/* ---------- shared ---------- */
.section { padding: clamp(80px, 11vw, 150px) var(--pad); position: relative; }
.sec-head { max-width: 1100px; margin-bottom: clamp(40px, 5vw, 64px); }
.eyebrow { margin: 0 0 16px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(40px, 6vw, 92px); line-height: .94; text-transform: uppercase; }
.lede { max-width: 480px; margin: 22px 0 0; color: var(--ink-dim); font-size: clamp(15px, 1.2vw, 17px); }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .04em; }
.split .w > span { display: inline-block; }
.gold { color: var(--gold); }

/* ---------- rotation ---------- */
.rotation { position: relative; }
.rot-pin { height: 100vh; display: flex; align-items: center; overflow: hidden; }
.rot-track { display: flex; gap: clamp(20px, 2.4vw, 36px); padding: 0 var(--pad); align-items: center; will-change: transform; }
.rot-intro { flex: 0 0 min(440px, 80vw); padding-right: 20px; }
.rot-hint { margin: 34px 0 0; font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-dim); }
.look-card {
  flex: 0 0 min(780px, 62vw); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; min-height: min(480px, 66vh);
}
.lc-img { position: relative; overflow: hidden; }
.lc-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.lc-body { padding: clamp(22px, 2.6vw, 38px); display: flex; flex-direction: column; justify-content: flex-end; }
.lc-no { font-family: var(--display); font-size: 64px; line-height: 1; color: transparent; -webkit-text-stroke: 1.2px var(--gold); margin-bottom: auto; }
.look-card h3 { margin: 18px 0 10px; font-family: var(--display); font-weight: 400; font-size: clamp(28px, 2.4vw, 38px); text-transform: uppercase; line-height: 1; }
.look-card p { margin: 0 0 22px; color: var(--ink-dim); font-size: 15px; }
.stats { margin: 0; display: grid; gap: 10px; }
.stats div { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 12px; }
.stats dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim); }
.stats dd { margin: 0; display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11.5px; }
.bar { flex: 1; height: 3px; background: var(--line); position: relative; border-radius: 3px; overflow: hidden; }
.bar::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--gold-2), var(--gold)); transform-origin: left; transform: scaleX(calc(var(--v) * var(--fill, 0))); transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
.in .bar { --fill: 1; }

@media (max-width: 900px) {
  .rot-pin { height: auto; display: block; padding: 90px 0; }
  .rot-track { flex-direction: column; align-items: stretch; gap: 22px; }
  .rot-intro { flex: none; padding: 0 0 18px; }
  .rot-hint { display: none; }
  .look-card { flex: none; grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .lc-img { aspect-ratio: 4 / 3; }
  .lc-no { font-size: 44px; margin-bottom: 0; }
}

/* ---------- counting sheep ---------- */
.sleep { position: relative; height: 320vh; background: var(--night); }
.sleep-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.sleep::before, .sleep::after { content: ''; position: absolute; left: 0; right: 0; height: 160px; z-index: 2; pointer-events: none; }
.sleep::before { top: 0; background: linear-gradient(var(--bg), transparent); }
.sleep::after { bottom: 0; background: linear-gradient(transparent, var(--bg)); }
.stars { position: absolute; inset: 0; background-image:
  radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 28% 72%, #fff, transparent),
  radial-gradient(1.5px 1.5px at 44% 12%, #fff, transparent), radial-gradient(1px 1px at 63% 38%, #fff, transparent),
  radial-gradient(1.5px 1.5px at 81% 22%, #fff, transparent), radial-gradient(1px 1px at 90% 64%, #fff, transparent),
  radial-gradient(1px 1px at 7% 52%, #fff, transparent), radial-gradient(1.5px 1.5px at 56% 82%, #fff, transparent),
  radial-gradient(1px 1px at 35% 44%, #fff, transparent), radial-gradient(1px 1px at 74% 88%, #fff, transparent);
  opacity: .55; animation: twinkle 4s ease-in-out infinite alternate; }
@keyframes twinkle { to { opacity: .25; } }
.moon { position: absolute; top: 14%; right: 12%; width: clamp(70px, 9vw, 130px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff8e1, #f5dc9a 60%, #d8b468);
  -webkit-mask: radial-gradient(circle at 78% 30%, transparent 47%, #000 48%); mask: radial-gradient(circle at 78% 30%, transparent 47%, #000 48%);
  filter: drop-shadow(0 0 30px rgba(255,220,140,.35)); }
.sleep-pin::before { content: ''; position: absolute; top: 2%; right: 2%; width: 40vw; height: 40vw; background: radial-gradient(circle, rgba(255,220,140,.08), transparent 60%); pointer-events: none; }
.sleep-copy { position: relative; z-index: 3; text-align: center; padding: 0 var(--pad); }
.sleep-line { margin: 0 auto 18px; max-width: 640px; font-size: clamp(17px, 1.6vw, 22px); min-height: 2.2em; }
.counter { font-family: var(--mono); font-weight: 600; font-size: clamp(40px, 9vw, 140px); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.counter.done { color: var(--gold); text-shadow: 0 0 60px rgba(255,197,61,.45); }
.sleep-unit { margin: 14px 0 0; font-family: var(--mono); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-dim); min-height: 1.6em; }
.sleep-unit.gold { color: var(--gold); }
.field { position: absolute; left: 0; right: 0; bottom: 12%; height: 120px; z-index: 1; }
.fence { position: absolute; left: 50%; bottom: 0; width: 120px; height: 46px; translate: -50% 0;
  background: repeating-linear-gradient(90deg, #4a3a26 0 8px, transparent 8px 28px), linear-gradient(#4a3a26, #4a3a26) 0 12px / 100% 5px no-repeat, linear-gradient(#4a3a26, #4a3a26) 0 30px / 100% 5px no-repeat; }
.jumper { position: absolute; bottom: 0; left: 0; font-size: 40px; animation: jump 3.3s linear infinite; animation-delay: var(--d); opacity: 0; transform: scaleX(-1); }
@keyframes jump {
  0% { left: 18%; bottom: 0; opacity: 0; }
  10% { opacity: 1; }
  40% { left: 44%; bottom: 0; }
  50% { left: 50%; bottom: 70px; }
  60% { left: 56%; bottom: 0; }
  90% { opacity: 1; }
  100% { left: 82%; bottom: 0; opacity: 0; }
}

/* ---------- tokenomics ---------- */
.tokenomics { padding-top: clamp(30px, 4vw, 60px); }
.tk-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; }
.tk { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; padding: 28px; min-height: 300px; display: flex; flex-direction: column; gap: 12px; min-width: 0; background: var(--bg-2); isolation: isolate; }
/* the photo, duotoned gold and pushed into the dark */
.tk-photo::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--img) center / cover; filter: grayscale(1) contrast(1.15) brightness(.9); transform: scale(1.05); transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.tk-photo::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,10,8,.55), rgba(11,10,8,.94) 70%), rgba(255,170,40,.35); mix-blend-mode: multiply; }
.tk-photo:hover::before { transform: scale(1.12); }
.tk p { margin: auto 0 0; color: var(--ink); opacity: .78; font-size: 15px; max-width: 320px; }
.tk-k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-dim); }
.tk-v { font-family: var(--display); font-size: clamp(36px, 3.6vw, 60px); line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; }
@media (max-width: 900px) { .tk-grid { grid-template-columns: minmax(0, 1fr); } .tk { min-height: 220px; } }

/* ---------- wool type ---------- */
.wool { padding: clamp(60px, 9vw, 130px) var(--pad); overflow: hidden; }
.wool-text {
  margin: 0; font-family: var(--display); text-transform: uppercase; line-height: .82; white-space: nowrap;
  font-size: clamp(110px, 27vw, 460px); letter-spacing: -.01em;
  background: url(img/snow.jpg) 50% 30% / 120% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wool-text.wt-2 { background-image: url(img/curl.jpg); text-align: right; }

/* ---------- buy ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { padding: 26px; border-radius: 20px; border: 1px solid var(--line); background: var(--bg-2); }
.steps li span { font-family: var(--display); font-size: 52px; line-height: 1; color: transparent; -webkit-text-stroke: 1.2px var(--gold); }
.steps h3 { margin: 16px 0 8px; font-family: var(--display); font-weight: 400; font-size: 26px; text-transform: uppercase; line-height: 1; }
.steps p { margin: 0; color: var(--ink-dim); font-size: 15px; }
.buy-head { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); margin-bottom: clamp(40px, 5vw, 64px); }
.nose { flex: 0 0 clamp(110px, 14vw, 190px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 2px solid var(--gold); box-shadow: 0 0 0 8px rgba(255,197,61,.08); }
.nose img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; transform: scale(1.9); transform-origin: 50% 75%; }

/* ---------- footer ---------- */
.footer { padding: 0 var(--pad) 40px; overflow: hidden; }
.foot-big { font-family: var(--display); font-size: clamp(100px, 27vw, 480px); line-height: .8; text-align: center; color: transparent; user-select: none;
  background: url(img/mop.jpg) 50% 40% / cover; -webkit-background-clip: text; background-clip: text; }
.foot-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 26px; margin-top: 20px; }
.socials { display: flex; gap: 24px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; flex-wrap: wrap; }
.socials a:hover { color: var(--gold); }
.disclaimer { margin: 0; max-width: 520px; font-size: 13px; color: var(--ink-dim); }

/* ---------- mobile sticky buy ---------- */
.mobile-buy { display: none; }
@media (max-width: 760px) {
  .mobile-buy { display: flex; position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 60; padding: 15px; box-shadow: 0 12px 40px -10px rgba(0,0,0,.8); transform: translateY(140%); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
  .mobile-buy.show { transform: none; }
  .footer { padding-bottom: 90px; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .pulse, .badge, .jumper, .stars { animation: none; }
}
.buy { padding-top: clamp(50px, 7vw, 100px); }
@media (max-width: 760px) { .wool { padding-block: 40px 10px; } }
