/* "Gate" store: a full-screen video landing with a stacked menu, then a shop of floating product cut-outs.
   Three brand colours drive everything else. */
:root {
  --black: #050505;
  --fg: #f2f0ec;
  --signal: #ec1c24;
  --muted: color-mix(in srgb, var(--fg) 62%, var(--black));
  --line: color-mix(in srgb, var(--fg) 18%, transparent);
  --panel: color-mix(in srgb, var(--fg) 6%, var(--black));
  --f-display: "Big Shoulders Display", "Archivo Narrow", "Arial Narrow", Impact, sans-serif;
  --f-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(16px, 4vw, 56px);
  --glow: drop-shadow(0 0 1.5px rgba(255, 255, 255, .95)) drop-shadow(0 0 12px rgba(255, 255, 255, .42)) drop-shadow(0 0 34px rgba(255, 255, 255, .16));
  --glow-hi: drop-shadow(0 0 1.5px #fff) drop-shadow(0 0 16px rgba(255, 255, 255, .62)) drop-shadow(0 0 44px rgba(255, 255, 255, .26));
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--black); }
body { margin: 0; min-height: 100svh; background: var(--black); color: var(--fg); font: 400 16px/1.5 var(--f-body); -webkit-font-smoothing: antialiased; }
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, figure, fieldset { margin: 0; padding: 0; border: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }
[hidden] { display: none !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* the video sits behind everything and is dimmed more on the inner pages */
.bg { position: fixed; inset: 0; z-index: 0; background: #000 center / cover no-repeat; overflow: hidden; }
.bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: brightness(.58) saturate(.78) contrast(1.06); transition: opacity 1s ease; }
.bg video.on { opacity: 1; }
.bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 58% 56% at 50% 47%, rgba(0, 0, 0, .66), rgba(0, 0, 0, .2) 80%), linear-gradient(rgba(0, 0, 0, .34), rgba(0, 0, 0, .58)); transition: background .5s ease; }
body:not(.is-home) .bg::after { background: linear-gradient(rgba(5, 5, 5, .74), rgba(5, 5, 5, .84)); }
main, .top, .foot { position: relative; z-index: 1; }

/* top bar (inner pages) */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; gap: 28px; height: 68px; padding: 0 var(--pad); background: linear-gradient(rgba(5, 5, 5, .82), rgba(5, 5, 5, 0)); }
body.is-home .top { display: none; }
.mark { margin-right: auto; display: block; line-height: 0; }
.mark img { height: 40px; width: auto; filter: drop-shadow(0 0 1px rgba(255, 255, 255, .9)) drop-shadow(0 0 8px rgba(255, 255, 255, .3)); }
.top-nav { display: flex; gap: 6px; }
.top-nav a, .top-nav button, .bag { text-decoration: none; font: 600 15px/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; padding: 12px 12px; opacity: .8; transition: opacity .2s; }
.top-nav a:hover, .top-nav button:hover, .bag:hover, .top-nav a[aria-current="page"] { opacity: 1; }
.top-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 1px; }
.bag b { display: inline-block; min-width: 1.5em; font-weight: 700; color: var(--fg); }
@media (max-width: 560px) { .top-nav { display: none; } .top { gap: 8px; } }

