/* ------------------------------------------------------------------ fonts */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url(../assets/fonts/bricolage-latin.woff2) format('woff2');
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url(../assets/fonts/bricolage-latin-ext.woff2) format('woff2');
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url(../assets/fonts/instrument-serif.woff2) format('woff2');
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url(../assets/fonts/instrument-serif-italic.woff2) format('woff2');
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url(../assets/fonts/jetbrains-mono.woff2) format('woff2');
  font-weight: 300 700;
  font-display: swap;
}

/* ----------------------------------------------------------------- tokens */
:root {
  --ink: #0d0a1a;
  --ink-2: #1a1530;
  --cream: #f6f1e7;
  --paper: #efe7d8;
  --tomato: #ff4b2b;
  --gum: #ff5fa2;
  --electric: #3d5afe;
  --lime: #c6ff3d;
  --tang: #ff9a1f;
  --grape: #8b5cff;
  --mint: #2ee6a6;
  --sun: #ffd23f;
  --sky: #53c8ff;
  --f-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --f-serif: 'Instrument Serif', ui-serif, Georgia, serif;
  --f-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(16px, 3vw, 44px);
  --hold: 0;
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--f-display);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.is-locked, body.is-success { overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
img, svg, canvas { display: block; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
kbd { font-family: var(--f-mono); font-size: .8em; padding: .1em .45em; border: 1px solid currentColor; border-radius: 6px; }
::selection { background: var(--lime); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 8px; }

html.has-cursor, html.has-cursor * { cursor: none !important; }

/* ------------------------------------------------------------- backdrops */
.bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; }
.grain {
  position: fixed; inset: -100%; z-index: 90; pointer-events: none; opacity: .07;
  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%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(-6%, 4%); } 40% { transform: translate(5%, -7%); }
  60% { transform: translate(-3%, 8%); } 80% { transform: translate(7%, 2%); } 100% { transform: translate(0, 0); }
}
.fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 80; pointer-events: none; }

/* holding the checkout closes the world in */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 60;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(13, 10, 26, .9) 100%);
  opacity: calc(var(--hold) * 1);
}

/* ----------------------------------------------------------------- cursor */
.cursor { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cursor__dot {
  position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--cream); mix-blend-mode: difference;
}
.cursor__ring {
  position: absolute; left: -20px; top: -20px; width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid rgba(246, 241, 231, .8); display: grid; place-items: center;
  transition: background-color .25s, border-color .25s;
  mix-blend-mode: difference;
}
.cursor.is-label .cursor__ring { background: var(--cream); border-color: var(--cream); mix-blend-mode: normal; }
.cursor__label {
  font: 700 11px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
  opacity: 0; transition: opacity .2s; white-space: nowrap;
}
.cursor.is-label .cursor__label { opacity: 1; }

