:root {
  --bg: #f2f1ec;
  --paper: #fafaf7;
  --ink: #121212;
  --ink-2: #2a2a28;
  --muted: #74726c;
  --line: #d9d7cf;
  --accent: #ff4d00;
  --good: #1f7a3a;
  --pad: clamp(16px, 2.4vw, 32px);
  --head-h: 64px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --display: 'Archivo', 'Arial Narrow', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--display);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  transition: opacity .45s var(--ease);
}
body.is-ready { opacity: 1; }
body.is-leaving { opacity: 0; transition-duration: .2s; }

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; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--bg); }

.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.muted { color: var(--muted); }
.wrap { padding-left: var(--pad); padding-right: var(--pad); }

.display {
  font-family: var(--display);
  font-stretch: 62%;
  font-weight: 800;
  text-transform: uppercase;
  line-height: .86;
  letter-spacing: -.01em;
  margin: 0;
}

/* ---------- Announcement ---------- */
.announce {
  background: var(--ink);
  color: var(--bg);
  overflow: hidden;
  white-space: nowrap;
  height: 32px;
  display: flex;
  align-items: center;
}
.announce__track { display: inline-flex; animation: marquee 38s linear infinite; }
.announce__track span { padding: 0 28px; }
.announce__track span::after { content: '✦'; margin-left: 56px; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--head-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--pad);
  background: rgba(242, 241, 236, .86);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: transform .5s var(--ease), border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.nav { display: flex; gap: 22px; }
.nav a, .head-actions a, .head-actions button { position: relative; font-size: 13px; font-weight: 500; }
.nav a::after, .head-actions a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after, .head-actions a:hover::after { transform: scaleX(1); transform-origin: left; }
.logo {
  font-stretch: 62%;
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -.01em;
  text-transform: uppercase;
  line-height: 1;
  display: flex;
  align-items: flex-start;
  gap: 4px;
}
.logo sup { font-family: var(--mono); font-size: 8px; font-weight: 500; letter-spacing: .08em; margin-top: 2px; }
.head-actions { display: flex; justify-content: flex-end; gap: 22px; align-items: center; }
.bag-btn { display: inline-flex; gap: 6px; align-items: center; }
.bag-count {
  min-width: 20px; height: 20px; border-radius: 10px; padding: 0 6px;
  background: var(--ink); color: var(--bg); font-family: var(--mono); font-size: 11px;
  display: inline-grid; place-items: center; transition: transform .3s var(--ease);
}
.bag-count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.menu-btn { display: none; }

/* Mobile menu */
.mobile-nav {
  position: fixed; inset: 0; z-index: 70; background: var(--ink); color: var(--bg);
  padding: 90px var(--pad) var(--pad); display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease); visibility: hidden;
}
.mobile-nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.mobile-nav a.display { font-size: clamp(56px, 16vw, 96px); display: block; }
.mobile-nav__close { position: absolute; top: 20px; right: var(--pad); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 0;
  background: var(--ink); color: var(--bg); font-weight: 600; font-size: 14px;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease);
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--accent);
  transform: translateY(101%); transition: transform .45s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn--light { background: var(--bg); color: var(--ink); }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--line:hover { color: var(--bg); }
.btn--block { width: 100%; }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:disabled { opacity: .5; pointer-events: none; }

.link-u { border-bottom: 1px solid currentColor; padding-bottom: 1px; transition: opacity .2s; }
.link-u:hover { opacity: .6; }

