/* ==========================================================================
   TEMPORA — immersive 3D store template
   1. Tokens  2. Base  3. Type  4. Buttons  5. Nav  6. Loader  7. Stage
   8. Chapters  9. Sections  10. Cards  11. Drawer  12. Shop  13. Product
   14. Footer  15. Utilities / motion
   ========================================================================== */

/* 1. Tokens -------------------------------------------------------------- */
@font-face { font-family: 'Inter'; src: url('../fonts/Inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Crimson'; src: url('../fonts/CrimsonText-Italic.woff') format('woff'); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: 'Crimson'; src: url('../fonts/CrimsonText-Regular.woff') format('woff'); font-style: normal; font-weight: 400; font-display: swap; }

:root {
  --paper: #f3efe7; --paper-2: #e9e3d7; --ink: #111216; --ink-2: #4b4d55; --line: rgba(17, 18, 22, .12);
  --night: #07090d; --accent: #e0452b; --gold: #c9a35c; --type: rgba(130, 160, 215, .1); --ink-stage: #eef1f6;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Crimson', 'Iowan Old Style', Georgia, serif;
  --r: 18px; --r-lg: 28px; --pad: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .1, 1); --ease-io: cubic-bezier(.7, 0, .2, 1);
  --nav-h: 76px;
}

/* 2. Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.no-scroll { overflow: hidden; }
body { margin: 0; font: 400 16px/1.6 var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none; transition: top .2s; }
.skip:focus { top: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1320px, 100% - 2 * var(--pad)); margin-inline: auto; }

/* 3. Type ---------------------------------------------------------------- */
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.eyebrow { margin: 0 0 18px; font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; opacity: .75; }
.h2 { margin: 0 0 20px; font-size: clamp(36px, 5vw, 76px); line-height: .98; font-weight: 600; letter-spacing: -.035em; }
.h2 em { font-size: 1.08em; }
.lead { margin: 0 0 28px; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.6; opacity: .78; max-width: 46ch; }
.link { font-size: 14px; font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: opacity .2s; }
.link:hover { opacity: .6; }

/* 4. Buttons ------------------------------------------------------------- */
.btn { --bg: var(--ink); --fg: #fff; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px;
  border: 0; border-radius: 999px; background: var(--bg); color: var(--fg); font-size: 15px; font-weight: 550; letter-spacing: -.005em; text-decoration: none; overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--accent); transform: translateY(101%); transition: transform .55s var(--ease); border-radius: inherit; }
