/* ==========================================================================
   DecoSwift · dark gallery theme
   Radius system: buttons/chips are pills (999px), surfaces are 16px,
   text inputs are 10px, art prints are 6px.
   Fonts: Clash Display (display), Satoshi (UI/body).
   ========================================================================== */

@font-face {
  font-family: "Clash Display";
  src: url("../fonts/ClashDisplay-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Clash Display";
  src: url("../fonts/ClashDisplay-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0d0e11;
  --bg-raised: #14161b;
  --bg-panel: #171a20;
  --bg-input: #101216;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #edeef0;
  --text-dim: #a6abb5;
  --accent: #e8563f;
  --accent-hover: #f06a53;
  --accent-ink: #1b0d09;
  --accent-soft: rgba(232, 86, 63, 0.1);
  --display: "Clash Display", "Avenir Next", "Segoe UI", sans-serif;
  --body: "Satoshi", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --r-surface: 16px;
  --r-print: 6px;
  --shadow-print: 0 18px 40px rgba(0, 0, 0, 0.55), 0 4px 10px rgba(0, 0, 0, 0.4);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Fixed film grain across the page (fixed + pointer-events-none only) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }

[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: 1.25rem; line-height: 1.25; }

p { max-width: 62ch; }

a { color: inherit; }

::selection { background: var(--accent); color: var(--accent-ink); }

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

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 200;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ============================== Buttons ============================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s var(--ease-spring), background 0.18s, border-color 0.18s, color 0.18s;
}
.btn:active { transform: translateY(1px) scale(0.98); }

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: transparent;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.06); transform: translateY(-1px); }

.btn--big { font-size: 1.125rem; padding: 18px 40px; }
.btn--full { width: 100%; }
.btn--small { padding: 10px 20px; font-size: 0.9375rem; }

/* ============================== Nav ============================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(13, 14, 17, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  height: 68px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav__mark { width: 30px; height: 30px; color: var(--text); }

.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav__links a {
  text-decoration: none;
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.18s;
}
.nav__links a:hover { color: var(--text); }

.nav__cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 9px 18px;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}
.nav__cart:hover { background: rgba(255, 255, 255, 0.06); }
.nav__cart svg { width: 18px; height: 18px; }
.nav__cart-count {
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  font-size: 0.75rem;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

/* ============================== Floating print stages ============================== */

.stage {
  position: relative;
  transform-style: preserve-3d;
}

.fp {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  z-index: var(--zi, 1);
  transform:
    translate(-50%, -50%)
    rotate(var(--r, 0deg))
    translate(
      calc(var(--px, 0) * var(--z, 0.5) * 20px + var(--fan, 0) * var(--fx, 0px)),
      calc(var(--py, 0) * var(--z, 0.5) * 20px + var(--fan, 0) * var(--fy, 0px))
    );
  transition: transform 0.9s var(--ease-spring);
  will-change: transform;
}

.fp__float {
  animation: float 7s ease-in-out infinite;
  animation-delay: var(--fd, 0s);
}

.fp__paper {
  border-radius: var(--r-print);
  box-shadow: var(--shadow-print);
  outline: 1px solid rgba(255, 255, 255, 0.07);
  outline-offset: -1px;
  overflow: hidden;
  background: var(--bg-raised);
}
.fp__paper img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(calc(-6px - var(--z, 0.5) * 8px)); }
}

/* ============================== Hero ============================== */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 96px 24px 48px;
  overflow: hidden;
}

.hero__wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(52% 44% at 74% 46%, rgba(232, 86, 63, 0.09), transparent 70%),
    radial-gradient(40% 36% at 18% 80%, rgba(79, 109, 245, 0.06), transparent 70%);
}

.hero__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  align-items: center;
  gap: 48px;
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 600;
  margin-bottom: 22px;
}

.hero__sub {
  color: var(--text-dim);
  font-size: 1.1875rem;
  max-width: 46ch;
  margin-bottom: 36px;
}

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__stage {
  aspect-ratio: 1 / 0.94;
  max-height: 74dvh;
}

/* ============================== Bundles at a glance ============================== */

.bundles {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(88px, 11vw, 150px) 24px 40px;
}

.bundles__head { margin-bottom: clamp(48px, 6vw, 80px); }
.bundles__head h2 { max-width: 16ch; margin-bottom: 16px; }
.bundles__head p { color: var(--text-dim); max-width: 52ch; }

.bundles__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 28px;
}

.bcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-surface);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.25s, transform 0.4s var(--ease-spring);
}
.bcard:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.bcard:focus-within { border-color: var(--accent); }