/* gate: emblem, one short line, the menu */
.gate { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 56px var(--pad) 110px; text-align: center; }
.gate-in { display: flex; flex-direction: column; align-items: center; }
.emblem { width: clamp(92px, 9vw, 136px); height: auto; filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, .9)) drop-shadow(0 0 18px rgba(255, 255, 255, .34)); }
.gate-tag { margin-top: 20px; font: 500 12px/1.4 var(--f-body); letter-spacing: .26em; text-transform: uppercase; color: color-mix(in srgb, var(--fg) 72%, transparent); }
.gate-menu { margin-top: clamp(26px, 5vh, 54px); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.gate-menu a, .gate-menu button { display: block; padding: 11px 14px; font: 600 clamp(19px, 1.9vw, 25px)/1 var(--f-display); letter-spacing: .24em; text-transform: uppercase; text-decoration: none; opacity: .78; transition: opacity .2s, letter-spacing .3s ease; }
.gate-menu a, .gate-menu button, .gate-tag { text-shadow: 0 1px 14px rgba(0, 0, 0, .7); }
.gate-menu a:hover, .gate-menu button:hover, .gate-menu a:focus-visible, .gate-menu button:focus-visible { opacity: 1; letter-spacing: .34em; }
.socials { position: absolute; left: 0; right: 0; bottom: max(30px, env(safe-area-inset-bottom)); display: flex; justify-content: center; gap: 8px; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; opacity: .7; transition: opacity .2s, transform .2s; }
.socials a:hover { opacity: 1; transform: translateY(-2px); }
.socials svg, .ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* the one orchestrated moment: the gate assembles on first load */
body.intro .gate-in > *, body.intro .gate-menu > *, body.intro .socials { opacity: 0; animation: rise .8s cubic-bezier(.2, .7, .2, 1) forwards; }
body.intro .emblem { animation-delay: .25s; } body.intro .gate-tag { animation-delay: .5s; }
body.intro .gate-menu > :nth-child(1) { animation-delay: .7s; } body.intro .gate-menu > :nth-child(2) { animation-delay: .78s; } body.intro .gate-menu > :nth-child(3) { animation-delay: .86s; }
body.intro .gate-menu > :nth-child(4) { animation-delay: .94s; } body.intro .gate-menu > :nth-child(5) { animation-delay: 1.02s; } body.intro .socials { animation-delay: 1.2s; }
body.intro .gate-menu { animation: none; opacity: 1; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* inner pages */
.page { min-height: 100svh; padding: 104px var(--pad) 40px; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; } }
.page-head { text-align: center; margin-bottom: clamp(30px, 5vw, 64px); }
.page-head h1 { font: 600 clamp(34px, 4.4vw, 56px)/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; }
.page-head p { margin-top: 12px; font-size: 14px; color: var(--muted); }
.page-head:focus { outline: none; }

/* shop: products float above their name and price, no boxes */
.grid { display: flex; flex-wrap: wrap; justify-content: center; max-width: 1560px; margin: 0 auto; row-gap: clamp(28px, 4vw, 60px); }
.card { flex: 0 0 50%; display: flex; flex-direction: column; align-items: center; padding: 0 6px; text-decoration: none; }
@media (min-width: 760px) { .card { flex-basis: 33.3333%; padding: 0 12px; } }
@media (min-width: 1180px) { .card { flex-basis: 25%; } }
.card-pic { position: relative; width: 100%; aspect-ratio: 1 / 1.1; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.card-pic img { position: absolute; left: 6%; top: 6%; width: 88%; height: 88%; object-fit: contain; filter: var(--glow); transition: opacity .4s ease, filter .4s ease; }
.card-pic .back { opacity: 0; }
@media (hover: hover) {
  .card:hover .card-pic, .card:focus-visible .card-pic { transform: translateY(-9px); }
  .card:hover .card-pic img, .card:focus-visible .card-pic img { filter: var(--glow-hi); }
  .card:hover .has-back .front, .card:focus-visible .has-back .front { opacity: 0; }
  .card:hover .has-back .back, .card:focus-visible .has-back .back { opacity: 1; }
}
.card h3 { margin-top: 10px; font: 600 clamp(17px, 1.5vw, 21px)/1.15 var(--f-display); letter-spacing: .1em; text-transform: uppercase; text-align: center; }
.card p { margin-top: 6px; color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.tag { position: absolute; left: 10%; top: 6%; z-index: 2; padding: 4px 10px; background: var(--black); border: 1px solid var(--line); font: 600 12px/1.2 var(--f-body); }
.tag.low { color: var(--fg); border-color: var(--signal); }
.card.sold .card-pic img { opacity: .38; }
.empty { width: 100%; text-align: center; color: var(--muted); padding: 40px 0; }

/* about page (setting "about") */
.about-body { max-width: 640px; margin: 0 auto; padding: 0 4px 24px; text-align: left; }
.about-body p { margin: 0 0 1.35em; font-size: 17px; line-height: 1.75; color: color-mix(in srgb, var(--fg) 86%, transparent); }
.about-body .about-pull { margin: 1.6em 0; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font: 600 clamp(26px, 6vw, 40px)/1.12 var(--f-display); letter-spacing: .1em; text-transform: uppercase; text-align: center; color: var(--fg); }
.about-body .about-sign { margin-top: 2.2em; font: 600 18px/1.4 var(--f-display); letter-spacing: .16em; text-transform: uppercase; text-align: center; color: var(--fg); }
@media (max-width: 560px) { .about-body p { font-size: 16px; } }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 14px; max-width: 1240px; margin: 0 auto; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* contact */
.contact-in { max-width: 520px; margin: 0 auto; text-align: center; }
.crest { width: min(240px, 60vw); height: auto; margin: 0 auto 36px; filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, .8)) drop-shadow(0 0 20px rgba(255, 255, 255, .22)); }
.contact-in h2 { font: 600 22px/1.2 var(--f-display); letter-spacing: .16em; text-transform: uppercase; margin: 36px 0 14px; }
.foot-links { display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 17px; }
.foot-links a { text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.foot-links a:hover { border-bottom-color: var(--fg); }
.news-row { display: flex; gap: 8px; }
.news-row input { flex: 1; min-width: 0; }
.linkbtn { font-size: 15px; border-bottom: 1px solid var(--line); padding: 2px 0; margin-top: 26px; }
.linkbtn:hover { border-bottom-color: var(--fg); }

/* footer line */
.foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; padding: 36px var(--pad) 32px; color: var(--muted); font-size: 13px; }
body.is-home .foot { display: none; }
.choja { color: var(--fg); font-weight: 600; }
.credit-btn { margin-left: 6px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border: 1px solid var(--fg); border-radius: 0; font: 600 16px/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; transition: background .15s, color .15s; }
.btn:hover { background: var(--fg); color: var(--black); }
.btn.solid { background: var(--fg); color: var(--black); }
.btn.solid:hover { background: var(--signal); border-color: var(--signal); color: #fff; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* forms */
input, select, textarea { width: 100%; min-height: 48px; padding: 10px 14px; background: color-mix(in srgb, var(--fg) 7%, transparent); border: 1px solid var(--line); border-radius: 0; }
select option { color: #111; }
textarea { min-height: 72px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--fg); }
label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 14px; text-align: left; }
label > input, label > select, label > textarea { margin-top: 6px; color: var(--fg); font-size: 16px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.msg { min-height: 1.4em; font-size: 14px; margin-top: 8px; color: var(--muted); }
.msg.err { color: #ff6b6b; }
.msg.ok { color: var(--fg); }
.fine { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* panels: product sheet, cart, tracking */
.scrim { position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, .66); }
.sheet, .cart { position: fixed; top: 0; right: 0; bottom: 0; z-index: 40; background: var(--black); border-left: 1px solid var(--line); display: flex; flex-direction: column; animation: slide .3s ease; }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }
.cart { width: min(460px, 100vw); }
.sheet { width: min(1080px, 100vw); overflow-y: auto; }
.x { font: 600 14px/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; padding: 11px 14px; border: 1px solid var(--line); }
.x:hover { border-color: var(--fg); }
.sheet > .x { position: sticky; top: 16px; align-self: flex-end; margin: 16px 16px 0 0; z-index: 2; background: var(--black); }
.sheet-in { display: grid; gap: 28px; padding: 8px var(--pad) 56px; }
@media (min-width: 860px) { .sheet-in { grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; } .p-info { position: sticky; top: 72px; } }
.p-main { display: grid; place-items: center; aspect-ratio: 1 / 1.1; background: radial-gradient(ellipse at 50% 45%, color-mix(in srgb, var(--fg) 9%, var(--black)), var(--black) 72%); border: 1px solid var(--line); }
.p-main img { width: 88%; height: 88%; object-fit: contain; filter: var(--glow); }
.p-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.p-thumbs button { flex: 0 0 76px; border: 1px solid var(--line); background: var(--panel); }
.p-thumbs button[aria-current="true"] { border-color: var(--fg); }
.p-thumbs img { width: 76px; height: 84px; object-fit: contain; padding: 4px; }
.p-info h2 { font: 600 clamp(30px, 3.6vw, 48px)/1.02 var(--f-display); letter-spacing: .06em; text-transform: uppercase; }
.p-price { font-size: 20px; margin: 10px 0 24px; font-variant-numeric: tabular-nums; }
.opt { margin-bottom: 18px; }
.opt-name { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.opt-vals { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-vals button { min-width: 52px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); font-size: 15px; }
.opt-vals button:hover { border-color: var(--fg); }
.opt-vals button[aria-checked="true"] { background: var(--fg); color: var(--black); border-color: var(--fg); }
.opt-vals button[data-out] { text-decoration: line-through; color: var(--muted); }
.p-stock { min-height: 1.5em; font-size: 14px; color: #ff6b6b; }
.buy { display: flex; gap: 10px; margin: 8px 0 28px; }
.buy .btn { flex: 1; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.qty button { width: 44px; height: 46px; font-size: 18px; }
.qty output { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; }
.p-text { white-space: pre-line; color: color-mix(in srgb, var(--fg) 82%, var(--black)); max-width: 60ch; }

.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font: 600 24px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; }
.view-in { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.cart .view { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.cart-body { flex: 1; overflow-y: auto; padding: 20px; }
.cart-foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.line img { width: 76px; height: 84px; object-fit: contain; padding: 4px; background: var(--panel); filter: drop-shadow(0 0 1px rgba(255, 255, 255, .8)); }
.line b { display: block; font-weight: 600; }
.line small { display: block; color: var(--muted); font-size: 14px; }
.line .qty { margin-top: 8px; }
.line .qty button { width: 34px; height: 34px; }
.line-end { text-align: right; font-variant-numeric: tabular-nums; }
.line-end button { display: block; margin: 8px 0 0 auto; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); }
.sum > div { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; font-size: 15px; }
.sum dt { color: var(--muted); }
.sum dd { font-variant-numeric: tabular-nums; text-align: right; }
.sum .tot { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 18px; font-weight: 600; }
.sum .tot dt { color: var(--fg); }
.cart-foot .btn { margin-top: 14px; }
.back { margin: 0 0 16px; color: var(--muted); }
.cart .linkbtn { margin-top: 0; }
.ship legend { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.ship label { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); margin-bottom: 8px; color: var(--fg); font-size: 15px; cursor: pointer; }
.ship label:has(input:checked) { border-color: var(--fg); }
.ship input { width: 18px; min-height: 0; height: 18px; margin: 0; accent-color: var(--signal); }
.ship label span { flex: 1; }
.hint { color: var(--muted); font-size: 14px; }
.disc { display: flex; align-items: flex-end; gap: 8px; margin-top: 16px; }
.disc label { flex: 1; margin-bottom: 0; }
.done h3 { font: 600 28px/1.1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.done p { margin-bottom: 12px; }
.ref { padding: 12px 14px; background: var(--panel); }
.ref b { display: block; font-size: 18px; letter-spacing: .02em; }
.steps { list-style: none; padding: 0; margin: 20px 0; }
.steps li { position: relative; padding: 0 0 18px 26px; color: var(--muted); }
.steps li::before { content: ""; position: absolute; left: 0; top: 5px; width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--muted); }
.steps li.on { color: var(--fg); }
.steps li.on::before { background: var(--signal); border-color: var(--signal); }
.steps small { display: block; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 20px); padding: 12px 20px; background: var(--fg); color: var(--black); font-size: 15px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
}

/* bundle deals */
.deals { margin: 4px 0 18px; display: grid; gap: 8px; }
.deals .opt-name { margin-bottom: 2px; }
.deal { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; border: 1px solid var(--line); min-height: 58px; }
.deal:hover:not(:disabled) { border-color: var(--fg); }
.deal:disabled { opacity: .4; cursor: not-allowed; }
.deal .dot { width: 16px; height: 16px; border: 1.5px solid var(--muted); border-radius: 50%; position: relative; }
.deal.on { border-color: var(--fg); background: rgba(255, 255, 255, .06); }
.deal.on .dot { border-color: var(--signal); }
.deal.on .dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--signal); }
.deal .dl { display: grid; gap: 2px; }
.deal .dl b { font-size: 15px; }
.deal .dl em { font-style: normal; justify-self: start; font-size: 11px; letter-spacing: .04em; padding: 2px 8px; background: var(--signal); color: #fff; }
.deal .dl small { color: var(--muted); font-size: 13px; }
.deal .dp { display: grid; text-align: right; font-variant-numeric: tabular-nums; }
.deal .dp s { color: var(--muted); font-size: 12px; }
.deals .fine { margin-top: 2px; }
.nudge { margin: 0 0 10px; padding: 10px 12px; border: 1px dashed var(--line); font-size: 14px; line-height: 1.4; }
.nudge.won { border-style: solid; border-color: var(--signal); }

/* ================================================================== motion
   One easing for everything that settles (a long, soft landing), one for things that leave (quick, no bounce). */
:root { --ease: cubic-bezier(.16, 1, .3, 1); --ease-in: cubic-bezier(.7, 0, .84, 0); }

/* ---- the curtain: the crest appears on black, then the black lifts to reveal the film */
.curtain, .wipe { position: fixed; inset: 0; background: #050505; display: grid; place-items: center; pointer-events: none; }
.curtain { z-index: 100; display: none; }
.curtain img, .wipe img { width: clamp(70px, 7vw, 104px); height: auto; filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, .9)) drop-shadow(0 0 20px rgba(255, 255, 255, .35)); }
body.intro .curtain { display: grid; animation: lift 1s var(--ease) 1.25s forwards; }
body.intro .curtain img { opacity: 0; animation: crest 1.7s var(--ease) .15s forwards; }
@keyframes crest { 0% { opacity: 0; transform: scale(.86); } 40% { opacity: 1; } 70% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.06); } }
@keyframes lift { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }
body.intro .curtain::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--signal); box-shadow: 0 0 18px var(--signal); transform-origin: left; animation: line 1.2s var(--ease) .1s both; }
@keyframes line { from { transform: scaleX(0); } }

