/* ==========================================================================
   CERA DIVINA — Atelier di Luce
   Design system inspired by Renaissance painting: ink black, gesso cream,
   leaf gold. Giant grotesk headlines meet calligraphic italic serifs.
   ========================================================================== */

/* Fonts — served from this site (SIL Open Font License): Inter Tight (variable 400–700),
   Instrument Serif, Pinyon Script. Each subset loads only when the page uses its characters. */
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../assets/fonts/inter-tight-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../assets/fonts/inter-tight-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../assets/fonts/inter-tight-vietnamese.woff2') format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../assets/fonts/inter-tight-cyrillic-ext.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../assets/fonts/inter-tight-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../assets/fonts/inter-tight-greek-ext.woff2') format('woff2'); unicode-range: U+1F00-1FFF; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../assets/fonts/inter-tight-greek.woff2') format('woff2'); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('../assets/fonts/instrument-serif-italic-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('../assets/fonts/instrument-serif-italic-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/instrument-serif-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/instrument-serif-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Pinyon Script'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/pinyon-script-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Pinyon Script'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/pinyon-script-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Pinyon Script'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/pinyon-script-vietnamese.woff2') format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }

:root {
  --ink: #0b0a08;
  --ink-2: #16130f;
  --umber: #2a2419;
  --cream: #f1ebdd;
  --cream-2: #e7dfcc;
  --paper: #f7f3ea;
  --gold: #c9a24a;
  --gold-2: #e3c77d;
  --crimson: #7a1f2b;
  --lapis: #22336b;
  --verdigris: #6f8a72;
  --text: var(--ink);
  --muted: #6b6253;

  --f-display: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --f-serif: 'Instrument Serif', 'Cormorant Garamond', Georgia, serif;
  --f-script: 'Pinyon Script', 'Instrument Serif', cursive;

  --gutter: clamp(16px, 2.2vw, 32px);
  --header-h: 64px;
  --ease: cubic-bezier(.22, .8, .18, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
/* no visible scrollbars anywhere — scrolling (wheel, touch, keys) stays fully intact */
html, body, * { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar, *::-webkit-scrollbar { display: none; width: 0; height: 0; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--f-display);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--gold); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Swash italic — the "Ren(ai)ssance" treatment */
.sw { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.sw-cap { font-family: var(--f-script); font-style: normal; font-size: 1.55em; line-height: 0; vertical-align: -.08em; margin-right: -.06em; }

/* ---------- Film grain + candlelight cursor ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }
.candlelight {
  position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%; pointer-events: none; z-index: 89;
  background: radial-gradient(circle, rgba(255,196,110,.10) 0%, rgba(255,170,80,.04) 35%, transparent 68%);
  opacity: 0; transition: opacity .6s;
}
@media (hover: hover) { body.has-cursor .candlelight { opacity: 1; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gutter); color: var(--cream); text-shadow: 0 1px 14px rgba(0,0,0,.35);
  transition: color .5s var(--ease);
}
body.on-light .site-header { color: var(--ink); text-shadow: none; }
body.on-light .site-header .pill { background: var(--ink); color: var(--cream); }
body.on-light .site-header .pill .count { background: var(--cream); color: var(--ink); }
.site-header .pill { text-shadow: none; }
/* logo: the complete lockup from the inline sprite — identical to assets/logo/cera-divina-logo.svg (tools/logo.py) */
.logo { display: inline-flex; color: inherit; line-height: 0; }
.logo-svg { height: 2.15em; aspect-ratio: 11778.6 / 2122.2; width: auto; flex: none; }
.brand { font-size: 14px; justify-self: start; }
/* over paintings the cream logo gets the same soft shadow as the header text */
.site-header .logo { filter: drop-shadow(0 1px 10px rgba(0,0,0,.28)); transition: filter .5s; }
body.on-light .site-header .logo, .pdp .site-header .logo, body.menu-open .site-header .logo { filter: none; }
.nav-main { display: flex; gap: clamp(16px, 2.6vw, 40px); font-size: 14px; font-weight: 500; }
.nav-main a { position: relative; opacity: .85; transition: opacity .3s; }
@media (hover: hover) { .nav-main a:hover { opacity: 1; } }
.nav-main a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
@media (hover: hover) { .nav-main a:hover::after { transform: scaleX(1); transform-origin: left; } }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 12px; }
.pill {
  display: inline-flex; align-items: center; gap: .55em; height: 38px; padding: 0 18px;
  border-radius: 999px; background: var(--cream); color: var(--ink); font-size: 14px; font-weight: 600;
  transition: transform .4s var(--ease), background .3s;
}
@media (hover: hover) { .pill:hover { transform: translateY(-1px); background: #fff; } }
.pill .count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--ink); color: var(--cream); font-size: 11px; }
.pill.bump { animation: bump .6s var(--ease); }
@keyframes bump { 30% { transform: scale(1.12); } }
.menu-btn { display: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid currentColor; }
.menu-btn span { display: block; width: 14px; height: 1px; background: currentColor; margin: 4px auto; }

/* ---------- Chapter index (left rail with Roman numerals) ---------- */
.chapter-nav {
  position: fixed; left: var(--gutter); bottom: 72px; z-index: 55; width: 150px;
  font-size: 13px; font-weight: 600; line-height: 1.12; letter-spacing: -.01em;
  color: var(--cream); text-shadow: 0 1px 12px rgba(0,0,0,.4);
  opacity: 0; pointer-events: none; transition: opacity .6s, color .5s;
}
.chapter-nav.visible { opacity: 1; pointer-events: auto; }
.chapter-nav ol { list-style: none; margin: 0; padding: 0; }
.chapter-nav a { display: flex; justify-content: space-between; opacity: .45; transition: opacity .3s, transform .4s var(--ease); }
.chapter-nav a .num { font-family: var(--f-serif); font-weight: 400; font-size: 12px; }
@media (hover: hover) { .chapter-nav a:hover { opacity: .85; } }
.chapter-nav a.active { opacity: 1; transform: translateX(6px); }
.legal-rail { position: fixed; left: var(--gutter); bottom: 18px; z-index: 55; font-size: 10px; line-height: 1.3; color: var(--cream); opacity: .8; transition: color .5s; }
body.on-light .chapter-nav, body.on-light .legal-rail { color: var(--ink); text-shadow: none; }

/* ==========================================================================
   I. Intro — golden geometry → the painting opens
   ========================================================================== */
.intro { position: relative; height: 420vh; background: var(--ink); }
.intro-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.geometry { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(241,235,221,.16); }
.geometry path, .geometry line, .geometry rect, .geometry circle { vector-effect: non-scaling-stroke; }
.frame {
  position: absolute; left: 50%; top: 50%; z-index: 3; width: min(26vw, 36vh); height: calc(min(26vw, 36vh) / .76);
  transform: translate(-50%, -50%);
  will-change: width, height;
}
.frame-window { position: absolute; inset: 0; overflow: hidden; background: #0d0c0a; clip-path: inset(0); }
.painting { position: absolute; left: 50%; top: 50%; width: 100vw; height: 100vh; height: 100svh; transform: translate(-50%, -50%); }
.layer { position: absolute; will-change: transform; }
.layer-sky { inset: -6%; }
.layer-sky video, .layer-sky img { width: 100%; height: 100%; object-fit: cover; }
.layer-sky::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,10,8,.15) 0%, transparent 30%, transparent 70%, rgba(11,10,8,.55) 100%); }
.layer-fig img { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }
.fig-woman { width: min(38vw, 66vh); left: -2vw; top: 18vh; }
.fig-man { width: min(36vw, 62vh); right: -3vw; top: 22vh; }
.fig-putto { width: min(12vw, 22vh); left: 61%; top: 6vh; }
.hero-candle { width: min(8.5vw, 16vh); left: 50%; top: 14vh; margin-left: calc(min(8.5vw, 16vh) / -2); }
.hero-candle img { position: relative; width: 100%; filter: drop-shadow(0 40px 50px rgba(0,0,0,.45)); }
.candle-glow { position: absolute; left: 50%; top: 1%; width: 340%; aspect-ratio: 1; transform: translate(-50%, -45%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,222,160,.55) 0%, rgba(255,200,120,.18) 28%, rgba(255,170,80,0) 62%); animation: glow 3.4s ease-in-out infinite; }
@keyframes glow { 0%, 100% { opacity: .85; transform: translate(-50%, -45%) scale(1); } 45% { opacity: 1; transform: translate(-50%, -45%) scale(1.06); } 70% { opacity: .78; transform: translate(-50%, -45%) scale(.97); } }
.intro-tag { display: block; margin-top: 14px; font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: .52em; letter-spacing: 0; opacity: .8; }
.hero-chip {
  position: absolute; z-index: 6; left: calc(50% + min(4.25vw, 8vh) + 22px); top: 34vh; display: flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 14px; border-radius: 999px; background: rgba(247,243,234,.88); backdrop-filter: blur(12px); color: var(--ink);
  box-shadow: 0 20px 50px rgba(0,0,0,.25); opacity: 0; white-space: nowrap;
}
.hero-chip::before { content: ''; position: absolute; left: 50%; bottom: 100%; width: 1px; height: 14px; background: rgba(227,199,125,.8); }
.chip-num { font-family: var(--f-serif); color: var(--crimson); font-size: 18px; }
.chip-txt { display: flex; flex-direction: column; line-height: 1.1; }
.chip-txt b { font-size: 15px; letter-spacing: -.02em; }
.chip-txt em { font-family: var(--f-serif); font-size: 14px; color: var(--muted); }
.chip-price { font-weight: 600; font-size: 15px; margin-left: 6px; }
.chip-add { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--cream); font-size: 20px; line-height: 1; transition: background .3s; }
@media (hover: hover) { .chip-add:hover { background: var(--crimson); } }
.intro-bottom { position: absolute; left: 0; right: 0; bottom: 5vh; z-index: 5; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 var(--gutter); pointer-events: none; }
.intro-cta { opacity: 0; pointer-events: auto; margin-top: 18px; display: flex; flex-direction: column; align-items: center; }
.intro-cta p { margin: 0 0 18px; font-family: var(--f-serif); font-size: clamp(18px, 1.6vw, 24px); color: var(--paper); text-shadow: 0 2px 20px rgba(0,0,0,.6); max-width: 46ch; }
.intro-cta-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.btn.glass { background: rgba(247,243,234,.14); color: var(--paper); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(247,243,234,.5); }
.intro-usp { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin: 16px 0 0; padding: 0; font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--paper); text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.intro-usp li::before { content: '\2726  '; color: var(--gold-2); }
.petal { position: absolute; pointer-events: none; will-change: transform; }
.spark { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #ffe6a8; box-shadow: 0 0 10px 3px rgba(255,210,130,.8); opacity: 0; }

.intro-title {
  position: absolute; left: 50%; top: 50%; z-index: 4; transform: translate(-50%, -50%); margin: 0;
  font-size: clamp(22px, 2.6vw, 40px); font-weight: 600; line-height: .98; letter-spacing: -.035em; color: var(--cream);
  white-space: nowrap; pointer-events: none; transform-origin: 0 0;
}
.intro-title .sw { font-weight: 400; letter-spacing: -.01em; }
.intro-hint {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 4;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; opacity: .6; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.intro-hint i { width: 1px; height: 38px; background: linear-gradient(var(--cream), transparent); animation: hint 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.intro-claim {
  margin: 0; text-align: center; pointer-events: none;
  font-size: clamp(34px, 5vw, 86px); font-weight: 600; line-height: .92; letter-spacing: -.055em; color: var(--paper);
  text-shadow: 0 6px 60px rgba(0,0,0,.35);
}
.intro-claim .sw { font-weight: 400; letter-spacing: -.02em; }
.intro-claim .line { display: block; overflow: hidden; padding-bottom: .06em; }
.intro-claim .line > span { display: inline-block; transform: translateY(110%); }

/* ==========================================================================
   Manifesto
   ========================================================================== */
.manifesto { position: relative; background: var(--cream); color: var(--ink); padding: 22vh var(--gutter) 18vh; }
.manifesto-inner { max-width: 1180px; margin: 0 calc(min(22vw, 320px) + 4vw) 0 max(18vw, 180px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.manifesto p.big { font-family: var(--f-serif); font-size: clamp(30px, 4.2vw, 68px); line-height: 1.04; letter-spacing: -.015em; margin: 28px 0 0; }
.manifesto p.big .w { opacity: .14; transition: opacity .2s; }
.manifesto p.big em { font-style: italic; color: var(--crimson); }
.manifesto-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); margin-top: 12vh; border-top: 1px solid rgba(11,10,8,.18); padding-top: 28px; }
.stat b { display: block; font-size: clamp(40px, 5vw, 80px); font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.stat span { display: block; margin-top: 10px; font-size: 14px; color: var(--muted); max-width: 26ch; }
.hands-float { position: absolute; right: var(--gutter); top: 9vh; width: min(22vw, 320px); aspect-ratio: .86; border-radius: 999px 999px 6px 6px; overflow: hidden; box-shadow: 0 40px 80px rgba(0,0,0,.35); z-index: 3; }
.hands-float video, .hands-float img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Chapters — one per signature candle
   ========================================================================== */
.chapter { position: relative; background: var(--ink); }
.chapter-hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; }
.chapter-bg { position: absolute; inset: -8% 0; }
.chapter-bg video, .chapter-bg img { width: 100%; height: 100%; object-fit: cover; object-position: var(--bg-pos, 50% 50%); }
.chapter-figure { will-change: transform, opacity; }
.chapter-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 60%, transparent 30%, rgba(11,10,8,.55) 100%), linear-gradient(180deg, rgba(11,10,8,.45), transparent 35%, transparent 65%, rgba(11,10,8,.6)); }
.chapter-title {
  position: absolute; left: 0; right: 0; top: calc(var(--header-h) + 2vh); z-index: 3; text-align: center;
  font-size: clamp(76px, 19vw, 330px); font-weight: 600; line-height: .8; letter-spacing: -.075em; color: var(--paper);
  mix-blend-mode: normal; pointer-events: none; padding: 0 .06em .14em 0;
}
.chapter-title .ch { display: inline-block; will-change: transform; }
.chapter-figure { position: absolute; z-index: 4; pointer-events: none; }
.chapter-figure img { width: 100%; filter: drop-shadow(0 30px 50px rgba(0,0,0,.45)); }
.chapter-sub {
  position: absolute; left: 0; right: 0; bottom: 16vh; z-index: 5; text-align: center; padding: 0 var(--gutter);
  font-family: var(--f-serif); font-size: clamp(26px, 3.2vw, 52px); line-height: 1.05; color: var(--paper); text-shadow: 0 4px 40px rgba(0,0,0,.6);
}
.chapter-sub .sw-cap { color: var(--gold-2); }
.chapter-kicker { position: absolute; left: 50%; bottom: 8vh; transform: translateX(-50%); z-index: 5; display: flex; gap: 18px; align-items: center; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--paper); opacity: .85; white-space: nowrap; }
.chapter-kicker .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }

/* torn paper edge */
.torn { position: absolute; left: 0; right: 0; height: 64px; z-index: 6; background: var(--cream); pointer-events: none;
  -webkit-mask: url('../assets/torn.svg') bottom / 100% 100% no-repeat; mask: url('../assets/torn.svg') bottom / 100% 100% no-repeat; }
.torn.bottom { bottom: -1px; }
.torn.top { top: -63px; }
.torn.paper { background: var(--paper); }

.chapter-body { position: relative; background: var(--cream); color: var(--ink); padding: 14vh var(--gutter) 16vh; }
.chapter-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 110px); align-items: start; max-width: 1320px; margin: 0 0 0 max(14vw, 170px); }
.chapter-copy h3 { font-family: var(--f-serif); font-weight: 400; font-size: clamp(36px, 4.4vw, 70px); line-height: 1; letter-spacing: -.02em; margin: 18px 0 26px; }
.chapter-copy h3 .sw-cap { color: var(--crimson); }
.chapter-copy p { font-size: 17px; line-height: 1.55; max-width: 46ch; color: #2b261e; }

.pyramid { margin-top: 40px; border-top: 1px solid rgba(11,10,8,.2); }
.pyramid-row { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(11,10,8,.2); align-items: baseline; }
.pyramid-row dt { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pyramid-row dd { margin: 0; font-family: var(--f-serif); font-size: 24px; line-height: 1.15; }

.buy-row { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 36px; }
.price { font-size: 30px; font-weight: 600; letter-spacing: -.03em; }
.price small { display: block; font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 54px; padding: 0 28px;
  border-radius: 999px; background: var(--ink); color: var(--cream); font-size: 15px; font-weight: 600; overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease);
}
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--crimson); transform: translateY(101%); transition: transform .55s var(--ease); border-radius: inherit; }
@media (hover: hover) { .btn:hover::before { transform: translateY(0); } }
.btn:active { transform: scale(.97); }
.btn .arrow { transition: transform .5s var(--ease); }
@media (hover: hover) { .btn:hover .arrow { transform: translateX(4px); } }
.btn.light { background: var(--cream); color: var(--ink); }
@media (hover: hover) { .btn.light:hover { color: var(--cream); } }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px currentColor; }
@media (hover: hover) { .btn.ghost:hover { color: var(--cream); } }
.link-u { font-size: 14px; font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

.arch {
  position: relative; border-radius: 999px 999px 6px 6px; overflow: hidden; background: var(--cream-2); aspect-ratio: 0.78;
  box-shadow: 0 50px 90px -30px rgba(42,36,25,.55);
}
.arch img, .arch video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); will-change: transform; }
.arch-frame { position: relative; }
.arch-frame::before { content: ''; position: absolute; inset: -14px; border: 1px solid rgba(11,10,8,.28); border-radius: 999px 999px 10px 10px; pointer-events: none; }
.arch-caption { display: flex; justify-content: space-between; margin-top: 26px; font-size: 13px; color: var(--muted); }
.arch-caption b { color: var(--ink); font-weight: 600; }
.chapter-media { position: relative; }
.chapter-media .mini { position: absolute; left: -12%; bottom: calc(6% + 56px); width: 38%; aspect-ratio: .8; border-radius: 6px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.35); border: 6px solid var(--paper); }
.chapter-media .mini img { width: 100%; height: 100%; object-fit: cover; }

.specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
.specs div { border-top: 1px solid rgba(11,10,8,.2); padding-top: 12px; }
.specs dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.specs dd { margin: 6px 0 0; font-size: 15px; font-weight: 600; }

/* ==========================================================================
   Stabkerzen — horizontal gallery under the night sky
   ========================================================================== */
.tapers { position: relative; background: #070a16; color: var(--paper); }
.tapers-pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.tapers-bg { position: absolute; inset: 0; }
.tapers-bg video, .tapers-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.tapers-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,10,22,.85), rgba(7,10,22,.15) 45%, rgba(7,10,22,.5)); }
.tapers-track { position: absolute; left: 0; top: 0; height: 100%; display: flex; align-items: center; gap: 5vw; padding: 0 8vw 0 max(16vw, 170px); will-change: transform; }
.tapers-intro { flex: 0 0 min(40vw, 560px); }
.tapers-intro h2 { font-size: clamp(64px, 10vw, 170px); line-height: .82; letter-spacing: -.07em; font-weight: 600; margin: 18px 0 24px; }
.tapers-intro h2 .sw { font-weight: 400; letter-spacing: -.03em; color: var(--gold-2); }
.tapers-intro p { font-family: var(--f-serif); font-size: clamp(20px, 1.8vw, 28px); line-height: 1.2; max-width: 30ch; opacity: .9; }
.taper-card { flex: 0 0 min(30vw, 420px); position: relative; }
.taper-card .arch { aspect-ratio: .72; box-shadow: 0 50px 100px rgba(0,0,0,.6); }
.taper-card .meta { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-top: 22px; }
.taper-card h3 { margin: 0; font-size: 34px; letter-spacing: -.04em; font-weight: 600; line-height: 1; }
.taper-card .kind { font-family: var(--f-serif); font-style: italic; font-size: 19px; opacity: .8; margin-top: 6px; }
.taper-card .num { position: absolute; top: -34px; left: 0; font-family: var(--f-serif); font-size: 22px; color: var(--gold-2); }
.add-mini { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 99px; background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 600; white-space: nowrap; transition: background .3s, transform .4s var(--ease); }
@media (hover: hover) { .add-mini:hover { background: var(--gold-2); transform: translateY(-2px); } }
.tapers-progress { position: absolute; left: max(16vw, 170px); right: 8vw; bottom: 6vh; height: 1px; background: rgba(255,255,255,.2); }
.tapers-progress i { position: absolute; inset: 0; background: var(--gold-2); transform-origin: left; transform: scaleX(0); }