/* asymmetric rhythm: 7/5 · 5/7 · 6/6 with vertical stagger */
.bcard:nth-child(6n + 1) { grid-column: span 7; }
.bcard:nth-child(6n + 2) { grid-column: span 5; margin-top: 56px; }
.bcard:nth-child(6n + 3) { grid-column: span 5; }
.bcard:nth-child(6n + 4) { grid-column: span 7; margin-top: 56px; }
.bcard:nth-child(6n + 5) { grid-column: span 6; }
.bcard:nth-child(6n + 6) { grid-column: span 6; margin-top: 56px; }

.bcard__stage {
  aspect-ratio: 5 / 3.6;
  flex: 1 0 auto;
  margin: 0;
  background:
    radial-gradient(80% 90% at 50% 35%, var(--halo, rgba(255, 255, 255, 0.04)), transparent 75%);
}
.bcard:hover .fp { --fan: 1; }

.bcard__meta {
  position: relative;
  z-index: 5;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 26px 24px;
}

.bcard__name {
  font-size: 1.45rem;
  margin-bottom: 4px;
}
.bcard__fit {
  color: var(--text-dim);
  font-size: 0.9375rem;
  max-width: 34ch;
}
.bcard__price {
  text-align: right;
  flex-shrink: 0;
}
.bcard__price strong {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  display: block;
}
.bcard__price span { color: var(--text-dim); font-size: 0.875rem; }

.bcard__cta {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: transparent;
  font-size: 0;
}
/* the card clips overflow, so the focus ring must paint inside it */
.bcard__cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -4px;
  border-radius: var(--r-surface);
}
.bcard__hint {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  background: rgba(13, 14, 17, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
.bcard:hover .bcard__hint,
.bcard:focus-within .bcard__hint { opacity: 1; transform: none; }

/* ============================== Licensing ============================== */

.licensing {
  border-top: 1px solid var(--line);
  margin-top: clamp(72px, 9vw, 120px);
}

.licensing__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(88px, 11vw, 150px) 24px;
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.licensing__pin {
  position: sticky;
  top: 108px;
}
.licensing__pin h2 { max-width: 14ch; margin-bottom: 18px; }
.licensing__pin p { color: var(--text-dim); max-width: 40ch; }

.licensing__flow { display: grid; gap: 12px; }

.licensing__row {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-surface);
  padding: 30px 32px;
  transition: border-color 0.25s, background 0.25s;
}
.licensing__row:hover { border-color: var(--line-strong); background: var(--bg-panel); }
.licensing__row h3 { margin-bottom: 8px; }
.licensing__row p { color: var(--text-dim); font-size: 1rem; }

/* ============================== Bento: every bundle ships complete ============================== */

.complete {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px clamp(88px, 11vw, 150px);
}
.complete h2 { margin-bottom: clamp(40px, 5vw, 64px); max-width: 16ch; }

.complete__bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.bento {
  border: 1px solid var(--line);
  border-radius: var(--r-surface);
  background: var(--bg-raised);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bento h3 { max-width: 18ch; }
.bento p { color: var(--text-dim); font-size: 1rem; }

.bento--art { grid-column: span 7; min-height: 300px; overflow: hidden; position: relative; }
.bento:nth-child(2) { grid-column: span 5; }
.bento--tint {
  grid-column: span 5;
  background: linear-gradient(150deg, rgba(79, 109, 245, 0.12), rgba(79, 109, 245, 0.03) 60%), var(--bg-raised);
}
.bento:nth-child(4) { grid-column: span 3; }
.bento--accent {
  grid-column: span 4;
  background: var(--accent);
  border-color: var(--accent);
}
.bento--accent h3, .bento--accent p { color: var(--accent-ink); }

.bento__art-row {
  display: flex;
  gap: 14px;
  margin-top: auto;
  padding-top: 18px;
}
.bento__art-row img {
  width: calc((100% - 56px) / 5);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-print);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  transform: rotate(var(--tr, 0deg)) translateY(var(--ty, 0));
}

/* ============================== Pricing ============================== */

.pricing {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px clamp(88px, 11vw, 150px);
}
.pricing__head { margin-bottom: clamp(36px, 4vw, 56px); }
.pricing__head h2 { max-width: 18ch; margin-bottom: 14px; }
.pricing__head p { color: var(--text-dim); }

.pricing__panel {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-surface);
  overflow: hidden;
}
.pricing__tier {
  padding: 40px 36px;
  border-left: 1px solid var(--line);
}
.pricing__tier:first-child { border-left: 0; }
.pricing__tier h3 { color: var(--text-dim); font-family: var(--body); font-weight: 700; font-size: 0.9375rem; margin-bottom: 14px; }
.pricing__tier p { color: var(--text-dim); font-size: 0.9375rem; }
.pricing__num {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1;
}
.pricing__tier--hot { background: var(--bg-panel); box-shadow: inset 0 3px 0 var(--accent); }
.pricing__tier--hot h3 { color: var(--text); }
.pricing__tier--hot .pricing__num { color: var(--accent); }

