/* =========================================================
   STILL HOLDING ON: creative version
   Brand colours live in :root. Change them there.
   Deep purple = primary, gold = highlights + actions,
   ivory = main background, charcoal = body text.
   Ankara-inspired pattern is used only around the collection.
   ========================================================= */

:root {
  --purple: #3B1465;
  --purple-deep: #2A0E49;
  --purple-soft: #5A2A8C;
  --gold: #C9A24B;
  --gold-light: #E2C57E;
  --ivory: #FAF6EE;
  --ivory-dark: #F1EADB;
  --charcoal: #2B2B2B;
  --muted: #5E5668;
  --line: #E3DACB;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 96px;            /* updated automatically by script.js */

  --font-head: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;

    overflow-x: hidden;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--charcoal);
  background: var(--ivory);
  overflow-x: hidden;
  overflow-x: clip;            /* "clip" does not break sticky/fixed headers */
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }

::selection { background: var(--gold); color: var(--purple-deep); }

img { max-width: 100%; display: block; }
a { color: var(--purple); }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--purple); line-height: 1.08; margin: 0 0 .5em; font-weight: 600; }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1.1em; }

.container { width: min(1160px, 92%); margin-inline: auto; }
.narrow { width: min(800px, 92%); }
.center { text-align: center; }

section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }

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

.eyebrow {
  margin: 0 0 12px;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #9A7627;
}

