/* murasaki-marcus: v2 "Galleria" on pure black, Marcus Aurelius hoodies only. Mobile first: unprefixed rules are the phone, min-width queries enhance. */
@font-face { font-family: "Jost"; src: url(/assets/jost.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url(/assets/cormorant-300.woff2) format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url(/assets/cormorant-300i.woff2) format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url(/assets/cormorant-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #000; --bg-2: #000; --bg-3: #141414; --ink: #EFE8DC; --mute: #ABA49A; --gold: #C9A45C; --violet: #8E6BE0;
  --line: rgba(239, 232, 220, .16); --tile: #000; --dk: #E9E6E1;
  --serif: "Cormorant Garamond", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", Georgia, serif;
  --sans: "Jost", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
  --ease-out: cubic-bezier(.23, 1, .32, 1); --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --nav: 56px; --pad: 20px;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; }
html.is-locked { overflow: hidden; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6; font-weight: 400; -webkit-font-smoothing: antialiased; min-height: 100dvh; overflow-x: clip; }
body::after { content: none; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; border-radius: 0; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, ul, ol, fieldset { margin: 0; padding: 0; border: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 12px 16px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; transition: top 160ms var(--ease-out); }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; transition: transform 160ms var(--ease-out), background-color 220ms var(--ease-out), color 220ms var(--ease-out), border-color 220ms var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn--solid { background: var(--bg); color: var(--ink); border: 1px solid var(--ink); box-shadow: inset 0 0 0 1px var(--ink); width: 100%; } /* outlined: no light boxes on the black site */
.btn--solid:disabled { border-color: var(--line); box-shadow: none; color: var(--mute); cursor: default; }
.btn--line { border: 1px solid rgba(239, 232, 220, .45); color: var(--ink); background: rgba(0, 0, 0, .35); }
@media (hover: hover) {
  .btn--solid:not(:disabled):hover { color: var(--gold); border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
  .btn--line:hover { color: var(--gold); border-color: var(--gold); }
}

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--nav); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad); transition: background-color 300ms var(--ease-out); }
.nav.is-solid { background: rgba(0, 0, 0, .84); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav__logo { display: flex; align-items: center; min-height: 44px; }
.nav__logo img { height: 24px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 18px; }
.nav__link { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); transition: color 200ms var(--ease-out); }
.nav__link--gallery { display: none; }
.nav__tag { display: none; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--mute); white-space: nowrap; }
.nav__count { display: inline-block; min-width: 1.4em; margin-left: .5em; text-align: center; color: var(--gold); font-variant-numeric: tabular-nums; }
@media (hover: hover) { .nav__link:hover { color: var(--gold); } }

/* ---------- home: stage + overlay ---------- */
.home { height: 100dvh; overflow: hidden; }
.stage { position: fixed; inset: 0; z-index: 1; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; transition: opacity 420ms var(--ease-out); }
.stage.is-over { cursor: pointer; }
.stage.is-drag { cursor: grabbing; }
.stage::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; pointer-events: none; background: linear-gradient(to top, rgba(0, 0, 0, .96), rgba(0, 0, 0, .8) 55%, rgba(0, 0, 0, 0)); }
.stage__canvas { display: block; width: 100%; height: 100%; }
.is-leaving .stage { opacity: 0; }
.is-leaving .label, .is-leaving .hint, .is-leaving .steps { opacity: 0; }

.loader { position: fixed; inset: 0; z-index: 30; background: var(--bg); display: flex; flex-direction: column; justify-content: flex-end; padding: var(--pad); padding-bottom: calc(var(--pad) + env(safe-area-inset-bottom)); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); }
.loader.is-done { opacity: 0; transform: translateY(-2%); pointer-events: none; }
.loader__num { font-family: var(--serif); font-weight: 300; font-size: clamp(150px, 46vw, 520px); line-height: .78; letter-spacing: -.04em; font-variant-numeric: lining-nums tabular-nums; margin-left: -.04em; }
.loader__tag { margin-top: 22px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--mute); }