/* the film settles in, then drifts very slowly. The pointer nudges it (translate) independently of the drift (scale). */
.bg video { scale: 1.06; translate: var(--px, 0px) var(--py, 0px); will-change: scale, translate; animation: drift 38s ease-in-out infinite alternate; }
body.intro .bg video { animation: settle 3.4s var(--ease) both, drift 38s ease-in-out 3.4s infinite alternate; }
@keyframes settle { from { scale: 1.24; } to { scale: 1.06; } }
@keyframes drift { from { scale: 1.06; } to { scale: 1.13; } }

/* ---- the gate assembles after the curtain lifts (replaces the earlier timings) */
body.intro .gate-in > *, body.intro .gate-menu > *, body.intro .socials { animation: rise 1.1s var(--ease) forwards; }
body.intro .emblem { animation-delay: 1.5s; } body.intro .gate-tag { animation-delay: 1.75s; }
body.intro .gate-menu > :nth-child(1) { animation-delay: 1.95s; } body.intro .gate-menu > :nth-child(2) { animation-delay: 2.03s; } body.intro .gate-menu > :nth-child(3) { animation-delay: 2.11s; }
body.intro .gate-menu > :nth-child(4) { animation-delay: 2.19s; } body.intro .gate-menu > :nth-child(5) { animation-delay: 2.27s; } body.intro .socials { animation-delay: 2.5s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
body.intro .gate-menu { animation: none; opacity: 1; }
.emblem { translate: var(--mx, 0px) var(--my, 0px); }
body:not(.intro) .emblem { animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 50% { filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, .95)) drop-shadow(0 0 30px rgba(255, 255, 255, .5)); } }
/* coming back to the gate from another page */
.gate.enter .gate-in > *, .gate.enter .gate-menu > *, .gate.enter .socials { animation: rise .9s var(--ease) both; }
.gate.enter .gate-tag { animation-delay: .1s; } .gate.enter .gate-menu > :nth-child(1) { animation-delay: .18s; } .gate.enter .gate-menu > :nth-child(2) { animation-delay: .24s; } .gate.enter .gate-menu > :nth-child(3) { animation-delay: .3s; }
.gate.enter .gate-menu > :nth-child(4) { animation-delay: .36s; } .gate.enter .gate-menu > :nth-child(5) { animation-delay: .42s; } .gate.enter .socials { animation-delay: .5s; }
.gate.enter .gate-menu { animation: none; }