/* ---------- Buttons ---------- */
.btn {
  --mx: 0px; --my: 0px;
  position: relative;
  display: inline-block;
  padding: 15px 30px;
  font: 700 .98rem/1.2 var(--font-body);
  letter-spacing: .04em;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transform: translate(var(--mx), var(--my));
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn::after {                       /* light sweep on hover */
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-gold { background: var(--gold); color: var(--purple-deep); }
.btn-gold:hover { background: var(--gold-light); box-shadow: 0 10px 30px rgba(201,162,75,.45); }
.btn-purple { background: var(--purple); color: var(--ivory); }
.btn-purple:hover { background: var(--purple-soft); box-shadow: 0 10px 26px rgba(59,20,101,.35); }
.btn-outline-light { color: var(--ivory); border-color: var(--gold-light); background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.btn-small { padding: 10px 20px; font-size: .9rem; }
.btn-block { display: block; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }

/* ---------- Opening screen + scroll progress ---------- */
.preloader { display: none; }
.js .preloader {
  position: fixed; inset: 0; z-index: 999;
  display: grid; place-items: center;
  background: var(--purple-deep);
  transition: transform 1s var(--ease) .15s, visibility 0s 1.2s;
}
.preloader.done { transform: translateY(-100%); visibility: hidden; }
.pre-inner { display: grid; gap: 22px; justify-items: center; }
.pre-inner img { width: 88px; animation: preBreath 1.5s ease-in-out infinite; }
.pre-bar { position: relative; width: 130px; height: 2px; background: rgba(226,197,126,.25); overflow: hidden; border-radius: 2px; }
.pre-bar::after { content: ''; position: absolute; inset: 0; background: var(--gold); transform: translateX(-100%); animation: preBar 1.4s var(--ease) infinite; }

.progress {
  position: fixed; top: 0; left: 0; z-index: 200;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Sticky header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; transition: box-shadow .3s; }
.site-header.compact { box-shadow: 0 8px 26px rgba(42,14,73,.2); }

.brand-line {
  background: var(--purple-deep);
  color: var(--gold-light);
  text-align: center;
  padding: 9px 16px;
  font-size: .92rem;
  line-height: 1.4;
}
.brand-line strong { color: var(--gold); letter-spacing: .14em; font-weight: 700; }

.nav-bar { background: rgba(250,246,238,.98); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 18px; padding: 10px 0; }
.nav-logo { flex: none; line-height: 0; }
.nav-logo img { height: 42px; width: auto; transition: transform .5s var(--ease); }
.nav-logo:hover img { transform: rotate(-8deg) scale(1.1); }
.nav-logo .logo-gold { display: none; }

.main-nav { margin-inline: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  position: relative; display: block; padding: 8px 13px;
  text-decoration: none; color: var(--purple); font-weight: 700; font-size: .95rem;
}
.main-nav a::after {
  content: ''; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

.menu-toggle { display: none; position: relative; width: 46px; height: 46px; padding: 0; background: none; border: 0; cursor: pointer; }
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block; position: absolute; left: 11px; width: 24px; height: 2px;
  background: var(--purple); border-radius: 2px;
  transition: transform .35s var(--ease), background .2s;
}
.menu-icon { top: 22px; }
.menu-icon::before, .menu-icon::after { content: ''; left: 0; }
.menu-icon::before { top: -7px; }
.menu-icon::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  padding: 56px 0;
  color: var(--ivory);
  background:
    url('images/hero-bg.jpg') center / cover no-repeat,
    linear-gradient(135deg, #8E4ED8 0%, #54248F 50%, #2A0E49 100%);
}
.hero-inner {
  max-width: 1120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
}
.hero-copy { flex: 1 1 52%; max-width: 560px; text-align: left; }
.hero-visual {
  --bw: clamp(170px, 17.5vw, 220px);   /* book width: everything scales from this */
  flex: 1 1 44%;
  position: relative;
  display: flex;
  justify-content: center;
}

/* text */
.hero-kicker {
  display: inline-block;
  margin: 0 0 18px;
  padding: 7px 16px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(42,14,73,.35);
  border: 1px solid rgba(226,197,126,.55);
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.hero h1 {
  color: var(--ivory);
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 1;
  letter-spacing: .05em;
  margin: 0 0 .22em;
  text-shadow: 0 4px 24px rgba(42,14,73,.45);
}
.hero h1 span { display: block; }
.hero h1 .gold-text {
  display: inline-block;
  background: linear-gradient(100deg, #F6DD9A 0%, #E2C57E 35%, #C9A24B 70%, #F1D58D 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  text-shadow: none;
}
.hero-sub { text-wrap: balance; font-family: var(--font-head); font-size: clamp(1.35rem, 2.6vw, 1.9rem); font-style: italic; color: var(--gold-light); margin: 0 0 .6em; }
.hero-text { text-wrap: balance; font-size: 1.05rem; max-width: 470px; margin: 0 0 1.1em; color: rgba(250,246,238,.92); }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 6px; padding: 0; }
.hero-chips li {
  padding: 6px 14px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ivory); background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); border-radius: 999px;
}
.hero .btn-row { justify-content: flex-start; margin-top: 26px; }
.hero .btn-gold { box-shadow: 0 8px 22px rgba(201,162,75,.45); animation: ctaPulse 2.8s ease-in-out infinite; }

/* sparkles */
.hero-sparkles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-sparkles span {
  position: absolute; left: var(--x); top: var(--y);
  width: var(--s); height: var(--s); border-radius: 50%;
  background: #FFF1C2; box-shadow: 0 0 10px 3px rgba(255,226,150,.75);
  opacity: 0; animation: twinkle 4.2s ease-in-out infinite; animation-delay: var(--d);
}

/* ----- the animated book ----- */
.hb-glow {
  position: absolute; left: 50%; top: 50%; width: 150%; aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(255,226,150,.55) 0%, rgba(255,226,150,0) 62%);
  animation: glowPulse 5s ease-in-out infinite;
}
.hb-stage {
  position: relative;
  width: calc(var(--bw) * 2.15);
  height: calc(var(--bw) * 1.908 + 44px);
  perspective: 1500px;
}
.hb-float { position: absolute; inset: 0; transform-style: preserve-3d; animation: bookFloat 6s ease-in-out infinite alternate; }
.hb-book {
  position: absolute; left: 50%; top: 18px;
  width: var(--bw); height: calc(var(--bw) * 1.908);
  font-size: calc(var(--bw) / 12.5);
  transform-style: preserve-3d; transform-origin: 0 50%;
  transform: translateX(-50%) rotateY(26deg) rotateX(3deg);
  animation: bookPose 22s infinite;
}
.hb-back, .hb-edge, .hb-page, .hb-leaf { position: absolute; }
.hb-back { inset: 0; background: var(--purple-deep); border-radius: 3px 6px 6px 3px; transform: translateZ(-12px); }
.hb-edge {
  left: 100%; top: 3px; width: 12px; height: calc(100% - 6px); transform-origin: 0 0; transform: rotateY(90deg);
  background: repeating-linear-gradient(90deg, #FBF7EE 0 1px, #D9CFBC 1px 2px);
}
.hb-leaf { left: 0; top: 0; width: 100%; height: 100%; transform-style: preserve-3d; transform-origin: 0 50%; will-change: transform; }
.hb-leaf-1, .hb-leaf-2, .hb-leaf-3 { top: 3px; height: calc(100% - 6px); width: calc(100% - 3px); }
.hb-leaf-0 { animation: leaf0 22s infinite; transform: translateZ(0); }
.hb-leaf-1 { animation: leaf1 22s infinite; transform: translateZ(-2px); }
.hb-leaf-2 { animation: leaf2 22s infinite; transform: translateZ(-4px); }
.hb-leaf-3 { animation: leaf3 22s infinite; transform: translateZ(-6px); }

.hb-face, .hb-page {
  inset: 0; position: absolute; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 12% 11%;
  color: var(--purple); font-family: var(--font-head);
  background: linear-gradient(90deg, rgba(70,40,20,.28) 0, rgba(70,40,20,0) 13%), #FBF7EE;
  border-radius: 0 4px 4px 0;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.hb-face.back { transform: rotateY(180deg); }
.hb-final { inset: 3px 3px 3px 0; transform: translateZ(-8px); }
.hb-final img { width: 34%; margin-bottom: 8%; }
.hb-face.cover, .hb-face.endpaper { padding: 0; border-radius: 0 5px 5px 0; }
.hb-face.cover img { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.hb-face.cover::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.45) 0, rgba(255,255,255,.14) 2.5%, rgba(0,0,0,0) 9%),
    linear-gradient(115deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 38%);
}
.hb-face.endpaper {
  background:
    radial-gradient(circle at 50% 50%, rgba(226,197,126,.18) 0 2px, transparent 3px) 0 0 / 16px 16px,
    linear-gradient(160deg, #5A2A8C, #2A0E49);
}
.hb-face.endpaper img { width: 44%; }
.pg-orn { color: #C9A24B; font-size: 1.1em; margin-bottom: .5em; }
.pg-title { font-size: 1.7em; line-height: 1.05; letter-spacing: .04em; text-transform: uppercase; font-weight: 700; }
.pg-word { font-size: 2.1em; font-style: italic; font-weight: 600; line-height: 1.05; }
.pg-line { display: block; width: 36%; height: 2px; margin: .8em auto; background: linear-gradient(90deg, transparent, #C9A24B, transparent); }
.pg-small { font-size: 1em; font-style: italic; color: var(--muted); line-height: 1.3; }
.pg-quote { margin: 0; font-size: 1.35em; font-style: italic; font-weight: 600; line-height: 1.25; }

.hb-shadow {
  position: absolute; left: 50%; bottom: 4px; width: calc(var(--bw) * 1.5); height: 22px;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(ellipse, rgba(20,6,38,.55), rgba(20,6,38,0) 70%);
  animation: shadowPose 22s infinite;
}

/* ----- hero entrance + book animation: start when the opening screen lifts ----- */
.js .hero-copy > *, .js .hero-visual { opacity: 0; }
.is-ready .hero-copy > * { opacity: 1; animation: hbUp .8s cubic-bezier(.2,.7,.2,1) both; }
.is-ready .hero-copy > :nth-child(1) { animation-delay: .1s; }
.is-ready .hero-copy > :nth-child(2) { animation-delay: .22s; }
.is-ready .hero-copy > :nth-child(3) { animation-delay: .34s; }
.is-ready .hero-copy > :nth-child(4) { animation-delay: .46s; }
.is-ready .hero-copy > :nth-child(5) { animation-delay: .56s; }
.is-ready .hero-copy > :nth-child(6) { animation-delay: .66s; }
.is-ready .hero-visual { opacity: 1; animation: hbVisIn 1s cubic-bezier(.2,.7,.2,1) both; }
.js .hb-glow, .js .hb-float, .js .hb-book, .js .hb-shadow, .js .hb-leaf,
.js .hero-sparkles span, .js .hero .btn-gold { animation-play-state: paused; }
.is-ready .hb-glow, .is-ready .hb-float, .is-ready .hb-book, .is-ready .hb-shadow, .is-ready .hb-leaf,
.is-ready .hero-sparkles span, .is-ready .hero .btn-gold { animation-play-state: running; }

@keyframes hbUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes hbVisIn { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes bookFloat { from { transform: translateY(-6px); } to { transform: translateY(8px); } }
@keyframes glowPulse { 0%, 100% { opacity: .75; transform: translate(-50%,-50%) scale(.94); } 50% { opacity: 1; transform: translate(-50%,-50%) scale(1.06); } }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4) translateY(0); } 50% { opacity: 1; transform: scale(1) translateY(-14px); } }
@keyframes ctaPulse { 0%, 100% { box-shadow: 0 8px 22px rgba(201,162,75,.45); } 50% { box-shadow: 0 8px 30px rgba(255,214,110,.85); } }
@keyframes bookPose {
  0%, 8%   { transform: translateX(-50%) rotateY(26deg) rotateX(3deg); animation-timing-function: cubic-bezier(.55,.05,.25,1); }
  18%, 83% { transform: translateX(0) rotateY(0deg) rotateX(5deg); animation-timing-function: cubic-bezier(.55,.05,.25,1); }
  92%, 100% { transform: translateX(-50%) rotateY(26deg) rotateX(3deg); }
}
@keyframes shadowPose {
  0%, 8%   { width: calc(var(--bw) * 1.2); animation-timing-function: ease-in-out; }
  18%, 83% { width: calc(var(--bw) * 2.1); animation-timing-function: ease-in-out; }
  92%, 100% { width: calc(var(--bw) * 1.2); }
}
@keyframes leaf0 {
  0%, 8% { transform: translateZ(0px) rotateY(0deg); animation-timing-function: cubic-bezier(.55,.05,.25,1); }
  18%, 83% { transform: translateZ(-6px) rotateY(-180deg); animation-timing-function: cubic-bezier(.55,.05,.25,1); }
  92%, 100% { transform: translateZ(0px) rotateY(0deg); }
}
@keyframes leaf1 {
  0%, 24% { transform: translateZ(-2px) rotateY(0deg); animation-timing-function: cubic-bezier(.55,.05,.25,1); }
  31%, 76% { transform: translateZ(-4px) rotateY(-180deg); animation-timing-function: cubic-bezier(.55,.05,.25,1); }
  81%, 100% { transform: translateZ(-2px) rotateY(0deg); }
}
@keyframes leaf2 {
  0%, 36% { transform: translateZ(-4px) rotateY(0deg); animation-timing-function: cubic-bezier(.55,.05,.25,1); }
  43%, 71% { transform: translateZ(-2px) rotateY(-180deg); animation-timing-function: cubic-bezier(.55,.05,.25,1); }
  76%, 100% { transform: translateZ(-4px) rotateY(0deg); }
}
@keyframes leaf3 {
  0%, 48% { transform: translateZ(-6px) rotateY(0deg); animation-timing-function: cubic-bezier(.55,.05,.25,1); }
  55%, 66% { transform: translateZ(0px) rotateY(-180deg); animation-timing-function: cubic-bezier(.55,.05,.25,1); }
  71%, 100% { transform: translateZ(-6px) rotateY(0deg); }
}

/* Floating pre-order button (hidden on desktop, shown on mobile below) */
.fab-preorder { display: none; }

/* ---------- Ribbon ---------- */
.ribbon { background: var(--purple-deep); border-block: 1px solid rgba(201,162,75,.45); overflow: hidden; padding: 16px 0; }
.ribbon-track { display: flex; align-items: center; gap: 34px; width: max-content; animation: ribbon 40s linear infinite; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
.ribbon span { font-family: var(--font-head); font-size: clamp(1.4rem, 3vw, 2.1rem); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.ribbon i { width: 9px; height: 9px; background: var(--gold-light); transform: rotate(45deg); flex: none; }

/* ---------- Scroll reveals ---------- */
.js [data-reveal] { opacity: 0; }
.js [data-reveal].in { opacity: 1; animation: revealUp 1s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 100ms); }
.js [data-reveal="left"].in { animation-name: revealLeft; }
.js [data-reveal="right"].in { animation-name: revealRight; }
.js [data-reveal="zoom"].in { animation-name: revealZoom; }
.js [data-reveal="clip"] { opacity: 1; }
.js [data-reveal="clip"].in { animation: none; }
.js [data-reveal="clip"]::after {          /* curtain that lifts to reveal the picture */
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: var(--purple); transform-origin: 50% 0;
  transition: transform 1.2s var(--ease) calc(var(--i, 0) * 100ms);
}
.js [data-reveal="clip"].in::after { transform: scaleY(0); }

.w { display: inline-block; }
.js .w { opacity: 0; transform: translateY(.6em) rotate(3deg); transition: opacity .7s var(--ease) calc(var(--i) * 80ms), transform .7s var(--ease) calc(var(--i) * 80ms); }
.js .in .w { opacity: 1; transform: none; }

/* ---------- Meaning ---------- */
.meaning { background: var(--ivory); }
.meaning-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: end; }
.rule { display: block; width: 96px; height: 3px; background: var(--gold); margin-top: 24px; transform-origin: left; }
.js .rule { transform: scaleX(0); transition: transform 1.1s var(--ease) .4s; }
.js .in .rule { transform: scaleX(1); }
.meaning-body p { font-size: 1.2rem; margin: 0; }

.scripture {
  position: relative; margin: clamp(48px, 7vw, 80px) 0 40px;
  padding: clamp(40px, 6vw, 76px);
  background: var(--purple); color: var(--ivory);
  border-radius: 28px; overflow: hidden; text-align: center;
}
.scripture::before {
  content: ''; position: absolute; inset: -40%;
  background:
    radial-gradient(circle at 30% 20%, rgba(226,197,126,.24), transparent 45%),
    radial-gradient(circle at 80% 90%, rgba(90,42,140,.9), transparent 50%);
  animation: drift 14s ease-in-out infinite alternate;
}
.scripture > * { position: relative; }
.scripture .qmark { position: absolute; top: -14px; left: 26px; font-family: var(--font-head); font-size: 12rem; line-height: 1; color: rgba(226,197,126,.2); }
.scripture p {
  margin: 0 auto 20px; max-width: 840px;
  font-family: var(--font-head); font-style: italic;
  font-size: clamp(1.7rem, 3.6vw, 2.7rem); line-height: 1.3; color: var(--ivory);
}
.hold-word {
  color: var(--gold); font-style: normal; font-weight: 700; letter-spacing: .08em;
  background: linear-gradient(var(--gold), var(--gold)) 0 100% / 100% 3px no-repeat;
}
.js .hold-word { background-size: 0 3px; transition: background-size 1.3s var(--ease) .8s; }
.js .in .hold-word { background-size: 100% 3px; }
.scripture footer { color: var(--gold-light); font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
.meaning-end { max-width: 780px; margin: 0 auto; text-align: center; font-size: 1.2rem; }

.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 32px); margin-top: clamp(56px, 8vw, 96px); }
.photo-pair figure { position: relative; margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--ivory-dark); }
.photo-pair figure:nth-child(2) { margin-top: clamp(30px, 6vw, 80px); }
.photo-pair figure:nth-child(2) img { object-position: 28% 50%; }
.photo-pair img { width: 100%; height: 100%; object-fit: cover; transform: translate3d(0, var(--py, 0px), 0) scale(1.18); }

/* ---------- Curved section edges ---------- */
.curved::before, .curved::after {
  content: ''; position: absolute; left: -6%; width: 112%;
  height: clamp(40px, 6vw, 80px); z-index: 2; pointer-events: none;
}
.curved::before { top: -1px; background: var(--edge-top, var(--ivory)); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.curved::after { bottom: -1px; background: var(--edge-bottom, var(--ivory)); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }

/* ---------- Story ---------- */
.story { background: var(--purple-deep); color: var(--ivory); padding-block: clamp(120px, 14vw, 190px); }
.story h2 { color: var(--ivory); }
.story .eyebrow { color: var(--gold-light); }
.story-grid { display: grid; grid-template-columns: minmax(260px, .8fr) 1.2fr; gap: clamp(30px, 6vw, 100px); align-items: start; }
.story-side { align-self: stretch; }
.story-sticky { position: sticky; top: calc(var(--header-h) + 40px); }
.story-line { position: relative; width: 3px; height: 120px; background: rgba(226,197,126,.25); margin-top: 28px; border-radius: 3px; overflow: hidden; }
.story-line span { position: absolute; inset: 0; background: var(--gold); transform-origin: top; transform: scaleY(var(--sp, 0)); }
.story-p {
  font-size: clamp(1.25rem, 2.2vw, 1.65rem); line-height: 1.6; margin: 0 0 1.6em;
  color: rgba(250,246,238,.55);
  transition: color .6s var(--ease), transform .6s var(--ease);
}
.story-p.was-lit { color: rgba(250,246,238,.8); }
.story-p.is-lit { color: var(--ivory); transform: translateX(8px); }
.story-close {
  margin: clamp(60px, 9vw, 110px) 0 0; text-align: center;
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.7rem, 5.6vw, 4rem); letter-spacing: .08em; line-height: 1.15;
  color: var(--gold);
}

/* ---------- Author ---------- */
.author { background: var(--ivory); }
.author-grid { display: grid; grid-template-columns: minmax(280px, .8fr) 1.2fr; gap: clamp(36px, 7vw, 100px); align-items: center; }
.portrait { position: relative; width: 100%; max-width: 420px; margin-inline: auto; }
.portrait::before { content: ''; position: absolute; inset: 0; border: 2px solid var(--gold); border-radius: 24px; transform: translate(20px, 20px); }
.portrait-frame { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--ivory-dark); box-shadow: 0 30px 60px rgba(42,14,73,.25); }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; transform: translate3d(0, var(--py, 0px), 0) scale(1.1); }
.badge {
  position: absolute; right: -34px; bottom: -34px; width: 150px; height: 150px;
  border-radius: 50%; background: var(--purple);
  display: grid; place-items: center;
  box-shadow: 0 14px 34px rgba(42,14,73,.4);
}
.badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.badge text { font-family: var(--font-body); font-size: 15.5px; letter-spacing: 3.4px; fill: var(--gold-light); font-weight: 700; }
.badge img { width: 44px; height: auto; }