/* ------------------------------------------------------------------- gate */
.gate {
  position: fixed; inset: 0; z-index: 95; background: var(--ink);
  display: grid; grid-template-rows: auto 1fr auto; padding: var(--pad);
}
.gate__bar { display: flex; justify-content: space-between; font: 500 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
.gate__center { display: grid; place-items: center; align-content: center; gap: 28px; text-align: center; }
.gate__eyebrow { margin: 0; font: italic 400 clamp(28px, 4vw, 52px)/1 var(--f-serif); }
.gate__keys { position: relative; display: flex; width: min(560px, 86vw); height: 64px; gap: 2px; }
.k--w { flex: 1; background: rgba(246, 241, 231, .12); border-radius: 0 0 4px 4px; transition: background-color .5s, transform .2s; }
.k--b { position: absolute; top: 0; width: 1.2%; height: 60%; background: #000; border-radius: 0 0 3px 3px; z-index: 1; transition: background-color .5s; }
.k--w.is-lit { background: var(--cream); }
.k--b.is-lit { background: #2a2440; }
.k.is-hit { animation: keyhit .5s var(--ease-out); }
.k--w.is-hit { background: var(--gum); }
@keyframes keyhit { 0% { transform: translateY(6px) scaleY(.94); } 100% { transform: none; } }
.gate__btn {
  position: relative; width: 184px; height: 184px; border-radius: 50%;
  background: rgba(246, 241, 231, .06); color: var(--cream); display: grid; place-items: center;
  font: 700 15px/1.15 var(--f-display); letter-spacing: -.01em; padding: 30px;
  transition: background-color .5s, color .5s, transform .5s var(--ease-out);
}
.gate__btn-ring { position: absolute; inset: -8px; border-radius: 50%; border: 1px dashed rgba(246, 241, 231, .3); animation: spin 14s linear infinite; }
.gate.is-ready .gate__btn { background: var(--cream); color: var(--ink); animation: breathe 2.4s ease-in-out infinite; }
.gate.is-ready .gate__btn-ring { border-style: solid; border-color: var(--gum); }
.gate.is-ready .gate__btn:hover { animation-play-state: paused; transform: scale(1.06); }
.gate.is-ready .gate__btn:active { transform: scale(.92); transition-duration: .08s; }
.gate__btn-label { position: relative; font-size: 17px; }
.gate.is-leaving .gate__btn { animation: none; transform: scale(.9); }
@keyframes breathe { 50% { transform: scale(1.045); } }
@keyframes spin { to { transform: rotate(360deg); } }
.gate__status { margin: 0; font: 400 12px/1.5 var(--f-mono); opacity: .6; max-width: 34ch; }
.gate__silent { font: 500 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; opacity: .5; text-decoration: underline; text-underline-offset: 4px; }
.gate__silent:hover { opacity: 1; }

/* ----------------------------------------------------------------- header */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70; padding: 14px var(--pad);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; pointer-events: none;
}
.hdr > * { pointer-events: auto; }
.hdr__logo {
  justify-self: start; text-decoration: none; font: 700 19px/1 var(--f-display); letter-spacing: -.03em;
  padding: 10px 14px; border-radius: 99px; background: rgba(13, 10, 26, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.hdr__logo span { opacity: .45; }
.meter {
  position: relative; width: clamp(150px, 22vw, 260px); height: 34px; border-radius: 99px; overflow: hidden;
  background: rgba(13, 10, 26, .74); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1.5px rgba(246, 241, 231, .18);
  display: flex; align-items: center; justify-content: space-between; padding: 0 14px;
  font: 600 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
}
.meter__fx { position: absolute; inset: 0; width: 100%; height: 100%; }
.meter__label, .meter__val { position: relative; mix-blend-mode: difference; color: #fff; }
.meter__num { font-variant-numeric: tabular-nums; }
.meter.is-peak { box-shadow: inset 0 0 0 1.5px var(--lime), 0 0 24px rgba(198, 255, 61, .55); animation: peak 1s ease-in-out infinite; }
@keyframes peak { 50% { box-shadow: inset 0 0 0 1.5px var(--lime), 0 0 40px rgba(198, 255, 61, .85); } }
.hdr__right { justify-self: end; display: flex; gap: 8px; align-items: center; }
.snd, .bagbtn {
  height: 42px; border-radius: 99px; padding: 0 16px; display: flex; align-items: center; gap: 10px;
  background: rgba(13, 10, 26, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1.5px rgba(246, 241, 231, .16);
  font: 600 12px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase;
}
.snd__bars { display: flex; gap: 2px; align-items: flex-end; height: 14px; }
.snd__bars i { width: 3px; height: 14px; background: var(--lime); border-radius: 2px; transform-origin: bottom; transform: scaleY(.2); }
.snd.is-muted .snd__bars i { background: rgba(246, 241, 231, .4); }
.bagbtn { background: var(--cream); color: var(--ink); box-shadow: none; font-weight: 700; }
.bagbtn__pill { width: 30px; height: 15px; transform: rotate(-20deg); }
.bagbtn__count {
  position: relative; display: inline-grid; min-width: 24px; height: 24px; border-radius: 99px; overflow: hidden;
  background: var(--ink); color: var(--cream); place-items: center; font-variant-numeric: tabular-nums;
}
.bagbtn__count > span { grid-area: 1 / 1; padding: 0 6px; }
.bagbtn.has-items .bagbtn__count { background: var(--last, var(--gum)); color: var(--ink); }

/* ------------------------------------------------------------------- hero */
.hero {
  position: relative; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto auto;
  padding: 96px var(--pad) 28px; overflow: hidden;
}
.hero__roll { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; pointer-events: none; }
.hero__top, .hero__bottom, .wordmark, .hero__hint { position: relative; }
.hero__top { display: flex; justify-content: space-between; font: 500 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.wordmark {
  align-self: center; margin: 0; text-align: center; white-space: nowrap;
  font-size: clamp(64px, 17.4vw, 360px); line-height: .82; letter-spacing: -.028em; font-weight: 600;
  font-variation-settings: 'wght' 600, 'opsz' 96;
  user-select: none;
}
.wm__l {
  display: inline-block; opacity: 0; transform-origin: 50% 88%; will-change: transform;
  font-variation-settings: 'wght' 200, 'opsz' 96;
}
.wm__l:nth-child(3n+1) { color: var(--cream); }
.hero__bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 20px; }
.hero__tag { margin: 0; font-size: clamp(22px, 2.6vw, 38px); line-height: 1.02; letter-spacing: -.03em; font-weight: 600; }
.hero__tag em { font-size: 1.15em; color: var(--gum); }
.hero__meta { margin: 0; justify-self: end; text-align: right; font: 500 12px/1.6 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.hero__cta {
  justify-self: center; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center;
  background: var(--lime); color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -.01em;
  box-shadow: 0 20px 60px -20px rgba(198, 255, 61, .6);
  transition: transform .5s var(--ease-out);
}
.hero__cta-in { display: grid; place-items: center; gap: 6px; }
.hero__cta svg { width: 22px; height: 22px; animation: nudge 1.6s var(--ease-out) infinite; }
.hero__cta:hover { transform: scale(1.08); }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translateY(5px); } }
.hero__hint { margin: 22px 0 0; text-align: center; font: 500 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; opacity: .5; }
.hero__hint span { display: inline-block; animation: nudge 1.6s var(--ease-out) infinite reverse; }

/* ---------------------------------------------------------------- marquee */
.marquee { position: relative; height: clamp(150px, 16vw, 230px); margin: 40px 0 20px; }
.marquee__band {
  position: absolute; left: -5%; right: -5%; top: 50%; overflow: hidden; padding: 16px 0;
  font: 800 clamp(28px, 3.6vw, 56px)/1 var(--f-display); letter-spacing: -.03em; text-transform: uppercase;
}
.marquee__band--a { background: var(--lime); color: var(--ink); transform: translateY(-50%) rotate(-3.5deg); z-index: 1; }
.marquee__band--b { background: var(--gum); color: var(--ink); transform: translateY(-50%) rotate(2.5deg); }
.marquee__track { display: flex; width: max-content; align-items: center; gap: .5em; will-change: transform; }
.marquee__track i { font-style: normal; font-size: .8em; }
.marquee__band--b .marquee__track span { font-family: var(--f-serif); font-style: italic; font-weight: 400; text-transform: none; font-size: 1.15em; letter-spacing: -.01em; }

/* ------------------------------------------------------------------ shop */
.shop { padding: 80px var(--pad) 120px; }
.shop__head { display: grid; gap: 10px; margin-bottom: 44px; }
.kicker { margin: 0; font: 600 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--lime); }
.kicker span { opacity: .6; }
.kicker--ink { color: var(--grape); }
.h-section { margin: 0; font-size: clamp(56px, 10vw, 168px); line-height: .86; letter-spacing: -.05em; font-weight: 700; }
.h-section .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.h-section .wi { display: inline-block; }
.shop__sub { margin: 8px 0 0; font-size: clamp(18px, 1.6vw, 24px); max-width: 46ch; opacity: .85; }
.shop__sub em { color: var(--sun); font-size: 1.15em; }

.shop__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 26px); }
.card { color: var(--fg); }
.card__in {
  position: relative; height: 100%; display: flex; flex-direction: column;
  border-radius: 30px; background: var(--c); padding: 12px; overflow: hidden;
  transform-style: preserve-3d; will-change: transform;
  box-shadow: 0 calc(var(--lift, 0) * 40px + 10px) calc(var(--lift, 0) * 60px + 30px) -20px rgba(0, 0, 0, .55);
}
.card__media {
  position: relative; aspect-ratio: 4 / 3.1; border-radius: 20px; overflow: hidden;
  background: color-mix(in srgb, var(--c) 82%, #000);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}
.card__media canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.card__idx, .card__tag {
  position: absolute; bottom: 10px; font: 700 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 9px; border-radius: 99px; pointer-events: none;
}
.card__idx { left: 10px; background: var(--ink); color: var(--cream); }
.card__tag { right: 10px; background: var(--cream); color: var(--ink); }
.card__body { display: grid; gap: 10px; padding: 16px 8px 6px; flex: 1; align-content: start; }
.card__title { margin: 0; font-size: clamp(24px, 2.2vw, 34px); line-height: .95; letter-spacing: -.035em; font-weight: 700; }
.card__desc { margin: 0; font-family: var(--f-serif); font-style: italic; font-size: 20px; line-height: 1.1; opacity: .9; }
.card__meta { display: flex; gap: 8px; margin: 4px 0 0; flex-wrap: wrap; }
.card__meta > div { border: 1.5px solid currentColor; border-radius: 12px; padding: 7px 10px; opacity: .9; }
.card__meta dt { font: 600 9px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; opacity: .7; margin-bottom: 4px; }
.card__meta dd { margin: 0; font: 700 13px/1 var(--f-display); }
.card__hit { display: flex; gap: 3px; padding-top: 1px; }
.card__hit i { width: 12px; height: 8px; border-radius: 4px; border: 1.5px solid currentColor; }
.card__hit i.on { background: currentColor; }
.card__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.card__price { font-size: 30px; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.add {
  position: relative; height: 50px; padding: 0 20px 0 22px; border-radius: 99px; overflow: hidden;
  background: var(--ink); color: var(--cream); display: flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: -.01em; isolation: isolate;
}
.add__fill { position: absolute; inset: 0; background: var(--cream); transform: scaleX(0); transform-origin: left; z-index: -1; }
.add__ico { width: 18px; height: 18px; transition: transform .6s var(--ease-out); }
.add:hover .add__ico { transform: rotate(90deg); }
.add.is-added { color: var(--ink); }
.add.is-added .add__fill { animation: addfill .5s var(--ease-out) forwards; }
.add.is-added .add__ico { transform: rotate(45deg) scale(0); }
@keyframes addfill { to { transform: scaleX(1); } }
.card__glare {
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit; mix-blend-mode: soft-light;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgba(255, 255, 255, .7), transparent 45%);
  opacity: calc(var(--lift, 0) * 1);
}

/* --------------------------------------------------------------- science */
.science { position: relative; height: 340vh; background: var(--paper); color: var(--ink); }
.science__pin {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: minmax(300px, 5fr) 7fr; align-items: center; gap: 4vw; padding: 90px var(--pad) 40px;
}
.science__copy { display: grid; gap: 18px; align-content: center; }
.science__formula { margin: 0; font-size: clamp(56px, 7vw, 120px); line-height: .9; letter-spacing: -.05em; font-weight: 800; }
.science__formula sub { font-size: .42em; letter-spacing: 0; color: var(--grape); font-variant-numeric: tabular-nums; vertical-align: -.1em; margin-right: .08em; }
.science__stages { position: relative; min-height: 230px; }
.stage { position: absolute; inset: 0; opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .7s var(--ease-out); }
.stage.is-on { opacity: 1; transform: none; }
.stage h3 { margin: 0 0 10px; font-size: clamp(44px, 5.2vw, 84px); line-height: .9; letter-spacing: -.05em; font-weight: 700; }
.stage p { margin: 0; font-size: clamp(18px, 1.5vw, 23px); max-width: 32ch; }
.stage em { color: var(--tomato); font-size: 1.15em; }
.science__progress { position: relative; display: flex; justify-content: space-between; height: 22px; border-top: 1.5px solid rgba(13, 10, 26, .2); padding-top: 8px; font: 600 11px/1 var(--f-mono); }
.science__progress i { position: absolute; left: 0; right: 0; top: -1.5px; height: 1.5px; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.science__mol { height: 100%; display: grid; place-items: center; }
.mol { width: 100%; max-height: 78vh; overflow: visible; }
.mol__bond { stroke: var(--ink); stroke-width: 5; stroke-linecap: round; fill: none; }
.mol__bond--in { stroke-width: 4; }
.mol__atom { fill: var(--gum); stroke: var(--ink); stroke-width: 2; }
.mol__label { font: 800 30px var(--f-display); letter-spacing: -.02em; transform-box: fill-box; transform-origin: center; }
.mol__halo { fill: var(--lime); opacity: 0; transition: opacity .3s; filter: blur(30px); }

/* ------------------------------------------------------------ instrument */
.instrument { padding: 140px var(--pad) 80px; }
.instrument__head { display: grid; gap: 10px; margin-bottom: 40px; }
.instrument__sub { margin: 8px 0 0; font-size: clamp(18px, 1.6vw, 24px); max-width: 44ch; opacity: .85; }
.instrument__sub em { color: var(--lime); font-size: 1.15em; }
.instrument__keys { display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; height: clamp(240px, 38vh, 380px); touch-action: none; }
.col {
  position: relative; border-radius: 20px; overflow: hidden; background: rgba(246, 241, 231, .06);
  box-shadow: inset 0 0 0 1.5px rgba(246, 241, 231, .12); display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  padding-bottom: 14px; gap: 8px; transform-origin: bottom;
}
.col:hover { background: rgba(246, 241, 231, .1); }
.col__beam { position: absolute; inset: 0; background: linear-gradient(to top, var(--c), transparent 90%); transform: scaleY(0); transform-origin: bottom; opacity: 0; }
.col.is-on .col__beam { animation: beam 1.1s var(--ease-out); }
@keyframes beam { 0% { transform: scaleY(0); opacity: 1; } 25% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.col__note { position: relative; font-size: clamp(20px, 2.2vw, 34px); font-weight: 700; letter-spacing: -.03em; }
.col kbd { position: relative; opacity: .6; }

/* ----------------------------------------------------------------- footer */
.ftr { padding: 60px var(--pad) 30px; border-top: 1.5px solid rgba(246, 241, 231, .12); }
.ftr__big { margin: 0 0 40px; font-size: clamp(90px, 22vw, 420px); line-height: .78; letter-spacing: -.06em; font-weight: 800; color: transparent; -webkit-text-stroke: 1.5px rgba(246, 241, 231, .5); }
.ftr__big em { color: var(--gum); -webkit-text-stroke: 0; }
.ftr__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 50px; }
.ftr__cols p { margin: 0; max-width: 38ch; opacity: .8; }
.ftr__h { font: 600 12px/1 var(--f-mono) !important; letter-spacing: .1em; text-transform: uppercase; color: var(--lime); margin-bottom: 12px !important; opacity: 1 !important; }
.ftr__base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font: 500 11px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; opacity: .55; }
.ftr__base a { text-decoration: none; }

/* ----------------------------------------------------------------- drawer */
.scrim { position: fixed; inset: 0; z-index: 74; background: rgba(13, 10, 26, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.drawer {
  position: fixed; top: 10px; right: 10px; bottom: 10px; z-index: 75; width: min(460px, calc(100vw - 20px));
  background: var(--cream); color: var(--ink); border-radius: 28px; display: flex; flex-direction: column;
  transform: translateX(calc(100% + 140px)); box-shadow: -30px 0 80px -30px rgba(0, 0, 0, .6);
}
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 24px 24px 12px; }
.drawer__head h2 { margin: 0; font-size: 34px; letter-spacing: -.04em; line-height: 1; display: flex; align-items: center; gap: 10px; }
.drawer__count { display: inline-grid; place-items: center; min-width: 30px; height: 30px; border-radius: 99px; background: var(--ink); color: var(--cream); font: 700 14px/1 var(--f-mono); padding: 0 8px; }
.drawer__close { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--cream); font-size: 26px; line-height: 1; display: grid; place-items: center; transition: transform .5s var(--ease-out); }
.drawer__close:hover { transform: rotate(90deg); }
.drawer__list { list-style: none; margin: 0; padding: 8px 16px; overflow: auto; flex: 1; }
.line {
  display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: 'pill name price' 'pill qty qty';
  gap: 6px 14px; align-items: center; padding: 14px 8px; border-bottom: 1.5px solid rgba(13, 10, 26, .1); overflow: hidden;
}
.line__pill { grid-area: pill; width: 54px; height: 54px; border-radius: 16px; background: var(--c); display: grid; place-items: center; }
.line__pill i { width: 30px; height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--ink) 50%, var(--cream) 50%); transform: rotate(-30deg); box-shadow: 0 0 0 1.5px var(--ink); }
.line__name { grid-area: name; font-weight: 700; letter-spacing: -.02em; font-size: 18px; line-height: 1.05; }
.line__name small { display: block; font: italic 400 15px/1.1 var(--f-serif); opacity: .65; margin-top: 3px; }
.line__price { grid-area: price; font: 700 16px/1 var(--f-mono); font-variant-numeric: tabular-nums; }
.line__qty { grid-area: qty; display: flex; align-items: center; gap: 10px; }
.q { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink); font-weight: 700; font-size: 18px; line-height: 1; display: grid; place-items: center; transition: background-color .2s, color .2s; }
.q:hover { background: var(--ink); color: var(--cream); }
.line__n { min-width: 16px; text-align: center; font: 700 14px/1 var(--f-mono); display: inline-block; }
.drawer__empty { flex: 1; display: grid; place-items: center; align-content: center; gap: 14px; text-align: center; padding: 40px; color: rgba(13, 10, 26, .5); }
.drawer__empty[hidden] { display: none; }
.drawer__empty svg { width: 90px; }
.drawer__empty p { margin: 0; font-size: 20px; font-weight: 600; color: var(--ink); }
.drawer__empty em { color: var(--tomato); }
.drawer.is-empty .drawer__list { flex: 0; }
.drawer__foot { padding: 18px 24px 24px; border-top: 1.5px solid rgba(13, 10, 26, .1); display: grid; gap: 10px; }
.drawer__row { display: flex; justify-content: space-between; font-weight: 700; font-size: 18px; }
.drawer__row--dim { font: 500 12px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; opacity: .55; }
.drawer__total { font-variant-numeric: tabular-nums; }
.drawer__fine { margin: 0; text-align: center; font: 500 11px/1.4 var(--f-mono); opacity: .5; }

.hold {
  --p: 0;
  position: relative; height: 68px; margin-top: 8px; border-radius: 99px; overflow: hidden; isolation: isolate;
  background: var(--ink); color: var(--cream); font-size: 19px; font-weight: 700; letter-spacing: -.01em;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  transform: scale(calc(1 - var(--p) * .04));
}
.hold:disabled { opacity: .35; cursor: not-allowed; }
.hold__fill {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--electric), var(--gum) 45%, var(--tang) 75%, var(--lime));
  clip-path: inset(0 calc((1 - var(--p)) * 100%) 0 0 round 99px);
}
.hold__label { display: inline-block; mix-blend-mode: difference; }
body.is-holding .hold { box-shadow: 0 0 calc(var(--p) * 60px) rgba(255, 95, 162, calc(var(--p) * .8)); }