/* ---------- Hero ---------- */
.hero { position: relative; height: calc(100svh - var(--head-h) - 32px); min-height: 560px; display: grid; grid-template-columns: 1.25fr 1fr; gap: 4px; overflow: hidden; }
.hero__img { position: relative; overflow: hidden; background: #ddd; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 2.4s var(--ease); }
body.is-ready .hero__img img { transform: scale(1); }
.hero__img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.45) 100%); }
.hero__copy { position: absolute; inset: 0; z-index: 2; color: #fff; padding: var(--pad); display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.hero__copy a { pointer-events: auto; }
.hero__top { display: flex; justify-content: space-between; }
.hero__title { font-size: clamp(72px, 15.5vw, 260px); }
.hero__title span { display: block; overflow: hidden; }
.hero__title span i { display: block; font-style: normal; transform: translateY(105%); transition: transform 1.1s var(--ease); }
body.is-ready .hero__title span i { transform: none; }
body.is-ready .hero__title span:nth-child(2) i { transition-delay: .08s; }
.hero__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.hero__bottom p { max-width: 340px; margin: 0; font-size: 15px; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 140px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; padding: 0 var(--pad); }
.section-head h2 { font-size: clamp(44px, 7vw, 104px); }

/* ---------- Product card ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 4px; }
.card { position: relative; display: block; }
.card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #e4e2db; }
.card__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .6s var(--ease), transform 1.2s var(--ease);
}
.card__media img.loaded { opacity: 1; }
.card__media img.alt { opacity: 0; }
.card:hover .card__media img { transform: scale(1.04); }
@media (hover: hover) {
  .card:hover .card__media img.alt.loaded { opacity: 1; }
}
.card__badge { position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--paper); padding: 4px 7px; }
.card__badge--accent { background: var(--accent); color: #fff; }
.card__quick {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; height: 42px;
  background: var(--paper); font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; padding: 0 14px;
  transform: translateY(calc(100% + 12px)); transition: transform .5s var(--ease), background .2s, color .2s;
}
.card__quick:hover { background: var(--ink); color: var(--bg); }
.card:hover .card__quick, .card:focus-within .card__quick { transform: none; }
.card__info { padding: 12px 10px 0; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; }
.card__name { font-weight: 600; font-size: 14px; }
.card__color { font-size: 13px; color: var(--muted); grid-column: 1; }
.card__price { font-size: 13px; font-weight: 500; grid-column: 1 / -1; margin-top: 4px; font-variant-numeric: tabular-nums; }
.card__packs { grid-row: 1; grid-column: 2; color: var(--muted); }

/* Rail */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 4px) / 4.3); gap: 4px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); padding: 0 var(--pad); scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-nav { display: flex; gap: 6px; }
.rail-nav button { width: 44px; height: 44px; border: 1px solid var(--ink); display: grid; place-items: center; transition: background .2s, color .2s; }
.rail-nav button:hover { background: var(--ink); color: var(--bg); }

/* Categories */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.cat { position: relative; aspect-ratio: 3 / 4.2; overflow: hidden; color: #fff; display: block; background: #333; }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), opacity .6s; opacity: 0; }
.cat img.loaded { opacity: 1; }
.cat:hover img { transform: scale(1.06); }
.cat::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(0,0,0,.55)); }
.cat__label { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 14px; display: flex; flex-direction: column-reverse; gap: 6px; }
.cat__label .display { font-size: clamp(36px, 4.3vw, 76px); }
.cat__label .mono { display: flex; justify-content: space-between; }
.cat__label .mono::after { content: '→'; font-size: 14px; transition: transform .4s var(--ease); }
.cat:hover .cat__label .mono::after { transform: translateX(4px); }