.pullquote {
  margin: 30px 0; padding: 0;
  font-family: var(--font-head); font-style: italic;
  font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.35; color: var(--purple);
}
.pullquote::before { content: ''; display: block; width: 56px; height: 3px; background: var(--gold); margin-bottom: 16px; }

.more { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .7s var(--ease); }
.js .more { grid-template-rows: 0fr; }
.js .more.open { grid-template-rows: 1fr; }
.more-inner { min-height: 0; overflow: hidden; }
.js .more-inner { visibility: hidden; transition: visibility 0s .7s; }
.js .more.open .more-inner { visibility: visible; transition-delay: 0s; }
.more-card { margin-top: 26px; padding: 28px 30px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 18px 40px rgba(42,14,73,.08); }
.more-card h3 { margin-bottom: .6em; }
.more-card ul { position: relative; list-style: none; margin: 0; padding: 0 0 0 28px; }
.more-card ul::before { content: ''; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--gold), rgba(201,162,75,.08)); }
.more-card li { position: relative; margin-bottom: 1em; }
.more-card li::before { content: ''; position: absolute; left: -28px; top: .55em; width: 12px; height: 12px; border-radius: 50%; background: var(--ivory); border: 2px solid var(--gold); }
.js .more-card li { opacity: 0; }
.js .more.open li { animation: liIn .7s var(--ease) both; animation-delay: calc(.25s + var(--i, 0) * 80ms); }
.source { margin: 18px 0 0; font-size: .9rem; color: var(--muted); }