.label { position: fixed; z-index: 20; left: var(--pad); right: var(--pad); bottom: calc(var(--pad) + env(safe-area-inset-bottom)); pointer-events: none; opacity: 0; transition: opacity 500ms var(--ease-out); }
.gl-ready .label { opacity: 1; transition-delay: 500ms; }
.label__count { font-size: 11px; letter-spacing: .2em; color: var(--mute); font-variant-numeric: tabular-nums; }
.label__name { margin-top: 6px; font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 10vw, 46px); line-height: .96; letter-spacing: -.015em; text-wrap: balance; }
.label__meta { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); max-width: 34ch; }
.label__price { color: var(--gold); font-size: 16px; letter-spacing: .06em; }
.label__cta { min-height: 52px; font-size: 13px; padding: 0 30px; background: rgba(0, 0, 0, .55); color: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.label__count { font-size: 12px; }
.label__cta { margin-top: 16px; pointer-events: auto; }
.label__name, .label__meta, .label__cta { transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out); }
.label.is-swap .label__name, .label.is-swap .label__meta { opacity: 0; transform: translateY(8px); transition-duration: 120ms; }

.hint { position: fixed; z-index: 20; top: calc(var(--nav) + 2px); left: 0; right: 0; text-align: center; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); pointer-events: none; opacity: 0; transition: opacity 600ms var(--ease-out); }
.gl-ready .hint { opacity: 1; transition-delay: 1400ms; }
.gl-ready .hint.is-gone { opacity: 0; transition-delay: 0ms; }
.steps { position: fixed; z-index: 20; right: var(--pad); bottom: calc(var(--pad) + env(safe-area-inset-bottom)); display: flex; gap: 6px; opacity: 0; transition: opacity 500ms var(--ease-out); }
.gl-ready .steps { opacity: 1; transition-delay: 500ms; }
.steps button { min-width: 52px; min-height: 52px; padding: 0 8px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); transition: color 200ms var(--ease-out), transform 160ms var(--ease-out); }
.steps button:active { transform: scale(.95); }
@media (hover: hover) { .steps button:hover { color: var(--ink); } }