/* ==========================================================================
   Atelier
   ========================================================================== */
.atelier { position: relative; background: var(--ink); color: var(--paper); }
.atelier-hero { position: relative; height: 130vh; overflow: hidden; }
.atelier-media { position: absolute; inset: 0; clip-path: inset(18% 22% 18% 22%); will-change: clip-path; }
.atelier-media video, .atelier-media img { width: 100%; height: 100%; object-fit: cover; }
.atelier-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(11,10,8,.75)); }
.atelier-head { position: absolute; left: 0; right: 0; top: 10vh; z-index: 2; text-align: center; font-size: clamp(56px, 12vw, 210px); line-height: .82; letter-spacing: -.07em; font-weight: 600; pointer-events: none; }
.atelier-head .sw { font-weight: 400; letter-spacing: -.03em; }
.atelier-copy { position: absolute; left: max(16vw, 170px); right: var(--gutter); bottom: 10vh; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.atelier-copy div { border-top: 1px solid rgba(241,235,221,.35); padding-top: 16px; }
.atelier-copy h4 { margin: 0 0 8px; font-family: var(--f-serif); font-weight: 400; font-size: 28px; line-height: 1; }
.atelier-copy p { margin: 0; font-size: 14px; opacity: .8; max-width: 34ch; }

/* ==========================================================================
   Kollektion — shop grid
   ========================================================================== */
.collection { position: relative; background: var(--paper); color: var(--ink); padding: 16vh var(--gutter) 18vh; }
.collection-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin: 0 0 7vh max(14vw, 170px); }
.collection-head h2 { margin: 14px 0 0; font-size: clamp(56px, 9vw, 150px); line-height: .84; letter-spacing: -.07em; font-weight: 600; }
.collection-head h2 .sw { font-weight: 400; letter-spacing: -.03em; color: var(--crimson); }
.filters { display: flex; gap: 6px; padding: 5px; border-radius: 99px; background: var(--cream-2); }
.filters button { height: 38px; padding: 0 18px; border-radius: 99px; font-size: 14px; font-weight: 600; color: var(--muted); transition: background .3s, color .3s; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5vh clamp(16px, 2vw, 28px); margin-left: max(14vw, 170px); }
.card { position: relative; display: block; }
.card.hide { display: none; }
.card .media { position: relative; aspect-ratio: .78; border-radius: 999px 999px 4px 4px; overflow: hidden; background: var(--cream-2); }
.card .media img, .card .media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .6s; }
.card .media img.alt { opacity: 0; background: var(--paper); }
@media (hover: hover) { .card:hover .media img { transform: scale(1.06); } }
@media (hover: hover) { .card:hover .media img.alt { opacity: 1; transform: scale(1); } }
.card .tag { position: absolute; top: 18%; left: 50%; transform: translateX(-50%); z-index: 2; font-family: var(--f-serif); font-size: 18px; color: var(--paper); text-shadow: 0 2px 16px rgba(0,0,0,.6); }
.card .quick { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; height: 46px; border-radius: 99px; background: rgba(247,243,234,.92); backdrop-filter: blur(8px); color: var(--ink); font-size: 14px; font-weight: 600; transform: translateY(140%); transition: transform .6s var(--ease), background .3s; }
.card:focus-within .quick { transform: translateY(0); }
@media (hover: hover) { .card:hover .quick { transform: translateY(0); } }
@media (hover: hover) { .card .quick:hover { background: var(--gold-2); } }
.card .row { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; align-items: baseline; }
.card h3 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.035em; }
.card h3 .n { font-family: var(--f-serif); font-weight: 400; font-size: .8em; letter-spacing: 0; color: var(--crimson); margin-right: .45em; }
.card .p { font-weight: 600; font-size: 16px; }
.card .k { font-family: var(--f-serif); font-style: italic; font-size: 17px; color: var(--muted); margin-top: 2px; }