/* ---------- Book ---------- */
.book { background: var(--ivory-dark); }
.book-top { display: grid; grid-template-columns: minmax(280px, .9fr) 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.book-stage { position: relative; display: grid; place-items: center; perspective: 1200px; padding: 30px 0; }
.stage-glow {
  position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,75,.5), rgba(201,162,75,0) 68%);
  filter: blur(6px); animation: breathe 6s ease-in-out infinite;
}
.book-float { position: relative; width: min(100%, 400px); animation: floatY 6s ease-in-out infinite; }
.book-tilt {
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .25s ease-out;
  filter: drop-shadow(0 26px 26px rgba(42,14,73,.28));
}
.book-tilt img { width: 100%; height: auto; }
.book-tagline { font-weight: 700; letter-spacing: .1em; color: var(--purple-soft); }

.themes { margin: clamp(60px, 8vw, 100px) 0 40px; text-align: center; }
.theme-tabs { display: none; flex-wrap: wrap; justify-content: center; gap: 10px 14px; margin-bottom: 34px; }
.js .theme-tabs { display: flex; }
.theme-tab {
  position: relative; padding: 12px 26px; isolation: isolate; overflow: hidden;
  font: 700 1rem var(--font-body); letter-spacing: .06em; color: var(--purple);
  background: transparent; border: 2px solid rgba(59,20,101,.25); border-radius: 999px; cursor: pointer;
  transition: color .3s, border-color .3s;
}
.theme-tab::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--purple); transform: translateY(101%); transition: transform .45s var(--ease); }
.theme-tab:hover { border-color: var(--purple); }
.theme-tab.active { color: var(--gold-light); border-color: var(--purple); }
.theme-tab.active::before { transform: none; }
.theme-tab:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.theme-panels { min-height: 190px; display: grid; place-items: center; }
.theme-panel { max-width: 760px; padding-bottom: 1.2em; }
.theme-panel h3 { font-size: clamp(2.6rem, 7vw, 5rem); margin-bottom: .1em; }
.theme-panel p { margin: 0 auto; font-family: var(--font-head); font-style: italic; font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.35; color: var(--purple-soft); }
.theme-panel.active { animation: panelIn .7s var(--ease) both; }