/* ---- page-to-page sweep */
.wipe { z-index: 25; transform: translateY(101%); }
.wipe::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--signal); box-shadow: 0 0 22px 2px var(--signal); }
.wipe img { opacity: 0; transition: opacity .2s; }
.wipe.in { transform: none; transition: transform .34s var(--ease-in); }
.wipe.in img { opacity: 1; transition: opacity .3s .1s; }
.wipe.out { transform: translateY(-101%); transition: transform .62s var(--ease); }
.wipe.out img { opacity: 0; transition: opacity .18s; }

/* ---- pages: the title tightens into place, products rise one after another */
.page { animation: none; }
.view.enter .page-head h1 { animation: head 1.2s var(--ease) both; }
.view.enter .page-head p { animation: fade .9s ease .35s both; }
@keyframes head { from { opacity: 0; letter-spacing: .42em; } }
.view.enter .card { animation: card 1.1s var(--ease) both; animation-delay: calc(.3s + var(--i, 0) * 80ms); }
@keyframes card { from { opacity: 0; transform: translateY(46px) scale(.94); } }
.view.enter .gallery > * { animation: card 1.1s var(--ease) both; }
.view.enter .gallery > :nth-child(2) { animation-delay: .12s; } .view.enter .gallery > :nth-child(3) { animation-delay: .24s; } .view.enter .gallery > :nth-child(n+4) { animation-delay: .36s; }
.view.enter .contact-in > * { animation: rise .9s var(--ease) both; }
.view.enter .contact-in > :nth-child(2) { animation-delay: .1s; } .view.enter .contact-in > :nth-child(3) { animation-delay: .2s; } .view.enter .contact-in > :nth-child(4) { animation-delay: .3s; } .view.enter .contact-in > :nth-child(n+5) { animation-delay: .4s; }

