/* Seven Storefronts — shared storefront system.
   Every store injects its own tokens (:root) + preset classes on <html>.
   Section names mirror the Shopify Horizon / LX section map so the move to Shopify is 1:1. */

/* ---------- Defaults (overridden per store) ---------- */
:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --surface-2: #efede8;
  --ink: #16161a;
  --muted: #5e5f66;
  --accent: #16161a;
  --accent-ink: #ffffff;
  --dark: #121216;
  --dark-ink: #f3f2ef;
  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --display-weight: 500;
  --display-tracking: -0.02em;
  --display-case: none;
  --display-style: normal;
  --display-leading: 1.02;
  --label-tracking: 0.12em;
  --radius: 14px;
  --btn-radius: 999px;
  --card-radius: var(--radius);
  --header-h: 68px;

  --line: color-mix(in srgb, var(--ink) 13%, transparent);
  --line-strong: color-mix(in srgb, var(--ink) 24%, transparent);
  --veil: color-mix(in srgb, var(--ink) 5%, transparent);

  --step--1: clamp(0.8125rem, 0.79rem + 0.12vw, 0.875rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.15rem, 1.06rem + 0.45vw, 1.4rem);
  --step-2: clamp(1.45rem, 1.25rem + 1vw, 2.05rem);
  --step-3: clamp(1.85rem, 1.45rem + 2vw, 3.1rem);
  --step-4: clamp(2.35rem, 1.6rem + 3.6vw, 4.6rem);
  --step-5: clamp(2.75rem, 1.6rem + 5.6vw, 6.6rem);

  --space-section: clamp(3.75rem, 2.4rem + 6vw, 8.5rem);
  --gutter: clamp(1rem, 0.55rem + 2.2vw, 2.75rem);
  --maxw: 1360px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur: 0.7s;
  color-scheme: light;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), 880px); margin-inline: auto; }
.section { padding-block: var(--space-section); position: relative; }
.section--tight { padding-block: calc(var(--space-section) * 0.55); }
.section--surface { background: var(--surface); }
.section--alt { background: var(--surface-2); }
.section--dark { background: var(--dark); color: var(--dark-ink); --ink: var(--dark-ink); --muted: color-mix(in srgb, var(--dark-ink) 70%, var(--dark)); --line: color-mix(in srgb, var(--dark-ink) 16%, transparent); --line-strong: color-mix(in srgb, var(--dark-ink) 30%, transparent); --veil: color-mix(in srgb, var(--dark-ink) 7%, transparent); }
.section--accent { background: var(--accent); color: var(--accent-ink); --ink: var(--accent-ink); --muted: color-mix(in srgb, var(--accent-ink) 78%, var(--accent)); --line: color-mix(in srgb, var(--accent-ink) 22%, transparent); }

/* ---------- Type ---------- */
.display, .h1, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  text-transform: var(--display-case);
  font-style: var(--display-style);
  line-height: var(--display-leading);
  margin: 0;
  text-wrap: balance;
}
.display { font-size: var(--step-5); }
.h1 { font-size: var(--step-4); }
.h2 { font-size: var(--step-3); line-height: 1.06; }
.h3 { font-size: var(--step-2); line-height: 1.12; }
.display em, .h1 em, .h2 em { font-style: italic; font-weight: inherit; }
.eyebrow {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  margin: 0;
  color: var(--muted);
}
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--muted); margin: 0; max-width: 58ch; text-wrap: pretty; }
.prose { max-width: 68ch; }
.prose h2 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--step-2); letter-spacing: var(--display-tracking); margin: 2.2em 0 0.5em; line-height: 1.15; }
.prose h3 { font-size: var(--step-1); margin: 1.8em 0 0.4em; }
.prose p, .prose li { color: color-mix(in srgb, var(--ink) 86%, var(--bg)); }
.prose ul { padding-left: 1.1em; }
.mono { font-family: var(--font-mono); font-size: 0.86em; letter-spacing: 0.02em; }
.muted { color: var(--muted); }
.tabular { font-variant-numeric: tabular-nums; }

.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 1.4rem + 2.6vw, 3.75rem); max-width: 760px; }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head--split { max-width: none; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: end; gap: 2rem; }
@media (max-width: 820px) { .section-head--split { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--bg);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 52px; padding: 0.85em 1.6em;
  border: 1px solid var(--btn-bg); border-radius: var(--btn-radius);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: var(--step-0); letter-spacing: 0.01em; line-height: 1.1;
  text-decoration: none; white-space: nowrap;
  transition: transform 0.35s var(--ease-spring), background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.35s var(--ease-out);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--btn-bg) 80%, transparent); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.45; pointer-events: none; }
