/* The Forbidden Tears - "One Sky" stylesheet. Rules: DESIGN.md. Values: tokens.css. */
@import url('fonts.css');
@import url('tokens.css');

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--obsidian); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  position: relative;
  min-height: 100vh;
  background: var(--night);
  color: var(--silver);
  font: 400 var(--size-body)/1.8 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-light); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ivory); }
em { font-style: italic; }
strong, b { font-weight: 600; }  /* Lora ships 400-600; avoids a synthetic bold */
button, input, select, textarea { font-family: inherit; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -60px; z-index: 5000; padding: 0.6rem 1rem; background: var(--gold); color: var(--ink-on-gold); font: 600 var(--size-ui) var(--font-heading); border-radius: var(--radius-pill); }
.skip-link:focus { top: 1rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}

/* ---------- The sky: one continuous background behind every page ---------- */
.sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.sky::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 120% 1000px at 50% -120px, rgba(232, 163, 58, 0.30) 0%, rgba(212, 175, 55, 0.10) 45%, transparent 75%),
    radial-gradient(ellipse 70% 900px at 12% 2600px, rgba(46, 16, 69, 0.38) 0%, transparent 70%),
    radial-gradient(ellipse 70% 900px at 88% 4200px, rgba(46, 16, 69, 0.32) 0%, transparent 70%),
    linear-gradient(180deg, #2A2524 0px, #252632 520px, #1B2536 1100px, #131D2D 1700px, var(--night) 2300px, #0A111B 75%, var(--obsidian) 100%);
}
.sky::after {
  /* static stars, fading in as the sky darkens */
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(1.2px 1.2px at 40px 60px, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1px 1px at 190px 140px, rgba(243, 229, 171, 0.8), transparent),
    radial-gradient(1.6px 1.6px at 310px 40px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 420px 210px, rgba(220, 226, 234, 0.75), transparent),
    radial-gradient(1.3px 1.3px at 560px 120px, rgba(243, 229, 171, 0.7), transparent),
    radial-gradient(1px 1px at 120px 300px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 650px 330px, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1.4px 1.4px at 260px 380px, rgba(220, 226, 234, 0.6), transparent);
  background-size: 700px 420px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0px, rgba(0, 0, 0, 0.25) 700px, #000 1700px);
  mask-image: linear-gradient(180deg, transparent 0px, rgba(0, 0, 0, 0.25) 700px, #000 1700px);
  opacity: 0.8;
}

/* ---------- Layout ---------- */
main, .site-footer { overflow-x: clip; }
.wrap { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: calc(var(--section-gap) / 2) 0; }
.section + .section { margin-top: calc(var(--section-gap) / 2); }
.center { text-align: center; }
.reading { max-width: var(--reading); margin-left: auto; margin-right: auto; }
.stack > * + * { margin-top: 1.25rem; }

/* ---------- Type ---------- */
.eyebrow {
  display: block;
  font: 600 var(--size-eyebrow)/1.4 var(--font-heading);
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold-light);
}
.title-gold {
  font: 700 var(--size-title)/1.08 var(--font-display);
  letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--gold-metal);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: var(--title-shadow);
  text-wrap: balance;
}
h2, .h2 {
  font: 600 var(--size-h2)/1.2 var(--font-heading);
  letter-spacing: 0.04em; color: var(--ivory);
  text-wrap: balance;
}
h3, .h3 { font: 600 var(--size-h3)/1.3 var(--font-heading); letter-spacing: 0.05em; color: var(--ivory); }
.lead { font-size: var(--size-lead); line-height: 1.75; color: var(--silver); }
.muted { color: var(--silver-muted); }
p + p { margin-top: 1.1em; }
.script { font: 400 clamp(2.6rem, 5vw, 3.6rem)/1.1 var(--font-script); color: var(--gold-light); text-shadow: 0 0 22px rgba(243, 229, 171, 0.35); }
.byline { font: 600 var(--size-ui)/1.6 var(--font-heading); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-light); }
.byline span { display: block; color: var(--silver-muted); letter-spacing: 0.01em; font-weight: 400; text-transform: none; font-family: var(--font-body); font-style: italic; font-size: var(--size-small); margin-top: 0.15rem; }
.stars { color: var(--gold); letter-spacing: 0.3em; font-size: var(--size-body); }