/* ---- products float, each on its own slow rhythm; on hover one lifts, tilts toward the pointer, and turns to show its back */
.card-pic img { animation: bob var(--bd, 7s) ease-in-out var(--bo, 0s) infinite alternate; will-change: transform; transition: opacity .55s ease, filter .5s ease; }
@keyframes bob { from { transform: translateY(-5px) rotate(-.4deg); } to { transform: translateY(6px) rotate(.4deg); } }
.card-pic { transition: transform .7s var(--ease); }
@media (hover: hover) {
  .card:hover .card-pic, .card:focus-visible .card-pic { transform: translateY(-12px) perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1.04); }
  .card-pic.tilt { transition: transform .18s ease-out; }
  .card:hover img, .card:focus-visible img { animation-play-state: paused; }
}
.card p { transition: opacity .4s, transform .6s var(--ease); }
@media (hover: hover) { .card:hover p { transform: translateY(2px); } }

/* ---- links and buttons */
.top-nav a, .top-nav button { position: relative; }
.top-nav a::after, .top-nav button::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 5px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.top-nav a:hover::after, .top-nav button:hover::after, .top-nav a:focus-visible::after, .top-nav button:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.top-nav a[aria-current="page"] { text-decoration: none; }
.top-nav a[aria-current="page"]::after { transform: scaleX(1); }
.gate-menu a, .gate-menu button { transition: opacity .3s, letter-spacing .6s var(--ease); }
.btn { position: relative; overflow: hidden; isolation: isolate; transition: color .35s, border-color .35s, transform .25s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fg); transform: translateY(101%); transition: transform .5s var(--ease); }
.btn:hover:not(:disabled) { background: transparent; color: var(--black); }
.btn:hover:not(:disabled)::before { transform: none; }
.btn.solid { background: var(--fg); }
.btn.solid::before { background: var(--signal); }
.btn.solid:hover:not(:disabled) { background: var(--fg); border-color: var(--signal); color: #fff; }
.btn:active:not(:disabled) { transform: scale(.975); }
.bag-n.bump { animation: bump .6s var(--ease); }
@keyframes bump { 30% { transform: scale(1.5); color: var(--signal); } 100% { transform: none; } }
.opt-vals button { transition: background .3s, color .3s, border-color .3s, transform .25s var(--ease); }
.opt-vals button:active { transform: scale(.94); }
.x { transition: background .3s, color .3s, border-color .3s; }
.x:hover { background: var(--fg); color: var(--black); border-color: var(--fg); }

/* ---- panels: slide in with a long soft landing, leave quickly; the shop darkens behind them */
.scrim { opacity: 0; transition: opacity .45s ease; }
.scrim.on { opacity: 1; }
.sheet, .cart { animation: panel .75s var(--ease) both; }
.sheet.out, .cart.out { animation: panel-out .32s var(--ease-in) forwards; pointer-events: none; }
@keyframes panel { from { transform: translateX(100%); } }
@keyframes panel-out { to { transform: translateX(100%); } }
.sheet:not(.out) .p-main img { animation: pic 1.1s var(--ease) both, float 7s ease-in-out 1.1s infinite alternate; }
@keyframes float { from { translate: 0 -6px; rotate: -.4deg; } to { translate: 0 7px; rotate: .4deg; } }
@keyframes pic { from { opacity: 0; transform: scale(1.08); } }
.sheet:not(.out) .p-info > * { animation: rise .9s var(--ease) both; }
.sheet:not(.out) .p-info > :nth-child(1) { animation-delay: .25s; } .sheet:not(.out) .p-info > :nth-child(2) { animation-delay: .31s; } .sheet:not(.out) .p-info > :nth-child(3) { animation-delay: .37s; }
.sheet:not(.out) .p-info > :nth-child(4) { animation-delay: .43s; } .sheet:not(.out) .p-info > :nth-child(5) { animation-delay: .49s; } .sheet:not(.out) .p-info > :nth-child(6) { animation-delay: .55s; } .sheet:not(.out) .p-info > :nth-child(n+7) { animation-delay: .6s; }
.p-thumbs button { transition: opacity .3s, transform .4s var(--ease), border-color .3s; }
.p-thumbs button:hover { transform: translateY(-3px); }
.cart.enter .line { animation: rise .8s var(--ease) both; }
.cart.enter .line:nth-child(1) { animation-delay: .3s; } .cart.enter .line:nth-child(2) { animation-delay: .38s; } .cart.enter .line:nth-child(n+3) { animation-delay: .46s; }
.cart.enter .cart-foot { animation: rise .8s var(--ease) .4s both; }

/* ---- bundle picker and the cart nudge */
.deal { transition: border-color .4s, background .4s, transform .4s var(--ease); }
.deal:hover:not(:disabled) { transform: translateX(3px); }
.deal .dot::after { transform: scale(0); transition: transform .5s var(--ease); }
.deal.on .dot::after { transform: scale(1); }
.deal .dp b { transition: transform .4s var(--ease); }
.deal.on .dp b { transform: scale(1.06); }
.nudge { position: relative; overflow: hidden; transition: border-color .4s; }
.nudge .bar { display: block; height: 2px; margin-top: 9px; background: var(--line); }
.nudge .bar u { display: block; height: 100%; width: 0; background: var(--signal); box-shadow: 0 0 10px var(--signal); transition: width .9s var(--ease); }

/* ---- the toast springs up */
.toast { transition: opacity .3s, transform .6s cubic-bezier(.34, 1.56, .64, 1); transform: translate(-50%, 30px) scale(.96); }
.toast.on { transform: translate(-50%, 0) scale(1); }

/* ================================================================== scroll style (style: "scroll")
   One long page: the film and logo up top, the products below, a plain white contact band at the bottom.
   The links live behind a hamburger. Inactive unless <body data-menu="1"> (the burger, header, menu panel, hero) or <body data-stack="1"> (the long page: stacked views, rise-in cards, white contact band). */
.burger, .menu-panel, .cue { display: none; }
[data-menu] .burger { display: grid; align-content: center; gap: 6px; width: 46px; height: 46px; padding: 0 10px; justify-self: start; margin-left: -10px; }
.burger i { display: block; height: 1.5px; background: var(--fg); transform-origin: left; transition: transform .6s var(--ease); }
@media (hover: hover) { .burger:hover i:nth-child(2) { transform: scaleX(.55); } .burger:hover i:nth-child(3) { transform: scaleX(.8); } }
[data-menu] .top, body[data-menu].is-home .top { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; background: rgba(5, 5, 5, .78); transition: background .5s ease; }
body[data-menu].is-home .top { background: none; }
[data-menu] .top-nav { display: none; }
[data-menu] .bag { justify-self: end; }
[data-menu] .mark { margin: 0; transition: opacity .6s ease; }
body[data-menu].is-home .mark { opacity: 0; pointer-events: none; }
[data-menu] .gate-menu, [data-menu] .gate .socials { display: none; }
[data-menu] .emblem { width: clamp(170px, 24vw, 340px); }
[data-menu] .gate-tag { margin-top: 26px; }
[data-menu] .cue { display: none; } [data-stack] .cue { display: block; position: absolute; left: 50%; bottom: max(26px, env(safe-area-inset-bottom)); width: 44px; height: 60px; margin-left: -22px; }
.cue i { position: absolute; left: 50%; top: 4px; width: 1px; height: 46px; background: linear-gradient(var(--fg), transparent); transform-origin: top; animation: cue 2.6s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 55% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
body.intro .cue { opacity: 0; }
[data-stack] .view.page { min-height: 0; padding: 112px var(--pad) 80px; animation: none; }
[data-stack] .page-head { margin-bottom: 40px; }
[data-stack] .card { opacity: 0; transform: translateY(46px); transition: opacity 1s ease, transform 1.2s var(--ease); transition-delay: calc((var(--i, 0) % 4) * 70ms); }
[data-stack] .card.seen { opacity: 1; transform: none; }
[data-stack] .foot { display: flex !important; }
/* the contact band is white, like the Bolapsd footer; the variables are reset so every button and field flips with it */
[data-stack] .view[data-view="contact"], [data-stack] .foot { --fg: #0a0a0a; --black: #fff; --line: rgba(0, 0, 0, .2); --muted: #5c5c5c; background: #fff; color: #0a0a0a; }
[data-stack] .view[data-view="contact"] { padding-top: 84px; padding-bottom: 36px; }
[data-stack] .foot { padding-top: 8px; border: 0; }
[data-stack] .view[data-view="contact"] .page-head h1 { font-size: 15px; letter-spacing: .3em; }
[data-stack] .view[data-view="contact"] .crest { display: none; }
[data-stack] .view[data-view="contact"] .btn.solid::before { background: var(--signal); }
/* the hamburger menu */
[data-menu] .menu-panel { display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; z-index: 40; width: min(400px, 88vw); padding: 96px 34px 34px; background: #070707; border-right: 1px solid var(--line); overflow-y: auto; animation: panel-l .75s var(--ease) both; }
[data-menu] .menu-panel.out { animation: panel-l-out .32s var(--ease-in) forwards; pointer-events: none; }
@keyframes panel-l { from { transform: translateX(-100%); } }
@keyframes panel-l-out { to { transform: translateX(-100%); } }
.menu-panel .x { position: absolute; top: 14px; right: 14px; }
.menu-links { display: grid; gap: 2px; }
.menu-links a, .menu-links button { text-align: left; text-decoration: none; padding: 12px 0; font: 600 clamp(22px, 3vw, 30px)/1.15 var(--f-display); letter-spacing: .16em; text-transform: uppercase; opacity: .86; transition: opacity .3s, transform .6s var(--ease); }
.menu-links a:hover, .menu-links button:hover { opacity: 1; transform: translateX(8px); }
.menu-panel:not(.out) .menu-links > * { animation: rise .8s var(--ease) both; }
.menu-links > :nth-child(1) { animation-delay: .22s !important; } .menu-links > :nth-child(2) { animation-delay: .28s !important; } .menu-links > :nth-child(3) { animation-delay: .34s !important; }
.menu-links > :nth-child(4) { animation-delay: .4s !important; } .menu-links > :nth-child(5) { animation-delay: .46s !important; } .menu-links > :nth-child(6) { animation-delay: .52s !important; }
.menu-foot { margin-top: auto; padding-top: 36px; display: flex; gap: 8px; }

/* ---- enter button on the home page (style "menu") */
.enter-btn { margin-top: 34px; min-width: 180px; background: rgba(5, 5, 5, .35); }
body.intro .enter-btn { animation-delay: 2.1s; }
.enter-btn:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }

/* ---- music button (only present when hero.music is set) */
.snd { position: fixed; left: max(14px, env(safe-area-inset-left)); bottom: max(14px, env(safe-area-inset-bottom)); z-index: 30; display: flex; align-items: flex-end; justify-content: center; gap: 3px; width: 44px; height: 44px; padding: 13px 11px; opacity: .8; transition: opacity .3s; }
.snd:hover { opacity: 1; }
.snd i { display: block; flex: 1; height: 100%; background: var(--fg); transform-origin: bottom; transform: scaleY(.14); transition: transform .4s var(--ease); }
.snd.on i { animation: eq 1.1s ease-in-out infinite alternate; }
.snd.on i:nth-child(2) { animation-duration: .8s; animation-delay: -.3s; } .snd.on i:nth-child(3) { animation-duration: 1.3s; animation-delay: -.6s; } .snd.on i:nth-child(4) { animation-duration: .95s; animation-delay: -.1s; }
@keyframes eq { 0% { transform: scaleY(.2); } 100% { transform: scaleY(1); } }
body.intro .snd { opacity: 0; }

/* ---- anyone who asks for less motion gets none of the above */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .curtain, .wipe { display: none !important; }
  .scrim { opacity: 1; }
  .bg video { scale: 1; translate: none; }
}

/* ---- touch devices (phones, tablets): the same look with far less for the phone to hold in memory.
   No filter on the film (the overlay darkens it instead), no continuous drift, no floating products, no full-screen sweep. */
@media (hover: none), (pointer: coarse) {
  .bg video { filter: none; animation: none !important; scale: 1; translate: none; will-change: auto; }
  body.is-home .bg::after { background: linear-gradient(rgba(0, 0, 0, .32), rgba(0, 0, 0, .32)), radial-gradient(ellipse 58% 56% at 50% 47%, rgba(0, 0, 0, .66), rgba(0, 0, 0, .2) 80%), linear-gradient(rgba(0, 0, 0, .34), rgba(0, 0, 0, .58)); }
  .card-pic img { animation: none; will-change: auto; }
  /* the glow is already drawn into the -card images, so no live filter (and the picture fills its box, the glow margin is built in) */
  html.thumbs .card-pic img, html.thumbs .p-main img, html.thumbs .line img { filter: none; }
  html.thumbs .card-pic img { left: 0; top: 0; width: 100%; height: 100%; }
  html.thumbs .p-main img { width: 100%; height: 100%; }
  .sheet:not(.out) .p-main img { animation: pic 1s var(--ease) both; }
  .emblem, body:not(.intro) .emblem { animation: none; }
  .wipe { display: none !important; }
}
@media (prefers-reduced-motion: reduce) { [data-stack] .card { opacity: 1; transform: none; } }
.menu-foot a { display: grid; place-items: center; width: 44px; height: 44px; opacity: .7; transition: opacity .2s; } .menu-foot a:hover { opacity: 1; }
.gate-tag:empty, .page-head p:empty { display: none; }