/* index overlay, also the static fallback */
.index { position: fixed; inset: 0; z-index: 35; background: var(--bg); overflow-y: auto; overscroll-behavior: contain; padding: calc(var(--nav) + 24px) var(--pad) 64px; visibility: hidden; opacity: 0; transform: translateY(12px); transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out), visibility 0s linear 300ms; }
.index.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.index__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.index__title { font-family: var(--serif); font-weight: 300; font-size: clamp(56px, 16vw, 150px); line-height: .85; letter-spacing: -.02em; }
.index__sub { margin-top: 14px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.works { columns: 2; column-gap: 14px; }
.work { break-inside: avoid; margin-bottom: 26px; }
.work__link { display: block; }
.work__frame { display: block; overflow: hidden; background: var(--bg-3); }
.work__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.work__name { display: block; margin-top: 10px; font-family: var(--serif); font-size: 21px; line-height: 1.1; }
.work__meta { display: block; margin-top: 4px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.work__price { color: var(--gold); margin-left: 6px; white-space: nowrap; }
.index__more { margin-top: 28px; }
@media (hover: hover) { .work__link:hover .work__frame img { transform: scale(1.04); } }

html.static .home { height: auto; overflow: visible; }
html.static .stage, html.static .loader, html.static .label, html.static .hint, html.static .steps, html.static [data-index-toggle] { display: none; }
html.static .index { position: static; visibility: visible; opacity: 1; transform: none; background: none; overflow: visible; min-height: 100dvh; }
html.static .index__title { font-size: 0; }
html.static .index__title::before { content: "Galleria"; font-size: clamp(64px, 18vw, 220px); }

/* ---------- drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .7); opacity: 0; transition: opacity 400ms var(--ease-out); }
.scrim.is-open { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 80; width: min(440px, 100vw); background: var(--bg-2); display: flex; flex-direction: column; transform: translateX(100%); transition: transform 460ms var(--ease-drawer); border-left: 1px solid var(--line); }
.drawer.is-open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px var(--pad); border-bottom: 1px solid var(--line); }
.drawer__title { font-family: var(--serif); font-weight: 300; font-size: 34px; line-height: 1; }
.drawer__close { min-height: 44px; padding: 0 4px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--pad); }
.drawer__foot { padding: 18px var(--pad) calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.drawer__sum { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.drawer__note { margin: 6px 0 16px; font-size: 16px; color: var(--mute); }
.drawer__error { margin: 0 0 12px; font-size: 13px; color: #F3B6A6; }
.drawer__link { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 6px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.line { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line__img { display: block; background: var(--tile); aspect-ratio: 4 / 5; padding: 6%; }
.line__img--dk { background: var(--dk); }
.line__img img { width: 100%; height: 100%; object-fit: contain; }
.line__info { display: flex; flex-direction: column; min-width: 0; }
.line__name { display: flex; align-items: center; min-height: 44px; font-family: var(--serif); font-size: 20px; line-height: 1.1; overflow-wrap: anywhere; }
.line__variant { margin-top: 4px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); overflow-wrap: anywhere; }
.line__row { margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.line__price { font-size: 14px; font-variant-numeric: tabular-nums; }
.line__remove { min-height: 44px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); text-decoration: underline; text-underline-offset: 4px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.qty button { width: 44px; height: 44px; font-size: 16px; transition: background-color 160ms var(--ease-out); }
.qty button:active { background: var(--bg-3); }
.qty button:disabled { color: var(--mute); opacity: .5; }
.qty span { min-width: 26px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.empty { padding: 56px 0; text-align: left; }
.empty__text { font-family: var(--serif); font-weight: 300; font-size: 30px; line-height: 1.1; margin-bottom: 22px; }

/* ---------- shop ---------- */
main { display: block; }
.shop main, .pdp main, .cart main, .thanks main, .ship main, .lost main { padding-top: var(--nav); }
.shop__head { padding: 36px var(--pad) 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.shop__title { font-family: var(--serif); font-weight: 300; font-size: clamp(60px, 19vw, 230px); line-height: .82; letter-spacing: -.03em; margin-left: -.04em; padding-bottom: .1em; text-wrap: balance; }
.shop__count { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); white-space: nowrap; padding-bottom: 6px; }
.filters { display: flex; gap: 22px; margin-top: 30px; padding: 0 var(--pad); overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.filters::-webkit-scrollbar { display: none; }
.filter { flex: none; display: inline-flex; align-items: center; min-height: 48px; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); border-bottom: 1px solid transparent; margin-bottom: -1px; transition: color 200ms var(--ease-out), border-color 200ms var(--ease-out); }
.filter.is-on { color: var(--ink); border-color: var(--gold); }
@media (hover: hover) { .filter:hover { color: var(--ink); } }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 10px; padding: 26px var(--pad) 80px; }
.card__link { display: block; }
.card__frame { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--tile); overflow: hidden; }
.card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 7% 8%; transition: opacity 400ms var(--ease-out), transform 700ms var(--ease-out); }
.card__img--alt { opacity: 0; }
.card__name { display: block; margin-top: 12px; font-family: var(--serif); font-size: 20px; line-height: 1.1; overflow-wrap: anywhere; }
.card__meta { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.card__price { color: var(--gold); font-size: 14px; letter-spacing: .06em; }
@media (hover: hover) {
  .card__link:hover .card__img { transform: scale(1.035); }
  .card__link:hover .card__img--alt { opacity: 1; }
  .card__link:hover .card__img:not(.card__img--alt):not(:only-child) { opacity: 0; }
}

/* ---------- product ---------- */
.piece { display: block; }
.piece__media { padding: 0; }
.piece__main { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; padding: 22px 7% 18px; background: var(--tile); cursor: zoom-in; overflow: hidden; transition: background-color 650ms var(--ease-out); }
.piece__main.is-dk { background: var(--dk); }
.piece__art { position: relative; display: block; width: 100%; }
.piece__main img { width: 100%; height: 100%; object-fit: contain; transition: opacity 240ms var(--ease-out); }
.piece__main img.is-swap { opacity: .25; }
.piece__fx { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.piece__fx.is-on { opacity: 1; }
.views { display: flex; gap: 6px; padding: 10px var(--pad) 0; }
.view { flex: 1 1 0; min-width: 0; min-height: 46px; padding: 0 6px; border: 1px solid var(--line); font-size: 14px; letter-spacing: .03em; color: var(--mute); white-space: nowrap; transition: color 180ms var(--ease-out), border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out), transform 160ms var(--ease-out); }
.view:active { transform: scale(.97); }
.view[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
@media (hover: hover) { .view:not([aria-pressed="true"]):hover { color: var(--ink); border-color: var(--gold); } }
.is-art .thumbs { display: none; }
.thumbs { display: flex; gap: 6px; padding: 8px var(--pad) 0; overflow-x: auto; scrollbar-width: none; }
.thumbs::-webkit-scrollbar { display: none; }
.thumb { flex: none; display: block; width: 60px; height: 60px; padding: 4px; background: var(--tile); border: 1px solid var(--line); opacity: .55; transition: opacity 200ms var(--ease-out), border-color 200ms var(--ease-out), background-color 650ms var(--ease-out); }
.thumb.is-dk { background: var(--dk); }
.thumb[aria-pressed="true"] { opacity: 1; border-color: var(--gold); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.piece__label { padding: 26px var(--pad) 56px; }
.crumbs { display: flex; gap: 10px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs span { display: inline-flex; align-items: center; }
.piece__name { margin-top: 6px; font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 12vw, 84px); line-height: .92; letter-spacing: -.015em; text-wrap: balance; overflow-wrap: anywhere; }
.piece__medium { margin-top: 16px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); max-width: 44ch; }
.piece__price { margin-top: 8px; font-size: 18px; letter-spacing: .08em; color: var(--gold); font-variant-numeric: tabular-nums; }
.piece__opts { margin-top: 26px; display: grid; gap: 20px; }
.opt__name { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
.opt__val { color: var(--ink); margin-left: 8px; }
.opt__list { display: flex; flex-wrap: wrap; gap: 6px; }
.opt__btn { min-width: 48px; min-height: 46px; padding: 0 14px; border: 1px solid var(--line); font-size: 14px; letter-spacing: .08em; transition: border-color 180ms var(--ease-out), background-color 180ms var(--ease-out), color 180ms var(--ease-out), transform 160ms var(--ease-out); }
.opt__btn:active { transform: scale(.97); }
.opt__btn[aria-pressed="true"] { color: var(--gold); border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.opt__btn.is-out:not([aria-pressed="true"]) { color: rgba(167, 157, 179, .7); border-style: dashed; }
@media (hover: hover) { .opt__btn:not([aria-pressed="true"]):hover { border-color: var(--gold); } }
.piece__add { margin-top: 28px; min-height: 54px; }
.piece__ship { margin-top: 12px; font-size: 16px; color: var(--mute); }
.piece__desc { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.75; color: #CFC8BE; max-width: 62ch; }
.piece__desc p + p, .piece__desc .tablewrap, .piece__desc ul { margin-top: 14px; }
.piece__desc strong, .piece__desc b { font-weight: 500; color: var(--ink); }
.tablewrap { overflow-x: auto; max-width: 100%; }
.tablewrap table { border-collapse: collapse; font-size: 12px; min-width: 100%; }
.tablewrap td, .tablewrap th { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.more { padding: 20px 0 0; border-top: 1px solid var(--line); }
.more__title { padding: 26px var(--pad) 0; font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 8vw, 64px); line-height: 1; }
.zoom { position: fixed; inset: 0; z-index: 85; background: var(--tile); opacity: 0; transition: opacity 240ms var(--ease-out), background-color 650ms var(--ease-out); }
.zoom.is-dk { background: var(--dk); }
.zoom.is-open { opacity: 1; }
.zoom__pan { position: absolute; inset: 0; overflow: auto; cursor: zoom-out; -webkit-overflow-scrolling: touch; }
.zoom__pan img { width: 220vw; max-width: none; }
.zoom__close { position: absolute; z-index: 2; top: 6px; right: var(--pad); color: var(--ink); padding: 0 10px; background: rgba(0, 0, 0, .78); }

/* ---------- plain pages ---------- */
.plain { padding: 48px var(--pad) 96px; min-height: calc(100dvh - var(--nav) - 150px); }
.plain--center { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.plain__title { font-family: var(--serif); font-weight: 300; font-size: clamp(60px, 19vw, 200px); line-height: .84; letter-spacing: -.03em; margin-left: -.04em; }
.plain__title--xl { font-size: clamp(64px, 17vw, 240px); text-wrap: balance; }
.plain__jp { font-size: 12px; letter-spacing: .5em; color: var(--gold); margin-bottom: 18px; }
.plain__text { margin: 26px 0 30px; max-width: 46ch; color: #CFC8BE; font-size: 16px; }
.cartpage { margin-top: 28px; max-width: 760px; }
.cartpage__foot { margin-top: 26px; max-width: 420px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 34px var(--pad) calc(34px + env(safe-area-inset-bottom)); display: grid; gap: 14px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.foot__brand { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink); }
.foot__jp { letter-spacing: .3em; color: var(--mute); }
.foot__links { display: flex; flex-wrap: wrap; gap: 0 22px; }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; transition: color 200ms var(--ease-out); }
@media (hover: hover) { .foot__links a:hover { color: var(--gold); } }

/* ---------- larger screens ---------- */
@media (min-width: 768px) {
  :root { --nav: 68px; --pad: 32px; }
  .nav__logo img { height: 28px; }
  .nav__links { gap: 34px; }
  .nav__link--gallery { display: inline-flex; }
  .nav__tag { display: block; position: absolute; left: 50%; transform: translateX(-50%); }
  .label { right: auto; bottom: 36px; }
  .label__cta { background: rgba(0, 0, 0, .35); color: var(--ink); border-color: rgba(239, 232, 220, .45); box-shadow: none; font-size: 11px; min-height: 48px; }
  .label__meta { font-size: 11px; letter-spacing: .16em; max-width: 34ch; }
  .steps button, .nav__link, .hint { font-size: 11px; }
  .btn { font-size: 11px; }
  .label__name { font-size: clamp(56px, 6.1vw, 108px); max-width: 9ch; }
  .label__meta { margin-top: 18px; }
  .label__cta { margin-top: 24px; }
  .hint { top: auto; bottom: 46px; }
  .steps { bottom: 30px; }
  .works { columns: 3; column-gap: 22px; }
  .work { margin-bottom: 34px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 16px; padding-bottom: 120px; }
  .card__meta { flex-direction: row; justify-content: space-between; gap: 12px; }
  .card__price { white-space: nowrap; }
  .zoom__pan img { width: 150vw; }
  .foot { grid-template-columns: 1fr auto; align-items: center; }
  .foot__tag { text-align: right; }
}
@media (min-width: 1024px) {
  .piece { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .piece__media { position: sticky; top: var(--nav); padding: 0 0 24px var(--pad); }
  .piece__main { height: calc(100dvh - var(--nav) - 110px); min-height: 520px; padding: 3% 6%; }
  .piece__art { width: auto; height: 100%; max-width: 100%; }
  .thumbs { padding: 8px 0 0; }
  .views { padding: 10px 0 0; max-width: 560px; }
  .thumb { width: 68px; height: 68px; }
  .piece__label { padding: 12px var(--pad) 96px clamp(40px, 6vw, 110px); max-width: 720px; }
  .piece__add { max-width: 420px; }
  .piece__name { font-size: clamp(56px, 5.6vw, 100px); }
}
@media (min-width: 1200px) {
  .works { columns: 4; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1199px) { .grid--four > :nth-child(4) { display: none; } }
@media (max-width: 767px) { .grid--four > :nth-child(4) { display: block; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .drawer { transition: opacity 160ms linear !important; transform: none; opacity: 0; }
  .drawer.is-open { opacity: 1; }
}

/* ---------- marcus: rarity tiers ---------- */
.piece__tier, .card__tier { color: var(--ink); }
.card__tier--legendary, .card__tier--mythic, .piece__tier { color: var(--gold); }

/* drop not open yet: no bag in the nav, add button reads Dropping soon */
html[data-sales="closed"] [data-bag-open] { display: none; }
html[data-sales="closed"] .piece__add[disabled] { opacity: 1; cursor: default; letter-spacing: .24em; }

/* ---------- drop signup ("get notified, 10% off"): vaporwave pop-up ---------- */
.drop { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; pointer-events: none; }
.drop[hidden] { display: none; }
.drop__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity 420ms var(--ease-out, cubic-bezier(.23, 1, .32, 1)); pointer-events: auto; }
.drop.is-open .drop__scrim { opacity: 1; }
.drop__card {
  position: relative; width: min(440px, 100%); overflow: hidden; pointer-events: auto; isolation: isolate;
  background: #05010a; color: #f4f1ff; border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(255, 61, 220, .55), 0 0 40px rgba(255, 61, 220, .28), 0 0 90px rgba(0, 240, 255, .14);
  transform: translateY(24px) scale(.96); opacity: 0;
  transition: transform 560ms cubic-bezier(.16, 1, .3, 1), opacity 420ms ease;
}
.drop.is-open .drop__card { transform: none; opacity: 1; }

/* the sky: a striped synthwave sun sinking behind the horizon */
.drop__sky { position: absolute; inset: 0 0 38% 0; z-index: -2; background: linear-gradient(180deg, #0a0014 0%, #2a0a4a 55%, #6b1a7a 100%); }
.drop__sun {
  position: absolute; left: 76%; bottom: -54px; width: 190px; height: 190px; transform: translateX(-50%); border-radius: 50%;
  background: linear-gradient(180deg, #ffe14d 0%, #ff8a3d 38%, #ff3ddc 72%, #b04dff 100%);
  -webkit-mask: repeating-linear-gradient(180deg, #000 0 14px, transparent 14px 18px); mask: repeating-linear-gradient(180deg, #000 0 14px, transparent 14px 18px);
  filter: drop-shadow(0 0 24px rgba(255, 61, 220, .7)); animation: drop-sun 6s ease-in-out infinite alternate;
}
@keyframes drop-sun { to { transform: translateX(-50%) translateY(10px); filter: drop-shadow(0 0 34px rgba(255, 120, 60, .8)); } }

/* the floor: neon perspective grid scrolling toward the viewer */
.drop__floor { position: absolute; left: -50%; right: -50%; bottom: 0; height: 40%; z-index: -1; perspective: 260px; overflow: hidden; }
.drop__floor::before {
  content: ''; position: absolute; inset: -100% 0 0 0; transform: rotateX(62deg); transform-origin: 50% 100%;
  background:
    linear-gradient(transparent 0 calc(100% - 2px), rgba(0, 240, 255, .85) calc(100% - 2px)) 0 0 / 100% 34px,
    linear-gradient(90deg, transparent 0 calc(100% - 2px), rgba(255, 61, 220, .85) calc(100% - 2px)) 0 0 / 34px 100%;
  animation: drop-grid 1.4s linear infinite;
}
.drop__floor::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #05010a 0%, transparent 45%); }
@keyframes drop-grid { to { background-position: 0 34px, 0 0; } }

/* CRT scanlines + a slow rolling bar over everything */
.drop__card::after {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; mix-blend-mode: overlay;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 3px),
              linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, .10) 50%, transparent 100%) 0 -120% / 100% 30% no-repeat;
  animation: drop-roll 5s linear infinite;
}
@keyframes drop-roll { to { background-position: 0 0, 0 240%; } }

.drop__body { position: relative; z-index: 2; padding: 30px 26px 26px; }
.drop__eyebrow { padding-right: 46px; display: flex; justify-content: space-between; gap: 10px; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: #9ff3ff; text-shadow: 0 0 8px rgba(0, 240, 255, .6); }
.drop__kana { font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', system-ui, sans-serif; letter-spacing: .12em; color: #ff9cf0; text-shadow: 0 0 8px rgba(255, 61, 220, .7); }
.drop__title {
  position: relative; margin: 18px 0 0; font-family: 'Jost', system-ui, sans-serif; font-weight: 800; font-style: normal;
  font-size: clamp(40px, 12vw, 56px); line-height: .92; letter-spacing: .015em; text-transform: uppercase; transform: skewX(-7deg); transform-origin: left bottom;
  background: linear-gradient(180deg, #ffffff 0%, #ffd1f6 45%, #ff3ddc 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(255, 61, 220, .45));
}
.drop__title::before, .drop__title::after { content: attr(data-text); position: absolute; inset: 0; background: none; -webkit-background-clip: border-box; background-clip: border-box; mix-blend-mode: screen; pointer-events: none; }
.drop__title::before { color: #00f0ff; transform: translate(-3px, 0); clip-path: inset(0 0 55% 0); animation: drop-glitch-a 3.2s steps(1) infinite; }
.drop__title::after { color: #ff3ddc; transform: translate(3px, 0); clip-path: inset(48% 0 0 0); animation: drop-glitch-b 2.7s steps(1) infinite; }
@keyframes drop-glitch-a { 0%, 86%, 100% { transform: translate(-2px, 0); clip-path: inset(0 0 55% 0); } 88% { transform: translate(-7px, -1px); clip-path: inset(12% 0 60% 0); } 92% { transform: translate(5px, 1px); clip-path: inset(40% 0 30% 0); } }
@keyframes drop-glitch-b { 0%, 80%, 100% { transform: translate(2px, 0); clip-path: inset(48% 0 0 0); } 83% { transform: translate(8px, 1px); clip-path: inset(70% 0 5% 0); } 90% { transform: translate(-6px, 0); clip-path: inset(30% 0 45% 0); } }

.drop__copy { margin: 16px 0 0; font-size: 16px; line-height: 1.5; color: #f1ecff; max-width: 30ch; text-shadow: 0 1px 14px rgba(5, 1, 10, .95), 0 0 2px rgba(5, 1, 10, .9); }
.drop__copy strong { color: #ffe14d; font-weight: 600; text-shadow: 0 0 10px rgba(255, 225, 77, .5); }
.drop__form { margin-top: 22px; display: grid; gap: 10px; }
.drop__field { position: relative; border-radius: 3px; padding: 1px; background: linear-gradient(90deg, #00f0ff, #b04dff, #ff3ddc); background-size: 200% 100%; animation: drop-edge 4s linear infinite; }
@keyframes drop-edge { to { background-position: 200% 0; } }
.drop__input { display: block; width: 100%; min-height: 52px; border: 0; border-radius: 2px; padding: 0 16px; font: inherit; font-size: 16px; color: #fff; background: #0b0314; outline: none; }
.drop__input::placeholder { color: #8f7fb0; letter-spacing: .04em; }
.drop__input:focus { background: #12051f; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.drop__btn {
  min-height: 52px; border: 0; border-radius: 3px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: #05010a;
  background: linear-gradient(90deg, #00f0ff 0%, #ff3ddc 55%, #ffe14d 100%); background-size: 160% 100%;
  box-shadow: 0 0 22px rgba(255, 61, 220, .45); transition: background-position 500ms ease, transform 160ms ease, box-shadow 300ms ease;
}
.drop__btn:hover, .drop__btn:focus-visible { background-position: 100% 0; box-shadow: 0 0 32px rgba(0, 240, 255, .55); outline: none; }
.drop__btn:active { transform: scale(.98); }
.drop__btn[disabled] { opacity: .6; cursor: progress; }
.drop__fine { margin: 12px 0 0; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #c9bce6; text-shadow: 0 0 6px #05010a, 0 0 2px #05010a; }
.drop__error { margin: 4px 0 0; font-size: 13px; color: #ff8fa8; }
.drop__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.drop__close { position: absolute; top: 10px; right: 10px; z-index: 4; width: 44px; height: 44px; border: 0; background: none; color: #f4f1ff; font-size: 24px; line-height: 1; cursor: pointer; opacity: .8; }
.drop__close:hover, .drop__close:focus-visible { opacity: 1; color: #00f0ff; outline: none; text-shadow: 0 0 10px rgba(0, 240, 255, .8); }
.drop__done { display: none; }
.drop.is-done .drop__form, .drop.is-done .drop__fine, .drop.is-done .drop__copy--ask { display: none; }
.drop.is-done .drop__done { display: block; }
.drop__done-title { margin: 22px 0 0; font-size: 22px; letter-spacing: .08em; text-transform: uppercase; color: #9ff3ff; text-shadow: 0 0 12px rgba(0, 240, 255, .7); }

/* the reopen tab on the right edge */
.drop-tab {
  position: fixed; right: 0; top: 50%; z-index: 80; transform: translateY(-50%) translateX(0); writing-mode: vertical-rl;
  min-width: 40px; padding: 18px 11px; border: 0; border-radius: 4px 0 0 4px; cursor: pointer;
  font: inherit; font-size: 11px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: #05010a;
  background: linear-gradient(180deg, #00f0ff, #ff3ddc); box-shadow: 0 0 18px rgba(255, 61, 220, .5);
  transition: transform 300ms cubic-bezier(.23, 1, .32, 1), box-shadow 300ms ease;
}
.drop-tab[hidden] { display: none; }
.drop-tab:hover, .drop-tab:focus-visible { box-shadow: 0 0 28px rgba(0, 240, 255, .7); outline: none; transform: translateY(-50%) translateX(-3px); }

/* phones: a bottom sheet */
@media (max-width: 599px) {
  .drop { place-items: end center; padding: 0; }
  .drop__card { width: 100%; border-radius: 14px 14px 0 0; transform: translateY(100%); padding-bottom: env(safe-area-inset-bottom); }
  .drop.is-open .drop__card { transform: none; }
  .drop__body { padding: 26px 20px 22px; }
  .drop__sun { left: 82%; width: 150px; height: 150px; bottom: -44px; }
}
@media (prefers-reduced-motion: reduce) {
  .drop__sun, .drop__floor::before, .drop__card::after, .drop__title::before, .drop__title::after, .drop__field { animation: none !important; }
  .drop__card, .drop__scrim { transition: opacity 200ms ease; transform: none !important; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