/* ---------- Ornament: the brand star with hairlines that fade out ---------- */
.ornament { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 0 auto; max-width: 420px; color: var(--gold); }
.ornament::before, .ornament::after { content: ''; flex: 1; height: 1px; }
.ornament::before { background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.6)); }
.ornament::after { background: linear-gradient(90deg, rgba(212, 175, 55, 0.6), transparent); }
.ornament svg { width: 22px; height: 22px; flex: none; filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.5)); }
.section-ornament { padding: 1rem 0; }

/* ---------- Light pools (never touch an edge) ---------- */
.aura { position: relative; isolation: isolate; }
.aura::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; top: 50%; width: 140vw; height: 120%; min-height: 520px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse 34% 46% at 50% 50%, rgba(255, 232, 170, 0.13) 0%, rgba(212, 175, 55, 0.06) 40%, transparent 72%);
}
.aura--warm::before { background: radial-gradient(ellipse 30% 44% at 50% 50%, rgba(232, 163, 58, 0.16) 0%, rgba(212, 175, 55, 0.06) 45%, transparent 74%); }
.aura--left::before { left: 30%; }
.aura--right::before { left: 70%; }

/* ---------- Photo dissolve ---------- */
.dissolve {
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 46%, rgba(0, 0, 0, 0.72) 66%, rgba(0, 0, 0, 0.28) 84%, transparent 98%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 46%, rgba(0, 0, 0, 0.72) 66%, rgba(0, 0, 0, 0.28) 84%, transparent 98%);
}
/* Everyday photography (blog): keep the rectangle, feather only the edges */
.dissolve--soft {
  border-radius: var(--radius, 6px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(180deg, transparent, #000 11%, #000 89%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(180deg, transparent, #000 11%, #000 89%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.dissolve--wide {
  -webkit-mask-image: radial-gradient(ellipse 64% 60% at 50% 50%, #000 58%, rgba(0, 0, 0, 0.7) 78%, transparent 100%);
  mask-image: radial-gradient(ellipse 64% 60% at 50% 50%, #000 58%, rgba(0, 0, 0, 0.7) 78%, transparent 100%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: 0.85rem 1.9rem;
  font: 700 var(--size-button)/1 var(--font-heading); letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: var(--radius-pill); border: 1px solid transparent; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: transform var(--speed) var(--ease), background-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease), color var(--speed) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold-button); color: var(--ink-on-gold); box-shadow: 0 10px 28px rgba(212, 175, 55, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.btn-gold:hover { color: var(--ink-on-gold); box-shadow: 0 14px 34px rgba(212, 175, 55, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn-ghost { background: transparent; color: var(--gold-light); border-color: rgba(243, 229, 171, 0.55); }
.btn-ghost:hover { background: rgba(243, 229, 171, 0.08); color: var(--ivory); }
/* Over bright footage: a solid night pill so the button never washes into the sunrise */
.btn-night { background: linear-gradient(180deg, rgba(46, 64, 92, 0.72), rgba(27, 42, 61, 0.78)); color: var(--gold-light); border-color: rgba(243, 229, 171, 0.6); box-shadow: 0 10px 28px rgba(7, 11, 18, 0.35), inset 0 1px 0 rgba(243, 229, 171, 0.18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-night svg { color: var(--gold); }
.btn-night:hover { background: linear-gradient(180deg, rgba(56, 78, 110, 0.8), rgba(34, 52, 76, 0.85)); border-color: var(--gold-light); color: var(--ivory); }
.btn svg { width: 14px; height: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.center .actions, .actions.center { justify-content: center; }

.chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0.55rem 1.1rem;
  font: 600 var(--size-tag)/1 var(--font-heading); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--silver); text-decoration: none;
  border: 1px solid rgba(220, 226, 234, 0.3); border-radius: var(--radius-pill);
  transition: border-color var(--speed) var(--ease), color var(--speed) var(--ease), background-color var(--speed) var(--ease);
}
.chip:hover { color: var(--gold-light); border-color: rgba(243, 229, 171, 0.7); background: rgba(243, 229, 171, 0.06); }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.btn-sm { min-height: 40px; padding: 0.6rem 1.15rem; }
.also { margin-top: 0.8rem; font-size: var(--size-eyebrow); color: var(--silver-muted); }
.also a { color: var(--gold-light); text-decoration: underline; text-decoration-color: rgba(243, 229, 171, 0.35); text-underline-offset: 0.25em; }
.also a:hover { color: var(--ivory); text-decoration-color: currentColor; }
.chips-label { display: block; font: 600 var(--size-tag) var(--font-heading); letter-spacing: 0.2em; text-transform: uppercase; color: var(--silver-muted); margin-bottom: 0.6rem; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 1000; height: var(--header-height); transition: background-color var(--speed) var(--ease); }
.site-header::before {
  content: ''; position: absolute; inset: 0 0 -18px; z-index: -1; opacity: 0;
  background: rgba(9, 14, 22, 0.8);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  transition: opacity 250ms var(--ease);
}
.site-header.scrolled::before { opacity: 1; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ivory); }
.brand img { width: 44px; height: 44px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6)); }
.brand span { font: 600 var(--size-body)/1.1 var(--font-heading); letter-spacing: 0.14em; text-transform: uppercase; text-shadow: var(--text-lift); }
.nav { display: flex; gap: 2rem; list-style: none; }
.nav a {
  position: relative; display: inline-block; padding: 0.5rem 0;
  font: 600 var(--size-ui)/1 var(--font-heading); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--silver); text-decoration: none; text-shadow: var(--text-lift);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-light); }
.nav a[aria-current="page"]::after {
  content: ''; position: absolute; left: 50%; bottom: -4px; width: 5px; height: 5px;
  transform: translateX(-50%) rotate(45deg); background: var(--gold);
}
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.header-actions .btn { min-height: 44px; padding: 0.7rem 1.3rem; }
.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: transparent; border: 1px solid rgba(243, 229, 171, 0.35); border-radius: 50%; color: var(--ivory); cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }
@media (max-width: 960px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 480px) {
  .brand span { font-size: var(--size-eyebrow); letter-spacing: 0.1em; }
  .brand img { width: 36px; height: 36px; }
  .header-actions { gap: 0.45rem; }
  .header-actions .btn { padding: 0.6rem 0.8rem; font-size: var(--size-tag); letter-spacing: 0.06em; }  /* clears the name at 375px */
}
@media (max-width: 360px) { .brand span { display: none; } }

/* ---------- Side panels (menu + purchase) ---------- */
.scrim { position: fixed; inset: 0; z-index: 1900; background: rgba(4, 7, 12, 0.6); opacity: 0; visibility: hidden; transition: opacity 250ms var(--ease), visibility 0s linear 250ms; }
.scrim.open { opacity: 1; visibility: visible; transition-delay: 0s; }
.panel {
  position: fixed; top: 0; right: 0; z-index: 2000; height: 100vh; height: 100dvh;
  width: min(420px, 92vw); overflow-y: auto; padding: 1.5rem 1.5rem 2.5rem;
  background: rgba(9, 14, 22, 0.94); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: -30px 0 60px rgba(0, 0, 0, 0.5);
  transform: translateX(105%); visibility: hidden;
  transition: transform 300ms var(--ease), visibility 0s linear 300ms;
}
.panel.open { transform: none; visibility: visible; transition-delay: 0s; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.panel-head h2 { font-size: var(--size-lead); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-light); }
.panel-close { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1px solid rgba(220, 226, 234, 0.25); border-radius: 50%; color: var(--ivory); font: 400 var(--size-h3)/1 var(--font-heading); cursor: pointer; }
.menu-links { list-style: none; }
.menu-links a { display: block; padding: 0.95rem 0; font: 600 var(--size-small) var(--font-heading); letter-spacing: 0.12em; text-transform: uppercase; color: var(--silver); text-decoration: none; }
.menu-links li + li { background: linear-gradient(90deg, rgba(212, 175, 55, 0.35), transparent) top / 100% 1px no-repeat; }
.menu-links a[aria-current="page"], .menu-links a:hover { color: var(--gold-light); }
.panel .btn { width: 100%; margin-top: 1.5rem; }
.buy-item { display: grid; grid-template-columns: 64px 1fr; gap: 1rem; padding: 1.1rem 0; }
.buy-item + .buy-item { background: linear-gradient(90deg, rgba(212, 175, 55, 0.3), transparent) top / 100% 1px no-repeat; }
.buy-item img { width: 64px; height: auto; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5); }
.buy-item h3 { font-size: var(--size-small); margin-bottom: 0.15rem; }
.buy-item .buy-meta { font-size: var(--size-eyebrow); color: var(--silver-muted); margin-bottom: 0.6rem; }
.buy-item .also { margin-top: 0.5rem; font-size: var(--size-eyebrow); }
.panel-note { font-size: var(--size-eyebrow); color: var(--silver-muted); margin-top: 1.25rem; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-height) + 2rem) 0 3rem; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-media video, .hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  /* radial dissolve, intersected with a bottom fade so the footage never meets the section edge */
  -webkit-mask-image: radial-gradient(ellipse 70% 64% at 50% 42%, #000 0%, #000 46%, rgba(0, 0, 0, 0.85) 62%, rgba(0, 0, 0, 0.5) 78%, rgba(0, 0, 0, 0.15) 90%, transparent 100%), linear-gradient(180deg, #000 0%, #000 58%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 64% at 50% 42%, #000 0%, #000 46%, rgba(0, 0, 0, 0.85) 62%, rgba(0, 0, 0, 0.5) 78%, rgba(0, 0, 0, 0.15) 90%, transparent 100%), linear-gradient(180deg, #000 0%, #000 58%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.hero-media .grade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 52% 40% at 50% 44%, rgba(8, 12, 20, 0.46), transparent 100%),
    linear-gradient(180deg, transparent 60%, rgba(12, 20, 32, 0.55) 100%);
}
.hero-media .mist {
  position: absolute; left: 0; right: 0; bottom: 0; height: 60%;
  background: url('../img/fog.webp') repeat-x 0 100% / auto 100%;
  opacity: 0.22; animation: mist-drift 120s linear infinite;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
@keyframes mist-drift { to { background-position-x: -1600px; } }
.hero-content { text-align: center; }
.hero .eyebrow { color: var(--ivory); text-shadow: var(--text-lift); font-size: clamp(0.92rem, 1.35vw, var(--size-lead)); letter-spacing: 0.36em; }
.bestseller {
  display: inline-flex; align-items: center; gap: 0.85rem; margin-bottom: 1.2rem;
  font: 700 clamp(1.05rem, 1.9vw, var(--size-xl))/1.2 var(--font-heading); letter-spacing: 0.22em; text-transform: uppercase;
  color: #FFFFFF; text-shadow: var(--text-lift);
}
.bestseller svg { width: 18px; height: 18px; flex: none; color: var(--gold); filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8)); }
.hero .title-gold { margin: 1.1rem 0 0.9rem; }
.hero-tagline { font: italic 400 clamp(1.1rem, 2vw, 1.35rem)/1.6 var(--font-body); color: var(--ivory); text-shadow: var(--text-lift); margin-bottom: 2.2rem; }
.hero .actions { justify-content: center; }