/* Packs explainer */
.packs-band { background: var(--ink); color: var(--bg); }
.packs-band__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.packs-band h2 { font-size: clamp(52px, 8vw, 128px); }
.packs-band p { color: #b9b7b0; max-width: 420px; }
.tier-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tier-table th, .tier-table td { text-align: left; padding: 16px 0; border-bottom: 1px solid #333; }
.tier-table th { font-family: var(--mono); font-size: 11px; font-weight: 400; color: #8d8b85; letter-spacing: .06em; text-transform: uppercase; }
.tier-table td:last-child, .tier-table th:last-child { text-align: right; }
.tier-table td { font-size: 18px; }
.tier-table .save { color: var(--accent); }
.tier-table tr { transition: background .2s; }
.tier-table tbody tr:hover { background: #1d1d1c; }

/* Story */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.story__img { aspect-ratio: 4 / 5; overflow: hidden; background: #ccc; }
.story__img img { width: 100%; height: 100%; object-fit: cover; }
.story__copy { background: var(--paper); padding: clamp(28px, 5vw, 80px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.story__copy h2 { font-size: clamp(40px, 5.4vw, 88px); }
.story__copy p { max-width: 460px; font-size: 17px; line-height: 1.55; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.facts div { padding: 18px 12px 0 0; }
.facts strong { display: block; font-stretch: 62%; font-weight: 800; font-size: 44px; line-height: 1; }

/* Lookbook */
.lookbook { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 28vw); gap: 4px; overflow-x: auto; padding: 0 var(--pad); scrollbar-width: none; }
.lookbook::-webkit-scrollbar { display: none; }
.lookbook figure { margin: 0; }
.lookbook .ph { aspect-ratio: 3 / 4; overflow: hidden; background: #ccc; }
.lookbook img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.lookbook figure:hover img { transform: scale(1.04); }
.lookbook figcaption { padding-top: 8px; }

/* Newsletter + footer */
.signup { border-top: 1px solid var(--line); display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: end; }
.signup h2 { font-size: clamp(44px, 6.5vw, 96px); }
.field-line { display: flex; border-bottom: 1px solid var(--ink); }
.field-line input { flex: 1; background: none; border: 0; outline: 0; padding: 14px 0; font-size: 16px; min-width: 0; }
.field-line button { font-weight: 600; padding-left: 16px; }
.site-footer { background: var(--ink); color: var(--bg); padding: 56px var(--pad) 20px; overflow: hidden; }
.foot-cols { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
.foot-cols h4 { margin: 0 0 14px; font-weight: 400; color: #8d8b85; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-cols a:hover { color: var(--accent); }
.foot-word { font-size: clamp(48px, 15.8vw, 320px); margin-top: 48px; white-space: nowrap; line-height: .78; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 20px; color: #8d8b85; }

/* ---------- Shop page ---------- */
.page-head { padding: 48px var(--pad) 28px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(64px, 11vw, 180px); }
.page-head h1 sup { font-family: var(--mono); font-size: 14px; font-weight: 400; vertical-align: top; margin-left: 6px; letter-spacing: 0; }
.toolbar { position: sticky; top: var(--head-h); z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px var(--pad); background: rgba(242, 241, 236, .9); backdrop-filter: blur(10px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 20px; transition: top .5s var(--ease); }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { height: 34px; padding: 0 14px; border: 1px solid var(--line); font-size: 13px; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.sort { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.sort select { appearance: none; background: transparent; border: 0; border-bottom: 1px solid var(--ink); padding: 4px 18px 4px 0; font-size: 13px; font-weight: 600; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: right 6px top 55%, right 1px top 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.shop-grid { padding: 0 var(--pad) 80px; }
.shop-grid .grid { gap: 40px 4px; }
.empty { padding: 80px 0; text-align: center; color: var(--muted); }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: 1.35fr 1fr; gap: 0; align-items: start; }
.pdp__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.pdp__gallery .ph { aspect-ratio: 4 / 5; overflow: hidden; background: #e4e2db; cursor: zoom-in; }
.pdp__gallery .ph:first-child { grid-column: 1 / -1; }
.pdp__gallery img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.pdp__gallery img.loaded { opacity: 1; }
.pdp__info { position: sticky; top: calc(var(--head-h) + 8px); padding: 28px var(--pad) 48px clamp(24px, 4vw, 64px); }
.crumbs { display: flex; gap: 8px; color: var(--muted); margin-bottom: 26px; }
.crumbs a:hover { color: var(--ink); }
.pdp__title { font-size: clamp(48px, 5.6vw, 92px); }
.pdp__color { margin: 12px 0 0; color: var(--muted); }
.pdp__price { display: flex; align-items: baseline; gap: 14px; margin: 26px 0 4px; font-variant-numeric: tabular-nums; flex-wrap: wrap; }
.pdp__price strong { font-size: 30px; font-weight: 600; letter-spacing: -.01em; }
.pdp__price .per { color: var(--muted); font-size: 14px; }
.pdp__price .save { color: var(--accent); }
.pdp__range { color: var(--muted); font-size: 13px; }
.opt-label { display: flex; justify-content: space-between; margin: 30px 0 10px; }
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.pack {
  position: relative; text-align: left; padding: 12px 12px 11px; border: 1px solid var(--line); background: var(--paper);
  transition: border-color .2s, background .2s, color .2s; font-variant-numeric: tabular-nums;
}
.pack:hover { border-color: var(--ink); }
.pack.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pack b { display: block; font-size: 15px; font-weight: 600; }
.pack span { display: block; font-size: 13px; }
.pack small { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .04em; margin-top: 6px; opacity: .65; }
.pack .tag { position: absolute; top: -1px; right: -1px; background: var(--accent); color: #fff; font-family: var(--mono); font-size: 9px; padding: 2px 5px; letter-spacing: .04em; opacity: 1; margin: 0; }
.buy-row { display: grid; grid-template-columns: auto 1fr; gap: 4px; margin-top: 18px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--ink); height: 52px; }
.stepper button { width: 42px; height: 100%; font-size: 18px; }
.stepper button:hover { background: var(--ink); color: var(--bg); }
.stepper input { width: 40px; text-align: center; border: 0; background: transparent; font-weight: 600; outline: 0; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper--sm { height: 32px; }
.stepper--sm button { width: 30px; font-size: 14px; }
.stepper--sm input { width: 28px; font-size: 13px; }
.perks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; font-size: 13px; }
.perks li { display: flex; gap: 10px; align-items: center; }
.perks li::before { content: ''; width: 6px; height: 6px; background: var(--ink); flex: none; }
.acc { border-top: 1px solid var(--line); margin-top: 30px; }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 16px 0; display: flex; justify-content: space-between; font-weight: 600; font-size: 14px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '+'; font-weight: 400; transition: transform .3s var(--ease); }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc .acc__body { padding: 0 0 18px; color: var(--ink-2); font-size: 14px; }
.acc .acc__body p { margin: 0 0 8px; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.mini-table td { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.mini-table td:last-child { text-align: right; }

/* Zoom */
.zoom { position: fixed; inset: 0; z-index: 90; background: var(--bg); display: none; cursor: zoom-out; }
.zoom.is-open { display: block; }
.zoom img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(18, 18, 18, .4); opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s; }
.scrim.is-open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 81; width: min(460px, 100%);
  background: var(--paper); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .65s var(--ease);
}
.drawer.is-open { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; height: var(--head-h); padding: 0 22px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { margin: 0; font-size: 15px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 0 22px; }
.drawer__foot { border-top: 1px solid var(--line); padding: 18px 22px 22px; }
.ship-bar { margin: 18px 0 4px; font-size: 13px; }
.ship-bar__track { height: 3px; background: var(--line); margin-top: 8px; overflow: hidden; }
.ship-bar__fill { height: 100%; background: var(--ink); width: 0; transition: width .7s var(--ease); }
.line-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); animation: rise .5s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.line-item img { width: 84px; aspect-ratio: 4 / 5; object-fit: cover; background: #e4e2db; }
.line-item__name { font-weight: 600; font-size: 14px; }
.line-item__meta { font-size: 13px; color: var(--muted); }
.line-item__right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; font-variant-numeric: tabular-nums; font-size: 14px; }
.line-item__right button.rm { font-size: 12px; color: var(--muted); text-decoration: underline; }
.line-item__ctrl { margin-top: 10px; }
.totals { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.totals strong { font-size: 18px; }
.drawer-empty { padding: 60px 0; text-align: center; }
.drawer-empty .display { font-size: 56px; margin-bottom: 18px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 95; background: var(--ink); color: var(--bg); padding: 12px 18px; font-size: 13px; transform: translate(-50%, calc(100% + 40px)); visibility: hidden; transition: transform .5s var(--ease), visibility .5s; pointer-events: none; }
.toast.is-on { transform: translate(-50%, 0); visibility: visible; }

/* ---------- Checkout ---------- */
.checkout { display: grid; grid-template-columns: 1.2fr 1fr; min-height: calc(100vh - var(--head-h)); }
.checkout__form { padding: 40px var(--pad) 80px; max-width: 720px; justify-self: end; width: 100%; }
.checkout__sum { background: var(--paper); border-left: 1px solid var(--line); padding: 40px var(--pad); }
.checkout__sum-inner { position: sticky; top: calc(var(--head-h) + 24px); max-width: 460px; }
.checkout h1 { font-size: clamp(56px, 7vw, 110px); margin-bottom: 30px; }
.fieldset { border: 0; padding: 0; margin: 0 0 30px; }
.fieldset legend { padding: 0; margin-bottom: 12px; font-weight: 600; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fields .full { grid-column: 1 / -1; }
.input { position: relative; }
.input input, .input select, .input textarea {
  width: 100%; height: 54px; padding: 22px 14px 6px; border: 1px solid var(--line); background: var(--paper); border-radius: 0; outline: 0; transition: border-color .2s; appearance: none;
}
.input textarea { height: 96px; resize: vertical; padding-top: 26px; }
.input label { position: absolute; left: 15px; top: 17px; font-size: 14px; color: var(--muted); pointer-events: none; transition: all .2s var(--ease); }
.input input:focus, .input select:focus, .input textarea:focus { border-color: var(--ink); }
.input input:focus + label, .input input:not(:placeholder-shown) + label,
.input textarea:focus + label, .input textarea:not(:placeholder-shown) + label,
.input select + label { top: 7px; font-size: 11px; }
.input.err input { border-color: #c4271c; }
.radio-card { display: flex; justify-content: space-between; align-items: center; padding: 16px 14px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; margin-bottom: 4px; }
.radio-card:has(input:checked) { border-color: var(--ink); }
.radio-card input { accent-color: var(--ink); margin-right: 10px; }
.sum-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; font-size: 14px; }
.sum-item .ph { position: relative; }
.sum-item img { width: 64px; aspect-ratio: 4 / 5; object-fit: cover; background: #e4e2db; }
.sum-item .qty { position: absolute; top: -6px; right: -6px; background: var(--muted); color: #fff; border-radius: 10px; min-width: 20px; height: 20px; font-size: 11px; display: grid; place-items: center; padding: 0 5px; }
.sum-rows { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; display: grid; gap: 8px; font-size: 14px; font-variant-numeric: tabular-nums; }
.sum-rows div { display: flex; justify-content: space-between; }
.sum-rows .grand { font-size: 20px; font-weight: 600; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; }
.done { padding: 120px var(--pad); text-align: center; }
.done .display { font-size: clamp(64px, 12vw, 180px); }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; padding-top: 120px; padding-bottom: 80px; }
.legal h1 { font-size: clamp(48px, 7vw, 96px); margin-bottom: 8px; }
.legal h2 { font-size: 18px; font-weight: 700; margin: 36px 0 10px; }
.legal p, .legal li { font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.legal ul { padding-left: 20px; margin: 12px 0; }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.legal-table th, .legal-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal-table th { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .rail { grid-auto-columns: calc((100% - 2 * 4px) / 3.2); }
}
@media (max-width: 860px) {
  :root { --head-h: 56px; }
  .site-header .nav { display: none; }
  .menu-btn { display: inline-flex; font-size: 13px; font-weight: 500; }
  .head-actions .hide-m { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero__img:nth-child(2), .hero__top span + span { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 28px 4px; }
  .rail { grid-auto-columns: 62%; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .packs-band__inner, .story, .signup { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-cols > div:first-child { grid-column: 1 / -1; }
  .pdp { grid-template-columns: 1fr; }
  .pdp__gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .pdp__gallery::-webkit-scrollbar { display: none; }
  .pdp__gallery .ph { flex: 0 0 86%; scroll-snap-align: start; }
  .pdp__info { position: static; padding: 24px var(--pad) 40px; }
  .checkout { grid-template-columns: 1fr; }
  .checkout__sum { order: -1; border-left: 0; border-bottom: 1px solid var(--line); }
  .card__quick { display: none; }
  .card__info { padding: 10px 2px 0; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .sort { justify-content: space-between; }
}
@media (max-width: 480px) {
  .packs { grid-template-columns: repeat(2, 1fr); }
  .fields { grid-template-columns: 1fr; }
  .card__packs { display: none; }
  .tier-table td { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