.btn--accent { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); }
.btn--light { --btn-bg: var(--dark-ink); --btn-fg: var(--dark); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); box-shadow: none; }
.btn--block { width: 100%; }
.btn--sm { min-height: 42px; padding: 0.6em 1.15em; font-size: var(--step--1); }
.btn__arrow { transition: transform 0.35s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.link-arrow { display: inline-flex; gap: 0.45em; align-items: center; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow:hover svg { transform: translateX(3px); }
.link-arrow svg { transition: transform 0.3s var(--ease-out); }

.p-btn-square { --btn-radius: 0px; }
.p-btn-soft { --btn-radius: 10px; }
.p-btn-pill { --btn-radius: 999px; }

/* ---------- Announcement + header ---------- */
.announce { background: var(--dark); color: var(--dark-ink); font-size: var(--step--1); letter-spacing: 0.04em; }
.announce__inner { display: flex; gap: 2rem; justify-content: center; align-items: center; min-height: 38px; padding-block: 6px; text-align: center; }
.announce a { color: inherit; }

.header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: var(--header-h); gap: 1rem; }
.p-header-left .header__inner { grid-template-columns: auto 1fr auto; }
.header__logo { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.45rem; letter-spacing: var(--logo-tracking, 0.06em); text-transform: var(--logo-case, uppercase); line-height: 1; font-style: var(--logo-style, normal); }
.header__logo img { height: 30px; width: auto; }
.header__logo svg { width: 28px; height: 28px; }
.p-header-center .header__logo { justify-self: center; grid-column: 2; }
.p-header-center .header__nav { grid-column: 1; grid-row: 1; }
.p-header-center .header__actions { grid-column: 3; }
.header__nav ul { display: flex; gap: clamp(1rem, 0.5rem + 1.4vw, 2rem); list-style: none; margin: 0; padding: 0; }
.p-header-left .header__nav ul { justify-content: center; }
.header__nav a { text-decoration: none; font-size: var(--step--1); font-weight: 500; letter-spacing: 0.03em; position: relative; padding-block: 6px; }
.header__nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease-out); }
.header__nav a:hover::after, .header__nav a[aria-current='page']::after { transform: scaleX(1); transform-origin: left; }
.header__actions { display: flex; justify-content: flex-end; align-items: center; gap: 0.25rem; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 999px; position: relative; transition: background-color 0.2s; text-decoration: none; }
.icon-btn:hover { background: var(--veil); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; display: grid; place-items: center; line-height: 1; transform: scale(0); transition: transform 0.35s var(--ease-spring); }
.cart-count.has-items { transform: scale(1); }
.cart-count.bump { animation: bump 0.45s var(--ease-spring); }
@keyframes bump { 40% { transform: scale(1.35); } }
.menu-toggle { display: none; }
@media (max-width: 900px) {
  .header__nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .header__inner, .p-header-left .header__inner { grid-template-columns: auto 1fr auto; }
  .p-header-center .header__logo { grid-column: 2; justify-self: center; }
  .p-header-left .header__logo { grid-column: 2; justify-self: start; }
  .p-header-center .header__nav { display: none; }
  .header__actions { grid-column: 3; }
  .menu-toggle { grid-column: 1; grid-row: 1; }
}

/* Mobile drawer + cart drawer share the dialog pattern */
.drawer { border: 0; padding: 0; margin: 0; max-height: none; height: 100dvh; width: min(440px, 100vw); background: var(--bg); color: var(--ink); }
.drawer[data-side='right'] { margin-left: auto; }
.drawer::backdrop { background: color-mix(in srgb, #000 42%, transparent); backdrop-filter: blur(3px); }
.drawer[open] { animation: drawer-in-left 0.45s var(--ease-out); }
.drawer[data-side='right'][open] { animation-name: drawer-in-right; }
.drawer.is-closing { animation: drawer-out-left 0.3s ease-in forwards; }
.drawer[data-side='right'].is-closing { animation-name: drawer-out-right; }
@keyframes drawer-in-left { from { transform: translateX(-100%); } }
@keyframes drawer-in-right { from { transform: translateX(100%); } }
@keyframes drawer-out-left { to { transform: translateX(-100%); } }
@keyframes drawer-out-right { to { transform: translateX(100%); } }
.drawer__inner { display: flex; flex-direction: column; height: 100%; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer__title { font-family: var(--font-display); font-size: var(--step-1); margin: 0; font-weight: var(--display-weight); }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 20px 20px; overscroll-behavior: contain; }
.drawer__foot { border-top: 1px solid var(--line); padding: 18px 20px 22px; display: grid; gap: 12px; background: var(--surface); }
.mobile-nav { list-style: none; margin: 12px 0 0; padding: 0; display: grid; }
.mobile-nav a { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--font-display); font-size: var(--step-2); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); }

/* ---------- Media + art fallbacks ---------- */
.media { position: relative; overflow: hidden; background: var(--surface-2); border-radius: var(--card-radius); isolation: isolate; }
.media > img, .media > video { width: 100%; height: 100%; object-fit: cover; }
.ratio-1 { aspect-ratio: 1; } .ratio-45 { aspect-ratio: 4 / 5; } .ratio-34 { aspect-ratio: 3 / 4; } .ratio-169 { aspect-ratio: 16 / 9; } .ratio-916 { aspect-ratio: 9 / 16; } .ratio-32 { aspect-ratio: 3 / 2; }

.art { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; color: var(--art-ink, var(--ink)); background: var(--art-bg, var(--surface-2)); }
.art::before, .art::after { content: ''; position: absolute; inset: -20%; pointer-events: none; }
.art__label { position: relative; z-index: 2; text-align: center; padding: 1.2rem; display: grid; gap: 0.4rem; justify-items: center; }
.art__mark { font-family: var(--font-display); font-weight: var(--display-weight); font-style: var(--display-style); letter-spacing: var(--display-tracking); font-size: clamp(1.4rem, 1rem + 2vw, 2.6rem); line-height: 1.02; text-wrap: balance; max-width: 14ch; }
.art__tag { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.7; }
.art--big .art__mark { font-size: var(--step-4); max-width: 12ch; }