/* "As seen on" - ivory station logos straight on the sky */
.press { margin-top: clamp(3rem, 8vh, 5.5rem); }
.press .eyebrow { margin-bottom: 1.4rem; color: var(--ivory); letter-spacing: 0.4em; font-size: var(--size-eyebrow); text-shadow: var(--text-lift); }
.press ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.2rem 2.4rem; max-width: 1080px; margin: 0 auto; }
.press img { height: 40px; width: auto; opacity: 0.9; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6)); transition: opacity var(--speed) var(--ease), transform 300ms var(--ease), filter 300ms var(--ease); }
.press li:hover img { opacity: 1; transform: translateY(-2px) scale(1.06); filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 14px rgba(243, 229, 171, 0.35)) brightness(1.1); }
.press img.tall { height: 44px; }
.press img.short { height: 32px; }
@media (max-width: 600px) {
  .press ul { gap: 1rem 1.5rem; }
  .press img { height: 28px; } .press img.tall { height: 32px; } .press img.short { height: 24px; }
}

/* Sub-page hero: shorter, an image dissolved into the sky behind the title */
.page-hero { min-height: clamp(360px, 48vh, 520px); padding-bottom: 1.5rem; }
/* Inner pages breathe less than Home (Louis 2026-10-22): same rhythm, about two-thirds the air */
body:not([data-page="index.html"]) { --section-gap: 4.5rem; }
@media (max-width: 600px) { body:not([data-page="index.html"]) { --section-gap: 3.25rem; } }
body:not([data-page="index.html"]) .site-footer { padding-top: 3.25rem; }
/* Pause/play for the hero footage: quiet until hovered, same night-glass as .btn-night */
.motion-toggle {
  position: absolute; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 1;
  width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(27, 42, 61, 0.42); color: var(--gold-light); border: 1px solid rgba(243, 229, 171, 0.35);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0.6; cursor: pointer;
  transition: opacity var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.motion-toggle:hover, .motion-toggle:focus-visible { opacity: 1; border-color: rgba(243, 229, 171, 0.7); }
.motion-toggle svg { width: 18px; height: 18px; }
.page-hero .hero-media img, .page-hero .hero-media video {
  -webkit-mask-image: radial-gradient(ellipse 74% 78% at 50% 40%, #000 0%, #000 42%, rgba(0, 0, 0, 0.85) 60%, rgba(0, 0, 0, 0.45) 80%, transparent 100%), linear-gradient(180deg, #000 0%, #000 58%, transparent 100%);
  mask-image: radial-gradient(ellipse 74% 78% at 50% 40%, #000 0%, #000 42%, rgba(0, 0, 0, 0.85) 60%, rgba(0, 0, 0, 0.45) 80%, transparent 100%), linear-gradient(180deg, #000 0%, #000 58%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
/* Top band keeps the header legible over bright skies; the centre pool sits behind the title block */
.page-hero .hero-media .grade { background: radial-gradient(ellipse 62% 46% at 50% 42%, rgba(8, 12, 20, 0.74), transparent 100%), linear-gradient(180deg, rgba(10, 16, 26, 0.82) 0%, rgba(10, 16, 26, 0.5) 18%, rgba(10, 16, 26, 0.15) 34%, transparent 46%, rgba(12, 20, 32, 0.35) 100%); }
.page-hero .lead { max-width: 640px; margin: 0 auto; color: var(--ivory); text-shadow: var(--text-lift); }

/* ---------- Reviews ---------- */
.readers { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2rem; align-items: center; }
.readers blockquote { font: italic 400 var(--size-quote)/1.65 var(--font-body); color: var(--ivory); margin: 1.4rem 0 1.4rem; }
.readers .script { margin-top: 0.6rem; }
.readers h2.script { font: 400 clamp(2.8rem, 5.5vw, 4rem)/1.1 var(--font-script); letter-spacing: 0; text-transform: none; color: var(--gold-light); }
#reviews .acclaim { margin-top: clamp(2.5rem, 6vw, 4rem); }
.readers h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 0.2rem; }
.readers figure img { width: min(100%, 420px); margin: 0 auto; filter: drop-shadow(0 0 40px rgba(212, 175, 55, 0.12)); }
@media (max-width: 860px) {
  .readers { grid-template-columns: 1fr; text-align: center; }
  .readers figure { order: -1; }
  .readers figure img { width: min(70%, 300px); }
}
.acclaim { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.5rem; margin-top: 3rem; }
.acclaim figure blockquote { font: italic 400 var(--size-lead)/1.75 var(--font-body); color: var(--ivory); margin: 0.8rem 0 1.1rem; }
@media (max-width: 760px) { .acclaim { grid-template-columns: 1fr; gap: 2.75rem; } }

/* ---------- Books ---------- */
.spread { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.spread--flip > :first-child { order: 2; }
.spread .cover-col { display: flex; justify-content: center; }
.cover { position: relative; width: min(100%, 360px); }
.cover::before {
  content: ''; position: absolute; z-index: -1; inset: -30% -45%;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(232, 190, 90, 0.22) 0%, rgba(212, 175, 55, 0.07) 45%, transparent 72%);
  pointer-events: none;
}
.cover img { width: 100%; box-shadow: var(--shadow-cover); transition: transform 300ms var(--ease); }
.cover:hover img { transform: translateY(-6px); }
.cover { isolation: isolate; }
/* 3D render (new release): already has depth, so no box shadow; a soft ground shadow instead, a little larger than flat covers */
.cover--3d { display: block; width: min(100%, 430px); }
.cover--3d img { box-shadow: none; filter: drop-shadow(-18px 26px 34px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 50px rgba(232, 163, 58, 0.18)); }
.book-meta .eyebrow { margin-bottom: 0.7rem; }
.book-meta h2 { margin-bottom: 0.3rem; }
.book-meta .authors { font: 600 var(--size-small) var(--font-heading); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 1.4rem; }
.book-meta .synopsis { margin: 1.4rem 0 1.8rem; }
.book-meta .buy-row { display: block; }
.seals { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; margin: 1.2rem 0 0.4rem; }
.seals img { width: 88px; height: 88px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55)); }
@media (max-width: 900px) {
  .spread, .spread--flip { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .spread--flip > :first-child { order: 0; }
  .cover { width: min(72%, 300px); }
  .cover--3d { width: min(80%, 340px); }
  .seals, .book-meta .chips, .book-meta .actions { justify-content: center; }
  .book-meta .buy-row { text-align: center; }
  .book-meta .synopsis { text-align: left; }
}
@media (max-width: 480px) { .seals img { width: 72px; height: 72px; } .seals { gap: 0.9rem; } }

.buy-item .new-tag { margin-left: 0; padding: 0.15rem 0.55rem; font-size: var(--size-tag); }
.new-tag { display: inline-block; font-family: var(--font-heading); font-weight: 700; line-height: 1.4; text-transform: uppercase; margin-left: 0.9rem; padding: 0.3rem 0.75rem; border-radius: var(--radius-pill); background: var(--gold-button); color: var(--ink-on-gold); letter-spacing: 0.16em; font-size: var(--size-tag); vertical-align: 0.1em; }
.book-number { font: 600 var(--size-ui) var(--font-heading); letter-spacing: 0.3em; text-transform: uppercase; color: var(--silver-muted); }

/* ---------- Trailer ---------- */
.film { position: relative; max-width: 960px; margin: 2.5rem auto 0; isolation: isolate; }
.film::before {
  content: ''; position: absolute; z-index: -1; inset: -18% -20%;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(160, 140, 255, 0.10) 0%, rgba(212, 175, 55, 0.08) 40%, transparent 70%);
}
.film video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm); background: var(--obsidian); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6); }
.film .play {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(7, 11, 18, 0.15), rgba(7, 11, 18, 0.55));
  border: 0; border-radius: var(--radius-sm); cursor: pointer; color: var(--ivory);
  font: 700 var(--size-ui) var(--font-heading); letter-spacing: 0.24em; text-transform: uppercase;
  transition: background-color var(--speed) var(--ease);
}
.film .play span.ring { width: 84px; height: 84px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--gold-button); color: var(--ink-on-gold); box-shadow: 0 0 0 10px rgba(212, 175, 55, 0.15), 0 14px 40px rgba(0, 0, 0, 0.5); transition: transform var(--speed) var(--ease); }
.film .play:hover span.ring { transform: scale(1.06); }
.film .play svg { width: 28px; height: 28px; margin-left: 4px; }
.film.playing .play { display: none; }
.film-caption { margin-top: 1.2rem; color: var(--silver-muted); font-size: var(--size-small); text-align: center; }