.btn:hover::before { transform: none; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .5); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--light { --bg: #fff; --fg: #0c0d10; }
.btn--light:hover { color: #fff; }
.btn--dark { --bg: var(--ink); --fg: #fff; }
.btn--ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
.btn--ghost::before { background: currentColor; opacity: .12; }
.btn--block { width: 100%; }
.btn--small { min-height: 38px; padding: 0 16px; font-size: 13px; }
.btn__price { opacity: .6; font-weight: 450; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; transition: background .2s; }
.icon-btn:hover { background: rgba(0, 0, 0, .06); }

/* 5. Nav ----------------------------------------------------------------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 var(--pad);
  color: var(--nav-ink, var(--ink)); transition: transform .5s var(--ease), background .4s, color .4s; }
.page-home .nav, .page-product .nav--dark { --nav-ink: var(--ink-stage); }
.page-home[data-theme='light'] .nav { --nav-ink: #24170e; }
.page-home .nav.is-scrolled[data-after] { background: var(--paper); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo { font-family: var(--serif); font-size: 26px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.nav__links { display: flex; gap: 34px; font-size: 14px; font-weight: 500; }
.nav__links a { text-decoration: none; position: relative; opacity: .85; }
.nav__links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__bag { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 8px 0 18px; border-radius: 999px; border: 1px solid currentColor; background: transparent; font-size: 14px; font-weight: 500; }
.nav__count { min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center; background: currentColor; font-size: 12px; font-weight: 600; }
.nav__count { color: var(--nav-bg, #0c0d10); background: var(--nav-ink, var(--ink)); }
.page-home[data-theme='light'] .nav__count, .nav--light .nav__count { color: #f3efe7; }
.nav__count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.nav__burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; position: relative; }
.nav__burger i { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.nav__burger i:first-child { top: 17px; } .nav__burger i:last-child { top: 26px; }
.menu-open .nav__burger i:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-open .nav__burger i:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* 6. Loader -------------------------------------------------------------- */
.loader { position: fixed; inset: 0; z-index: 90; display: grid; place-content: center; justify-items: center; gap: 18px; background: #05070b; color: #eef1f6;
  transition: clip-path 1.1s var(--ease-io), visibility 0s 1.1s; clip-path: inset(0 0 0 0); }
.loader.is-done { clip-path: inset(0 0 100% 0); visibility: hidden; }
.loader__mark { font-family: var(--serif); font-size: clamp(28px, 4vw, 44px); letter-spacing: .3em; text-transform: uppercase; padding-left: .3em; }
.loader__count { font-size: 13px; letter-spacing: .2em; font-variant-numeric: tabular-nums; opacity: .7; }
.loader__bar { width: min(260px, 60vw); height: 1px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.loader__bar i { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
.loader__hint { margin: 0; font-family: var(--serif); font-style: italic; font-size: 17px; opacity: .55; }

/* 7. Stage --------------------------------------------------------------- */
.stage { position: fixed; inset: 0; z-index: 0; pointer-events: none; transition: opacity .2s linear; }
.stage__bg { --bg1: #06101f; --bg2: #0f2446; position: absolute; inset: 0; background: radial-gradient(120% 90% at 62% 45%, var(--bg2) 0%, var(--bg1) 62%); }
.stage__bg::after { content: ''; position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay;
  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 baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E"); }
.stage__type { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; transform: translate(var(--gx, 0), var(--gy, 0)); transition: transform .9s var(--ease); }
.stage__type span { font-size: clamp(90px, 21vw, 420px); font-weight: 800; letter-spacing: -.06em; line-height: .8; text-transform: uppercase; color: var(--type);
  white-space: nowrap; -webkit-text-stroke: 1px color-mix(in srgb, var(--ink-stage) 14%, transparent); user-select: none; }
.stage__type.swap span { animation: typeSwap .9s var(--ease); }
@keyframes typeSwap { from { opacity: 0; transform: translateY(8%) scale(.98); filter: blur(8px); } }
.stage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; color: var(--ink-stage); transition: opacity .3s; }
.stage__lines line { stroke: currentColor; stroke-width: 1; opacity: .45; }
.stage__lines circle { fill: var(--accent); }
.stage__labels { position: absolute; inset: 0; color: var(--ink-stage); }
.label { position: absolute; left: 0; top: 0; display: grid; gap: 2px; padding: 10px 14px; border-radius: 12px; background: rgba(10, 12, 16, .55); border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); white-space: nowrap; font-size: 12px; will-change: transform; }
.label b { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.label span { opacity: .65; }
.stage__vignette { position: absolute; inset: 0; background: radial-gradient(130% 100% at 50% 50%, transparent 55%, rgba(0, 0, 0, .35)); }
.no-webgl .stage__canvas { display: none; }

/* 8. Chapters ------------------------------------------------------------ */
main { position: relative; z-index: 1; }
.chapter { position: relative; color: var(--ink-stage); }
.chapter--hero { height: 190vh; }
.chapter--anatomy { height: 330vh; }
.chapter--movement { height: 260vh; }
.chapter--night { height: 230vh; }
.chapter--editions { height: 250vh; }
.sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding: var(--nav-h) var(--pad) 40px; }
[data-theme='light'] .chapter { color: #24170e; }

.hero { position: relative; width: 100%; height: 100%; }
.hero__eyebrow { position: absolute; top: 9vh; left: 0; }
.hero__title { position: absolute; left: 0; bottom: 10vh; margin: 0; font-size: clamp(44px, 6.6vw, 112px); line-height: .92; font-weight: 600; letter-spacing: -.045em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title em { font-size: 1.08em; }
.hero__side { position: absolute; right: 0; bottom: 10vh; width: min(360px, 32vw); }
.hero__lead { margin: 0 0 22px; font-size: 15px; line-height: 1.6; opacity: .75; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__meta { position: absolute; top: 9vh; right: 0; display: flex; gap: 28px; font-size: 13px; opacity: .75; }
.hero__meta b { font-size: 22px; font-weight: 600; margin-right: 3px; letter-spacing: -.02em; opacity: 1; }
.scrollcue { position: absolute; left: 50%; bottom: 3vh; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; opacity: .6; }
.scrollcue i { width: 1px; height: 42px; background: linear-gradient(currentColor, transparent); animation: cue 2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
/* intro choreography */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }
[data-reveal].is-in, .is-ready .hero [data-reveal] { opacity: 1; transform: none; }
.is-ready .hero [data-reveal]:nth-child(2) { --d: .1s; } .is-ready .hero [data-reveal]:nth-child(3) { --d: .25s; } .is-ready .hero [data-reveal]:nth-child(4) { --d: .35s; }
.hero__title .line > * , .hero__title .line { transition: transform 1.2s var(--ease); }
.is-loading .hero__title .line { transform: translateY(100%); }

.panel { width: min(470px, 40vw); will-change: transform, opacity; }
.panel--right { margin-left: auto; }
.partlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: p; }
.partlist li { counter-increment: p; display: flex; gap: 16px; align-items: baseline; padding: 11px 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 15px; opacity: .4; transition: opacity .5s, padding .5s var(--ease); }
.partlist li::before { content: counter(p, decimal-leading-zero); font-size: 11px; letter-spacing: .1em; opacity: .7; }
.partlist li.is-on { opacity: 1; padding-left: 8px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 26px; margin: 8px 0 0; }
.stats div { border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 14px; }
.stats dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.stats dd { margin: 4px 0 0; font-size: clamp(28px, 3vw, 44px); font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stats small { font-size: 14px; font-weight: 450; margin-left: 6px; opacity: .6; letter-spacing: 0; }

.config .swatches { display: flex; gap: 10px; margin: 6px 0 26px; flex-wrap: wrap; }
.swatch { display: grid; justify-items: center; gap: 8px; padding: 0; border: 0; background: none; font-size: 12px; letter-spacing: .06em; opacity: .65; transition: opacity .3s; }
.swatch i { width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, var(--c1) 0 52%, var(--c2) 54% 70%, transparent 72%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); transition: transform .5s var(--ease), box-shadow .3s; }
.swatch:hover { opacity: 1; } .swatch:hover i { transform: scale(1.06); }
.swatch.is-on { opacity: 1; } .swatch.is-on i { box-shadow: 0 0 0 2px currentColor, 0 0 0 6px rgba(255, 255, 255, .06); }
.config__name { margin: 0; font-family: var(--serif); font-style: italic; font-size: 44px; line-height: 1; }
.config__blurb { margin: 10px 0 4px; opacity: .78; max-width: 40ch; }
.config__meta { margin: 0 0 26px; font-size: 13px; letter-spacing: .04em; opacity: .6; }
.config__buy { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.config__price { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -.02em; min-width: 140px; }
[data-theme='light'] .partlist li, [data-theme='light'] .stats div { border-color: rgba(0, 0, 0, .15); }
[data-theme='light'] .btn--light { --bg: #24170e; --fg: #f3efe7; }
[data-theme='light'] .swatch i { box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }

/* 9. Sections (regular page) --------------------------------------------- */
.after { position: relative; z-index: 2; background: var(--paper); color: var(--ink); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.section { padding: clamp(72px, 10vw, 150px) 0; }
.section__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px 30px; margin-bottom: 42px; }
.section__head .eyebrow { grid-column: 1 / -1; }
.section__head .h2 { margin: 0; }
.promises { padding-bottom: 0; }
.promises__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.promises__grid li { background: var(--paper); padding: 34px 28px; }
.promises__grid svg { width: 34px; height: 34px; margin-bottom: 22px; color: var(--accent); }
.promises__grid h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.promises__grid p { margin: 0; font-size: 14px; color: var(--ink-2); }
.story__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 6vw, 110px); align-items: center; }
.story__img { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 9 / 11; background: #0b1426; }
.story__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.story__img:hover img { transform: scale(1.04); }
.story__text p:not(.eyebrow) { color: var(--ink-2); font-size: 17px; max-width: 46ch; }
.ticks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.ticks li::before { content: ''; width: 18px; height: 1px; background: var(--accent); }
.quotes { background: var(--night); color: #eef1f6; }
.quotes__track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quotes figure { margin: 0; padding: 34px; border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r); display: flex; flex-direction: column; justify-content: space-between; gap: 30px; min-height: 260px; }
.quotes blockquote { margin: 0; font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); line-height: 1.25; }
.quotes figcaption { font-size: 13px; letter-spacing: .06em; opacity: .6; }
.newsletter__box { text-align: center; }
.newsletter__box .h2 { max-width: 16ch; margin-inline: auto; margin-bottom: 30px; }
.newsletter__form { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.newsletter__form input { width: min(380px, 100%); min-height: 52px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.newsletter__msg { flex-basis: 100%; margin: 6px 0 0; min-height: 1.6em; font-size: 14px; color: var(--ink-2); }

/* 10. Cards -------------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { display: block; text-decoration: none; transition-delay: var(--d); }
.card__media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: radial-gradient(110% 80% at 50% 40%, var(--bg2, #1a2a4a), var(--bg1, #0a1428)); }
.card__media--light { background: radial-gradient(110% 80% at 50% 40%, #fbf8f2, #e6dfd2); }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.card__alt { opacity: 0; transform: scale(1.04); }
.card:hover .card__media img:first-child { transform: scale(1.05); }
.card:hover .card__alt { opacity: 1; transform: scale(1); }
.card__tag { position: absolute; top: 14px; left: 14px; padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 11px; letter-spacing: .1em; backdrop-filter: blur(8px); }
.card__body { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 16px 4px 0; align-items: baseline; }
.card__body h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.card__body p { margin: 0; grid-column: 1; font-size: 14px; color: var(--ink-2); }
.card__body b { grid-row: 1; grid-column: 2; font-weight: 600; }
.card--strap .card__body .btn { grid-column: 2; grid-row: 2; }

/* 11. Drawer ------------------------------------------------------------- */
.drawer { position: fixed; inset: 0; z-index: 80; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(5, 7, 10, .5); opacity: 0; transition: opacity .45s; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); display: flex; flex-direction: column; background: var(--paper); color: var(--ink);
  transform: translateX(100%); transition: transform .55s var(--ease); }
.drawer.is-open .drawer__scrim { opacity: 1; } .drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 24px 26px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { margin: 0; font-size: 20px; font-weight: 600; }
.drawer__ship { padding: 14px 26px 0; font-size: 13px; color: var(--ink-2); }
.drawer__ship i { display: block; height: 3px; margin-top: 10px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) calc(var(--p) * 100%), var(--line) 0); }
.drawer__items { list-style: none; margin: 0; padding: 10px 26px; flex: 1; overflow: auto; }
.bagitem { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.bagitem img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; background: #0b1426; }
.bagitem__info { display: grid; gap: 2px; font-size: 14px; } .bagitem__info span { color: var(--ink-2); font-size: 13px; }
.qty { display: inline-flex; align-items: center; gap: 12px; margin-top: 6px; border: 1px solid var(--line); border-radius: 999px; width: max-content; padding: 2px; }
.qty button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: none; } .qty button:hover { background: var(--paper-2); }
.bag-empty { padding: 40px 0; color: var(--ink-2); }
.drawer__foot { padding: 22px 26px 26px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.drawer__total { display: flex; justify-content: space-between; font-size: 17px; }
.drawer__note { margin: 0; font-size: 12px; color: var(--ink-2); text-align: center; }
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 95; transform: translate(-50%, 140%); padding: 14px 22px; border-radius: 999px; background: #0c0d10; color: #fff; font-size: 14px;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); transition: transform .6s var(--ease), visibility 0s .6s; visibility: hidden; pointer-events: none; max-width: calc(100% - 40px); }
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform .6s var(--ease); }

/* 12. Shop --------------------------------------------------------------- */
.page-shop, .page-product { background: var(--paper); }
.shophead { padding: calc(var(--nav-h) + 60px) 0 30px; }
.shophead .h2 { font-size: clamp(48px, 8vw, 130px); margin-bottom: 26px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 0; border-block: 1px solid var(--line); margin-bottom: 34px; position: sticky; top: 0; z-index: 5; background: var(--paper); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-size: 14px; transition: background .25s, color .25s; }
.chip:hover { border-color: var(--ink); } .chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.select { min-height: 38px; padding: 0 36px 0 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23111' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 14px center; appearance: none; font-size: 14px; }
.grid-shop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 20px; }
.grid-shop .card[hidden], .grid-shop .card--strap[hidden] { display: none; }
.shop-empty { padding: 60px 0; text-align: center; color: var(--ink-2); }
.banner { margin-top: 90px; display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r-lg); overflow: hidden; background: var(--night); color: #eef1f6; }
.banner__text { padding: clamp(30px, 5vw, 70px); display: flex; flex-direction: column; justify-content: center; }
.banner img { width: 100%; height: 100%; object-fit: cover; min-height: 340px; }

/* 13. Product ------------------------------------------------------------ */
.pdp { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(360px, 1fr); min-height: 100vh; }
.viewer { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; color: #eef1f6; }
.viewer .stage__bg { transition: --bg1 .8s; }
.viewer canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
.viewer canvas.is-grabbing { cursor: grabbing; }
.viewer__tools { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(10, 12, 16, .45);
  border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); z-index: 3; }
.tool { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: transparent; color: inherit; font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; transition: background .25s; }
.tool:hover { background: rgba(255, 255, 255, .1); } .tool[aria-pressed='true'] { background: #fff; color: #0c0d10; }
.tool svg { width: 16px; height: 16px; }
.viewer__hint { position: absolute; top: calc(var(--nav-h) + 14px); left: 50%; transform: translateX(-50%); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .55; z-index: 3; transition: opacity .6s; }
.viewer__type { position: absolute; inset: auto 0 12% 0; text-align: center; font-size: clamp(70px, 12vw, 220px); font-weight: 800; letter-spacing: -.06em; text-transform: uppercase; color: var(--type); line-height: .8; pointer-events: none; }
.viewer__loading { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: 18px; opacity: .7; transition: opacity .6s; }
.is-ready .viewer__loading { opacity: 0; pointer-events: none; }
.buy { padding: calc(var(--nav-h) + 40px) clamp(22px, 4vw, 64px) 60px; }
.crumbs { font-size: 13px; color: var(--ink-2); margin-bottom: 26px; } .crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.buy__title { margin: 0; font-size: clamp(40px, 4.4vw, 68px); line-height: .95; font-weight: 600; letter-spacing: -.04em; }
.buy__ref { margin: 10px 0 0; color: var(--ink-2); font-size: 14px; letter-spacing: .04em; }
.rating { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; font-size: 14px; color: var(--ink-2); }
.rating i { color: var(--gold); letter-spacing: 2px; font-style: normal; }
.buy__price { margin: 24px 0 0; font-size: 30px; font-weight: 600; letter-spacing: -.02em; }
.buy__price small { font-size: 13px; font-weight: 450; color: var(--ink-2); margin-left: 8px; }
.opt { margin: 30px 0 0; padding: 0; border: 0; }
.opt legend { padding: 0; margin-bottom: 12px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.opt legend span { font-weight: 450; text-transform: none; letter-spacing: 0; color: var(--ink-2); margin-left: 6px; }
.opt .swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.opt .swatch { color: var(--ink); opacity: .7; }
.opt .swatch i { box-shadow: 0 0 0 1px var(--line); }
.opt .swatch.is-on i { box-shadow: 0 0 0 2px var(--ink), 0 0 0 5px var(--paper-2); }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; transition: all .25s; }
.pill input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.engrave { width: 100%; min-height: 48px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.engrave-help { margin: 8px 0 0; font-size: 13px; color: var(--ink-2); }
.buy__cta { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 30px; }
.wish { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; transition: all .3s; }
.wish[aria-pressed='true'] { background: var(--accent); border-color: var(--accent); color: #fff; }
.assure { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }
.assure li { display: flex; gap: 10px; align-items: center; } .assure svg { width: 18px; height: 18px; color: var(--ink); flex: none; }
.acc { margin-top: 34px; border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 20px 0; font-weight: 600; cursor: pointer; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '+'; font-weight: 300; font-size: 22px; transition: transform .35s var(--ease); }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc .acc__body { padding: 0 0 22px; color: var(--ink-2); font-size: 15px; }
.spec { display: grid; grid-template-columns: 140px 1fr; gap: 8px 18px; margin: 0; font-size: 14px; }
.spec dt { color: var(--ink-2); } .spec dd { margin: 0; color: var(--ink); }
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(243, 239, 231, .92); backdrop-filter: blur(14px); border-top: 1px solid var(--line); transform: translateY(100%); transition: transform .45s var(--ease); }
.buybar.is-on { transform: none; }
.buybar b { display: block; font-size: 15px; } .buybar span { font-size: 13px; color: var(--ink-2); }
.details-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.details-row figure { margin: 0; }
.details-row img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); background: #0b1426; }
.details-row figcaption { margin-top: 14px; font-size: 15px; } .details-row figcaption b { display: block; font-size: 17px; margin-bottom: 4px; }

/* 14. Footer ------------------------------------------------------------- */
.footer { padding: 80px 0 30px; border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer nav { display: grid; gap: 10px; align-content: start; font-size: 14px; }
.footer nav a { text-decoration: none; color: var(--ink-2); } .footer nav a:hover { color: var(--ink); }
.footer h3 { margin: 0 0 6px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.footer__note { color: var(--ink-2); max-width: 30ch; font-size: 14px; }
.footer__base { display: flex; justify-content: space-between; gap: 20px; margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }

/* 15. Responsive / motion ------------------------------------------------ */
@media (max-width: 1100px) {
  .cards, .grid-shop { grid-template-columns: repeat(2, 1fr); }
  .promises__grid { grid-template-columns: repeat(2, 1fr); }
  .pdp { grid-template-columns: 1fr; }
  .viewer { position: relative; height: 72vh; height: 72svh; }
  .buybar { display: flex; }
}
@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  .nav__links { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; padding: var(--pad); background: #07090d; color: #eef1f6;
    font-size: 40px; font-weight: 600; letter-spacing: -.03em; clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-io); }
  .menu-open .nav__links { clip-path: inset(0); }
  .menu-open .nav { color: #eef1f6; }
  .nav__burger { display: block; }
  .nav__bag { padding: 0 6px 0 14px; }
  .sticky { align-items: flex-end; padding-bottom: 28px; }
  .panel { width: 100%; padding: 22px; border-radius: 22px; background: rgba(8, 10, 14, .55); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  [data-theme='light'] .panel { background: rgba(255, 250, 242, .6); border-color: rgba(0, 0, 0, .08); }
  .panel .lead { font-size: 15px; margin-bottom: 16px; }
  .h2 { font-size: clamp(34px, 9vw, 52px); }
  .partlist { display: none; }
  .stats dd { font-size: 26px; }
  .hero__title { bottom: 21vh; font-size: clamp(44px, 12vw, 70px); }
  .hero__side { left: 0; right: 0; width: auto; bottom: 3.5vh; }
  .hero__lead { display: none; }
  .hero__meta { display: none; }
  .hero__eyebrow { top: 2vh; }
  .scrollcue { display: none; }
  .config .swatches { margin-bottom: 14px; } .swatch i { width: 44px; height: 44px; }
  .config__name { font-size: 32px; } .config__blurb { display: none; }
  .story__grid, .banner { grid-template-columns: 1fr; }
  .quotes__track { grid-template-columns: 1fr; }
  .section__head { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .details-row { grid-template-columns: 1fr; }
  .spec { grid-template-columns: 1fr; gap: 2px; } .spec dd { margin-bottom: 10px; }
}
@media (max-width: 520px) {
  .cards, .grid-shop { grid-template-columns: 1fr 1fr; gap: 26px 12px; }
  .promises__grid { grid-template-columns: 1fr; }
  .card__body { grid-template-columns: 1fr; } .card__body b { grid-row: auto; grid-column: 1; }
  .card--strap .card__body .btn { grid-column: 1; grid-row: auto; margin-top: 8px; width: 100%; }
  .footer__base { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* nav variants (shop / product) */
.nav--light { --nav-ink: var(--ink); }
.nav--light .nav__count, .nav--split .nav__actions .nav__count { color: #f3efe7; }
.nav--light.is-scrolled { background: rgba(243, 239, 231, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav--split { --nav-ink: #eef1f6; }
.nav--split .nav__links { margin-right: auto; margin-left: 28px; gap: 26px; }
.nav--split .nav__actions { --nav-ink: var(--ink); color: var(--ink); }
.nav--split.is-scrolled { --nav-ink: var(--ink); background: rgba(243, 239, 231, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav__links a[aria-current='page'] { opacity: 1; }
.nav__links a[aria-current='page']::after { transform: scaleX(1); }
@media (max-width: 1100px) { .nav--split .nav__actions { --nav-ink: #eef1f6; color: #eef1f6; } .nav--split .nav__actions .nav__count { color: #0c0d10; }
  .nav--split.is-scrolled .nav__actions { --nav-ink: var(--ink); color: var(--ink); } .nav--split.is-scrolled .nav__actions .nav__count { color: #f3efe7; } }

.no-scroll .toast { bottom: 150px; }