.launch { position: relative; margin: clamp(60px, 9vw, 110px) 0 0; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 70px rgba(42,14,73,.28); }
.launch img { width: 100%; height: clamp(320px, 56vw, 700px); object-fit: cover; object-position: 50% 40%; transform: translate3d(0, var(--py, 0px), 0) scale(1.12); }
.launch figcaption {
  position: absolute; inset: auto 0 0 0; padding: 90px 24px 28px; text-align: center;
  color: var(--ivory); font-family: var(--font-head); font-style: italic;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  background: linear-gradient(transparent, rgba(42,14,73,.88));
}

/* ---------- Collection (Ankara accents live only here) ---------- */
.collection { background: var(--ivory); padding: 0; }
.ankara {
  height: 20px;
  background:
    radial-gradient(circle at 50% 50%, var(--gold) 0 3px, transparent 3.5px),
    radial-gradient(circle at 50% 50%, transparent 0 7px, var(--gold) 7.5px 9px, transparent 9.5px),
    var(--purple);
  background-size: 30px 20px;
  animation: ankara 16s linear infinite;
}
.section-head { max-width: 740px; margin: 0 auto; padding: clamp(70px, 9vw, 110px) 0 30px; text-align: center; }
.lead { font-family: var(--font-head); font-style: italic; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--purple-soft); }

.carousel-wrap { position: relative; }
.carousel {
  --pad: max(4%, calc((100vw - 1160px) / 2));
  display: flex; gap: 24px; overflow-x: auto;
  padding: 30px var(--pad) 40px; scroll-padding-inline: var(--pad);
  scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  cursor: grab; outline: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel.dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }

.product-card {
  flex: 0 0 clamp(270px, 28vw, 340px); scroll-snap-align: start;
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: transform .35s var(--ease), box-shadow .35s;
}
.product-card:hover { --lift: -8px; box-shadow: 0 24px 50px rgba(42,14,73,.18); }
.zoom { all: unset; display: block; position: relative; cursor: zoom-in; }
.zoom:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.product-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #EFE7F6; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.product-card:hover .product-img img { transform: scale(1.07); }
.zoom::after {
  content: '+'; position: absolute; right: 14px; bottom: 14px; width: 38px; height: 38px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--gold); color: var(--purple-deep); font-size: 1.5rem; line-height: 1;
  opacity: 0; transform: scale(.6); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.product-card:hover .zoom::after, .zoom:focus-visible::after { opacity: 1; transform: none; }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.product-body h3 { margin-bottom: .3em; }