.film-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; }
.film-pair .film { margin-top: 0; }
.film-pair h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 1.5rem 0 0.5rem; }
@media (max-width: 860px) { .film-pair { grid-template-columns: 1fr; gap: 4rem; } }

/* ---------- Characters: a gilt frame (the art has hard edges, so frame it rather than fade it) ---------- */
.gilt { position: relative; max-width: 1040px; margin: 2.4rem auto 0; padding: 12px; border: 1px solid rgba(212, 175, 55, 0.55); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 60px rgba(212, 175, 55, 0.08); }
.gilt::before { content: ''; position: absolute; inset: 5px; border: 1px solid rgba(243, 229, 171, 0.18); pointer-events: none; }
.gilt img { width: 100%; display: block; }
.gilt-star { position: absolute; left: 50%; width: 22px; height: 22px; padding: 0 10px; transform: translateX(-50%); color: var(--gold); background: var(--night); box-sizing: content-box; filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6)); }
.gilt-star svg { width: 22px; height: 22px; }
.gilt-star--top { top: -12px; } .gilt-star--bottom { bottom: -12px; }
@media (max-width: 600px) { .gilt { padding: 6px; } .gilt::before { inset: 3px; } }

/* ---------- The complete saga (home): five covers, one row ---------- */
.shelf { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(0.8rem, 2.2vw, 1.8rem); max-width: 980px; margin: 2.6rem auto 2.4rem; }
.shelf a { display: block; text-decoration: none; color: inherit; }
.shelf img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; box-shadow: var(--shadow-cover); transition: transform 300ms var(--ease); }
.shelf a:hover img { transform: translateY(-6px); }
.shelf-n { display: block; margin-top: 1rem; font: 600 var(--size-tag) var(--font-heading); letter-spacing: 0.2em; text-transform: uppercase; color: var(--silver-muted); }
.shelf-t { display: block; margin-top: 0.3rem; font: 600 var(--size-small)/1.3 var(--font-heading); color: var(--ivory); }
.shelf .new-tag { margin-left: 0.4rem; padding: 0.12rem 0.5rem; font-size: var(--size-tag); }
@media (max-width: 700px) {
  .shelf { grid-template-columns: repeat(5, 132px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 1rem; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); }
  .shelf li { scroll-snap-align: start; }
}