/* ==========================================================================
   Il Rituale — burning ritual
   ========================================================================== */
.ritual { position: relative; background: var(--umber); color: var(--paper); padding: 18vh var(--gutter); overflow: hidden; }
.ritual-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 100px); align-items: center; margin-left: max(14vw, 170px); max-width: 1300px; }
.ritual-portrait { position: relative; aspect-ratio: .75; border-radius: 999px 999px 4px 4px; overflow: hidden; }
.ritual-portrait video, .ritual-portrait img { width: 100%; height: 100%; object-fit: cover; }
.ritual h2 { font-size: clamp(48px, 7vw, 120px); line-height: .86; letter-spacing: -.065em; font-weight: 600; margin: 18px 0 40px; }
.ritual h2 .sw { font-weight: 400; color: var(--gold-2); letter-spacing: -.03em; }
.ritual ol { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.ritual li { counter-increment: r; display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid rgba(241,235,221,.2); }
.ritual li::before { content: counter(r, upper-roman); font-family: var(--f-serif); font-size: 30px; color: var(--gold-2); line-height: 1; }
.ritual li h4 { margin: 0 0 6px; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.ritual li p { margin: 0; font-size: 15px; opacity: .78; max-width: 52ch; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { position: relative; background: var(--ink); color: var(--cream); padding: 16vh var(--gutter) 40px; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, .6fr)); gap: var(--gutter); margin-left: max(14vw, 170px); }
.newsletter h3 { font-family: var(--f-serif); font-weight: 400; font-size: clamp(32px, 3.4vw, 54px); line-height: 1; margin: 0 0 24px; }
.newsletter form { display: flex; gap: 8px; max-width: 460px; border-bottom: 1px solid rgba(241,235,221,.4); padding-bottom: 8px; }
.newsletter input { flex: 1; min-width: 0; background: none; border: 0; color: var(--cream); font: inherit; font-size: 16px; outline: none; padding: 10px 0; }
.newsletter input::placeholder { color: rgba(241,235,221,.5); }
.newsletter button { font-weight: 600; font-size: 14px; }
.newsletter .ok { margin-top: 12px; font-family: var(--f-serif); font-style: italic; font-size: 18px; color: var(--gold-2); min-height: 1.3em; }
.footer-col h5 { margin: 0 0 14px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .55; font-weight: 600; }
.footer-col a { display: block; font-size: 15px; padding: 4px 0; opacity: .85; }
@media (hover: hover) { .footer-col a:hover { opacity: 1; color: var(--gold-2); } }
/* footer: the same lockup across the page */
.footer-logo { display: block; width: 92vw; height: auto; aspect-ratio: 11778.6 / 2122.2; margin: 14vh auto 0; color: var(--cream); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; font-size: 12px; opacity: .55; }

/* ==========================================================================
   Impressum & Datenschutz
   ========================================================================== */
.legal-doc { max-width: 760px; margin: 0 auto; padding: 10vh var(--gutter) 16vh; }
.legal-doc h1 { font-size: clamp(56px, 9vw, 132px); font-weight: 600; letter-spacing: -.055em; line-height: .9; margin: 22px 0 34px; }
.legal-doc .legal-lead { font-family: var(--f-serif); font-style: italic; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3; margin: 0 0 12px; }
.legal-doc h2 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; margin: 48px 0 10px; }
/* anchor targets (#kontakt) land below the fixed header, whichever way the page scrolls to them */
.legal-doc h2[id] { padding-top: calc(var(--header-h) + 20px); margin-top: calc(48px - var(--header-h) - 20px); }
.legal-doc p, .legal-doc li { font-size: 16.5px; line-height: 1.7; color: var(--ink-2); }
.legal-doc p { margin: 0 0 12px; }
.legal-doc ul { margin: 0 0 12px; padding-left: 1.1em; }
.legal-doc a { text-decoration: underline; text-underline-offset: 3px; }
.legal-doc .stand { margin-top: 56px; font-size: 13px; color: var(--muted); }
/* "Designed by" credit: the Webforging logo, linked to webforging.de */
.credit { margin-top: 28px; padding-top: 28px; border-top: 1px solid rgba(11,10,8,.18); }
.legal-doc .credit a { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; color: var(--muted); text-decoration: none; }
.credit span { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.credit img { height: 38px; width: auto; transition: transform .5s var(--ease); }
@media (hover: hover) { .credit a:hover img { transform: translateY(-2px); } }
.legal-rail a, .footer-bottom a { text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   Cart drawer
   ========================================================================== */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(11,10,8,.55); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .5s var(--ease); }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 10px; right: 10px; bottom: 10px; z-index: 81; width: min(460px, calc(100vw - 20px));
  background: var(--paper); color: var(--ink); border-radius: 18px; display: flex; flex-direction: column;
  transform: translateX(110%); transition: transform .7s var(--ease); overflow: hidden;
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid rgba(11,10,8,.12); }
.drawer-head h2 { margin: 0; font-size: 26px; letter-spacing: -.04em; font-weight: 600; }
.drawer-head h2 .sw { font-weight: 400; }
.x-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--cream-2); font-size: 18px; transition: transform .4s var(--ease); }
@media (hover: hover) { .x-btn:hover { transform: rotate(90deg); } }
.drawer-items { flex: 1; overflow-y: auto; padding: 8px 24px; }
.ship-bar { padding: 14px 24px; font-size: 13px; background: var(--cream); }
.ship-bar .bar { height: 3px; border-radius: 3px; background: rgba(11,10,8,.12); margin-top: 8px; overflow: hidden; }
.ship-bar .bar i { display: block; height: 100%; background: var(--crimson); transition: width .6s var(--ease); }
.line-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(11,10,8,.1); align-items: center; }
.line-item img { width: 76px; height: 96px; object-fit: cover; border-radius: 40px 40px 4px 4px; }
.line-item h4 { margin: 0; font-size: 17px; letter-spacing: -.02em; }
.line-item .v { font-family: var(--f-serif); font-style: italic; color: var(--muted); font-size: 15px; }
.qty { display: inline-flex; align-items: center; margin-top: 8px; border: 1px solid rgba(11,10,8,.2); border-radius: 99px; height: 32px; }
.qty button { width: 30px; height: 30px; font-size: 16px; }
.qty span { min-width: 22px; text-align: center; font-size: 14px; font-weight: 600; }
.line-item .lp { font-weight: 600; text-align: right; }
.line-item .rm { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); text-decoration: underline; }
.drawer-empty { padding: 60px 0; text-align: center; font-family: var(--f-serif); font-size: 26px; color: var(--muted); }
.drawer-empty .sw-cap { color: var(--crimson); }
.drawer-foot { padding: 20px 24px 24px; border-top: 1px solid rgba(11,10,8,.12); }
.drawer-foot .sum { display: flex; justify-content: space-between; font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.drawer-foot small { display: block; color: var(--muted); margin-bottom: 16px; }
.drawer-foot .btn { width: 100%; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 95; transform: translate(-50%, calc(100% + 60px)); visibility: hidden; transition: transform .6s var(--ease), visibility 0s .6s; background: var(--ink); color: var(--cream); padding: 14px 22px; border-radius: 99px; font-size: 14px; font-weight: 500; display: flex; gap: 12px; align-items: center; box-shadow: 0 20px 50px rgba(0,0,0,.4); white-space: nowrap; }
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform .6s var(--ease); }
.toast .sw { color: var(--gold-2); font-size: 18px; }