.product-body p { flex: 1; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.btn-pair { display: flex; flex-wrap: wrap; gap: 8px; }

.carousel-controls { display: flex; align-items: center; gap: 24px; padding-bottom: 10px; }
.c-track { position: relative; flex: 1; height: 4px; background: rgba(59,20,101,.12); border-radius: 4px; overflow: hidden; }
.c-track span { position: absolute; top: 0; bottom: 0; left: 0; width: 30%; background: var(--purple); border-radius: 4px; transition: left .15s linear; }
.c-buttons { display: flex; gap: 10px; }
.c-btn {
  width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid var(--purple); background: transparent; color: var(--purple);
  font-size: 1.6rem; line-height: 1; cursor: pointer;
  transition: background .25s var(--ease), color .25s, transform .25s var(--ease), opacity .25s;
}
.c-btn:hover:not(:disabled) { background: var(--purple); color: var(--gold-light); transform: scale(1.07); }
.c-btn:disabled { opacity: .35; cursor: default; }

.apparel-feature { margin: 60px auto 0; max-width: 700px; text-align: center; }
.apparel-feature img { width: 100%; border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 24px 50px rgba(42,14,73,.12); }
.apparel-feature figcaption { margin-top: 14px; font-family: var(--font-head); font-style: italic; font-size: 1.35rem; color: var(--purple-soft); }
.collection-cta { max-width: 720px; margin: 56px auto 0; padding-bottom: clamp(70px, 9vw, 110px); text-align: center; }

/* ---------- Order ---------- */
.order {
  background: var(--purple); color: var(--ivory);
  --edge-top: var(--ivory); --edge-bottom: var(--purple-deep);
  padding-block: clamp(120px, 14vw, 190px);
}
.order h2 { color: var(--ivory); }
.order .eyebrow { color: var(--gold-light); }
.order-grid { display: grid; grid-template-columns: minmax(240px, .7fr) 1.3fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.order-intro { position: sticky; top: calc(var(--header-h) + 40px); }
.order-emblem { width: 110px; margin-top: 30px; animation: floatY 6s ease-in-out infinite; }

.form-card {
  padding: clamp(24px, 4vw, 44px);
  background: var(--ivory); color: var(--charcoal);
  border-radius: 26px; box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.form-card--light { background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(42,14,73,.12); }

.field { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label, legend { display: block; margin-bottom: 6px; padding: 0; font-weight: 700; font-size: .95rem; color: var(--charcoal); }
.req { color: #A3302A; }
.hint { margin: 0 0 12px; font-size: .92rem; line-height: 1.5; font-weight: 400; color: var(--muted); }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; padding: 13px 15px; font: inherit; color: var(--charcoal);
  background: #fff; border: 1.5px solid #D6C9B2; border-radius: 12px;
  transition: border-color .25s, box-shadow .25s;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,75,.28); }

.choices-bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.choices-bar .hint { margin: 0; }
.clear-btn {
  flex: none; padding: 8px 16px; font: 700 .85rem var(--font-body); letter-spacing: .03em;
  color: var(--purple); background: transparent; border: 1.5px solid var(--purple); border-radius: 999px; cursor: pointer;
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.clear-btn:hover { background: var(--purple); color: var(--gold-light); transform: translateY(-1px); }
.clear-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.clear-btn[hidden] { display: none; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; }
.tile { position: relative; display: block; margin: 0; }
.tile input { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tile-box {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 10px 8px 12px; text-align: center;
  background: #fff; border: 2px solid #E1D6C2; border-radius: 16px;
  transition: transform .3s var(--ease), border-color .25s, box-shadow .25s, background .25s;
}
.tile-box b { font-size: .88rem; line-height: 1.2; color: var(--purple); }
.tile-pic { width: 100%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; overflow: hidden; background: #EFE7F6; }
.tile-pic img { width: 100%; height: 100%; object-fit: cover; }
.tile-pic.plus { font-family: var(--font-head); font-size: 2.4rem; color: var(--purple); }
.tile:hover .tile-box { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(42,14,73,.12); }
.tile input:focus-visible + .tile-box { outline: 3px solid var(--gold); outline-offset: 2px; }
.tile input:checked + .tile-box { border-color: var(--gold); background: var(--purple); box-shadow: 0 12px 26px rgba(42,14,73,.3); }
.tile input:checked + .tile-box b { color: var(--gold-light); }
.tile-tick { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); transform: scale(0); transition: transform .35s var(--ease); }
.tile-tick::after { content: ''; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid var(--purple-deep); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.tile input:checked + .tile-box .tile-tick { transform: scale(1); }

.item-details { display: grid; gap: 14px; margin-bottom: 24px; }
.item-details:empty { display: none; }
.item-card {
  display: grid; grid-template-columns: 104px 1fr; gap: 18px; align-items: start;
  padding: 16px; background: #fff; border: 1px solid #E1D6C2; border-radius: 18px;
  animation: pop .55s var(--ease) both;
}
.item-thumb { width: 104px; height: 104px; display: grid; place-items: center; border-radius: 14px; overflow: hidden; background: #EFE7F6; box-shadow: 0 0 0 3px rgba(201,162,75,.55); }
.item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.item-thumb--text { padding: 6px; background: var(--purple); color: var(--gold); font-family: var(--font-head); font-weight: 700; font-size: .9rem; text-align: center; line-height: 1.1; }
.item-card h4 { margin: 0 0 10px; font-size: 1.35rem; }
.item-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.item-fields label { margin-bottom: 4px; font-size: .85rem; }
.item-card .hint { margin: 10px 0 0; font-size: .85rem; }

.check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 22px; font-weight: 400; }
.check input { flex: none; width: 18px; height: 18px; margin-top: 6px; accent-color: var(--purple); }

.form-error { min-height: 1.4em; margin: 0 0 10px; color: #A3302A; font-weight: 700; font-size: .95rem; }
.fineprint { margin: 18px 0 0; font-size: .85rem; line-height: 1.55; color: var(--muted); }
.trap { position: absolute; left: -9999px; }

.success { padding: 20px 0; text-align: center; outline: none; }
.success h3 { color: var(--purple); }
.check-burst { width: 76px; height: 76px; margin: 0 auto 14px; }
.check-burst svg { width: 100%; height: 100%; }
.check-burst circle { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .8s var(--ease) forwards; }
.check-burst path { fill: none; stroke: var(--purple); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s var(--ease) .6s forwards; }

/* ---------- If you are still holding on ---------- */
.hold {
  background: var(--purple-deep); color: var(--ivory); text-align: center;
  overflow: hidden; isolation: isolate;
  padding-block: clamp(110px, 13vw, 180px);
}
.hold-bg {
  position: absolute; inset: -14% 0; z-index: -1;
  background:
    linear-gradient(rgba(42,14,73,.86), rgba(42,14,73,.94)),
    url('https://still-holding-on.lovable.app/assets/hero-BTblkh6j.jpg') center / cover no-repeat,
    url('images/hero.svg') center / cover no-repeat;
  transform: translate3d(0, var(--py, 0px), 0);
}
.hold .eyebrow { color: var(--gold-light); }
.hold h2 { color: var(--ivory); }
.perhaps p { margin: 0 0 .5em; font-size: clamp(1.15rem, 2.2vw, 1.45rem); color: rgba(250,246,238,.92); }
.hold-remember { margin: 1.4em 0 1.2em; font-family: var(--font-head); font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.3; }
.hold-remember em { color: var(--gold-light); }
.keep { display: grid; gap: 4px; margin-bottom: 34px; }
.keep-line {
  margin: 0; font-family: var(--font-head); font-size: clamp(1.7rem, 4.4vw, 2.8rem);
  color: rgba(250,246,238,.42); transform: scale(.96);
  transition: color .6s var(--ease), transform .6s var(--ease), text-shadow .6s;
}
.keep-line.on { color: var(--gold); transform: scale(1); text-shadow: 0 0 28px rgba(226,197,126,.45); }

.hold-stage { position: relative; display: inline-grid; place-items: center; margin-top: 10px; }
.hold-btn {
  position: relative; width: 172px; height: 172px; border: 0; border-radius: 50%;
  display: grid; place-items: center; align-content: center; gap: 4px;
  background: radial-gradient(circle at 35% 30%, var(--purple-soft), var(--purple));
  color: var(--ivory); cursor: pointer;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  animation: ping 2.6s ease-out infinite;
  transition: transform .3s var(--ease), box-shadow .4s;
}
.hold-btn svg { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(226,197,126,.25); stroke-width: 4; }
.ring-fg { fill: none; stroke: var(--gold); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: 339.3; }
.hold-btn img { width: 54px; height: auto; transition: transform .3s var(--ease); }
.hold-label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--gold-light); }
.hold-btn.holding { transform: scale(.94); animation: none; box-shadow: 0 0 50px rgba(226,197,126,.5); }
.hold-btn.holding img { transform: scale(1.12); }
.hold-btn.done { animation: none; box-shadow: 0 0 60px rgba(226,197,126,.6); }
.hold-btn[hidden], .hold-help[hidden] { display: none; }
.hold-btn:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 10px; }
.hold-help { max-width: 420px; margin: 18px auto 0; font-size: .92rem; color: rgba(250,246,238,.78); }
.hold-final {
  margin: 36px 0 0; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2.2rem, 7vw, 4.4rem); letter-spacing: .1em;
  color: rgba(201,162,75,.55); transform: scale(.96);
  transition: color .8s var(--ease), text-shadow .8s, transform .8s var(--ease);
}
.hold-final.on { color: var(--gold); text-shadow: 0 0 40px rgba(226,197,126,.55); transform: scale(1); }
.hold-sparks { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.spark { position: absolute; width: 8px; height: 8px; margin: -4px; background: var(--gold-light); animation: spark 1.1s var(--ease) forwards; }

/* ---------- Stories ---------- */
.stories { background: var(--ivory); }
.stories-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.stories-intro { position: sticky; top: calc(var(--header-h) + 40px); }

/* ---------- Contact ---------- */
.contact { background: var(--ivory-dark); }
.contact-head { text-align: center; margin-bottom: 40px; }
.contact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 780px; margin: 0 auto 44px; }
.contact-list div { padding: 26px 24px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; transition: transform .35s var(--ease), background .35s, box-shadow .35s; }
.contact-list div:hover { transform: translateY(-6px); background: var(--purple); box-shadow: 0 20px 40px rgba(42,14,73,.25); }
.contact-list dt { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #9A7627; transition: color .35s; }
.contact-list dd { margin: 6px 0 0; font-weight: 700; color: var(--purple); word-break: break-word; transition: color .35s; }
.contact-list div:hover dt { color: var(--gold-light); }
.contact-list div:hover dd { color: var(--ivory); }
.contact-list a { color: inherit; text-decoration: none; }
.media { text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--purple-deep); color: var(--ivory); text-align: center; padding: 72px 0 40px; }
.footer-logo { width: 120px; height: auto; margin: 0 auto 14px; }
.footer-values { margin: 0 0 6px; color: var(--gold-light); letter-spacing: .12em; }
.footer-tag { margin-bottom: 26px; font-family: var(--font-head); font-style: italic; font-size: 1.5rem; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px; margin-bottom: 28px; }
.site-footer nav a { position: relative; color: var(--ivory); text-decoration: none; font-size: .95rem; }
.site-footer nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--gold-light); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.site-footer nav a:hover::after { transform: scaleX(1); }
.copyright { margin: 0; font-size: .85rem; opacity: .7; }

/* ---------- Email help message ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 600; width: min(92vw, 460px);
  padding: 16px 18px; border-radius: 18px;
  background: var(--purple-deep); color: var(--ivory); box-shadow: 0 20px 50px rgba(0,0,0,.4);
  transform: translate(-50%, 30px); opacity: 0; transition: transform .45s var(--ease), opacity .45s var(--ease);
}
.toast[hidden] { display: none; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast p { margin: 0 0 12px; font-size: .95rem; line-height: 1.5; }
.toast strong { color: var(--gold-light); word-break: break-all; }
.toast-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.toast-actions button, .toast-actions a {
  padding: 8px 16px; font: 700 .85rem var(--font-body); text-decoration: none; cursor: pointer;
  color: var(--purple-deep); background: var(--gold); border: 0; border-radius: 999px;
}
.toast-actions button:hover, .toast-actions a:hover { background: var(--gold-light); }
.toast-actions #toast-close { margin-left: auto; width: 34px; height: 34px; padding: 0; font-size: 1.2rem; line-height: 1; background: transparent; color: var(--gold-light); border: 1.5px solid var(--gold-light); }

/* ---------- Back to top + lightbox ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 52px; height: 52px;
  border: 0; border-radius: 50%; background: var(--gold); color: var(--purple-deep);
  font-size: 1.4rem; cursor: pointer; box-shadow: 0 10px 26px rgba(42,14,73,.35);
  opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top.show:hover { transform: translateY(-4px); }

.lightbox { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; background: rgba(32,10,58,.93); opacity: 0; transition: opacity .35s; }
.lightbox[hidden] { display: none; }
.lightbox.open { opacity: 1; }
.lightbox figure { margin: 0; max-width: min(92vw, 1000px); transform: scale(.94); transition: transform .45s var(--ease); }
.lightbox.open figure { transform: none; }
.lightbox img { width: auto; max-width: 100%; max-height: 78vh; margin: auto; border-radius: 16px; }
.lightbox figcaption { margin-top: 14px; text-align: center; font-family: var(--font-head); font-size: 1.5rem; color: var(--gold-light); }
.lb-close { position: absolute; top: 18px; right: 22px; width: 48px; height: 48px; border: 2px solid var(--gold-light); border-radius: 50%; background: transparent; color: var(--gold-light); font-size: 2rem; line-height: 1; cursor: pointer; }
.lb-close:hover { background: rgba(226,197,126,.15); }

/* ---------- Keyframes ---------- */
@keyframes preBreath { 50% { transform: scale(1.12); } }
@keyframes preBar { to { transform: translateX(100%); } }
@keyframes heroIn { from { opacity: 0; transform: translateY(26px); } }
@keyframes letterIn { from { opacity: 0; transform: translateY(60px) rotateX(-70deg); } }
@keyframes glow { 50% { filter: drop-shadow(0 0 34px rgba(226,197,126,.8)); } }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }
@keyframes ribbon { to { transform: translateX(-50%); } }
@keyframes revealUp { from { opacity: 0; transform: translateY(34px); } }
@keyframes revealLeft { from { opacity: 0; transform: translateX(-44px); } }
@keyframes revealRight { from { opacity: 0; transform: translateX(44px); } }
@keyframes revealZoom { from { opacity: 0; transform: scale(.92); } }
@keyframes drift { to { transform: translate(6%, 4%) rotate(8deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floatY { 50% { transform: translateY(-14px); } }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .8; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(18px) scale(.98); } }
@keyframes liIn { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes ankara { to { background-position: 300px 0, 300px 0, 0 0; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(226,197,126,.5); } 70%, 100% { box-shadow: 0 0 0 30px rgba(226,197,126,0); } }
@keyframes spark { from { opacity: 1; transform: translate(0, 0) rotate(45deg) scale(1); } to { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(225deg) scale(.2); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  /* keep BOTH header layers (the brand line and the menu bar) pinned to the top */
  .site-header { position: fixed; top: 0; left: 0; right: 0; }
  body { padding-top: var(--header-h); }

  .menu-toggle { display: block; }

  /* ----- single-layer mobile header: logo | text | menu ----- */
  .site-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 8px;
    padding: 6px 3%;
    background: var(--purple-deep);
    border-bottom: 1px solid rgba(226,197,126,.35);
  }
  .nav-bar, .nav-inner { display: contents; }
  .nav-inner .btn { display: none; }
  .nav-logo { grid-column: 1; grid-row: 1; }
  .nav-logo img { height: 34px; }
  .nav-logo img.logo-purple { display: none; }
  .nav-logo img.logo-gold { display: block; }
  .site-header .brand-line { grid-column: 2; grid-row: 1; padding: 0; background: none; text-align: center; line-height: 1.25; }
  .site-header .brand-line strong { display: block; font-size: .78rem; letter-spacing: .16em; }
  .brand-dash, .brand-extra { display: none; }
  .brand-tag { display: block; font-size: .62rem; letter-spacing: .04em; }
  .menu-toggle { grid-column: 3; grid-row: 1; width: 44px; height: 44px; }
  .site-header .menu-icon, .site-header .menu-icon::before, .site-header .menu-icon::after { background: var(--gold-light); }
  .menu-icon { top: 21px; }

  /* ----- floating pre-order button ----- */
  .btn.fab-preorder {
    display: inline-block;
    position: fixed; right: 14px; bottom: 14px; z-index: 90;
    box-shadow: 0 6px 18px rgba(42,14,73,.35);
  }
  .to-top { right: 14px; bottom: 72px; }   /* sits just above the floating button */

  /* ----- hero: stacked layout ----- */
  .hero { padding: 20px 0 40px; background-position: 20% center, center; }
  .hero-inner { flex-direction: column; gap: 12px; }
  .hero-visual { --bw: min(38vw, 185px); order: -1; flex: none; }
  .hb-stage { height: calc(var(--bw) * 1.908 + 30px); }
  .hb-book { top: 12px; }
  .hero-copy { flex: none; max-width: 520px; text-align: center; }
  .hero-text { margin-inline: auto; }
  .hero-chips { justify-content: center; }
  .hero .btn-row { justify-content: center; }

  .main-nav {
    position: fixed; left: 0; right: 0; top: var(--header-h);
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    margin: 0; padding: 32px 8%;
    display: flex; align-items: center;
    background: var(--purple-deep);
    clip-path: circle(0% at 92% 0); visibility: hidden;
    transition: clip-path .7s var(--ease), visibility 0s .7s;
  }
  .main-nav.open { clip-path: circle(150% at 92% 0); visibility: visible; transition-delay: 0s; }
  .main-nav ul { flex-direction: column; gap: 6px; width: 100%; }
  .main-nav a { padding: 6px 0; font-family: var(--font-head); font-size: clamp(1.45rem, 6vw, 1.9rem); color: var(--ivory); }
  .main-nav a::after { left: 0; right: auto; width: 60px; background: var(--gold); }
  .main-nav li { opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .main-nav.open li { opacity: 1; transform: none; transition-delay: calc(.15s + var(--n, 0) * 60ms); }
  .main-nav li:nth-child(2) { --n: 1; } .main-nav li:nth-child(3) { --n: 2; } .main-nav li:nth-child(4) { --n: 3; }
  .main-nav li:nth-child(5) { --n: 4; } .main-nav li:nth-child(6) { --n: 5; } .main-nav li:nth-child(7) { --n: 6; }

  .meaning-grid, .story-grid, .author-grid, .book-top, .order-grid, .stories-grid { grid-template-columns: 1fr; }
  .story-sticky, .order-intro, .stories-intro { position: static; }
  .story-line { display: none; }
  .order-emblem { display: none; }
  .badge { right: -10px; bottom: -22px; width: 124px; height: 124px; }
  .badge img { width: 36px; }
}

@media (max-width: 620px) {
  .field-row { grid-template-columns: 1fr; }
  .contact-list { grid-template-columns: 1fr; }
  .choices-bar { flex-direction: column; gap: 10px; }
  .photo-pair { gap: 12px; }
  .item-card { grid-template-columns: 1fr; }
  .item-thumb { width: 92px; height: 92px; }
  .hero-logo { width: 74px; }
  .btn-row .btn { width: 100%; }
  .hero-kicker { font-size: .68rem; padding: 6px 12px; margin-bottom: 12px; }
  .hero h1 { font-size: clamp(2.5rem, 12.5vw, 3.6rem); }
  .hero-sub { font-size: 1.3rem; margin-bottom: .2em; }
  .hero-chips, .hero-text { display: none; }
  .hero .btn-row { flex-wrap: nowrap; gap: 10px; margin-top: 18px; }
  .hero .btn-row .btn { width: 100%; padding: 14px 10px; font-size: .95rem; }
  .hero .btn-row .btn-outline-light { display: none; }  /* the floating Pre-order button covers this on mobile */
  .carousel-controls { gap: 14px; }
}

/* ---------- Safety nets and reduced motion ---------- */
.no-anim .preloader { display: none; }
.no-anim .hero-copy > *, .no-anim .hero-visual { opacity: 1 !important; }
.no-anim [data-reveal], .no-anim .w, .no-anim .hero [data-hero], .no-anim .hero-title .ch { opacity: 1 !important; transform: none !important; clip-path: none !important; }
.no-anim [data-reveal]::after { display: none; }
.no-anim .more { grid-template-rows: 1fr; }
.no-anim .more-inner { visibility: visible; }
.no-anim .more-card li { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .preloader { display: none !important; }
  .js [data-reveal] { opacity: 1; }
  .js [data-reveal="clip"]::after { display: none; }
  .js .hero-copy > *, .js .hero-visual, .js .w { opacity: 1; transform: none; }
  .hero *, .hero *::before, .hero *::after { animation: none !important; }
  .hero-sparkles span { opacity: .8; }
  .ribbon-track { animation: none; }
}