/* ---------- Authors ---------- */
.origin { display: grid; grid-template-columns: 240px 1fr; gap: 3.5rem; align-items: start; }
.origin blockquote p { font: italic 400 var(--size-lead)/1.85 var(--font-body); color: var(--ivory); }
.origin .byline { margin-top: 1.6rem; }
.portrait { position: relative; width: 200px; margin: 0 auto; isolation: isolate; }
.portrait::before { content: ''; position: absolute; z-index: -1; inset: -35%; background: radial-gradient(circle, rgba(232, 190, 90, 0.2) 0%, transparent 65%); }
.portrait img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 58%, transparent 71%); mask-image: radial-gradient(circle at 50% 50%, #000 58%, transparent 71%); }
.authors-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem; }
.author { text-align: center; }
.author h3 { font-size: var(--size-xl); margin: 1rem 0 0.2rem; }
.author .role { font: 600 var(--size-tag) var(--font-heading); letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-light); }
.author p.bio { margin-top: 1.1rem; text-align: left; }
@media (max-width: 820px) {
  .origin { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .origin blockquote p { text-align: left; }
  .authors-pair { grid-template-columns: 1fr; gap: 4rem; }
}

/* ---------- Blog ---------- */
.posts { display: grid; gap: 4.5rem; }
.post-teaser { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; text-decoration: none; color: inherit; }
.post-teaser:nth-child(even) > :first-child { order: 2; }
.post-teaser figure { position: relative; aspect-ratio: 4 / 3; }
.post-teaser figure img { width: 100%; height: 100%; object-fit: cover; }
.post-teaser figure.portrait-art img { object-fit: contain; }
.post-teaser h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 0.6rem 0 0.9rem; transition: color var(--speed) var(--ease); }
.post-teaser:hover h2 { color: var(--gold-light); }
.post-teaser .more { display: inline-block; margin-top: 1rem; font: 600 var(--size-tag) var(--font-heading); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-light); }
@media (max-width: 820px) { .post-teaser, .post-teaser:nth-child(even) { grid-template-columns: 1fr; } .post-teaser:nth-child(even) > :first-child { order: 0; } }
.article { max-width: var(--reading); margin: 0 auto; }
.article h1 { font: 600 clamp(1.9rem, 4vw, 2.9rem)/1.2 var(--font-heading); color: var(--ivory); letter-spacing: 0.03em; margin: 0.8rem 0 1rem; text-wrap: balance; }
.article .meta { color: var(--silver-muted); font-size: var(--size-small); }
.article-figure { margin: 2.2rem auto 0; display: flex; justify-content: center; }
.article-figure img { width: 100%; max-height: 460px; object-fit: cover; }
.article-figure.is-cover img { width: auto; max-height: 420px; box-shadow: var(--shadow-cover); }
.article-body { margin-top: 2.2rem; font-size: var(--size-body); }
.article-body h2, .article-body h3 { font-size: var(--size-h3); margin: 2.2rem 0 0.8rem; color: var(--gold-light); }
.article-body p, .article-body li { color: var(--silver); }
.article-body ul, .article-body ol { margin: 1rem 0 1rem 1.4rem; }
.article-body img { margin: 2rem auto; max-height: 520px; width: auto; }
.share { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2.5rem; align-items: center; }
.share span { font: 600 var(--size-tag) var(--font-heading); letter-spacing: 0.2em; text-transform: uppercase; color: var(--silver-muted); margin-right: 0.4rem; }
.comments { margin-top: 3.5rem; }
.comment { padding: 1rem 0; }
.comment + .comment { background: linear-gradient(90deg, rgba(212, 175, 55, 0.25), transparent) top / 100% 1px no-repeat; }
.comment b { font-family: var(--font-heading); letter-spacing: 0.08em; color: var(--gold-light); font-weight: 600; }
.comment small { color: var(--silver-muted); margin-left: 0.5rem; }
[hidden] { display: none !important; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 1.6rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; margin-bottom: 0.45rem; font: 600 var(--size-tag) var(--font-heading); letter-spacing: 0.18em; text-transform: uppercase; color: var(--silver); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px; padding: 0.75rem 0.95rem;
  font: 400 var(--size-small)/1.5 var(--font-body); color: var(--ivory);
  background: rgba(27, 42, 61, 0.4); border: 0; border-bottom: 1px solid rgba(220, 226, 234, 0.35); border-radius: 4px 4px 0 0;
  transition: border-color var(--speed) var(--ease), background-color var(--speed) var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(169, 180, 194, 0.85); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold); background: rgba(27, 42, 61, 0.6); }