/* ============================== FAQ ============================== */

.faq {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px clamp(88px, 11vw, 150px);
}
.faq h2 { margin-bottom: clamp(32px, 4vw, 48px); }

.faq__item {
  border-top: 1px solid var(--line);
}
.faq__item:last-child { border-bottom: 1px solid var(--line); }

.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 4px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  position: relative;
  transition: color 0.18s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent-hover); }
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 12px;
  height: 12px;
  translate: 0 -50%;
  background:
    linear-gradient(var(--text-dim), var(--text-dim)) center / 12px 2px no-repeat,
    linear-gradient(var(--text-dim), var(--text-dim)) center / 2px 12px no-repeat;
  transition: transform 0.3s var(--ease-spring);
}
.faq__item[open] summary::after { transform: rotate(135deg); }
.faq__item p {
  color: var(--text-dim);
  padding: 0 4px 24px;
  max-width: 68ch;
}

/* ============================== Closer ============================== */

.closer {
  position: relative;
  text-align: center;
  padding: clamp(110px, 14vw, 190px) 24px;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.closer h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); margin: 0 auto 32px; max-width: 16ch; }

.closer__art { position: absolute; inset: 0; z-index: -1; opacity: 0.4; }
.closer__art .fp { filter: saturate(0.85); }
.closer h2, .closer .btn { position: relative; }

/* ============================== Footer ============================== */

.footer {
  border-top: 1px solid var(--line);
  padding: 48px 24px 32px;
}
.footer__inner {
  max-width: var(--wrap);
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.footer__links { display: flex; gap: 24px; margin-left: auto; }
.footer__links a,
.footer__contact a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.18s;
}
.footer__links a:hover, .footer__contact a:hover { color: var(--text); }
.footer__legal {
  max-width: var(--wrap);
  margin: 0 auto;
  color: var(--text-dim);
  font-size: 0.8125rem;
  opacity: 0.75;
}

/* ============================== Quick view modal ============================== */

.qv {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(1060px, 94vw);
  width: 100%;
  margin: auto;
}
.qv::backdrop {
  background: rgba(5, 6, 8, 0.72);
  backdrop-filter: blur(6px);
}
.qv[open] { animation: qv-in 0.35s var(--ease-spring); }
@keyframes qv-in {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
}

.qv__frame {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-surface);
  color: var(--text);
  max-height: 88dvh;
  overflow-y: auto;
}

.qv__close {
  position: sticky;
  top: 16px;
  margin-left: calc(100% - 60px);
  translate: 0 16px;
  z-index: 10;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(13, 14, 17, 0.7);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.18s;
}
.qv__close:hover { background: rgba(255, 255, 255, 0.1); }
.qv__close svg { width: 18px; height: 18px; }

.qv__body { padding: 8px 44px 44px; margin-top: -26px; }

.qv__head { margin-bottom: 28px; padding-right: 56px; }
.qv__head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 8px; }
.qv__head p { color: var(--text-dim); }

.qv__strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 1fr);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 2px 18px;
  scrollbar-width: thin;
}
.qv__print { scroll-snap-align: start; }
.qv__print img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-print);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.35s var(--ease-spring);
}
.qv__print:hover img { transform: translateY(-6px); }
.qv__print figcaption {
  margin-top: 12px;
  font-weight: 700;
  font-size: 0.9375rem;
}

.qv__foot {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 26px;
  margin-top: 10px;
}
.qv__price strong {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 600;
  display: block;
  line-height: 1.1;
}
.qv__price span { color: var(--text-dim); font-size: 0.875rem; }
.qv__license {
  color: var(--text-dim);
  font-size: 0.875rem;
  max-width: 34ch;
}
.qv__actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }

/* ============================== Qty stepper ============================== */

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
}
.qty button {
  width: 38px;
  height: 38px;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 1.15rem;
  cursor: pointer;
  transition: background 0.15s;
}
.qty button:hover { background: rgba(255, 255, 255, 0.08); }
.qty output {
  min-width: 34px;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ============================== Order drawer ============================== */

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(5, 6, 8, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s;
}
.drawer-overlay.is-open { opacity: 1; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  width: min(440px, 100vw);
  background: var(--bg-panel);
  border-left: 1px solid var(--line-strong);
  transform: translateX(102%);
  transition: transform 0.45s var(--ease-spring);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 24px 28px 40px;
  visibility: hidden;
}
.drawer.is-open { transform: translateX(0); visibility: visible; }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.drawer__head h2 { font-size: 1.5rem; }
.drawer__close {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.18s;
}
.drawer__close:hover { background: rgba(255, 255, 255, 0.08); }
.drawer__close svg { width: 16px; height: 16px; }

.drawer__items { display: grid; gap: 14px; }

.cart-line {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: center;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-surface);
  padding: 12px 14px;
}
.cart-line img {
  width: 56px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-print);
}
.cart-line__name { font-weight: 700; font-size: 0.9375rem; }
.cart-line__price { color: var(--text-dim); font-size: 0.8125rem; }
.cart-line__controls { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-line .qty button { width: 30px; height: 30px; font-size: 1rem; }
.cart-line .qty output { min-width: 26px; font-size: 0.9375rem; }
.cart-line__remove {
  background: none;
  border: 0;
  color: var(--text-dim);
  font-size: 0.8125rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cart-line__remove:hover { color: var(--accent-hover); }

.drawer__empty {
  color: var(--text-dim);
  padding: 28px 0 12px;
}
.drawer__empty .btn { margin-top: 18px; }

.drawer__summary {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 16px;
  font-size: 0.9375rem;
  display: grid;
  gap: 6px;
}
.drawer__summary .sum-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-dim);
}
.drawer__summary .sum-row--total {
  color: var(--text);
  font-weight: 700;
  font-size: 1.0625rem;
}
.drawer__summary .sum-note {
  color: var(--text-dim);
  font-size: 0.8125rem;
  margin-top: 6px;
}
.drawer__summary .sum-note--saving { color: #6fd3a8; }

.drawer__form { margin-top: 26px; display: grid; gap: 14px; }
.drawer__form h3 { margin-bottom: 2px; }

.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 0.875rem; }
.field__opt { color: var(--text-dim); font-weight: 500; }
.field input,
.field textarea {
  background: var(--bg-input);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  padding: 12px 14px;
  transition: border-color 0.18s;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--accent); }
.field__error { color: var(--accent-hover); font-size: 0.8125rem; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.drawer__privacy { color: var(--text-dim); font-size: 0.8125rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.drawer__status { font-size: 0.9375rem; min-height: 1.4em; margin-top: 14px; }
.drawer__status.is-ok { color: #6fd3a8; }
.drawer__status.is-err { color: var(--accent-hover); }
.drawer__status a { color: inherit; }

/* ============================== Reveal on scroll ============================== */

.rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease-spring);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.rv.in { opacity: 1; transform: none; }

.noscript-note { color: var(--text-dim); grid-column: 1 / -1; }

/* ============================== Responsive ============================== */

@media (max-width: 1024px) {
  .bcard:nth-child(n) { grid-column: span 6; margin-top: 0; }
  .bento--art, .bento:nth-child(2), .bento--tint,
  .bento:nth-child(4), .bento--accent { grid-column: span 6; }
  .licensing__inner { grid-template-columns: 1fr; }
  .licensing__pin { position: static; }
  .licensing__pin p { margin-bottom: 8px; }
}

@media (max-width: 820px) {
  .hero { padding-top: 80px; min-height: auto; }
  .hero__inner { grid-template-columns: 1fr; gap: 6px; }
  .hero__stage { order: -1; aspect-ratio: 1 / 0.66; max-height: 36dvh; }
  .hero__title { margin-bottom: 16px; }
  .hero__sub { margin-bottom: 28px; }
  /* keep the single most useful anchor on small screens */
  .nav__links { gap: 0; }
  .nav__links a:not(:first-child) { display: none; }
  .pricing__panel { grid-template-columns: 1fr; }
  .pricing__tier { border-left: 0; border-top: 1px solid var(--line); }
  .pricing__tier:first-child { border-top: 0; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .bcard:nth-child(n) { grid-column: 1 / -1; }
  .bundles__grid { gap: 20px; }
  .bento:nth-child(n) { grid-column: 1 / -1; }
  .bento--art { min-height: 240px; }
  .qv__body { padding: 8px 20px 28px; }
  .qv__actions { margin-left: 0; width: 100%; justify-content: space-between; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer__links { margin-left: 0; flex-wrap: wrap; }
  .nav__cart-label { display: none; }
  .nav__cart { padding: 9px 12px; }
}

/* ============================== Reduced motion ============================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fp, .bcard, .btn, .qv[open] { transition: none; animation: none; }
  .fp__float { animation: none; }
  .rv { opacity: 1; transform: none; transition: none; }
  .drawer { transition: none; }
  .qv__print img, .qv__print:hover img { transition: none; transform: none; }
}