/* ---------------------------------------------------------------- success */
.success { position: fixed; inset: 0; z-index: 78; backdrop-filter: blur(10px) saturate(.7); -webkit-backdrop-filter: blur(10px) saturate(.7); display: grid; grid-template-rows: auto 1fr auto; justify-items: center; padding: 70px var(--pad) 40px; overflow: auto; }
.success[hidden] { display: none; }
.success__flash { position: fixed; inset: 0; background: #fff; pointer-events: none; opacity: 0; }
.success__title { margin: 0; text-align: center; font-size: clamp(56px, 10vw, 170px); line-height: .88; letter-spacing: -.05em; font-weight: 800; }
.sw { display: inline-block; white-space: nowrap; }
.sw--em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; color: var(--gum); }
.sc { display: inline-block; transition: color .6s; }
.receipt { position: relative; width: min(360px, 92vw); margin-top: 26px; }
.receipt__slot { height: 16px; border-radius: 99px; background: #000; box-shadow: inset 0 3px 6px rgba(255, 255, 255, .08), 0 0 0 4px rgba(246, 241, 231, .12); position: relative; z-index: 2; }
.receipt__paper {
  position: relative; margin: -8px 14px 0; height: 0; overflow: hidden; background: #fbf8f1; color: var(--ink);
  transition: height .16s steps(3);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, radial-gradient(circle at 6px 8px, transparent 5px, #000 5.5px) bottom / 12px 8px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, radial-gradient(circle at 6px 8px, transparent 5px, #000 5.5px) bottom / 12px 8px repeat-x;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5);
}
.receipt__body { padding: 22px 18px 18px; font: 500 12px/1.5 var(--f-mono); }
.rc { display: flex; justify-content: space-between; gap: 12px; min-height: 18px; }
.rc--h { justify-content: center; font: 800 20px/1.2 var(--f-display); letter-spacing: -.02em; }
.rc--c { justify-content: center; text-align: center; opacity: .7; }
.rc--hr { border-top: 1.5px dashed rgba(13, 10, 26, .35); margin: 8px 0; min-height: 0; }
.rc--total { position: relative; font-weight: 700; font-size: 15px; }
.rc--total::after { content: ''; position: absolute; left: -4px; right: -4px; top: 50%; height: 2.5px; background: var(--tomato); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.7, 0, .2, 1); }
.rc--total.is-struck::after { transform: scaleX(1); }
.rc--due { font-weight: 800; font-size: 18px; color: var(--tomato); }
.rc--bar svg { width: 100%; height: 34px; fill: var(--ink); margin: 6px 0; }
.rc-stamp {
  position: absolute; right: 18px; top: 46%; padding: 8px 12px; border: 3px solid var(--tomato); border-radius: 8px;
  color: var(--tomato); font: 800 16px/1.05 var(--f-display); letter-spacing: .02em; text-align: center; mix-blend-mode: multiply; pointer-events: none;
}
.success__again {
  margin-top: 26px; height: 60px; padding: 0 30px; border-radius: 99px; background: var(--lime); color: var(--ink);
  font-size: 18px; font-weight: 700; opacity: 0; transform: translateY(30px); transition: opacity .5s, transform .8s var(--ease-out);
}
.success__again.is-in { opacity: 1; transform: none; }

/* ----------------------------------------------------------------- floaty */
.floaty {
  position: fixed; z-index: 85; pointer-events: none; white-space: nowrap;
  font: 700 16px/1 var(--f-mono); letter-spacing: .02em; padding: 8px 12px; border-radius: 99px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5);
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .shop__grid { grid-template-columns: repeat(2, 1fr); }
  .science__pin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 0; padding-top: 80px; }
  .science__mol { order: -1; max-height: 42vh; }
  .science__stages { min-height: 170px; }
}
@media (max-width: 720px) {
  .hdr { grid-template-columns: auto 1fr; padding: 10px 12px; }
  .meter { display: none; }
  .snd__txt, .bagbtn__txt { display: none; }
  .snd, .bagbtn { padding: 0 12px; }
  .hero { padding-top: 84px; }
  .wordmark { font-size: 22vw; }
  .hero__top span:nth-child(2) { display: none; }
  .hero__bottom { grid-template-columns: 1fr auto; }
  .hero__meta { display: none; }
  .hero__cta { width: 104px; height: 104px; font-size: 14px; }
  .shop__grid { grid-template-columns: 1fr; }
  .instrument__keys { gap: 4px; }
  .col { border-radius: 12px; }
  .col kbd { display: none; }
  .ftr__cols { grid-template-columns: 1fr; }
}

@media (hover: none) {
  .hero__hint { visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .gate__btn-ring, .hero__cta svg, .hero__hint span { animation: none; }
  html { scroll-behavior: auto; }
  .wm__l { opacity: 1 !important; }
}