.inline-form { display: flex; gap: 0.8rem; flex-wrap: wrap; justify-content: center; max-width: 640px; margin: 2rem auto 0; }
.inline-form .field { flex: 1 1 200px; text-align: left; }
.inline-form .btn { align-self: flex-end; }
.form-feedback { min-height: 1.5rem; margin-top: 0.9rem; font-size: var(--size-small); }
.form-feedback.success { color: var(--gold-light); }
.form-feedback.error { color: #F2B8B5; }
.honeypot { position: absolute; left: -9999px; }
.fine-print { font-size: var(--size-eyebrow); color: var(--silver-muted); margin-top: 1rem; }

/* ---------- Next step ---------- */
.next { text-align: center; }
.next h2 { margin: 0.7rem 0 0.8rem; }
.next p { max-width: 560px; margin: 0 auto 1.8rem; }

/* ---------- Footer ---------- */
.site-footer { position: relative; padding: 4.5rem 0 2.5rem; margin-top: calc(var(--section-gap) / 2); }
.site-footer::before { content: ''; position: absolute; top: 0; left: 50%; width: min(900px, 90vw); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.45), transparent); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
.footer-grid h2 { font-size: var(--size-ui); letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 1rem; }
.footer-grid ul { list-style: none; }
.footer-grid li + li { margin-top: 0.55rem; }
.footer-grid a { color: var(--silver); text-decoration: none; font-size: var(--size-small); }
.footer-grid a:hover { color: var(--gold-light); }
@media (max-width: 760px) { .footer-grid li a { display: inline-flex; align-items: center; min-height: 46px; min-width: 46px; } .site-footer .brand { min-height: 46px; } .footer-grid li { margin: 0; } }
.footer-grid p { font-size: var(--size-small); color: var(--silver-muted); margin-top: 1rem; max-width: 34ch; }
.footer-legal { margin-top: 3.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; font-size: var(--size-eyebrow); color: var(--silver-muted); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Modal (trailer lightbox + exit offer) ---------- */
.modal { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 1.25rem; background: rgba(4, 7, 12, 0.86); opacity: 0; visibility: hidden; transition: opacity 250ms var(--ease), visibility 0s linear 250ms; }
.modal.open { opacity: 1; visibility: visible; transition-delay: 0s; }
.modal-inner { position: relative; width: min(980px, 100%); }
.modal-inner.narrow { width: min(560px, 100%); padding: 2.5rem 2rem; text-align: center; background: radial-gradient(ellipse at 50% 0%, rgba(232, 163, 58, 0.16), transparent 60%), rgba(12, 20, 32, 0.96); border-radius: 12px; box-shadow: 0 40px 90px rgba(0, 0, 0, 0.7); }
.modal-inner video { width: 100%; border-radius: var(--radius-sm); background: #000; }
.modal-close { position: absolute; top: -56px; right: 0; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(220, 226, 234, 0.35); background: transparent; color: var(--ivory); font: 400 var(--size-h3)/1 var(--font-heading); cursor: pointer; }
.modal-inner.narrow .modal-close { top: 0.75rem; right: 0.75rem; }

/* Reveal on scroll (opt-in, never hides content without JS) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 300ms var(--ease), transform 300ms var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* Preview ribbon (removed at launch) */
.preview-note { position: fixed; left: 1rem; bottom: 1rem; z-index: 900; padding: 0.5rem 0.95rem; border-radius: var(--radius-pill); background: rgba(9, 14, 22, 0.9); border: 1px solid rgba(212, 175, 55, 0.45); color: var(--gold-light); font: 600 var(--size-tag) var(--font-heading); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; }

.new-tag--lead { margin: 0 0 0.9rem; }
@media (max-width: 760px) { #reviews .acclaim { text-align: center; } }

/* ---------- Legal pages and form fine print ---------- */
.legal { padding-top: calc(var(--header-height) + 1rem); }
.legal .article-body { font-size: var(--size-body); }
.form-fine { margin-top: 0.7rem; font-size: var(--size-eyebrow); color: var(--silver-muted); }
.form-fine a, .legal-links a { color: var(--silver); }
.legal-links { display: inline-flex; flex-wrap: wrap; gap: 0 1.4rem; }
.legal-links a { display: inline-flex; align-items: center; min-height: 44px; }

.site-header .brand { min-height: 46px; }