/* pattern: plume — soft drifting blooms */
.pattern-plume .art { --art-bg: linear-gradient(160deg, var(--surface-2), var(--bg)); }
.pattern-plume .art::before { background: radial-gradient(40% 32% at 28% 30%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 70%), radial-gradient(36% 30% at 74% 68%, color-mix(in srgb, var(--surface) 90%, transparent), transparent 70%), radial-gradient(28% 22% at 64% 24%, color-mix(in srgb, var(--accent-soft, var(--accent)) 40%, transparent), transparent 70%); filter: blur(18px); animation: drift 18s var(--ease-out) infinite alternate; }
.pattern-plume .art::after { inset: 0; background: repeating-linear-gradient(115deg, transparent 0 22px, color-mix(in srgb, var(--ink) 4%, transparent) 22px 23px); mask: radial-gradient(70% 60% at 50% 50%, #000, transparent); }
/* pattern: ripple — concentric water rings */
.pattern-ripple .art { --art-bg: linear-gradient(180deg, var(--surface), var(--surface-2)); }
.pattern-ripple .art::before { inset: -40%; background: repeating-radial-gradient(circle at 50% 58%, transparent 0 26px, color-mix(in srgb, var(--accent-soft, var(--accent)) 30%, transparent) 27px 28px); animation: ripple 9s linear infinite; }
.pattern-ripple .art::after { inset: 0; background: radial-gradient(60% 50% at 50% 30%, color-mix(in srgb, #fff 55%, transparent), transparent 70%); }
/* pattern: confetti — playful dots */
.pattern-confetti .art { --art-bg: var(--surface-2); }
.pattern-confetti .art::before { background-image: radial-gradient(circle, var(--accent) 0 5px, transparent 6px), radial-gradient(circle, var(--accent-soft, #ffd45c) 0 7px, transparent 8px), radial-gradient(circle, var(--accent-3, #9ed4ff) 0 4px, transparent 5px); background-size: 86px 86px, 122px 122px, 64px 64px; background-position: 0 0, 30px 50px, 12px 40px; opacity: 0.55; animation: drift 24s linear infinite alternate; }
/* pattern: washi — paper and soft blocks */
.pattern-washi .art { --art-bg: var(--surface-2); }
.pattern-washi .art::before { inset: 10%; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 22%, transparent) 0 38%, transparent 38%), linear-gradient(0deg, color-mix(in srgb, var(--accent-soft, var(--accent)) 26%, transparent) 0 30%, transparent 30%); border-radius: 2px; }
.pattern-washi .art::after { inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
/* pattern: arc — studio arches */
.pattern-arc .art { --art-bg: var(--surface-2); }
.pattern-arc .art::before { inset: 18% 22% -10%; border-radius: 999px 999px 0 0; background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft, var(--accent)) 45%, transparent), color-mix(in srgb, var(--accent) 18%, transparent)); }
.pattern-arc .art::after { inset: 30% 34% -10%; border-radius: 999px 999px 0 0; border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); }
/* pattern: sparkle — gold glints */
.pattern-sparkle .art { --art-bg: radial-gradient(80% 70% at 50% 40%, var(--surface), var(--surface-2)); }
.pattern-sparkle .art::before { background: conic-gradient(from 0deg at 50% 50%, transparent 0 10%, color-mix(in srgb, var(--accent-soft, gold) 40%, transparent) 12%, transparent 14% 36%, color-mix(in srgb, var(--accent) 24%, transparent) 38%, transparent 40% 62%, color-mix(in srgb, var(--accent-soft, gold) 34%, transparent) 64%, transparent 66%); animation: spin 40s linear infinite; mask: radial-gradient(circle, #000 20%, transparent 62%); }
/* pattern: grid — engineered lines + glow */
.pattern-grid .art { --art-bg: var(--dark); --art-ink: var(--dark-ink); }
.pattern-grid .art::before { inset: 0; background-image: linear-gradient(color-mix(in srgb, var(--dark-ink) 8%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--dark-ink) 8%, transparent) 1px, transparent 1px); background-size: 32px 32px; mask: radial-gradient(70% 70% at 50% 50%, #000, transparent); }
.pattern-grid .art::after { inset: auto -10% -40% -10%; height: 80%; background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%); filter: blur(30px); animation: drift 12s ease-in-out infinite alternate; }

@keyframes drift { to { transform: translate3d(4%, -3%, 0) rotate(4deg) scale(1.06); } }
@keyframes ripple { to { transform: scale(1.18); opacity: 0.6; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Hero (LX: cinematic hero) ---------- */
.hero { position: relative; min-height: min(92svh, 980px); display: grid; align-items: end; color: var(--hero-ink, var(--dark-ink)); background: var(--dark); overflow: hidden; isolation: isolate; }
.hero--light { --hero-ink: var(--ink); background: var(--surface-2); }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media .art { --art-bg: var(--dark); --art-ink: var(--dark-ink); }
.hero--light .hero__media .art { --art-bg: var(--surface-2); --art-ink: var(--ink); }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, #000 0%, transparent) 30%, color-mix(in srgb, #000 58%, transparent) 100%); }
.hero--light .hero__veil { background: linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--surface-2) 70%, transparent)); }
.hero__content { padding-block: calc(var(--header-h) + 3rem) clamp(2.5rem, 1.5rem + 5vw, 6rem); display: grid; gap: 1.4rem; max-width: 900px; }
.hero--center .hero__content { margin-inline: auto; text-align: center; justify-items: center; }
.hero__title { font-size: var(--step-5); }
.hero__text { font-size: var(--step-1); max-width: 46ch; line-height: 1.5; opacity: 0.9; margin: 0; text-wrap: pretty; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.4rem; }
.hero--center .hero__ctas { justify-content: center; }
.hero .btn--ghost { color: var(--hero-ink, var(--dark-ink)); border-color: color-mix(in srgb, var(--hero-ink, var(--dark-ink)) 45%, transparent); }
.hero__trust { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; list-style: none; padding: 0; margin: 0.6rem 0 0; font-size: var(--step--1); opacity: 0.86; }
.hero--center .hero__trust { justify-content: center; }
.hero__trust li { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero__trust svg { width: 16px; height: 16px; }
.hero__pause { position: absolute; right: max(var(--gutter), env(safe-area-inset-right, 0px)); bottom: clamp(1.25rem, 1rem + 1.5vw, 2.5rem); z-index: 3; width: 44px; height: 44px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--dark-ink) 40%, transparent); background: color-mix(in srgb, #000 28%, transparent); color: var(--dark-ink); display: grid; place-items: center; backdrop-filter: blur(8px); }
.hero__pause svg { width: 16px; height: 16px; }
.hero__pause[hidden] { display: none; }
.split-line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.split-line > span { display: inline-block; }
.js .hero .split-line > span { transform: translateY(105%); animation: line-up 1.1s var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 60ms); }
.js .hero .hero__reveal { opacity: 0; transform: translateY(14px); animation: fade-up 0.9s var(--ease-out) forwards; animation-delay: calc(var(--i, 3) * 90ms + 160ms); }
@keyframes line-up { to { transform: translateY(0); } }
@keyframes fade-up { to { opacity: 1; transform: none; } }

/* ---------- Ticker (marquee) ---------- */
.ticker { border-block: 1px solid var(--line); overflow: hidden; background: var(--bg); }
.ticker__track { display: flex; width: max-content; gap: 3rem; padding-block: 1.05rem; animation: ticker 38s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { display: inline-flex; gap: 0.8rem; align-items: center; white-space: nowrap; font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
.ticker__item::after { content: '✦'; font-size: 0.8em; opacity: 0.5; margin-left: 2.2rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(220px, auto); gap: clamp(10px, 0.5rem + 0.6vw, 18px); }
.tile { position: relative; overflow: hidden; border-radius: var(--card-radius); background: var(--surface); border: 1px solid var(--line); padding: clamp(1.25rem, 1rem + 1vw, 2rem); display: flex; flex-direction: column; justify-content: flex-end; gap: 0.5rem; min-height: 220px; isolation: isolate; transition: transform 0.6s var(--ease-out), border-color 0.3s; }
.tile:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%); opacity: 0; transition: opacity 0.4s; }
.tile:hover::after { opacity: 1; }
.tile--w2 { grid-column: span 2; } .tile--h2 { grid-row: span 2; } .tile--w4 { grid-column: span 4; }
.tile--dark { background: var(--dark); color: var(--dark-ink); border-color: transparent; --muted: color-mix(in srgb, var(--dark-ink) 72%, var(--dark)); }
.tile--accent { background: var(--accent); color: var(--accent-ink); border-color: transparent; --muted: color-mix(in srgb, var(--accent-ink) 80%, var(--accent)); }
.tile__media { position: absolute; inset: 0; z-index: -2; }
.tile__media + .tile__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, color-mix(in srgb, #000 62%, transparent)); }
.tile:has(.tile__media) { color: #fff; --muted: color-mix(in srgb, #fff 80%, transparent); }
.tile__kicker { font-family: var(--font-display); font-size: var(--step-4); line-height: 0.95; font-weight: var(--display-weight); letter-spacing: var(--display-tracking); margin-bottom: auto; }
.tile__title { font-size: var(--step-1); font-weight: 650; margin: 0; line-height: 1.25; }
.tile__text { margin: 0; color: var(--muted); font-size: var(--step--1); line-height: 1.55; max-width: 42ch; }
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile--w4 { grid-column: span 2; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .tile--w2, .tile--w4 { grid-column: auto; } .tile--h2 { grid-row: auto; } }

/* ---------- Scroll story ---------- */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 6rem); align-items: start; }
.story__media { position: sticky; top: calc(var(--header-h) + 24px); }
.story__frame { position: relative; aspect-ratio: 4 / 5; border-radius: var(--card-radius); overflow: hidden; background: var(--surface-2); }
.story__slide { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity 0.8s var(--ease-out), transform 1.2s var(--ease-out); }
.story__slide.is-active { opacity: 1; transform: none; }
.story__slide img, .story__slide video { width: 100%; height: 100%; object-fit: cover; }
.story__progress { position: absolute; left: 16px; right: 16px; bottom: 16px; height: 3px; border-radius: 3px; background: color-mix(in srgb, #fff 35%, transparent); overflow: hidden; z-index: 3; }
.story__progress span { display: block; height: 100%; width: 100%; background: #fff; transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 0.6s var(--ease-out); }
.story__steps { list-style: none; margin: 0; padding: 0; display: grid; }
.story__step { min-height: 62vh; display: grid; align-content: center; gap: 0.9rem; padding-block: 2rem; opacity: 0.35; transition: opacity 0.6s var(--ease-out); }
.story__step.is-active, .no-js .story__step { opacity: 1; }
.story__num { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.1em; color: var(--muted); }
.story__step .story__inline { display: none; }
@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; }
  .story__media { display: none; }
  .story__step { min-height: 0; opacity: 1; padding-block: 1.25rem; border-top: 1px solid var(--line); }
  .story__step .story__inline { display: block; aspect-ratio: 4 / 3; position: relative; border-radius: var(--card-radius); overflow: hidden; margin-bottom: 0.5rem; }
}

/* ---------- Product cards / grid ---------- */
.grid-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 0.6rem + 1.4vw, 2rem) clamp(0.75rem, 0.5rem + 1vw, 1.5rem); }
@media (max-width: 1100px) { .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 23%); gap: clamp(0.75rem, 0.5rem + 1vw, 1.5rem); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
@media (max-width: 760px) { .rail { grid-auto-columns: 72%; } }
.card { display: grid; gap: 0.85rem; text-decoration: none; position: relative; }
.card__media { position: relative; aspect-ratio: var(--card-ratio, 4 / 5); border-radius: var(--card-radius); overflow: hidden; background: var(--surface-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out), opacity 0.5s; }
.card__media img + img { position: absolute; inset: 0; opacity: 0; }
.card:hover .card__media img:first-child { transform: scale(1.04); }
.card:hover .card__media img + img { opacity: 1; }
.card:hover .art::before { animation-duration: 6s; }
.card__badge { position: absolute; top: 12px; left: 12px; z-index: 3; background: var(--bg); color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }
.card__quick { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3; transform: translateY(calc(100% + 16px)); transition: transform 0.45s var(--ease-out); }
.card:hover .card__quick, .card:focus-within .card__quick { transform: none; }
@media (hover: none) { .card__quick { display: none; } }
.card__info { display: grid; gap: 0.2rem; }
.card__title { font-weight: 600; margin: 0; font-size: var(--step-0); line-height: 1.3; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card__sub { margin: 0; color: var(--muted); font-size: var(--step--1); }
.card__price { font-variant-numeric: tabular-nums; font-weight: 600; font-size: var(--step--1); margin: 0.15rem 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.chip { border: 1px solid var(--line-strong); background: transparent; padding: 0.55rem 1rem; border-radius: 999px; font-size: var(--step--1); font-weight: 500; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed='true'] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Collection tiles ---------- */
.collections { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: clamp(0.75rem, 0.5rem + 1vw, 1.5rem); }
@media (max-width: 860px) { .collections { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .collections { grid-template-columns: 1fr; } }
.ctile { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--card-radius); overflow: hidden; text-decoration: none; isolation: isolate; }
.ctile .art { transition: transform 1.2s var(--ease-out); }
.ctile:hover .art, .ctile:hover img { transform: scale(1.05); }
.ctile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.ctile__label { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 1.2rem; display: flex; justify-content: space-between; align-items: end; gap: 1rem; color: #fff; background: linear-gradient(180deg, transparent, color-mix(in srgb, #000 55%, transparent)); }
.ctile__label strong { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--step-2); letter-spacing: var(--display-tracking); line-height: 1.05; }
.ctile__label span { font-size: var(--step--1); white-space: nowrap; }

/* ---------- Compare (Us vs them) ---------- */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--card-radius); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare caption { text-align: left; padding: 1rem 1.25rem; color: var(--muted); font-size: var(--step--1); caption-side: bottom; border-top: 1px solid var(--line); }
.compare th, .compare td { padding: 1.05rem 1.25rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.compare thead th { font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.compare thead th.is-us { color: var(--ink); }
.compare td.is-us, .compare th.is-us { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.compare tbody th { font-weight: 500; }
.compare tr:last-child > * { border-bottom: 0; }
.mark { display: inline-flex; align-items: center; gap: 0.45rem; font-size: var(--step--1); }
.mark svg { width: 20px; height: 20px; flex: none; }
.mark--yes svg { color: var(--accent); }
.mark--no { color: var(--muted); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stat { padding: clamp(1.5rem, 1rem + 2vw, 2.75rem) clamp(0.75rem, 0.5rem + 1vw, 1.5rem) 0 0; display: grid; gap: 0.5rem; align-content: start; }
.stat + .stat { padding-left: clamp(0.75rem, 0.5rem + 1vw, 1.5rem); border-left: 1px solid var(--line); }
.stat__value { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--step-4); letter-spacing: var(--display-tracking); line-height: 1; font-variant-numeric: tabular-nums; }
.stat__label { color: var(--muted); font-size: var(--step--1); max-width: 26ch; }
.stats-note { margin-top: 1.5rem; font-size: 12px; color: var(--muted); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat:nth-child(3) { border-left: 0; padding-left: 0; } }

/* ---------- Reels ---------- */
.reels-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.reels-nav { display: flex; gap: 0.5rem; }
.reels { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 22vw, 300px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.75rem; scrollbar-width: none; }
.reels::-webkit-scrollbar { display: none; }
.reel { scroll-snap-align: start; position: relative; aspect-ratio: 9 / 16; border-radius: var(--card-radius); overflow: hidden; background: var(--dark); color: #fff; isolation: isolate; }
.reel video, .reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.reel .art { z-index: -2; --art-bg: var(--dark); --art-ink: var(--dark-ink); }
.reel__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 50%, color-mix(in srgb, #000 70%, transparent)); }
.reel__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem; display: grid; gap: 0.35rem; }
.reel__cap strong { font-size: var(--step-0); line-height: 1.25; }
.reel__cap span { font-size: 12px; opacity: 0.8; }
.reel__label { position: absolute; top: 10px; left: 10px; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; background: color-mix(in srgb, #000 45%, transparent); padding: 4px 8px; border-radius: 999px; backdrop-filter: blur(6px); }
.reel__btn { position: absolute; top: 8px; right: 8px; z-index: 2; width: 38px; height: 38px; border-radius: 999px; border: 0; display: grid; place-items: center; background: color-mix(in srgb, #000 45%, transparent); color: #fff; backdrop-filter: blur(6px); }
.reel__btn svg { width: 15px; height: 15px; }

/* ---------- Guarantee ---------- */
.guarantee { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.seal { width: clamp(150px, 10rem + 6vw, 230px); aspect-ratio: 1; position: relative; display: grid; place-items: center; }
.seal svg.seal__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.seal__center { font-family: var(--font-display); font-size: var(--step-4); line-height: 0.9; text-align: center; font-weight: var(--display-weight); }
.seal__center small { display: block; font-family: var(--font-body); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 0.4rem; }
.guarantee__list { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: 0.8rem; }
.guarantee__list li { display: flex; gap: 0.75rem; align-items: flex-start; }
.guarantee__list svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
@media (max-width: 760px) { .guarantee { grid-template-columns: 1fr; justify-items: start; } }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 1rem + 4vw, 6rem); align-items: start; }
@media (max-width: 860px) { .faq-layout { grid-template-columns: 1fr; } }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.35rem 0; cursor: pointer; font-weight: 600; font-size: var(--step-1); line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: none; width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--line-strong); position: relative; transition: transform 0.4s var(--ease-out), background-color 0.3s; }
.faq summary .plus::before, .faq summary .plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.4s var(--ease-out); }
.faq details[open] summary .plus { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.faq details[open] summary .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__a { padding: 0 3rem 1.5rem 0; color: color-mix(in srgb, var(--ink) 82%, var(--bg)); max-width: 64ch; }
.faq__a p { margin: 0 0 0.8em; }
@supports (interpolate-size: allow-keywords) {
  .faq details { interpolate-size: allow-keywords; }
  .faq details::details-content { height: 0; overflow: clip; transition: height 0.45s var(--ease-out), content-visibility 0.45s allow-discrete; }
  .faq details[open]::details-content { height: auto; }
}

/* ---------- Early access band + newsletter ---------- */
.signup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: end; }
@media (max-width: 820px) { .signup { grid-template-columns: 1fr; } }
.field-row { display: flex; gap: 0.5rem; }
@media (max-width: 480px) { .field-row { flex-direction: column; } }
.input { width: 100%; min-height: 52px; padding: 0.8rem 1rem; border: 1px solid var(--line-strong); border-radius: min(var(--btn-radius), 12px); background: var(--surface); color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s; }
.section--dark .input, .section--accent .input { background: transparent; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: var(--step--1); font-weight: 600; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--step--1); color: var(--muted); }
.check input { margin-top: 0.25rem; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.form-status { font-size: var(--step--1); min-height: 1.4em; margin: 0; }
.form-status.is-error { color: #c62828; }
.section--dark .form-status.is-error { color: #ff8a80; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: var(--dark-ink); padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem) 2rem; --muted: color-mix(in srgb, var(--dark-ink) 66%, var(--dark)); --line: color-mix(in srgb, var(--dark-ink) 14%, transparent); }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line); }
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
.footer__brand p { color: var(--muted); max-width: 36ch; margin: 1rem 0 0; }
.footer__word { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(3rem, 1.5rem + 9vw, 10rem); line-height: 0.85; letter-spacing: var(--display-tracking); text-transform: var(--logo-case, uppercase); font-style: var(--logo-style, normal); margin: 3rem 0 1.5rem; opacity: 0.95; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.footer h3 { font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 1rem; color: var(--muted); font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer a { text-decoration: none; color: var(--dark-ink); opacity: 0.88; }
.footer a:hover { opacity: 1; text-decoration: underline; }
.footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 12px; color: var(--muted); }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(1.5rem, 1rem + 3vw, 5rem); padding-block: clamp(1.5rem, 1rem + 2vw, 3rem) var(--space-section); align-items: start; }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; } }
.gallery { display: grid; gap: 10px; }
.gallery__track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--card-radius); scrollbar-width: none; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { scroll-snap-align: start; position: relative; aspect-ratio: 4 / 5; background: var(--surface-2); overflow: hidden; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: 8px; overflow-x: auto; }
.gallery__thumb { flex: 0 0 72px; aspect-ratio: 1; border-radius: calc(var(--card-radius) * 0.6); overflow: hidden; border: 1px solid var(--line); padding: 0; background: var(--surface-2); position: relative; opacity: 0.6; transition: opacity 0.2s, border-color 0.2s; }
.gallery__thumb[aria-current='true'] { opacity: 1; border-color: var(--ink); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb .art__label { display: none; }
@media (min-width: 901px) { .pdp__gallery { position: sticky; top: calc(var(--header-h) + 20px); } }
.pdp__info { display: grid; gap: 1.4rem; }
.pdp__title { font-size: var(--step-3); }
.pdp__price { display: flex; align-items: baseline; gap: 0.8rem; font-size: var(--step-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.pdp__price small { font-size: var(--step--1); font-weight: 500; color: var(--muted); }
.pdp__short { margin: 0; color: var(--muted); font-size: var(--step-1); line-height: 1.5; }
.option { border: 0; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.option legend { font-size: var(--step--1); font-weight: 600; padding: 0; margin-bottom: 0.6rem; }
.option legend span { color: var(--muted); font-weight: 500; }
.option__values { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill span { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.55rem 1.05rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: var(--step--1); font-weight: 500; transition: border-color 0.2s, background-color 0.2s, color 0.2s; }
.pill input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.pill .swatch { width: 16px; height: 16px; border-radius: 999px; border: 1px solid var(--line-strong); }
.tiers { border: 0; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.tiers legend { font-size: var(--step--1); font-weight: 600; margin-bottom: 0.6rem; padding: 0; }
.tier { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 0.9rem; align-items: center; padding: 1rem 1.1rem; border: 1px solid var(--line-strong); border-radius: calc(var(--card-radius) * 0.8); cursor: pointer; transition: border-color 0.2s, background-color 0.2s, transform 0.3s var(--ease-out); }
.tier:hover { transform: translateY(-1px); }
.tier input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; }
.tier:has(input:checked) { border-color: var(--ink); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.tier__name { font-weight: 600; display: block; }
.tier__note { font-size: var(--step--1); color: var(--muted); }
.tier__price { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.tier__price s { display: block; font-weight: 400; color: var(--muted); font-size: var(--step--1); }
.tier__flag { position: absolute; top: -10px; right: 14px; background: var(--accent); color: var(--accent-ink); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; height: 52px; }
.qty button { width: 44px; height: 100%; border: 0; background: transparent; font-size: 1.2rem; border-radius: 999px; }
.qty input { width: 40px; text-align: center; border: 0; background: transparent; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-row { display: flex; gap: 0.6rem; }
.buy-row .btn { flex: 1; }
.prelaunch-note { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.9rem 1rem; border-radius: calc(var(--card-radius) * 0.7); background: var(--veil); font-size: var(--step--1); color: var(--muted); margin: 0; }
.prelaunch-note svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--ink); }
.benefits { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.benefits li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--step--1); }
.benefits svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--accent); }
.section--dark .benefits svg { color: var(--dark-ink); }
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; padding: 1.05rem 0; font-weight: 600; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '+'; font-weight: 400; font-size: 1.3rem; line-height: 1; transition: transform 0.3s var(--ease-out); }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc .acc__body { padding-bottom: 1.2rem; color: color-mix(in srgb, var(--ink) 82%, var(--bg)); font-size: var(--step--1); }
.specs { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.specs th, .specs td { text-align: left; padding: 0.55rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { font-weight: 500; color: var(--muted); width: 42%; padding-right: 1rem; }
.crumbs { font-size: var(--step--1); color: var(--muted); padding-top: 1.25rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Sticky buy bar (LX block) */
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 10px max(var(--gutter), env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px)); transform: translateY(110%); transition: transform 0.5s var(--ease-out); }
.sticky-buy.is-visible { transform: none; }
.sticky-buy__inner { display: flex; align-items: center; gap: 1rem; max-width: var(--maxw); margin-inline: auto; }
.sticky-buy__meta { flex: 1; min-width: 0; display: grid; }
.sticky-buy__meta strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy__meta span { font-size: var(--step--1); color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Cart drawer lines ---------- */
.line { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 0.9rem; padding: 1rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.line__media { aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; position: relative; background: var(--surface-2); }
.line__media img { width: 100%; height: 100%; object-fit: cover; }
.line__media .art__label { display: none; }
.line__title { font-weight: 600; margin: 0; font-size: var(--step--1); line-height: 1.35; }
.line__var { color: var(--muted); font-size: 12px; margin: 0.15rem 0 0.5rem; }
.line__price { font-weight: 600; font-variant-numeric: tabular-nums; font-size: var(--step--1); }
.line .qty { height: 38px; }
.line .qty button { width: 34px; }
.line__remove { background: none; border: 0; padding: 0; color: var(--muted); font-size: 12px; text-decoration: underline; margin-top: 0.5rem; }
.cart-empty { text-align: center; padding: 3rem 0; display: grid; gap: 1rem; justify-items: center; color: var(--muted); }
.cart-empty svg { width: 48px; height: 48px; opacity: 0.4; }
.subtotal { display: flex; justify-content: space-between; font-weight: 600; font-variant-numeric: tabular-nums; }
.subtotal small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 2px; }

/* ---------- Reserve page ---------- */
.reserve { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 1rem + 4vw, 5rem); padding-block: clamp(2rem, 1.5rem + 2vw, 4rem) var(--space-section); align-items: start; }
@media (max-width: 900px) { .reserve { grid-template-columns: 1fr; } .reserve__summary { order: -1; } }
.reserve__form { display: grid; gap: 1.1rem; }
.reserve__summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--card-radius); padding: clamp(1.25rem, 1rem + 1vw, 2rem); position: sticky; top: calc(var(--header-h) + 20px); }
.steps-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; counter-reset: s; }
.steps-list li { display: grid; grid-template-columns: 32px 1fr; gap: 0.8rem; align-items: start; counter-increment: s; }
.steps-list li::before { content: counter(s); width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.success { text-align: center; display: grid; gap: 1rem; justify-items: center; padding-block: var(--space-section); }
.success__ref { font-family: var(--font-mono); background: var(--veil); padding: 0.5rem 0.9rem; border-radius: 8px; letter-spacing: 0.08em; }

/* ---------- Media + text split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 6rem); align-items: center; }
.split--flip > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--flip > :first-child { order: 0; } }
.split__body { display: grid; gap: 1.25rem; justify-items: start; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 140%); background: var(--ink); color: var(--bg); padding: 0.85rem 1.2rem; border-radius: 999px; font-size: var(--step--1); z-index: 60; transition: transform 0.45s var(--ease-out); max-width: calc(100vw - 32px); }
.toast.is-on { transform: translate(-50%, 0); }

/* ---------- Reveal on scroll (progressive: content is visible without JS) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); transition-delay: calc(var(--d, 0) * 80ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Admin ---------- */
.admin-table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.admin-table th, .admin-table td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); text-align: left; font-variant-numeric: tabular-nums; }
.admin-table th { color: var(--muted); font-weight: 600; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-block: 1.5rem; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--card-radius); padding: 1rem 1.2rem; }
.kpi b { display: block; font-family: var(--font-display); font-size: var(--step-3); line-height: 1.1; }
.kpi span { color: var(--muted); font-size: var(--step--1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .hero .split-line > span, .js .hero .hero__reveal { transform: none; opacity: 1; animation: none; }
  .ticker__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}
@media (forced-colors: active) { .btn, .chip, .pill span, .tier { border: 1px solid CanvasText; } }
@media (prefers-reduced-motion: reduce) { .ticker__dup { display: none !important; } }

/* ---------- Hero layout v2 (variants are styled by each store skin) ---------- */
.header__nav a { white-space: nowrap; }
@media (max-width: 1120px) {
  .p-header-center .header__nav { display: none; }
  .p-header-center .menu-toggle { display: inline-grid; grid-column: 1; grid-row: 1; }
}
.hero { color: var(--hero-ink, var(--ink)); background: var(--hero-bg, var(--bg)); }
.hero.has-media { --hero-ink: var(--dark-ink); background: var(--dark); }
.hero--light.has-media { --hero-ink: var(--ink); }
.hero .btn--ghost { color: var(--hero-ink); border-color: color-mix(in srgb, var(--hero-ink) 40%, transparent); }
.hero__deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero__deco canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; width: min(100% - 2 * var(--gutter), var(--maxw)); }
.hero__grid:not(:has(.hero__aside)) { grid-template-columns: minmax(0, 1fr); }
.hero__eyebrow { color: inherit; opacity: 0.8; }
.hero__aside { position: relative; align-self: center; padding-block: calc(var(--header-h) * 0.5) 2rem; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } .hero__aside { padding-block: 0 2.5rem; } }
.hero-figure { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: var(--card-radius); overflow: visible; }
.hero-figure > img, .hero-figure > .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; overflow: hidden; }
.hero-figure > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-figure figcaption { position: absolute; left: 1rem; bottom: 1rem; font-size: var(--step--1); }
.hero-chip { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.6rem 0.95rem; border-radius: 999px; background: var(--surface); color: var(--ink); font-size: var(--step--1); font-weight: 600; box-shadow: 0 18px 40px -22px rgb(0 0 0 / 0.45); white-space: nowrap; }
.hero-chip strong { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.15em; }
.hero-chip--1 { top: 12%; left: -8%; } .hero-chip--2 { top: 46%; right: -6%; } .hero-chip--3 { bottom: 10%; left: 4%; }
@media (max-width: 900px) { .hero-chip--1 { left: 4%; } .hero-chip--2 { right: 4%; } }
.js .hero-chip { animation: chip-float 6s ease-in-out infinite alternate; }
.hero-chip--2 { animation-delay: -2s !important; } .hero-chip--3 { animation-delay: -4s !important; }
@keyframes chip-float { to { transform: translateY(-10px); } }
.board { display: grid; gap: 6px; font-family: var(--font-mono); }
.board__row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 1rem; align-items: center; padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--surface) 70%, transparent); backdrop-filter: blur(6px); }
.board__k { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board__v { font-size: var(--step-1); font-weight: 600; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.board__s { font-size: 11px; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; }
.flap-char { display: inline-block; min-width: 0.62em; text-align: center; }
.stickers { position: relative; min-height: 600px; }
.sticker { position: absolute; width: 41%; display: grid; gap: 0; text-decoration: none; background: var(--surface); border-radius: 22px; padding: 10px 10px 14px; box-shadow: 0 24px 50px -26px rgb(0 0 0 / 0.4); transition: transform 0.6s var(--ease-spring); transform: rotate(var(--rot, 0deg)) translate(var(--tx, 0), var(--ty, 0)); }
.sticker:hover { transform: rotate(0deg) scale(1.04); z-index: 3; }
.sticker__media { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--surface-2); display: block; }
.sticker__media img { width: 100%; height: 100%; object-fit: cover; }
.sticker__media .art__mark { font-size: 1.15rem; }
.sticker__label { display: flex; justify-content: space-between; gap: 0.5rem; font-size: var(--step--1); font-weight: 600; padding: 10px 4px 0; }
.sticker--1 { left: 2%; top: 2%; --rot: -6deg; } .sticker--2 { right: 2%; top: 9%; --rot: 5deg; } .sticker--3 { left: 9%; bottom: 0; --rot: 4deg; } .sticker--4 { right: 6%; bottom: 3%; --rot: -4deg; z-index: 1; }
@media (max-width: 900px) { .stickers { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .sticker { position: relative; inset: auto; width: auto; } }
.collage { position: relative; aspect-ratio: 1; }
.collage__item { position: absolute; overflow: hidden; border-radius: var(--card-radius); background: var(--surface-2); }
.collage__item img { width: 100%; height: 100%; object-fit: cover; }
.collage__item--1 { inset: 0 28% 22% 0; } .collage__item--2 { inset: 34% 0 0 46%; } .collage__item--3 { width: 30%; aspect-ratio: 1; left: 6%; bottom: 0; border-radius: 999px; }
.spark { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; pointer-events: none; background: var(--fx-color, gold); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); transform: scale(var(--s, 1)); animation: spark 1.1s var(--ease-out) forwards; }
@keyframes spark { 0% { opacity: 0; transform: scale(0) rotate(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(var(--s, 1)) rotate(90deg) translateY(-10px); } }

@media (max-width: 900px) { .hero .hero__content { padding-block: 3rem 1.75rem !important; } .hero { min-height: auto !important; } }

/* =====================================================================
   MOTION LAYER — cutting-edge, progressive (every feature has a fallback)
   ===================================================================== */
:root {
  /* Real spring curves via linear() (Chrome 113+, Safari 17.2+, Firefox 112+) */
  --spring-soft: linear(0, 0.0058, 0.0225 1.1%, 0.0904, 0.1884 4.9%, 0.4119 8.5%, 0.6396 12.6%, 0.8162 16.9%, 0.8833, 0.9363 21.4%, 0.9739 23.9%, 1.0013 26.6%, 1.0191 29.6%, 1.0283 33%, 1.0302 37.1%, 1.0101 50.9%, 0.9993 64.9%, 1);
  --spring-bounce: linear(0, 0.0101, 0.0408 2.1%, 0.1702 4.7%, 0.6173 10.6%, 0.8228 13.6%, 0.9751 16.9%, 1.0617 20.4%, 1.0911 22.5%, 1.1031 24.7%, 1.0962 27.3%, 1.0659 31.5%, 0.9952 41.4%, 0.9763 46.6%, 0.9769 52.1%, 0.9996 67.1%, 1.0028 76.8%, 1);
}
@supports (transition-timing-function: linear(0, 1)) {
  .btn, .sticker, .tier, .cart-count { transition-timing-function: var(--spring-soft); }
}

/* 1. Cross-document View Transitions: pages morph instead of flashing white. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.32s cubic-bezier(0.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vt-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; }
::view-transition-group(product-media) { animation-duration: 0.55s; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
::view-transition-group(site-header) { animation: none; }
.header { view-transition-name: site-header; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px) scale(0.99); filter: blur(4px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

/* 2. Scroll-driven animations (animation-timeline). JS reveal remains the fallback. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .js [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; animation: sd-reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
    .media > img, .split .media .art, .ctile > img, .story__frame img { animation: sd-parallax linear both; animation-timeline: view(); animation-range: cover; }
    .scroll-progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 50; background: var(--accent); transform-origin: 0 50%; animation: sd-progress linear both; animation-timeline: scroll(root block); pointer-events: none; }
    .hero__title { animation: sd-hero-out linear both; animation-timeline: scroll(root block); animation-range: 0 90vh; }
    .footer__word { animation: sd-word linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
    .tile, .card__media { animation: sd-rise linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
  }
}
@keyframes sd-reveal { from { opacity: 0; transform: translateY(40px); filter: blur(6px); } }
@keyframes sd-parallax { from { transform: scale(1.12) translateY(-4%); } to { transform: scale(1.12) translateY(4%); } }
@keyframes sd-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes sd-hero-out { to { transform: translateY(-8vh); opacity: 0.25; filter: blur(2px); } }
@keyframes sd-word { from { letter-spacing: 0.3em; opacity: 0; } }
@keyframes sd-rise { from { transform: translateY(60px) scale(0.96); clip-path: inset(12% 0 0 0 round var(--card-radius)); } to { clip-path: inset(0 0 0 0 round var(--card-radius)); } }
.scroll-progress { display: none; }
@supports (animation-timeline: scroll()) { .scroll-progress { display: block; } }

/* 3. @starting-style: dialogs, toasts and drawers animate in natively from display:none. */
@supports selector(:popover-open) {
  .toast { transition: transform 0.45s var(--ease-out), opacity 0.3s, display 0.45s allow-discrete; }
}
@starting-style { .drawer[open] { opacity: 0; } }

/* 4. WebGL shader canvas (hero backgrounds) */
.shader-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.4s ease; }
.shader-canvas.is-ready { opacity: 1; }

/* 5. Magnetic buttons + text scramble hooks */
[data-magnetic] { transition: transform 0.5s var(--spring-soft, var(--ease-out)); }
@media (prefers-reduced-motion: reduce) { .scroll-progress { display: none !important; } [data-magnetic] { transform: none !important; } }
