/* ════════════════════════════════════════════════════════════════════════
   BUZZCO STUDIO — storefront
   Mobile first. Brand palette and type per the Buzzco brand guide.
   ══════════════════════════════════════════════════════════════════════ */

/* ── Tokens ──────────────────────────────────────────────────────────── */
:root {
  /* Brand palette */
  --night:   #1B1D21;
  --warm:    #F7F6F3;
  --gold:    #C08A3E;
  --slate:   #6B7280;
  --teal:    #0F766E;

  /* Derived */
  --gold-lt: #E0B472;
  --gold-dk: #9A6C2C;
  --teal-lt: #3FA093;

  /* Dark theme surfaces (default) */
  --bg:        #131518;
  --surface:   #1B1D21;
  --surface-2: #212429;
  --surface-3: #282C32;
  --line:      rgba(247,246,243,.11);
  --line-2:    rgba(247,246,243,.18);
  --ink:       #F2F1ED;
  --ink-2:     #A8AEB6;
  --ink-3:     #6E757E;
  --shadow:    0 24px 60px -20px rgba(0,0,0,.75);
  --band:      #F7F6F3;   /* the light contrast band */
  --band-ink:  #1B1D21;
  --band-ink2: #5A6069;
  --band-line: rgba(27,29,33,.13);

  /* Type */
  --f-head: 'Manrope', ui-sans-serif, system-ui, 'Segoe UI', sans-serif;
  --f-body: 'Inter', ui-sans-serif, system-ui, 'Segoe UI', sans-serif;
  --f-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  /* Metrics */
  --pad: clamp(1.1rem, 5vw, 2.5rem);
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --bar:  58px;
  --nav:  62px;
  --sab:  env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.22,.68,0,1);
}

:root[data-theme="light"] {
  --bg:        #FFFFFF;
  --surface:   #F7F6F3;
  --surface-2: #FFFFFF;
  --surface-3: #EFEDE8;
  --line:      rgba(27,29,33,.12);
  --line-2:    rgba(27,29,33,.2);
  --ink:       #1B1D21;
  --ink-2:     #5A6069;
  --ink-3:     #8B929B;
  --shadow:    0 24px 60px -24px rgba(27,29,33,.28);
  --band:      #1B1D21;
  --band-ink:  #F7F6F3;
  --band-ink2: #A8AEB6;
  --band-line: rgba(247,246,243,.14);
}

/* ── Reset ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

/* Components below set their own `display`, which would otherwise beat the
   UA rule for [hidden] and leave closed sheets and empty badges on screen. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar) + 60px);
  overflow-x: clip;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(var(--nav) + var(--sab));
  transition: background .35s var(--ease), color .35s var(--ease);
}

body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--f-head);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.02em;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: fixed; top: -60px; left: 12px; z-index: 300;
  background: var(--gold); color: #1B1D21;
  padding: .6rem 1rem; border-radius: 0 0 8px 8px; font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ── Layout ──────────────────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--pad);
}
.wrap--narrow { max-width: 760px; }

.section { padding-block: clamp(3.5rem, 11vw, 7rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 9vw, 5.5rem); }

.section--light {
  background: var(--band);
  color: var(--band-ink);
}
.section--light .section__title { color: var(--band-ink); }

.section__head { margin-bottom: clamp(1.75rem, 6vw, 3rem); }

.section__title {
  font-size: clamp(1.75rem, 7.4vw, 3.1rem);
  max-width: 20ch;
}

/* ── Eyebrow ─────────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--f-head);
  font-size: .7rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.eyebrow--dark { color: var(--gold); }

.tick {
  width: 26px; height: 1px; background: currentColor;
  position: relative; flex: none; opacity: .8;
}
.tick::before {
  content: ''; position: absolute; right: 0; top: -3px;
  width: 1px; height: 7px; background: currentColor;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px;
  padding: .8rem 1.35rem;
  border-radius: 999px;
  font-family: var(--f-head);
  font-size: .93rem; font-weight: 700; letter-spacing: -.01em;
  border: 1px solid transparent;
  transition: transform .18s var(--ease), background .2s, border-color .2s, box-shadow .2s, opacity .2s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: scale(.97); }

.btn--gold {
  background: linear-gradient(135deg, var(--gold-lt), var(--gold) 55%, var(--gold-dk));
  color: #1B1D21;
  box-shadow: 0 10px 26px -12px rgba(192,138,62,.85);
}
.btn--gold:hover { box-shadow: 0 14px 32px -12px rgba(192,138,62,.95); }

.btn--ghost {
  border-color: var(--line-2);
  color: var(--ink);
  background: rgba(247,246,243,.03);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.section--light .btn--ghost { color: var(--band-ink); border-color: var(--band-line); }

.btn--dark { background: var(--night); color: var(--warm); }

.btn--lg { min-height: 54px; padding: .95rem 1.7rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.linkbtn {
  color: var(--gold); font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
}

/* ── Icon buttons ────────────────────────────────────────────────────── */
.iconbtn {
  position: relative;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--ink);
  transition: background .2s, border-color .2s, transform .15s var(--ease);
}
.iconbtn svg {
  width: 21px; height: 21px;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.iconbtn:hover { background: var(--surface-3); border-color: var(--line); }
.iconbtn:active { transform: scale(.92); }

.badge {
  position: absolute; top: 2px; right: 0px;
  min-width: 19px; height: 19px; padding: 0 5px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--gold); color: #1B1D21;
  font-family: var(--f-head); font-size: .66rem; font-weight: 800; font-style: normal;
  line-height: 1;
  animation: pop .3s var(--ease);
}
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