/* ==========================================================================
   Page transition curtain — a frame that closes and opens
   ========================================================================== */
.curtain { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.curtain .panel { position: absolute; inset: 0; background: #0b0a08 url('../assets/vt-mark.png') center / 342px auto no-repeat; clip-path: inset(100% 0 0 0); }
html.vt .curtain { display: none; }
html.cd-entering .curtain .panel { clip-path: inset(0 0 0 0); }

/* ==========================================================================
   Product page
   ========================================================================== */
.pdp, .legal-page { background: var(--paper); color: var(--ink); padding-top: var(--header-h); }
.pdp .site-header, .legal-page .site-header { color: var(--ink); text-shadow: none; background: rgba(247,243,234,.82); backdrop-filter: blur(10px); }
.pdp .site-header .pill, .legal-page .site-header .pill { background: var(--ink); color: var(--cream); }
.pdp .site-header .pill .count, .legal-page .site-header .pill .count { background: var(--cream); color: var(--ink); }
.pdp-wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 90px); padding: 4vh var(--gutter) 12vh; max-width: 1520px; margin: 0 auto; }
.pdp-media { position: sticky; top: calc(var(--header-h) + 16px); align-self: start; }
.pdp-stage { position: relative; aspect-ratio: .82; border-radius: 999px 999px 8px 8px; overflow: hidden; background: var(--cream-2); }
.pdp-stage img, .pdp-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .7s var(--ease); }
.pdp-stage .hidden { opacity: 0; }
.pdp-thumbs { display: flex; gap: 10px; margin-top: 14px; }
.pdp-thumbs button { width: 72px; height: 88px; border-radius: 36px 36px 4px 4px; overflow: hidden; opacity: .5; transition: opacity .3s; position: relative; outline-offset: 3px; }
.pdp-thumbs button[aria-pressed="true"] { opacity: 1; outline: 1px solid var(--ink); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumbs .play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 18px; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.pdp-info { padding-top: 4vh; }
.crumbs { font-size: 13px; color: var(--muted); }
@media (hover: hover) { .crumbs a:hover { color: var(--ink); } }
.pdp-info h1 { margin: 22px 0 0; padding-bottom: .12em; font-size: clamp(64px, 8vw, 140px); line-height: .82; letter-spacing: -.075em; font-weight: 600; }
.pdp-info .swash { font-family: var(--f-serif); font-size: clamp(24px, 2.2vw, 34px); line-height: 1.1; margin: 18px 0 0; }
.pdp-info .swash .sw-cap { color: var(--crimson); }
.pdp-info .lead { font-size: 17px; line-height: 1.6; color: #2b261e; max-width: 52ch; margin: 28px 0; }
.opt-label { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 28px 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { height: 42px; padding: 0 18px; border-radius: 99px; border: 1px solid rgba(11,10,8,.25); font-size: 14px; font-weight: 500; transition: all .3s; }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.pdp-buy { display: flex; gap: 12px; align-items: center; margin-top: 32px; flex-wrap: wrap; }
.pdp-buy .qty { height: 54px; margin: 0; }
.pdp-buy .qty button { width: 44px; height: 52px; }
.pdp-buy .btn { flex: 1; min-width: 220px; }
.assure { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-size: 13px; color: var(--muted); }
.assure span::before { content: '✦ '; color: var(--gold); }
.acc { margin-top: 40px; border-top: 1px solid rgba(11,10,8,.18); }
.acc details { border-bottom: 1px solid rgba(11,10,8,.18); }
.acc summary { list-style: none; display: flex; justify-content: space-between; padding: 20px 0; cursor: pointer; font-weight: 600; font-size: 16px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '+'; font-weight: 400; font-size: 22px; line-height: 1; transition: transform .4s var(--ease); }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc .acc-body { padding: 0 0 22px; font-size: 15px; line-height: 1.6; color: #2b261e; }
.related { padding: 12vh var(--gutter) 14vh; background: var(--cream); }
.related h2 { margin: 0 0 6vh; font-size: clamp(44px, 6vw, 96px); letter-spacing: -.065em; line-height: .86; font-weight: 600; }
.related h2 .sw { font-weight: 400; color: var(--crimson); }
.related .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-left: 0; }
.pdp-hero-band { position: relative; height: 70vh; overflow: hidden; }
.pdp-hero-band video, .pdp-hero-band img { width: 100%; height: 100%; object-fit: cover; }
.pdp-hero-band h2 { position: absolute; inset: auto 0 10vh 0; text-align: center; color: var(--paper); font-family: var(--f-serif); font-weight: 400; font-size: clamp(32px, 4.4vw, 74px); line-height: 1; text-shadow: 0 4px 40px rgba(0,0,0,.6); padding: 0 var(--gutter); margin: 0; }

/* ==========================================================================
   Reveal helpers
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(40px); }
.split .line { display: block; overflow: hidden; }
.split .line > span { display: inline-block; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chapter-nav { display: none; }
  .legal-rail { display: none; }
  .manifesto-inner, .chapter-grid, .collection-head, .grid, .ritual-grid, .footer-top { margin-left: 0; }
  .tapers-track { padding-left: 8vw; }
  .tapers-progress { left: 8vw; }
  .atelier-copy { left: var(--gutter); }
}
@media (max-width: 860px) {
  :root { --header-h: 58px; }
  .nav-main { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .brand { font-size: 12.5px; }
  .frame { width: 56vw; height: calc(56vw / .76); }
  .fig-woman { width: 58vw; left: -10vw; top: 30vh; }
  .fig-man { width: 54vw; right: -12vw; top: 34vh; }
  .fig-putto { width: 24vw; left: 64%; top: 9vh; }
  .hero-candle { width: 20vw; margin-left: -10vw; top: 14vh; }
  .hero-chip { left: 50%; top: 44vh; bottom: auto; margin-left: -100px; }
  .hero-chip::before { display: none; }
  .intro-usp { display: none; }
  .chapter-grid, .ritual-grid, .pdp-wrap { grid-template-columns: minmax(0, 1fr); }
  .chapter-media { order: -1; max-width: 520px; }
  .chapter-media .mini { left: auto; right: 0; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .manifesto-meta { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hands-float { position: relative; right: auto; top: 0; width: 46vw; margin: 0 0 40px auto; }
  .manifesto-inner { margin-right: 0; }
  .grid, .related .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card .quick { transform: none; left: auto; right: 10px; bottom: 10px; width: 40px; height: 40px; padding: 0; border-radius: 50%; font-size: 0; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
  .card .quick::before { content: '+'; font-size: 22px; font-weight: 400; line-height: 1; }
  .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .newsletter { grid-column: 1 / -1; }
  .atelier-copy { grid-template-columns: minmax(0, 1fr); bottom: 6vh; gap: 14px; }
  .atelier-copy p { display: none; }
  .pdp-media { position: relative; top: 0; }
  .pdp-wrap { gap: 20px; padding-top: 2vh; }
  .pdp-info { padding-top: 0; }
  .pdp-info .eyebrow { margin-top: 18px !important; }
  .pdp-thumbs { margin-top: 10px; gap: 8px; }
  .pdp-thumbs button { width: 56px; height: 70px; }
  .tapers-intro { flex-basis: 78vw; }
  .taper-card { flex-basis: 70vw; }
  .chapter-sub { bottom: 18vh; }
}
@media (max-width: 520px) {
  .grid, .related .grid { gap: 28px 12px; }
  .card h3 { font-size: 18px; }
  .card .k { font-size: 15px; }
  .intro-claim { font-size: 34px; }
  .chip-txt em { display: none; }
  .pill .label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .grain { display: none; }
}

/* ==========================================================================
   Page transitions — native cross-document View Transitions
   Every navigation: the page lifts away, the atelier mark shows for a breath,
   the next page rises. Card → product page: the product image flies instead.
   (Named elements only exist for the duration of a morph — see main.js.)
   ========================================================================== */
@view-transition { navigation: auto; }
::view-transition { background: #0b0a08 url('../assets/vt-mark.png') center / 342px auto no-repeat; }
::view-transition-old(root) { animation: vt-lift .55s cubic-bezier(.7, 0, .3, 1) both; }
::view-transition-new(root) { animation: vt-rise .75s cubic-bezier(.7, 0, .3, 1) .3s both; }
@keyframes vt-lift { to { clip-path: inset(0 0 100% 0); transform: translateY(-5vh); } }
@keyframes vt-rise { from { clip-path: inset(100% 0 0 0); transform: translateY(5vh); } to { clip-path: inset(0 0 0 0); transform: none; } }

html.vt-morph::view-transition { background: var(--paper); }
html.vt-morph::view-transition-old(root) { animation: vt-fade-out .3s ease both; }
html.vt-morph::view-transition-new(root) { animation: vt-fade-in .5s ease .2s both; }
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-fade-in { from { opacity: 0; } }
::view-transition-group(pdp-hero) { animation-duration: .8s; animation-timing-function: cubic-bezier(.2, .75, .15, 1); }
/* the small card snapshot would blur when scaled up — let the sharp product-page image take over early */
::view-transition-old(pdp-hero) { animation: vt-fade-out .32s ease both; }
::view-transition-new(pdp-hero) { animation: vt-fade-in .32s ease both; }
/* the header is identical on both pages: it simply stays during a morph */
::view-transition-group(cd-header) { animation-duration: .4s; }
::view-transition-old(pdp-hero), ::view-transition-new(pdp-hero) { height: 100%; object-fit: cover; overflow: hidden; }
/* the clicked card is captured in its calm state: campaign image, no hover zoom, no button */
.card.vt-src .media img { transform: none !important; transition: none !important; }
.card.vt-src .media img.alt, .card.vt-src .quick { opacity: 0 !important; transition: none !important; }
.card.vt-src.vt-alt .media img.alt { opacity: 1 !important; }   /* the packshot was on screen: it is what flies */

/* a click answers at once with a thin gold line while the next page arrives */
html.is-leaving body::after { content: ''; position: fixed; left: 0; top: 0; z-index: 200; width: 100%; height: 2px; background: var(--gold); transform-origin: left; animation: leaving 1.4s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes leaving { from { transform: scaleX(0); } to { transform: scaleX(.85); } }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* fallback for browsers without cross-document View Transitions */
.fx-backdrop { position: fixed; inset: 0; z-index: 98; background: var(--paper); opacity: 0; pointer-events: none; }
.fx-clone { position: fixed; z-index: 99; overflow: hidden; pointer-events: none; border-radius: 999px 999px 4px 4px; box-shadow: 0 40px 90px rgba(0,0,0,.35); }
.fx-clone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Il Cielo — the sky painting and one sentence; the candle arrives on scroll
   ========================================================================== */
.intro { height: 100vh; height: 100svh; }
html[data-page="home"] { overscroll-behavior-y: none; }
.painting { position: absolute; inset: 0; left: 0; top: 0; width: 100%; height: 100%; transform: none; }
.layer-sky::after { background: linear-gradient(180deg, rgba(11,10,8,.28) 0%, transparent 26%, transparent 62%, rgba(11,10,8,.5) 100%); }
.sky-copy { position: absolute; z-index: 5; left: 0; right: 0; top: 50%; transform: translateY(-58%); text-align: center; color: var(--paper); pointer-events: none; padding: 0 var(--gutter); }
.sky-copy .eyebrow { color: var(--paper); text-shadow: 0 1px 14px rgba(0,0,0,.35); }
.sky-copy .eyebrow::before { display: none; }
.sky-copy h1 { margin: 22px 0 0; font-size: clamp(56px, 10.5vw, 196px); font-weight: 600; line-height: .86; letter-spacing: -.065em; text-shadow: 0 10px 70px rgba(40,30,10,.35); }
.sky-copy h1 .sw { font-weight: 400; letter-spacing: -.025em; }
.sky-copy h1 .line { display: block; overflow: hidden; padding: 0 .04em .08em; }
.sky-copy h1 .line > span { display: inline-block; }
.hero-scroll { position: absolute; z-index: 5; left: 50%; bottom: 5vh; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--paper); opacity: .85; }
.hero-scroll i { width: 1px; height: 42px; background: linear-gradient(var(--paper), transparent); transform-origin: top; animation: hint 2.2s var(--ease) infinite; }
.hero-candle { width: min(12.5vw, 22vh); left: 50%; top: 12vh; margin-left: calc(min(12.5vw, 22vh) / -2); }
.hero-chip { left: 50%; top: calc(12vh + min(12.5vw, 22vh) / .587 + 16px); transform: none; }
.hero-chip::before { content: ''; position: absolute; left: 50%; bottom: 100%; width: 1px; height: 14px; background: rgba(247,243,234,.8); }
.btn.glass { background: rgba(247,243,234,.14); color: var(--paper); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(247,243,234,.5); }
@media (max-width: 860px) {
  .sky-copy h1 { font-size: 15vw; }
  .hero-candle { width: 30vw; margin-left: -15vw; top: 12vh; }
  .hero-chip { top: calc(12vh + 30vw / .587 + 14px); }
}

/* opening state of the hero before any script runs */
.intro .layer-fig, .intro .hero-candle, .hero-chip { opacity: 0; }
html.no-js .intro .layer-fig { opacity: 1; }

/* ==========================================================================
   Mobile menu
   ========================================================================== */
.menu-btn { display: none; position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid currentColor; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 1px; background: currentColor; margin: 0; transition: transform .5s var(--ease); }
.menu-btn span:first-child { top: 16px; }
.menu-btn span:last-child { top: 22px; }
body.menu-open .menu-btn span:first-child { transform: translateY(3px) rotate(45deg); }
body.menu-open .menu-btn span:last-child { transform: translateY(-3px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 58; display: flex; flex-direction: column; justify-content: center; padding: 90px var(--gutter) 40px;
  background: #0b0a08; color: var(--cream); clip-path: inset(0 0 100% 0); pointer-events: none; transition: clip-path .7s var(--ease-io); }
.menu.open { clip-path: inset(0 0 0 0); pointer-events: auto; }
.menu ol { list-style: none; margin: 0; padding: 0; }
.menu li { overflow: hidden; border-top: 1px solid rgba(241,235,221,.14); }
.menu li:last-child { border-bottom: 1px solid rgba(241,235,221,.14); }
.menu a { display: flex; align-items: baseline; gap: 14px; padding: 13px 0 15px; font-family: var(--f-serif); font-size: clamp(38px, 11vw, 60px); line-height: 1; letter-spacing: -.01em;
  transform: translateY(110%); transition: transform .8s var(--ease) calc(.12s + var(--i) * .05s); }
.menu.open a { transform: none; }
.menu a .n { width: 34px; flex: none; font-size: 14px; color: var(--gold-2); }
.menu-foot { margin: 28px 0 0; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(241,235,221,.55); }
body.menu-open .site-header { color: var(--cream) !important; background: transparent !important; backdrop-filter: none !important; text-shadow: none; }
body.menu-open .site-header .pill { background: var(--cream); color: var(--ink); }
body.menu-open .site-header .pill .count { background: var(--ink); color: var(--cream); }
.m-only { display: none; }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .header-actions { gap: 10px; }
  .hero-chip { display: none; }
  .m-only { display: inline; }
}

/* the fixed side rails step aside while the footer (logo + copyright) is on screen */
.legal-rail { transition: opacity .5s, color .5s; }
body.footer-in .chapter-nav, body.footer-in .legal-rail { opacity: 0; pointer-events: none; }