#themeToggle .ico-sun { display: none; }
:root[data-theme="light"] #themeToggle .ico-moon { display: none; }
:root[data-theme="light"] #themeToggle .ico-sun  { display: block; }

/* ── App bar ─────────────────────────────────────────────────────────── */
.appbar {
  position: sticky; top: 0; z-index: 90;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.appbar.is-stuck { border-bottom-color: var(--line); }

.appbar__row {
  height: var(--bar);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.appbar__actions { display: flex; align-items: center; gap: .15rem; }

/* ── Brand lockup ────────────────────────────────────────────────────── */
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand__mark { width: 26px; height: auto; }
.brand__type { display: flex; flex-direction: column; line-height: 1; }
.brand__type b {
  font-family: var(--f-head); font-weight: 800;
  font-size: .98rem; letter-spacing: .06em; color: var(--ink);
}
.brand__type i {
  font-style: normal; font-family: var(--f-head); font-weight: 600;
  font-size: .53rem; letter-spacing: .42em; color: var(--gold);
  margin-top: 3px;
}
.brand--lg .brand__mark { width: 38px; }
.brand--lg .brand__type b { font-size: 1.3rem; }
.brand--lg .brand__type i { font-size: .64rem; }

/* ── Preloader ───────────────────────────────────────────────────────── */
.preloader {
  position: fixed; inset: 0; z-index: 400;
  background: var(--night);
  display: grid; place-items: center;
  transition: opacity .5s var(--ease), visibility .5s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__inner { display: grid; justify-items: center; gap: 1.1rem; }
.preloader__mark { width: 74px; animation: draft 1.5s var(--ease) infinite alternate; }
@keyframes draft { from { opacity: .35; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.preloader__bar {
  width: 148px; height: 2px; background: rgba(247,246,243,.14); overflow: hidden;
}
.preloader__bar i { display: block; height: 100%; width: 40%; background: var(--gold); animation: sweep 1.1s var(--ease) infinite; }
@keyframes sweep { from { transform: translateX(-110%); } to { transform: translateX(360%); } }
.preloader__label {
  font-family: var(--f-head); font-size: .66rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: #6E757E;
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-top: clamp(2.5rem, 9vw, 5rem);
  overflow: hidden;
  isolation: isolate;
}

.blueprint {
  position: absolute; inset: 0; z-index: -1;
  color: var(--gold);
  overflow: hidden;
  background-image:
    linear-gradient(to right,  var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(120% 90% at 50% 8%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 8%, #000 25%, transparent 78%);
}
.blueprint::after {
  content: '';
  position: absolute; inset: -20% -10% auto;
  height: 70%;
  background: radial-gradient(60% 100% at 50% 0%, rgba(192,138,62,.22), transparent 70%);
}
.bp-scan {
  position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .5;
  animation: scan 7s linear infinite;
}
@keyframes scan { from { top: -2%; } to { top: 102%; } }

.bp-skyline {
  position: absolute; bottom: 0; left: 0; width: 100%; height: 58%;
  color: var(--gold); opacity: .22;
}

.hero__inner { position: relative; padding-bottom: clamp(2rem, 7vw, 3.5rem); }

.hero__title {
  font-size: clamp(2.6rem, 12.6vw, 6.4rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: .94;
  margin-bottom: 1.15rem;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--gold-lt), var(--gold) 45%, var(--gold-dk));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.hero__lede {
  color: var(--ink-2);
  font-size: clamp(.98rem, 3.9vw, 1.14rem);
  max-width: 52ch;
  margin-bottom: 1.9rem;
}

.hero__cta { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 2.5rem; }

.hero__stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  border-top: 1px solid var(--line);
  padding-top: 1.35rem;
}
.hero__stats dt {
  font-family: var(--f-head); font-weight: 800;
  font-size: clamp(1.3rem, 6vw, 1.9rem);
  letter-spacing: -.03em;
  background: linear-gradient(120deg, var(--gold-lt), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__stats dd {
  font-size: .72rem; color: var(--ink-3);
  letter-spacing: .07em; text-transform: uppercase;
  margin-top: .15rem;
}

/* ── Marquee ─────────────────────────────────────────────────────────── */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  padding-block: .7rem;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex; gap: 1.1rem; width: max-content;
  animation: slide 34s linear infinite;
}
.marquee__track span {
  font-family: var(--f-head); font-size: .74rem; font-weight: 700;
  letter-spacing: .22em; color: var(--ink-3);
  white-space: nowrap;
}
.marquee__track span:nth-child(even) { color: var(--gold); letter-spacing: 0; }
@keyframes slide { from { transform: none; } to { transform: translateX(-50%); } }

/* ── Filter bar ──────────────────────────────────────────────────────── */
.filterbar {
  position: sticky; top: var(--bar); z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-block: .7rem;
  margin-bottom: 1rem;
}

.chips {
  display: flex; gap: .5rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-inline: var(--pad);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: none; scroll-snap-align: start;
  min-height: 40px;
  padding: .5rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-family: var(--f-head); font-size: .84rem; font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  transition: all .2s var(--ease);
}
.chip:active { transform: scale(.95); }
.chip.is-on {
  background: var(--gold); border-color: var(--gold);
  color: #1B1D21; font-weight: 700;
}

/* ── Toolbar ─────────────────────────────────────────────────────────── */
.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.1rem;
}
.toolbar__count {
  font-family: var(--f-mono); font-size: .74rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}
.sortsel { position: relative; display: inline-flex; align-items: center; }
.sortsel select {
  appearance: none; -webkit-appearance: none;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .55rem 2.2rem .55rem 1rem;
  min-height: 42px;
  font-family: var(--f-head); font-size: .84rem; font-weight: 600;
  color: var(--ink);
}
.sortsel svg {
  position: absolute; right: .8rem; width: 15px; height: 15px;
  pointer-events: none;
  fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ── Product grid ────────────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
}

.card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  text-align: left;
  transition: transform .22s var(--ease), border-color .22s, box-shadow .22s;
  animation: cardIn .45s var(--ease) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.card:active { transform: scale(.982); }
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }

.card__cover {
  position: relative;
  aspect-ratio: 16 / 11;
  background:
    radial-gradient(120% 100% at 50% 0%, var(--surface-3), var(--surface));
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.cover__svg, .cover__img { width: 100%; height: 100%; }
.cover__img { object-fit: cover; object-position: top center; }
.card:hover .cover__svg, .card:hover .cover__img { transform: scale(1.035); }
.cover__svg, .cover__img { transition: transform .5s var(--ease); }

.card__tag {
  position: absolute; top: .55rem; left: .55rem;
  padding: .22rem .55rem;
  border-radius: 6px;
  background: var(--gold); color: #1B1D21;
  font-family: var(--f-head); font-size: .6rem; font-weight: 800;
  letter-spacing: .09em; text-transform: uppercase;
}
.card__tag--teal { background: var(--teal-lt); color: #06231F; }

.card__off {
  position: absolute; top: .55rem; right: .55rem;
  padding: .22rem .5rem;
  border-radius: 6px;
  background: rgba(19,21,24,.72);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(247,246,243,.16);
  color: #F2F1ED;
  font-family: var(--f-mono); font-size: .62rem; font-weight: 600;
}

/* Real product covers sometimes carry their own top-right ribbon graphic —
   drop our badge to the bottom corner instead of stacking on top of it. */
.card__off--low { top: auto; bottom: .55rem; }

.card__body { padding: .8rem .8rem .9rem; display: flex; flex-direction: column; flex: 1; gap: .45rem; }

.card__meta {
  display: flex; align-items: center; gap: .4rem;
  font-family: var(--f-mono); font-size: .6rem;
  letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3);
}
.card__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.card__stars { color: var(--gold); letter-spacing: 0; }

.card__name { font-size: .95rem; font-weight: 700; line-height: 1.22; letter-spacing: -.015em; }
.card__name button {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
  font: inherit; letter-spacing: inherit;
}

.card__fmt { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: auto; padding-top: .3rem; }
.fmt {
  padding: .16rem .38rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-family: var(--f-mono); font-size: .57rem;
  letter-spacing: .05em; color: var(--ink-3);
}

.card__buy {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding-top: .55rem;
  border-top: 1px solid var(--line);
}
.card__price { display: flex; flex-direction: column; line-height: 1.15; }
.price__now { font-family: var(--f-head); font-weight: 800; font-size: 1.02rem; letter-spacing: -.02em; }
.price__was { font-size: .68rem; color: var(--ink-3); text-decoration: line-through; }
.price__sub { font-size: .72rem; color: var(--ink-3); }

.addbtn {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--gold); color: #1B1D21;
  transition: transform .18s var(--ease), background .2s;
}
.addbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.addbtn:active { transform: scale(.88); }
.addbtn.is-in { background: var(--teal-lt); }

.empty { text-align: center; color: var(--ink-2); padding: 3rem 0; }

/* ── Bundle ──────────────────────────────────────────────────────────── */
.bundle {
  background: var(--night);
  color: var(--warm);
  border: 1px solid rgba(192,138,62,.24);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: grid;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.6);
}
:root[data-theme="light"] .bundle { background: #101215; }

.bundle__body { padding: clamp(1.5rem, 6vw, 3rem); }
.bundle__title { font-size: clamp(1.6rem, 7vw, 2.5rem); margin-bottom: .8rem; }
.bundle__lede { color: #A8AEB6; margin-bottom: 1.4rem; font-size: .95rem; }

.bundle__list { display: grid; gap: .55rem; margin-bottom: 1.6rem; }
.bundle__list li {
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: .88rem; color: #D8D6D0;
}
.bundle__list svg { width: 16px; height: 16px; flex: none; margin-top: .22rem; fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.bundle__foot { display: grid; gap: .9rem; }
.bundle__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .55rem; }
.bundle__price .price__now { font-size: clamp(1.6rem, 8vw, 2.2rem); }
.bundle__price .price__was { font-size: .95rem; color: #6E757E; }

.pill {
  padding: .25rem .6rem; border-radius: 999px;
  font-family: var(--f-head); font-size: .68rem; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase;
}
.pill--teal { background: rgba(63,160,147,.18); color: var(--teal-lt); border: 1px solid rgba(63,160,147,.35); }

.bundle__art {
  min-height: 200px;
  background: radial-gradient(90% 90% at 70% 30%, #24272C, #16181B);
  border-top: 1px solid rgba(247,246,243,.09);
  display: grid; place-items: center;
  padding: 1.5rem;
}
.bundle__art .cover__svg {
  width: 100%; max-width: 380px; height: auto;
  aspect-ratio: 320 / 220;
  border: 1px solid rgba(247,246,243,.1);
  border-radius: var(--r-sm);
}

/* ── Pillars ─────────────────────────────────────────────────────────── */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.pillar {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.1rem .95rem;
}
.pillar__ico {
  width: 34px; height: 34px; margin-bottom: .8rem;
  fill: none; stroke: var(--gold); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.pillar h3 { font-size: .95rem; margin-bottom: .3rem; }
.pillar p { font-size: .8rem; color: var(--ink-2); line-height: 1.5; }

/* ── Services ────────────────────────────────────────────────────────── */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.service {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  text-align: left;
  transition: transform .22s var(--ease), border-color .22s, box-shadow .22s;
}
.service:active { transform: scale(.982); }
.service:hover { border-color: var(--gold); box-shadow: var(--shadow); }

.service__cover {
  position: relative;
  aspect-ratio: 16 / 11;
  display: block;
  background: radial-gradient(120% 100% at 50% 0%, var(--surface-3), var(--surface));
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.service__cover .cover__svg { width: 100%; height: 100%; transition: transform .5s var(--ease); }
.service:hover .service__cover .cover__svg { transform: scale(1.035); }

.service__body { padding: .8rem .8rem .9rem; display: flex; flex-direction: column; gap: .3rem; }
.service__name { font-size: .95rem; font-weight: 700; line-height: 1.22; letter-spacing: -.015em; color: var(--ink); }
.service__tagline { font-size: .8rem; color: var(--ink-2); line-height: 1.5; }

/* ── Steps ───────────────────────────────────────────────────────────── */
.steps { display: grid; gap: .8rem; counter-reset: s; }
.step {
  background: color-mix(in srgb, var(--band-ink) 5%, transparent);
  border: 1px solid var(--band-line);
  border-radius: var(--r);
  padding: 1.2rem 1.1rem;
  position: relative;
}
.step__no {
  font-family: var(--f-mono); font-size: .7rem;
  letter-spacing: .18em; color: var(--gold);
  display: block; margin-bottom: .55rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: .3rem; color: var(--band-ink); }
.step p { font-size: .87rem; color: var(--band-ink2); }

/* ── Quote rail ──────────────────────────────────────────────────────── */
.rail {
  display: flex; gap: .8rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: .3rem var(--pad) 1rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { display: none; }

.quote {
  flex: none; scroll-snap-align: center;
  width: min(85vw, 380px);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.3rem 1.2rem;
  display: flex; flex-direction: column; gap: .8rem;
}
.stars { color: var(--gold); font-size: .9rem; letter-spacing: .12em; }
.quote blockquote { font-size: .93rem; line-height: 1.6; color: var(--ink); flex: 1; }
.quote figcaption { display: flex; flex-direction: column; gap: .1rem; padding-top: .6rem; border-top: 1px solid var(--line); }
.quote figcaption b { font-family: var(--f-head); font-size: .88rem; }
.quote figcaption span { font-size: .76rem; color: var(--ink-3); }

/* ── Accordion ───────────────────────────────────────────────────────── */
.accordion { display: grid; gap: .55rem; }
.acc {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.acc summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 3rem 1rem 1.05rem;
  position: relative;
  font-family: var(--f-head); font-weight: 700; font-size: .94rem;
  min-height: 54px;
  display: flex; align-items: center;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary i {
  position: absolute; right: 1.05rem; top: 50%;
  width: 13px; height: 13px; margin-top: -6px;
}
.acc summary i::before, .acc summary i::after {
  content: ''; position: absolute; background: var(--gold);
  transition: transform .25s var(--ease), opacity .25s;
}
.acc summary i::before { inset: 6px 0 auto; height: 1.6px; }
.acc summary i::after  { inset: 0 6px auto; width: 1.6px; height: 13px; }
.acc[open] summary i::after { transform: rotate(90deg); opacity: 0; }
.acc p { padding: 0 1.05rem 1.1rem; font-size: .88rem; color: var(--ink-2); }

/* ── CTA card ────────────────────────────────────────────────────────── */
.cta {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.8rem, 8vw, 3rem) clamp(1.2rem, 6vw, 2.5rem);
  background:
    radial-gradient(100% 130% at 50% 0%, rgba(192,138,62,.13), transparent 68%),
    var(--surface-2);
}
.cta__mark { width: 44px; margin: 0 auto 1.1rem; }
.cta h2 { font-size: clamp(1.5rem, 6.5vw, 2.1rem); margin-bottom: .6rem; }
.cta p { color: var(--ink-2); font-size: .93rem; max-width: 42ch; margin: 0 auto 1.5rem; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding-top: clamp(2.5rem, 8vw, 4rem);
  margin-top: clamp(2rem, 6vw, 4rem);
}
.footer__top { display: grid; gap: 2rem; padding-bottom: 2rem; }
.footer__brand p { color: var(--ink-3); font-size: .85rem; margin-top: .9rem; max-width: 34ch; }

.footer__nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1rem; }
.footer__nav h4 {
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .7rem;
}
.footer__nav a {
  display: block; padding: .32rem 0;
  font-size: .87rem; color: var(--ink-2);
  transition: color .2s;
}
.footer__nav a:hover { color: var(--gold); }

.footer__bar {
  border-top: 1px solid var(--line);
  padding-block: 1.1rem;
  display: flex; flex-direction: column; gap: .4rem;
}
.footer__bar small { font-size: .74rem; color: var(--ink-3); }

/* ── Bottom nav ──────────────────────────────────────────────────────── */
.botnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  height: calc(var(--nav) + var(--sab));
  padding-bottom: var(--sab);
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-top: 1px solid var(--line);
}
.botnav__item {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  color: var(--ink-3);
  font-family: var(--f-head); font-size: .62rem; font-weight: 600; letter-spacing: .03em;
  transition: color .2s;
}
.botnav__item svg {
  width: 21px; height: 21px;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .2s var(--ease);
}
.botnav__item:active svg { transform: scale(.88); }
.botnav__item.is-active { color: var(--gold); }
.botnav__item .badge { top: 4px; right: calc(50% - 22px); }

/* ── Scrim + sheets ──────────────────────────────────────────────────── */
.scrim {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10,11,13,.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.scrim.is-open { opacity: 1; }

.sheet {
  position: fixed; z-index: 110;
  left: 0; right: 0; bottom: 0;
  max-height: 92dvh;
  display: flex; flex-direction: column;
  background: var(--surface-2);
  border-top: 1px solid var(--line-2);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  box-shadow: 0 -20px 60px -20px rgba(0,0,0,.7);
  transform: translateY(101%);
  transition: transform .38s var(--ease);
  overscroll-behavior: contain;
}
.sheet.is-open { transform: none; }
.sheet.is-dragging { transition: none; }

.sheet--top {
  bottom: auto; top: 0;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  border-top: 0; border-bottom: 1px solid var(--line-2);
  transform: translateY(-101%);
  padding-top: env(safe-area-inset-top, 0px);
}

.sheet__grip {
  padding: .7rem 0 .3rem;
  display: grid; place-items: center;
  touch-action: none;
  cursor: grab;
  flex: none;
}
.sheet__grip::after {
  content: ''; width: 40px; height: 4px; border-radius: 99px;
  background: var(--line-2);
}

.sheet__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: .3rem 1.1rem .9rem;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.sheet__head h2 { font-size: 1.1rem; }

.sheet__close {
  position: absolute; top: .7rem; right: .7rem; z-index: 2;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface-3) 85%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  color: var(--ink);
}
.sheet__close svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sheet__close--inline { position: static; flex: none; }
.sheet__close:active { transform: scale(.9); }

.sheet__scroll {
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  flex: 1;
}

.sheet__foot {
  flex: none;
  padding: .9rem 1.1rem calc(.9rem + var(--sab));
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  display: grid; gap: .6rem;
}

.prose { padding: 1.1rem 1.1rem calc(2rem + var(--sab)); }
.prose h3 { font-size: .95rem; margin-bottom: .35rem; color: var(--gold); }
.prose p { font-size: .88rem; color: var(--ink-2); margin-bottom: 1.1rem; }

/* ── Product detail sheet ────────────────────────────────────────────── */
.pd__cover {
  aspect-ratio: 320 / 220;
  background: radial-gradient(120% 100% at 50% 0%, var(--surface-3), var(--surface));
  border-bottom: 1px solid var(--line);
}
/* `minmax(0, 1fr)` — without it the implicit column sizes to the widest
   child's max-content, and a horizontally-scrolling gallery row (whose
   un-scrolled content is wide) blows the whole sheet out past the viewport. */
.pd__body { padding: 1.1rem 1.1rem 1.6rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }

.pd__top { display: grid; gap: .5rem; }
.pd__cat {
  font-family: var(--f-mono); font-size: .64rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
}
.pd__name { font-size: clamp(1.35rem, 6vw, 1.9rem); }
.pd__tagline { color: var(--ink-2); font-size: .92rem; }

.pd__stat {
  display: flex; flex-wrap: wrap; gap: .4rem .9rem;
  padding: .8rem 0;
  border-block: 1px solid var(--line);
  font-family: var(--f-mono); font-size: .68rem;
  letter-spacing: .06em; color: var(--ink-3);
}
.pd__stat b { color: var(--gold); font-weight: 600; }

.pd__summary { font-size: .92rem; color: var(--ink-2); line-height: 1.65; }

.pd__inc h3 {
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: .7rem;
}
.pd__inc ul { display: grid; gap: .5rem; }
.pd__inc li {
  display: flex; gap: .6rem; align-items: flex-start;
  font-size: .88rem; color: var(--ink);
}
.pd__inc svg {
  width: 15px; height: 15px; flex: none; margin-top: .25rem;
  fill: none; stroke: var(--gold); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
}

.pd__fmt { display: flex; flex-wrap: wrap; gap: .35rem; }
.pd__fmt .fmt { font-size: .65rem; padding: .3rem .55rem; }

/* Sample sheets from inside the pack — a horizontally scrolling filmstrip
   so it doesn't blow out the sheet's height on a short phone screen. */
.pd__gallery {
  display: flex; gap: .6rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  margin: 0 -1.1rem; padding: .1rem 1.1rem .3rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.pd__gallery::-webkit-scrollbar { display: none; }
.gshot {
  flex: none; scroll-snap-align: start;
  width: min(78vw, 300px);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface-3);
}
.gshot img { width: 100%; height: auto; display: block; }
.gshot figcaption {
  padding: .5rem .65rem;
  font-family: var(--f-head); font-size: .72rem; font-weight: 600;
  color: var(--ink-2);
  border-top: 1px solid var(--line);
}

.pd__trust {
  display: grid; gap: .5rem;
  padding: .9rem 1rem;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-sm);
}
.pd__trust div { display: flex; gap: .55rem; align-items: center; font-size: .8rem; color: var(--ink-2); }
.pd__trust svg { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--teal-lt); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.pd__pricerow { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.pd__pricerow .price__now { font-size: 1.5rem; }
.pd__actions { display: grid; grid-template-columns: 1fr; gap: .55rem; }

/* ── Cart ────────────────────────────────────────────────────────────── */
.cart__list { display: grid; }
.citem {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: .8rem;
  align-items: center;
  padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  animation: cardIn .3s var(--ease) both;
}
.citem__art {
  width: 62px; aspect-ratio: 1;
  border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-3);
  display: grid; place-items: center;
}
.citem__art .cover__svg, .citem__art .cover__img { width: 100%; height: 100%; }
.citem__name { font-family: var(--f-head); font-weight: 700; font-size: .85rem; line-height: 1.25; }
.citem__fmt { font-family: var(--f-mono); font-size: .6rem; color: var(--ink-3); letter-spacing: .07em; margin-top: .2rem; }
.citem__price { font-family: var(--f-head); font-weight: 800; font-size: .9rem; margin-top: .3rem; }
.citem__rm {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  color: var(--ink-3); border: 1px solid var(--line);
}
.citem__rm svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.citem__rm:active { transform: scale(.9); color: #E5675E; border-color: #E5675E; }

.cart__empty { padding: 3.2rem 1.5rem; text-align: center; display: grid; gap: 1rem; justify-items: center; }
.cart__empty img { width: 52px; opacity: .5; }
.cart__empty h3 { font-size: 1.05rem; }
.cart__empty p { font-size: .87rem; color: var(--ink-3); max-width: 30ch; }

.cart__promo {
  margin: .9rem 1.1rem;
  padding: .8rem .9rem;
  border-radius: var(--r-sm);
  border: 1px dashed var(--gold);
  background: rgba(192,138,62,.07);
  display: flex; gap: .6rem; align-items: flex-start;
  font-size: .82rem; color: var(--ink-2);
}
.cart__promo svg { width: 16px; height: 16px; flex: none; margin-top: .15rem; fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cart__promo b { color: var(--gold); }

.sums { display: grid; gap: .35rem; }
.sums div { display: flex; justify-content: space-between; font-size: .84rem; color: var(--ink-2); }
.sums div.is-save { color: var(--teal-lt); }
.sums div.is-total {
  font-family: var(--f-head); font-weight: 800; font-size: 1.15rem;
  color: var(--ink); padding-top: .5rem; margin-top: .25rem;
  border-top: 1px solid var(--line);
}
.foot__note {
  font-size: .68rem; color: var(--ink-3); text-align: center; line-height: 1.45;
}

/* ── Search ──────────────────────────────────────────────────────────── */
.searchbar {
  display: flex; align-items: center; gap: .6rem;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.searchbar > svg {
  width: 19px; height: 19px; flex: none;
  fill: none; stroke: var(--ink-3); stroke-width: 1.8; stroke-linecap: round;
}
.searchbar input {
  flex: 1; min-width: 0;
  background: none; border: 0; outline: none;
  font-size: 1rem; padding: .5rem 0;
}
.searchbar input::placeholder { color: var(--ink-3); }

.sresult {
  display: grid; grid-template-columns: 54px 1fr auto;
  gap: .8rem; align-items: center;
  width: 100%;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.sresult:active { background: var(--surface-3); }
.sresult__art {
  width: 54px; aspect-ratio: 1; border-radius: 9px;
  overflow: hidden; border: 1px solid var(--line);
  background: var(--surface-3); display: grid; place-items: center;
}
.sresult__art .cover__svg, .sresult__art .cover__img { width: 100%; height: 100%; }
.sresult b { font-family: var(--f-head); font-size: .86rem; font-weight: 700; display: block; line-height: 1.25; }
.sresult span { font-size: .72rem; color: var(--ink-3); }
.sresult em { font-style: normal; font-family: var(--f-head); font-weight: 800; font-size: .88rem; color: var(--gold); }
.shint { padding: 2.5rem 1.5rem; text-align: center; color: var(--ink-3); font-size: .87rem; }

/* ── Toast ───────────────────────────────────────────────────────────── */
.toast {
  position: fixed; z-index: 200;
  left: 50%; bottom: calc(var(--nav) + var(--sab) + 14px);
  transform: translate(-50%, 130%);
  max-width: min(92vw, 420px);
  display: flex; align-items: center; gap: .6rem;
  padding: .75rem 1.1rem;
  border-radius: 999px;
  background: var(--night);
  border: 1px solid rgba(247,246,243,.16);
  color: var(--warm);
  font-size: .85rem; font-weight: 500;
  box-shadow: 0 16px 40px -14px rgba(0,0,0,.8);
  opacity: 0;
  transition: transform .4s var(--ease), opacity .3s;
  pointer-events: none;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.toast svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* With a sheet open the toast would land on the checkout button, so it
   flips to the top of the screen instead. */
body.is-locked .toast { bottom: auto; top: 0; transform: translate(-50%, -130%); }
body.is-locked .toast.is-on { transform: translate(-50%, calc(env(safe-area-inset-top, 0px) + 14px)); }

/* ── Reveal on scroll ────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ══ Breakpoints ═══════════════════════════════════════════════════════ */

@media (min-width: 520px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .hero__cta { flex-direction: row; flex-wrap: wrap; }
  .hero__cta .btn { flex: 1 1 auto; }
  .footer__bar { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (min-width: 760px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card__body { padding: 1rem 1rem 1.1rem; }
  .card__name { font-size: 1.02rem; }
  .card__name button { -webkit-line-clamp: 2; }
  .pillars { grid-template-columns: repeat(4, 1fr); }
  .pillar { padding: 1.5rem 1.3rem; }
  .services { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .service__body { padding: 1rem 1rem 1.1rem; }
  .service__name { font-size: 1.02rem; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .bundle { grid-template-columns: 1.15fr .85fr; align-items: center; }
  .bundle__art { height: 100%; border-top: 0; border-left: 1px solid rgba(247,246,243,.09); }
  .bundle__foot { grid-template-columns: 1fr auto; align-items: center; }
  .bundle__foot .btn { width: auto; padding-inline: 2rem; }
  .footer__top { grid-template-columns: 1.1fr 1.4fr; }
  .footer__nav { grid-template-columns: repeat(3, 1fr); }
  .hero__stats { max-width: 560px; }
}

@media (min-width: 900px) {
  :root { --nav: 0px; }
  body { padding-bottom: 0; }
  .botnav { display: none; }
  .toast { bottom: 24px; }

  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  /* Sheets become side drawers on wide screens. */
  .sheet {
    top: 0; bottom: 0; left: auto;
    width: min(480px, 92vw);
    max-height: none;
    border-radius: 0;
    border-top: 0;
    border-left: 1px solid var(--line-2);
    transform: translateX(101%);
  }
  .sheet.is-open { transform: none; }
  .sheet__grip { display: none; }
  .sheet--top {
    left: 50%; right: auto; top: 8vh; bottom: auto;
    transform: translate(-50%, -130%);
    max-height: 74vh;
    border: 1px solid var(--line-2);
    border-radius: var(--r-lg);
    width: min(620px, 92vw);
  }
  .sheet--top.is-open { transform: translate(-50%, 0); }
  #sheet-product .sheet__close { top: 1rem; right: 1rem; }
  .sheet__head { padding-top: 1.1rem; }
}

@media (min-width: 1100px) {
  .hero__title { font-size: 5.6rem; }
  .hero__inner { padding-block: 3rem 4.5rem; }
  .grid { gap: 1.15rem; }
}

/* ── Motion & contrast preferences ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee__track, .bp-scan { animation: none; }
}

@media print {
  .appbar, .botnav, .sheet, .scrim, .toast, .preloader, .marquee { display: none !important; }
}
