/* ============================================
   Page Hundred — design system
   ============================================ */

:root {
  /* Palette — Page Hundred brand (synced with vision.html) */
  --ivory: #FAF8E9;       /* Primary ivory paper */
  --cream: #F0EAD2;       /* Deeper ivory for section breaks */
  --stone: #E6DFC4;       /* Stone — slightly cooler */
  --taupe: #B8AE9C;
  --warm-grey: #8C8578;
  --charcoal: #1A1A1A;    /* Near-black for primary text + logo */
  --navy: #16213A;

  --paper: var(--ivory);
  --paper-2: var(--cream);
  --paper-3: var(--stone);
  --ink: var(--charcoal);
  --ink-2: var(--navy);
  --ink-soft: #747A8A;    /* Slate — secondary text, nav (vision) */
  --ink-mute: #A9ADB8;    /* Light slate — hints, de-emphasis */
  --rule: rgba(116, 122, 138, 0.22);
  --rule-strong: rgba(26, 26, 26, 0.28);
  --gold: #C17661;        /* Terracotta — primary accent (vision) */
  --gold-deep: #9E5C49;   /* Deep terracotta */
  --violet: #5B4B7A;
  --teal: #3E6B7A;
  --supporting: #A2B8C5;  /* Dusty blue */
  --neutral: #C2C2C2;
  --danger: #A23B2C;
  --success: #4A6B3E;

  --bg: var(--paper);
  --fg: var(--ink);
  --fg-soft: var(--ink-soft);
  --fg-mute: var(--ink-mute);
  --surface: #FCFAF0;     /* Ivory lightest */
  --surface-2: #F0EAD2;
  --shadow-rgb: 26, 26, 26;

  /* Type — synced with vision.html */
  --serif-display: "Playfair Display", "EB Garamond", Georgia, serif;
  --serif-read: "Playfair Display", "Newsreader", Georgia, serif;
  --sans: "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Scale */
  --fs-mono: 11px;
  --fs-body: 17px;
  --fs-lead: 21px;
  --lh-body: 1.55;

  /* Layout */
  --max: 1320px;
  --gutter: 32px;

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
}

:root[data-theme="dark"] {
  --paper: #14130F;
  --paper-2: #1B1A16;
  --paper-3: #232118;
  --ink: #FAF8E9;
  --ink-2: #DCD3BF;
  --ink-soft: #B6AE99;
  --ink-mute: #7A7466;
  --rule: rgba(250,248,233,0.14);
  --rule-strong: rgba(250,248,233,0.26);
  --gold: #D88B73;
  --gold-deep: #B86A55;
  --violet: #A897C4;
  --surface: #1B1A16;
  --surface-2: #232118;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .4s var(--ease), color .4s var(--ease);
  scroll-snap-type: y proximity;
  scroll-behavior: smooth;
}

/* Lock-on-each-section scroll snap */
.ph2-hero,
.ph2-promise,
.ph2-how,
.ph2-book-section,
.ph2-editions,
.ph2-why,
.ph2-stories,
.ph2-faq,
.ph2-waitlist,
.ph-footer {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-snap-type: none; scroll-behavior: auto; }
}

body {
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* Noise / paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: .28;
  mix-blend-mode: multiply;
}

:root[data-theme="dark"] body::before { mix-blend-mode: screen; opacity: .2; }

/* ============================================
   Type system
   ============================================ */

.display {
  font-family: var(--serif-display);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 0.95;
}

.d1 { font-size: clamp(64px, 12vw, 184px); }
.d2 { font-size: clamp(48px, 8vw, 120px); }
.d3 { font-size: clamp(36px, 5.5vw, 72px); }
.d4 { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.05; }

.italic { font-style: italic; font-family: var(--serif-display); font-weight: 400; }

.lead {
  font-family: var(--sans);
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 300;
}

.label {
  font-family: var(--mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gold-deep);
}

:root[data-theme="dark"] .num { color: var(--gold); }

/* ============================================
   Layout primitives
   ============================================ */

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
}

.rule { border-top: 1px solid var(--rule-strong); }
.rule-soft { border-top: 1px solid var(--rule); }

section { position: relative; z-index: 2; }

/* ============================================
   Header
   ============================================ */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  transition: background .3s var(--ease), padding .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  padding: 14px var(--gutter);
  border-bottom-color: var(--rule);
}

.brand {
  display: inline-flex; align-items: center;
  height: 14px;
  transition: opacity .2s var(--ease);
}
.brand:hover { opacity: 0.75; }
.brand img {
  height: 100%;
  width: auto;
  display: block;
}
:root[data-theme="dark"] .brand img {
  filter: invert(1) brightness(1.1);
}
.header.scrolled .brand { height: 12px; }

.footer-logo {
  height: 56px;
  width: auto;
  display: block;
  margin-bottom: 16px;
}
:root[data-theme="dark"] .footer-logo { filter: invert(1) brightness(1.1); }

.colophon-mark {
  display: inline-block;
  height: 72px;
  width: auto;
  opacity: 0.9;
}
:root[data-theme="dark"] .colophon-mark { filter: invert(1) brightness(1.1); }

.mobile-brand-logo {
  height: 56px;
}
:root[data-theme="dark"] .mobile-brand-logo { filter: invert(1) brightness(1.1); }

.nav {
  display: flex; align-items: center; gap: 2px;
}

.nav a {
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: color .2s var(--ease), background .2s var(--ease);
  position: relative;
}
.nav a:hover { color: var(--ink); background: var(--rule); }
.nav a.active { color: var(--ink); }
.nav a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 1px; background: var(--gold);
}

.header-right { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink-soft);
  border: 1px solid var(--rule-strong);
  transition: color .2s, border-color .2s, background .2s;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--ink); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: all .25s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(26,26,26,0.06), 0 8px 24px -12px rgba(26,26,26,0.4);
  transition: background .5s var(--ease), color .5s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn-primary::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.32) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform .9s var(--ease);
  pointer-events: none;
}
.btn-primary:hover::before { transform: translateX(110%); }
.btn-primary:hover {
  background: linear-gradient(135deg, #C17661 0%, #9E5C49 55%, #5B4B7A 100%);
  color: #FAF8E9;
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(26,26,26,0.06), 0 18px 38px -12px rgba(158, 92, 73, 0.45);
}
.btn-primary:active {
  transform: translateY(1px) scale(0.985);
  transition-duration: .12s;
}

/* Italic emphasis — colourful sunset on hover */
.ph2-promise-title em {
  display: inline-block;
  background-image: linear-gradient(135deg, currentColor 0%, currentColor 100%);
  -webkit-background-clip: text;
          background-clip: text;
  background-size: 200% 200%;
  background-position: 0% 50%;
  transition: color .55s var(--ease), background-image .55s var(--ease), transform .55s var(--ease);
  cursor: default;
}
.ph2-promise-title em:hover {
  background-image: linear-gradient(135deg, #C17661 0%, #9E5C49 55%, #5B4B7A 100%);
  -webkit-text-fill-color: transparent;
          text-fill-color: transparent;
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn-ghost:hover {
  border-color: transparent;
  background: linear-gradient(135deg, #C17661 0%, #9E5C49 55%, #5B4B7A 100%);
  color: #FAF8E9;
  transform: translateY(-1px);
  box-shadow: 0 18px 38px -12px rgba(158, 92, 73, 0.45);
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover {
  background: linear-gradient(135deg, #C17661 0%, #9E5C49 55%, #5B4B7A 100%);
  color: #FAF8E9;
  transform: translateY(-1px);
  box-shadow: 0 18px 38px -12px rgba(158, 92, 73, 0.45);
}

.menu-btn {
  display: none;
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  color: var(--ink);
}

/* ============================================
   Mobile nav
   ============================================ */

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 60;
  display: none;
  flex-direction: column;
  padding: 24px var(--gutter);
}
.mobile-nav.open { display: flex; }
.mobile-nav-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 48px; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-links a {
  font-family: var(--serif-display);
  font-size: 48px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}

@media (max-width: 880px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header-cta { display: none; }
}

/* ============================================
   Hero
   ============================================ */

.hero {
  padding: 160px var(--gutter) 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  position: relative;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--rule);
}

.hero-meta {
  display: flex; flex-direction: column; gap: 6px;
}
.hero-meta .label { color: var(--ink-soft); }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft);
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}

.hero-title {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(56px, 11vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.hero-title .line { display: block; }
.hero-title .ital { font-style: italic; color: var(--gold-deep); font-weight: 400; }
:root[data-theme="dark"] .hero-title .ital { color: var(--gold); }

.hero-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: end;
  margin-top: 40px;
}

@media (max-width: 880px) {
  .hero-split { grid-template-columns: 1fr; gap: 40px; }
  .hero-top { flex-direction: column; align-items: flex-start; }
}

.hero-copy { max-width: 480px; }
.hero-copy p { margin: 0 0 24px; color: var(--ink-soft); font-size: 19px; line-height: 1.55; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.hero-side {
  display: flex; flex-direction: column; gap: 24px;
}
.hero-side .label { margin-bottom: 8px; display: block; }

.hero-blurb {
  font-family: var(--serif-display);
  font-size: 22px;
  line-height: 1.3;
  font-style: italic;
  color: var(--ink);
  padding-left: 20px;
  border-left: 2px solid var(--gold);
}
.hero-blurb cite { display: block; margin-top: 12px; font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }

/* Hero stage — the book */
.hero-stage {
  margin-top: 56px;
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}

/* ============================================
   Book (CSS)
   ============================================ */

.book {
  width: 460px; max-width: 90vw;
  aspect-ratio: 1 / 1;
  position: relative;
  perspective: 1800px;
}

.book-spread {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform: rotateY(-18deg) rotateX(2deg);
  transition: transform 1s var(--ease);
}
.book:hover .book-spread { transform: rotateY(-10deg) rotateX(1deg); }

.book-cover {
  position: absolute; inset: 0;
  background: linear-gradient(145deg, #1A2744 0%, #2A3B64 50%, #0E1420 100%);
  border-radius: 4px 14px 14px 4px;
  box-shadow:
    0 40px 80px -20px rgba(14,20,32,0.4),
    0 20px 40px -10px rgba(14,20,32,0.3),
    inset -2px 0 6px rgba(0,0,0,0.3);
  padding: 36px 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--paper);
  overflow: hidden;
}

.book-cover::before {
  content: "";
  position: absolute;
  left: 14px; top: 14px; bottom: 14px; right: 14px;
  border: 1px solid rgba(184,147,90, 0.5);
  border-radius: 2px;
  pointer-events: none;
}

.book-cover::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0; width: 8px;
  background: linear-gradient(90deg, rgba(0,0,0,.3), transparent);
}

.book-ornament {
  font-family: var(--serif-display);
  font-style: italic;
  color: var(--gold);
  font-size: 18px;
  letter-spacing: 0.05em;
  text-align: center;
}

.book-title {
  font-family: var(--serif-display);
  font-size: 44px;
  line-height: 1;
  text-align: center;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.book-title .ital { font-style: italic; color: var(--gold); font-weight: 400; display: block; font-size: 56px; margin: 4px 0; }

.book-byline {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(244,237,224,0.65);
  text-align: center;
}

.book-illustration {
  width: 120px; height: 120px;
  margin: 0 auto;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, #2D3A57, #0E1420);
  position: relative;
}
.book-illustration svg { width: 70%; }

.book-pages {
  position: absolute;
  top: 6px; right: -2px; bottom: 6px; width: 14px;
  background:
    repeating-linear-gradient(90deg, #FAF8E9 0 2px, #FAF8E9 2px 3px);
  border-radius: 0 4px 4px 0;
  transform: translateZ(-4px);
}

.book-shadow {
  position: absolute;
  left: 8%; right: 8%;
  bottom: -30px;
  height: 40px;
  background: radial-gradient(ellipse, rgba(14,20,32,0.3), transparent 70%);
  filter: blur(6px);
  z-index: -1;
}

/* Floating ornaments around hero */
.ornament {
  position: absolute;
  color: var(--gold);
  opacity: 0.3;
  pointer-events: none;
}
.ornament svg { width: 100%; height: 100%; }
.orn-1 { top: 8%; right: 12%; width: 72px; transform: rotate(15deg); }
.orn-2 { bottom: 14%; left: 8%; width: 52px; transform: rotate(-20deg); }
.orn-3 { top: 50%; right: 6%; width: 40px; }

/* ============================================
   Marquee ticker
   ============================================ */

.marquee {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  padding: 20px 0;
  background: var(--paper);
  display: flex;
  gap: 80px;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}
.marquee-track {
  display: flex;
  gap: 80px;
  animation: scroll 48s linear infinite;
  flex-shrink: 0;
  padding-right: 80px;
}
.marquee span {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 28px;
  color: var(--ink);
  white-space: nowrap;
}
.marquee span::before {
  content: "✦";
  color: var(--gold);
  margin-right: 80px;
  font-style: normal;
}
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   Flow / steps section
   ============================================ */

.section {
  padding: 120px var(--gutter);
}

.section-header {
  max-width: var(--max);
  margin: 0 auto 80px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: end;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 880px) {
  .section-header { grid-template-columns: 1fr; gap: 24px; }
}

.section-title {
  font-family: var(--serif-display);
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0;
}
.section-title .ital { font-style: italic; color: var(--gold-deep); }
:root[data-theme="dark"] .section-title .ital { color: var(--gold); }

.section-intro { color: var(--ink-soft); font-size: 19px; line-height: 1.5; max-width: 560px; }

.flow {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.flow-step {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 28px 24px 32px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: background .3s;
}
.flow-step:hover { background: var(--surface); }
.flow-step .num { color: var(--gold-deep); }
:root[data-theme="dark"] .flow-step .num { color: var(--gold); }
.flow-step h3 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.05;
  margin: 4px 0 6px;
}
.flow-step p { color: var(--ink-soft); font-size: 15px; line-height: 1.5; margin: 0; }
.flow-step .icon {
  position: absolute;
  bottom: 20px; right: 20px;
  width: 36px; height: 36px;
  color: var(--gold);
  opacity: 0.4;
}

@media (max-width: 1100px) { .flow { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .flow { grid-template-columns: repeat(2, 1fr); } }

/* ============================================
   Demo section (interactive phone)
   ============================================ */

.demo {
  background: var(--surface);
  padding: 120px var(--gutter);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.demo-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 980px) {
  .demo-grid { grid-template-columns: 1fr; gap: 48px; }
}

.demo-copy h2 { font-family: var(--serif-display); font-weight: 400; font-size: clamp(36px, 5vw, 64px); line-height: 1; margin: 16px 0 24px; letter-spacing: -0.02em; }
.demo-copy h2 .ital { font-style: italic; color: var(--gold-deep); }
:root[data-theme="dark"] .demo-copy h2 .ital { color: var(--gold); }
.demo-copy p { color: var(--ink-soft); font-size: 18px; line-height: 1.55; max-width: 440px; margin: 0 0 24px; }

.demo-steps-list { list-style: none; padding: 0; margin: 24px 0 0; }
.demo-steps-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  align-items: center;
  cursor: pointer;
  transition: color .2s;
}
.demo-steps-list li:last-child { border-bottom: 1px solid var(--rule); }
.demo-steps-list li:hover { color: var(--ink); }
.demo-steps-list li.active {
  color: var(--ink);
}
.demo-steps-list li.active .num { color: var(--gold); }
.demo-steps-list .label-step {
  font-family: var(--serif-display);
  font-size: 22px;
  font-weight: 500;
}

/* Phone frame */
.phone {
  width: 360px;
  max-width: 100%;
  margin: 0 auto;
  aspect-ratio: 9 / 19;
  background: var(--ink);
  border-radius: 44px;
  padding: 10px;
  box-shadow: 0 40px 80px -20px rgba(14,20,32,0.3), 0 10px 30px -10px rgba(14,20,32,0.25);
  position: relative;
}
.phone::before {
  content: "";
  position: absolute;
  top: 22px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 24px;
  background: #000;
  border-radius: 100px;
  z-index: 3;
}
.phone-screen {
  width: 100%; height: 100%;
  background: var(--paper);
  border-radius: 34px;
  overflow: hidden;
  position: relative;
}

.phone-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  color: var(--ink);
}
.progress-bar {
  height: 3px;
  background: var(--rule);
  border-radius: 3px;
  overflow: hidden;
  margin: 0 20px 16px;
}
.progress-fill {
  height: 100%;
  background: var(--gold);
  transition: width .6s var(--ease);
}

.phone-body {
  padding: 0 20px 24px;
  height: calc(100% - 60px);
  overflow: hidden;
  position: relative;
}
.phone-screen-state {
  position: absolute;
  inset: 0;
  padding: 0 20px 24px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  pointer-events: none;
}
.phone-screen-state.active { opacity: 1; transform: translateY(0); pointer-events: auto; }

.phone-label { font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 8px; }
.phone-h { font-family: var(--serif-display); font-size: 28px; line-height: 1; margin: 0 0 12px; font-weight: 500; letter-spacing: -0.01em; }
.phone-h .ital { font-style: italic; color: var(--gold-deep); }

.phone-upload {
  margin-top: 16px;
  aspect-ratio: 1;
  border: 1px dashed var(--rule-strong);
  border-radius: 14px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.phone-upload-child {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #FAF8E9, #FAF8E9);
  display: grid; place-items: center;
}
.phone-upload-child svg { width: 60%; opacity: 0.5; }

.phone-traits { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.chip {
  padding: 5px 10px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer; transition: all .2s;
}
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.phone-styles {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 16px;
}
.style-card {
  aspect-ratio: 1;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  cursor: pointer;
}
.style-card.watercolor { background: linear-gradient(135deg, #C9D4E8, #FAF8E9); }
.style-card.manga { background: linear-gradient(135deg, #2D3A57, #5B4B7A); color: #FAF8E9; }
.style-card.classic { background: linear-gradient(135deg, #FAF8E9, #A2B8C5); }
.style-card.threeD { background: linear-gradient(135deg, #A897C4, #5B4B7A); color: #FAF8E9; }
.style-card.on { outline: 2px solid var(--gold); outline-offset: 2px; }
.style-card span { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; }

.phone-avatars { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.avatar-card {
  aspect-ratio: 1;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .2s;
}
.avatar-card.on { border-color: var(--gold); }
.avatar-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.3));
}
.avatar-a { background: linear-gradient(135deg, #5B4B7A, #2D3A57); }
.avatar-b { background: linear-gradient(135deg, #747A8A, #A2B8C5); }
.avatar-card svg { position: absolute; bottom: 8px; right: 8px; z-index: 2; width: 18px; color: white; opacity: 0; transition: opacity .2s; }
.avatar-card.on svg { opacity: 1; }

.phone-prompt {
  margin-top: 16px;
  border: 1px solid var(--rule-strong);
  border-radius: 14px;
  padding: 14px;
  min-height: 110px;
  font-family: var(--serif-read);
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink);
}
.phone-prompt .ghost { color: var(--ink-mute); font-style: italic; }
.phone-cursor { display: inline-block; width: 1px; height: 1em; background: var(--ink); vertical-align: middle; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0; } }

.phone-concepts { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.concept {
  border: 1px solid var(--rule-strong);
  border-radius: 12px;
  padding: 12px;
  font-family: var(--serif-display);
  font-size: 16px;
  line-height: 1.15;
  cursor: pointer;
}
.concept.on { border-color: var(--gold); background: var(--paper-2); }
.concept small { display: block; font-family: var(--mono); font-size: 8px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 4px; }

.phone-preview {
  margin-top: 16px;
  aspect-ratio: 1;
  border-radius: 10px;
  background: linear-gradient(145deg, #1A2744, #0E1420);
  padding: 16px;
  display: flex; flex-direction: column; justify-content: space-between;
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.phone-preview::before {
  content: "";
  position: absolute;
  left: 8px; top: 8px; bottom: 8px; right: 8px;
  border: 1px solid rgba(184,147,90,0.5);
  border-radius: 4px;
  pointer-events: none;
}
.phone-preview .tiny {
  font-family: var(--serif-display); font-size: 22px; line-height: 1; text-align: center;
}
.phone-preview .tiny .ital { font-style: italic; color: var(--gold); display: block; font-size: 28px; }

.phone-total {
  margin-top: 16px;
  padding: 14px;
  background: var(--paper-2);
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.phone-total .t-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.phone-total .t-val { font-family: var(--serif-display); font-size: 26px; font-weight: 500; }

.phone-cta {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 14px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  text-align: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
}

/* ============================================
   Features grid
   ============================================ */

.features {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.feature {
  grid-column: span 4;
  padding: 28px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--surface);
  display: flex; flex-direction: column; gap: 12px;
  min-height: 240px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(14,20,32,0.2); }
.feature.span-6 { grid-column: span 6; }
.feature.span-8 { grid-column: span 8; }
.feature h3 { font-family: var(--serif-display); font-size: 32px; line-height: 1.05; font-weight: 500; margin: 0; letter-spacing: -0.01em; }
.feature p { color: var(--ink-soft); font-size: 16px; margin: 0; line-height: 1.5; }
.feature .label { margin-bottom: 8px; }

.feature-big {
  grid-column: span 12;
  min-height: 340px;
  padding: 48px;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.feature-big h3 { font-family: var(--serif-display); font-weight: 400; font-size: clamp(32px, 4.5vw, 56px); line-height: 1; margin: 0; }
.feature-big h3 .ital { font-style: italic; color: var(--gold); }
.feature-big p { font-size: 18px; color: rgba(244,237,224,0.7); margin: 20px 0 0; }

.feature-big-visual {
  aspect-ratio: 4/3;
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(184,147,90,0.3), rgba(91,75,122,0.3)),
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(244,237,224,0.04) 12px 13px);
  border: 1px solid rgba(184,147,90,0.3);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(244,237,224,0.5);
}

@media (max-width: 880px) {
  .feature, .feature.span-6, .feature.span-8 { grid-column: span 12; }
  .feature-big { grid-template-columns: 1fr; padding: 32px; }
}

/* ============================================
   Styles carousel
   ============================================ */

.styles-showcase {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.style-tile {
  aspect-ratio: 3/4;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: white;
  transition: transform .4s var(--ease);
}
.style-tile:hover { transform: translateY(-6px); }
.style-tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.6));
  pointer-events: none;
}
.style-tile > * { position: relative; z-index: 2; }
.style-tile .label { color: rgba(255,255,255,0.6); }
.style-tile h4 { font-family: var(--serif-display); font-size: 32px; font-weight: 400; margin: 4px 0 0; font-style: italic; line-height: 1; }

.tile-watercolor { background: linear-gradient(160deg, #B6C9E1 0%, #FAF8E9 55%, #A2B8C5 100%); }
.tile-manga { background: linear-gradient(160deg, #1A2744 0%, #5B4B7A 100%); }
.tile-classic { background: linear-gradient(160deg, #747A8A 0%, #FAF8E9 100%); color: #1A2744; }
.tile-classic .label { color: rgba(26,39,68,0.6); }
.tile-3d { background: linear-gradient(160deg, #A897C4 0%, #5B4B7A 60%, #1A2744 100%); }
.tile-super { background: linear-gradient(160deg, #A23B2C 0%, #1A2744 100%); }

@media (max-width: 980px) { .styles-showcase { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .styles-showcase { grid-template-columns: repeat(2, 1fr); } }

/* ============================================
   Trust row
   ============================================ */

.trust-row {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: 2px;
  overflow: hidden;
}
.trust-cell {
  padding: 40px 32px;
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 12px;
  background: var(--surface);
}
.trust-cell:last-child { border-right: 0; }
.trust-cell .label { color: var(--gold-deep); }
:root[data-theme="dark"] .trust-cell .label { color: var(--gold); }
.trust-cell h4 { font-family: var(--serif-display); font-size: 22px; margin: 0; font-weight: 500; letter-spacing: -0.01em; line-height: 1.1; }
.trust-cell p { color: var(--ink-soft); font-size: 15px; margin: 0; line-height: 1.5; }

@media (max-width: 880px) { .trust-row { grid-template-columns: 1fr 1fr; } .trust-cell:nth-child(2n) { border-right: 0; } .trust-cell:nth-child(-n+2) { border-bottom: 1px solid var(--rule); } }
@media (max-width: 520px) { .trust-row { grid-template-columns: 1fr; } .trust-cell { border-right: 0; border-bottom: 1px solid var(--rule); } .trust-cell:last-child { border-bottom: 0; } }

/* ============================================
   Merch
   ============================================ */

.merch {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
}
.merch-card {
  aspect-ratio: 4/5;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  background: var(--surface);
  display: flex; align-items: flex-end;
  padding: 20px;
  border: 1px solid var(--rule);
  transition: transform .3s, box-shadow .3s;
}
.merch-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(0,0,0,0.2); }
.merch-bg {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: var(--paper-2);
}
.merch-bg svg { width: 55%; color: var(--ink); opacity: 0.7; }
.merch-meta { position: relative; z-index: 2; }
.merch-meta .label { display: block; margin-bottom: 4px; }
.merch-meta h5 { font-family: var(--serif-display); font-size: 22px; margin: 0; font-weight: 500; }

@media (max-width: 880px) { .merch { grid-template-columns: 1fr 1fr; } }

/* ============================================
   Waitlist / CTA
   ============================================ */

.waitlist {
  padding: 160px var(--gutter);
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.waitlist-inner {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  text-align: center;
}

.waitlist .label { color: var(--gold); }

.waitlist h2 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 128px);
  line-height: 0.95;
  margin: 16px 0 24px;
  letter-spacing: -0.02em;
}
.waitlist h2 .ital { font-style: italic; color: var(--gold); }

.waitlist p { font-size: 20px; color: rgba(244,237,224,0.7); max-width: 560px; margin: 0 auto 40px; }

.waitlist-form {
  display: flex;
  gap: 8px;
  max-width: 520px;
  margin: 0 auto;
  background: rgba(244,237,224,0.08);
  border: 1px solid rgba(244,237,224,0.2);
  border-radius: 999px;
  padding: 6px;
  transition: border-color .2s;
}
.waitlist-form:focus-within { border-color: var(--gold); }
.waitlist-form input {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 14px 20px;
  color: var(--paper);
  font-family: var(--serif-read);
  font-size: 16px;
  outline: none;
}
.waitlist-form input::placeholder { color: rgba(244,237,224,0.4); }
.waitlist-form button {
  padding: 14px 24px;
  background: var(--gold);
  color: var(--ink);
  border-radius: 999px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 500;
  transition: background .2s;
}
.waitlist-form button:hover { background: var(--paper); }

.waitlist-error, .waitlist-success {
  display: block;
  margin-top: 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  opacity: 0;
  transition: opacity .3s;
  min-height: 1em;
}
.waitlist-error { color: #E8A595; }
.waitlist-success { color: var(--gold); }
.waitlist-error.visible, .waitlist-success.visible { opacity: 1; }

.waitlist-note { margin-top: 40px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(244,237,224,0.4); }

.waitlist-bg {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  pointer-events: none;
}
.waitlist-bg::before, .waitlist-bg::after {
  content: "✦";
  position: absolute;
  font-size: 180px;
  color: var(--gold);
  font-family: var(--serif-display);
}
.waitlist-bg::before { top: 10%; left: 8%; transform: rotate(15deg); }
.waitlist-bg::after { bottom: 10%; right: 8%; transform: rotate(-20deg); }

/* ============================================
   Footer
   ============================================ */

.footer {
  padding: 80px var(--gutter) 40px;
  border-top: 1px solid var(--rule);
  position: relative;
  z-index: 2;
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer h5 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 20px; font-weight: 400; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: var(--ink); font-size: 15px; transition: color .2s; }
.footer ul a:hover { color: var(--gold-deep); }
:root[data-theme="dark"] .footer ul a:hover { color: var(--gold); }
.footer-brand { font-family: var(--serif-display); font-style: italic; font-size: 32px; line-height: 1; margin-bottom: 8px; }
.footer-brand-sub { color: var(--ink-soft); font-size: 15px; max-width: 320px; }
.footer-meta {
  max-width: var(--max);
  margin: 32px auto 0;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
@media (max-width: 640px) { .footer-meta { flex-direction: column; gap: 8px; } }

/* ============================================
   Reveal animations
   ============================================ */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================
   Tweaks panel
   ============================================ */

.tweaks {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 70;
  width: 280px;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 14px;
  box-shadow: 0 20px 60px -20px rgba(14,20,32,0.3);
  padding: 18px;
  display: none;
  flex-direction: column;
  gap: 14px;
}
.tweaks.open { display: flex; }
.tweaks h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 4px; display: flex; justify-content: space-between; align-items: center; font-weight: 400; }
.tweaks h4 button { color: var(--ink-soft); }
.tweak-row { display: flex; flex-direction: column; gap: 6px; }
.tweak-row label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.tweak-swatches { display: flex; gap: 6px; }
.tweak-swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--rule-strong); cursor: pointer; }
.tweak-swatch.on { outline: 2px solid var(--gold); outline-offset: 2px; }
.tweak-select {
  padding: 8px 10px;
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  font-family: var(--serif-read);
  font-size: 13px;
  color: var(--ink);
}

/* Page-specific tweaks */
[data-hero="book"] .hero-alt { display: none; }
[data-hero="type"] .hero-book-stage { display: none; }
[data-hero="type"] .hero-alt { display: block; }

.hero-alt {
  margin-top: 56px;
  text-align: center;
  font-family: var(--serif-display);
  font-size: clamp(48px, 10vw, 140px);
  line-height: 0.95;
  color: var(--gold-deep);
}
.hero-alt .line { display: block; font-style: italic; }
.hero-alt .line:nth-child(2) { color: var(--ink); font-style: normal; }

:root[data-theme="dark"] .hero-alt { color: var(--gold); }

/* About page specific */
.about-hero { padding: 180px var(--gutter) 80px; }
.about-hero h1 { font-family: var(--serif-display); font-weight: 400; font-size: clamp(64px, 10vw, 160px); line-height: 0.9; margin: 0; letter-spacing: -0.02em; }
.about-hero h1 .ital { font-style: italic; color: var(--gold-deep); }
:root[data-theme="dark"] .about-hero h1 .ital { color: var(--gold); }
.about-hero p { font-size: 22px; line-height: 1.5; color: var(--ink-soft); max-width: 640px; margin-top: 32px; }

.about-quote {
  max-width: 1000px;
  margin: 80px auto;
  padding: 40px var(--gutter);
  font-family: var(--serif-display);
  font-style: italic;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.2;
  text-align: center;
  color: var(--ink);
}
.about-quote::before, .about-quote::after { content: "❝"; color: var(--gold); font-size: 72px; display: block; font-style: normal; line-height: 0.5; margin-bottom: 16px; }
.about-quote::after { content: "❞"; margin-top: 24px; }

.principles-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.principle {
  padding: 32px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  min-height: 240px;
  display: flex; flex-direction: column; gap: 16px;
}
.principle .num { color: var(--gold-deep); }
:root[data-theme="dark"] .principle .num { color: var(--gold); }
.principle h3 { font-family: var(--serif-display); font-size: 26px; font-weight: 500; margin: 0; line-height: 1.1; }
.principle p { color: var(--ink-soft); font-size: 15px; line-height: 1.5; margin: 0; }

@media (max-width: 880px) { .principles-grid { grid-template-columns: 1fr; } }

.timeline-block {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
}
.timeline-block:last-child { border-bottom: 1px solid var(--rule); }
.timeline-year { font-family: var(--serif-display); font-size: 48px; font-style: italic; color: var(--gold-deep); }
:root[data-theme="dark"] .timeline-year { color: var(--gold); }
.timeline-content h4 { font-family: var(--serif-display); font-size: 32px; font-weight: 500; margin: 0 0 12px; line-height: 1.1; }
.timeline-content p { color: var(--ink-soft); font-size: 16px; line-height: 1.55; margin: 0; max-width: 640px; }

@media (max-width: 640px) {
  .timeline-block { grid-template-columns: 1fr; gap: 12px; }
  .timeline-year { font-size: 32px; }
}

/* Contact page */
.contact-wrap {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  padding: 40px 0;
}
@media (max-width: 880px) { .contact-wrap { grid-template-columns: 1fr; gap: 48px; } }

.contact-form { display: flex; flex-direction: column; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  padding: 10px 0;
  font-family: var(--serif-read);
  font-size: 17px;
  color: var(--ink);
  outline: none;
  transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
.field.error input, .field.error textarea { border-color: var(--danger); }
.field-error { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--danger); min-height: 1em; }

.contact-info { padding: 32px; border: 1px solid var(--rule-strong); border-radius: 2px; background: var(--surface); display: flex; flex-direction: column; gap: 32px; }
.contact-info-block .label { display: block; margin-bottom: 8px; }
.contact-info-block h4 { font-family: var(--serif-display); font-size: 22px; font-weight: 500; margin: 0 0 4px; }
.contact-info-block p { color: var(--ink-soft); margin: 0; }
.contact-info-block a { color: var(--ink); border-bottom: 1px solid var(--gold); }

.contact-success {
  display: none;
  padding: 16px 20px;
  background: var(--paper-2);
  border: 1px solid var(--gold);
  border-radius: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-deep);
}
:root[data-theme="dark"] .contact-success { color: var(--gold); }
.contact-success.visible { display: block; }

/* Features page */
.big-stat {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.big-stat .cell {
  padding: 48px 32px;
  border-right: 1px solid var(--rule);
}
.big-stat .cell:last-child { border-right: 0; }
.big-stat .num-big { font-family: var(--serif-display); font-size: clamp(48px, 7vw, 96px); font-weight: 400; line-height: 1; color: var(--gold-deep); letter-spacing: -0.02em; margin-bottom: 8px; }
:root[data-theme="dark"] .big-stat .num-big { color: var(--gold); }
.big-stat .stat-label { font-family: var(--serif-display); font-size: 24px; line-height: 1.2; margin-bottom: 6px; }
.big-stat .stat-sub { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }

@media (max-width: 880px) { .big-stat { grid-template-columns: 1fr; } .big-stat .cell { border-right: 0; border-bottom: 1px solid var(--rule); } .big-stat .cell:last-child { border-bottom: 0; } }

.age-table {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  border-collapse: collapse;
}
.age-table th, .age-table td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif-read);
  font-size: 16px;
}
.age-table th {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 400;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule-strong);
}
.age-table tr:hover td { background: var(--surface); }
.age-table td:first-child { font-family: var(--serif-display); font-size: 20px; color: var(--gold-deep); font-weight: 500; }
:root[data-theme="dark"] .age-table td:first-child { color: var(--gold); }

/* ============================================
   PH — Premium product-launch redesign (homepage)
   ============================================ */

.brand-mono {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: auto;
  color: var(--ink);
}
.brand-monogram {
  width: 32px; height: 32px;
  display: inline-block;
}
.brand-monogram svg { width: 100%; height: 100%; display: block; }
.brand-wordmark {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.header.scrolled .brand-monogram { width: 28px; height: 28px; }
.header.scrolled .brand-wordmark { font-size: 16px; }
.header.scrolled .brand-mono,
.header.scrolled .brand.brand-mono { height: auto; }

/* override existing brand img rule when using monogram */
.brand-mono img { display: none; }

/* Header refinements */
.header { padding: 22px var(--gutter); }
.header.scrolled { padding: 14px var(--gutter); }
.nav a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
}
.nav a:hover { color: var(--ink); background: transparent; }
.nav a.active::after { display: none; }

.btn-lg { padding: 16px 26px; font-size: 11px; }
.btn-link {
  padding: 14px 4px;
  background: transparent;
  color: var(--ink);
  border: 0;
  border-radius: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
}
.btn-link::after {
  content: "";
  position: absolute; left: 4px; right: 30px; bottom: 8px;
  height: 1px; background: var(--ink); opacity: 0.4;
  transition: opacity .25s var(--ease), right .25s var(--ease);
}
.btn-link:hover::after { opacity: 1; right: 24px; }
.btn-link span { transition: transform .25s var(--ease); display: inline-block; }
.btn-link:hover span { transform: translateX(4px); }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  letter-spacing: 0.18em;
}

/* Mobile nav refinements */
.mobile-nav-links a.muted {
  font-size: 22px;
  color: var(--ink-soft);
  font-style: italic;
}

/* Section primitives */
.ph-section-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.ph-section-label--gold { color: var(--gold); }

/* ============================================
   PH Hero
   ============================================ */

.ph-hero {
  padding: 200px var(--gutter) 80px;
  position: relative;
  overflow: hidden;
}
.ph-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.ph-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 36px;
}
.ph-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  animation: pulse 2.4s ease-in-out infinite;
}

.ph-hero-title {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(48px, 9vw, 132px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 auto;
  max-width: 14ch;
  text-wrap: balance;
}
.ph-hero-title .line { display: block; }
.ph-hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
}

.ph-hero-sub {
  font-family: var(--serif-read);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 28px auto 40px;
  font-weight: 300;
  text-wrap: pretty;
}

.ph-hero-actions {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 80px;
}

.ph-hero-stage {
  position: relative;
  margin: 40px auto 60px;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 1 / 1.05;
  display: grid;
  place-items: center;
}

.ph-stage-meta {
  position: absolute;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
  top: 50%;
}
.ph-stage-meta.meta-l { left: 0; transform: rotate(-90deg) translateX(50%); transform-origin: left top; }
.ph-stage-meta.meta-r { right: 0; transform: rotate(90deg) translateX(-50%); transform-origin: right top; }

@media (max-width: 720px) {
  .ph-stage-meta { display: none; }
}

.ph-hero-foot {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-soft);
}
.ph-rule-tick { position: relative; }
.ph-rule-tick + .ph-rule-tick::before {
  content: "✦";
  color: var(--gold);
  font-style: normal;
  margin-right: 48px;
  font-size: 12px;
  vertical-align: middle;
}

/* ============================================
   PH Book — full-colour hero product
   ============================================ */

.ph-book {
  position: relative;
  width: min(58vw, 460px);
  aspect-ratio: 0.78 / 1;
  perspective: 2400px;
  transform-style: preserve-3d;
  will-change: transform;
}
.ph-book-shadow {
  position: absolute;
  left: 6%; right: 6%;
  bottom: -22px;
  height: 56px;
  background: radial-gradient(ellipse at center, rgba(31,29,26,0.32), transparent 70%);
  filter: blur(14px);
  z-index: -1;
}
.ph-book-spine {
  position: absolute;
  left: -6px; top: 0; bottom: 0;
  width: 18px;
  background: linear-gradient(90deg, #0B1631 0%, #182748 50%, #0E1A36 100%);
  border-radius: 2px 0 0 2px;
  transform: translateZ(-2px);
  box-shadow: inset -2px 0 4px rgba(0,0,0,0.35);
}
.ph-book-pages {
  position: absolute;
  top: 4px; right: -3px; bottom: 4px;
  width: 10px;
  background: repeating-linear-gradient(0deg, #FAF8E9 0 1.5px, #C2C2C2 1.5px 2px);
  border-radius: 0 2px 2px 0;
  z-index: -1;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.ph-book-cover {
  position: relative;
  height: 100%;
  background:
    radial-gradient(ellipse at 30% 0%, #2D4078 0%, #16213A 50%, #0B1631 100%);
  border-radius: 2px 6px 6px 2px;
  box-shadow:
    0 60px 120px -40px rgba(11,22,49,0.55),
    0 30px 60px -20px rgba(11,22,49,0.4),
    inset -3px 0 8px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.06);
  padding: 7% 8%;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #FAF8E9;
  overflow: hidden;
}
.ph-book-cover::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(233, 195, 106, 0.5);
  border-radius: 2px;
  pointer-events: none;
}
.ph-book-cover::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 18px;
  background: linear-gradient(90deg, rgba(0,0,0,0.4), transparent);
  pointer-events: none;
}
.ph-book-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 4% 0;
}
.ph-book-ornament {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.5em;
  color: #C17661;
  text-align: center;
}
.ph-book-art {
  width: 76%;
  aspect-ratio: 1;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  border: 1px solid rgba(233, 195, 106, 0.4);
}
.ph-book-art svg { width: 100%; height: 100%; display: block; }
.ph-book-title {
  font-family: var(--serif-display);
  text-align: center;
  color: #FAF8E9;
  line-height: 1.05;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ph-book-pretitle {
  font-size: clamp(11px, 1.4vw, 15px);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 400;
  color: rgba(246, 229, 176, 0.7);
}
.ph-book-name {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: clamp(34px, 5.2vw, 60px);
  font-weight: 500;
  color: #C17661;
  letter-spacing: -0.01em;
  margin: 4px 0;
}
.ph-book-byline {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(246, 229, 176, 0.55);
  text-align: center;
}

/* ============================================
   PH Statement
   ============================================ */

.ph-statement {
  padding: 140px var(--gutter);
  position: relative;
  border-top: 1px solid var(--rule);
}
.ph-statement-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.ph-statement-title {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 104px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 28px auto 36px;
  max-width: 18ch;
  text-wrap: balance;
}
.ph-statement-title em {
  font-style: italic;
  color: var(--ink);
}
.ph-statement-title .strike {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: var(--taupe);
  color: var(--ink-mute);
  font-weight: 300;
}
.ph-statement-body {
  font-family: var(--serif-read);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 64ch;
  margin: 0 auto;
  font-weight: 300;
  text-wrap: pretty;
}

/* ============================================
   PH Reveal — sticky product moment
   ============================================ */

.ph-reveal {
  position: relative;
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.ph-reveal-track {
  position: relative;
  height: 320vh;
}
.ph-reveal-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 0 var(--gutter);
  max-width: 1320px;
  margin: 0 auto;
}
.ph-reveal-book {
  display: grid;
  place-items: center;
  height: 100%;
}
.ph-revealbook {
  position: relative;
  width: min(36vw, 380px);
  aspect-ratio: 0.78 / 1;
  transform-origin: center center;
  transition: transform 1s var(--ease);
}
.ph-revealbook-shadow {
  position: absolute;
  left: 6%; right: 6%;
  bottom: -22px;
  height: 50px;
  background: radial-gradient(ellipse at center, rgba(31,29,26,0.32), transparent 70%);
  filter: blur(14px);
  z-index: -1;
}
.ph-revealbook-cover {
  position: relative;
  height: 100%;
  background: radial-gradient(ellipse at 30% 0%, #2D4078 0%, #16213A 50%, #0B1631 100%);
  border-radius: 2px 6px 6px 2px;
  box-shadow:
    0 50px 100px -30px rgba(11,22,49,0.55),
    inset -3px 0 8px rgba(0,0,0,0.35);
  padding: 8% 9%;
  overflow: hidden;
}
.ph-revealbook-cover::before {
  content: "";
  position: absolute; inset: 14px;
  border: 1px solid rgba(233,195,106,0.45);
  border-radius: 2px;
}
.ph-revealbook-cover::after {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 14px;
  background: linear-gradient(90deg, rgba(0,0,0,0.4), transparent);
}
.ph-revealbook-frame {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: space-between;
  padding: 6% 0;
  color: #FAF8E9;
}
.ph-revealbook-ornament {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 14px;
  color: #C17661;
}
.ph-revealbook-art {
  width: 75%; aspect-ratio: 1;
  border-radius: 2px; overflow: hidden;
  border: 1px solid rgba(233,195,106,0.35);
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}
.ph-revealbook-art svg { width: 100%; height: 100%; display: block; }
.ph-revealbook-title {
  font-family: var(--serif-display);
  text-align: center;
  display: flex; flex-direction: column;
  gap: 2px;
}
.ph-revealbook-title span {
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(246,229,176,0.65); font-weight: 400;
}
.ph-revealbook-title strong {
  font-style: italic; font-weight: 500;
  font-size: clamp(28px, 3.6vw, 46px);
  color: #C17661;
  margin: 4px 0;
}
.ph-revealbook-byline {
  font-family: var(--mono); font-size: 8px;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: rgba(246,229,176,0.5);
}
.ph-revealbook-pages {
  position: absolute; top: 4px; right: -3px; bottom: 4px; width: 8px;
  background: repeating-linear-gradient(0deg, #FAF8E9 0 1.5px, #C2C2C2 1.5px 2px);
  border-radius: 0 2px 2px 0; z-index: -1;
}

.ph-reveal-text { position: relative; min-height: 420px; }
.ph-reveal-captions {
  list-style: none; padding: 0; margin: 0;
  position: relative;
}
.ph-reveal-captions li {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  pointer-events: none;
  max-width: 480px;
}
.ph-reveal-captions li.active {
  opacity: 1; transform: none; pointer-events: auto;
}
.ph-reveal-captions h3 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(32px, 4.2vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 6px 0 0;
}
.ph-reveal-captions h3 em { font-style: italic; }
.ph-reveal-captions p {
  font-family: var(--serif-read);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
  font-weight: 300;
  max-width: 44ch;
}
.ph-reveal-captions p em { font-style: italic; color: var(--ink); }

@media (max-width: 880px) {
  .ph-reveal-track { height: auto; }
  .ph-reveal-stage {
    position: static;
    height: auto;
    grid-template-columns: 1fr;
    padding: 100px var(--gutter);
    gap: 56px;
  }
  .ph-reveal-text { min-height: auto; }
  .ph-reveal-captions { display: flex; flex-direction: column; gap: 64px; }
  .ph-reveal-captions li {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    max-width: none;
  }
  .ph-revealbook { width: min(70vw, 320px); }
}

/* ============================================
   PH Spreads — full-colour preview moment
   ============================================ */

.ph-spreads {
  padding: 140px 0;
  background: var(--paper);
  border-top: 1px solid var(--rule);
}
.ph-spreads-head {
  max-width: 1100px;
  margin: 0 auto 80px;
  padding: 0 var(--gutter);
  text-align: center;
}
.ph-spreads-title {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 92px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 24px 0 24px;
  text-wrap: balance;
}
.ph-spreads-title em { font-style: italic; }
.ph-spreads-sub {
  font-family: var(--serif-read);
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 auto;
  font-weight: 300;
}

.ph-spreads-rail {
  display: flex;
  flex-direction: column;
  gap: 80px;
  padding: 0 var(--gutter);
  max-width: 1280px;
  margin: 0 auto;
}

.ph-spread {
  position: relative;
}
.ph-spread-label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 20px;
}
.ph-spread-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #FAF8E9;
  box-shadow:
    0 40px 80px -30px rgba(31,29,26,0.25),
    0 8px 20px -10px rgba(31,29,26,0.15);
  border: 1px solid rgba(31,29,26,0.06);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.ph-spread-inner::before {
  content: "";
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 24px;
  transform: translateX(-50%);
  background:
    linear-gradient(90deg, transparent, rgba(31,29,26,0.18) 45%, rgba(31,29,26,0.28) 50%, rgba(31,29,26,0.18) 55%, transparent);
  pointer-events: none;
  z-index: 3;
}
.ph-spread-page {
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
}
.ph-spread-page.page-r {
  padding: 12% 12% 10%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #FAF8E9;
}
.ph-spread-copy {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 32px);
  line-height: 1.3;
  color: var(--ink);
  margin: 0;
}
.ph-spread-copy em { font-style: italic; color: var(--gold-deep); }
.ph-spread-folio {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 32px;
}
.ph-spread-art {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}

/* Night spread art */
.ph-art-night {
  background:
    radial-gradient(ellipse at 70% 25%, #3E5798 0%, #1B2C56 45%, #0E1A36 100%);
}
.ph-art-night .ph-art-moon {
  position: absolute;
  top: 18%; right: 18%;
  width: 18%; aspect-ratio: 1;
  background: #FAF8E9;
  border-radius: 50%;
  box-shadow: 0 0 60px 20px rgba(246,229,176,0.35);
}
.ph-art-night .ph-art-moon::after {
  content: "";
  position: absolute; inset: 0;
  background: #1B2C56;
  border-radius: 50%;
  transform: translate(-22%, -8%) scale(0.95);
}
.ph-art-night .ph-art-stars span {
  position: absolute;
  width: 3px; height: 3px;
  background: #FAF8E9;
  border-radius: 50%;
  box-shadow: 0 0 6px #FAF8E9;
}
.ph-art-night .ph-art-stars span:nth-child(1) { top: 20%; left: 18%; }
.ph-art-night .ph-art-stars span:nth-child(2) { top: 30%; left: 38%; width: 2px; height: 2px; }
.ph-art-night .ph-art-stars span:nth-child(3) { top: 12%; left: 55%; width: 4px; height: 4px; }
.ph-art-night .ph-art-stars span:nth-child(4) { top: 45%; left: 12%; width: 2px; height: 2px; }
.ph-art-night .ph-art-stars span:nth-child(5) { top: 14%; left: 80%; width: 2px; height: 2px; }
.ph-art-night .ph-art-stars span:nth-child(6) { top: 50%; left: 65%; width: 2px; height: 2px; }
.ph-art-night .ph-art-stars span:nth-child(7) { top: 38%; left: 88%; }
.ph-art-night .ph-art-stars span:nth-child(8) { top: 60%; left: 30%; width: 2px; height: 2px; }
.ph-art-night .ph-art-hill {
  position: absolute;
  left: -10%; right: -10%; bottom: 0;
  height: 38%;
  background:
    radial-gradient(ellipse at 30% 100%, #4A3866 0%, #1A1530 60%, transparent 70%),
    radial-gradient(ellipse at 80% 100%, #3A2E55 0%, #1A1530 65%, transparent 75%);
  border-top-left-radius: 50% 100%;
  border-top-right-radius: 50% 100%;
}
.ph-art-night .ph-art-child {
  position: absolute;
  left: 28%; bottom: 10%;
  width: 14%; aspect-ratio: 1;
  background:
    radial-gradient(circle at 50% 32%, #C17661 0 14%, transparent 15%),
    linear-gradient(180deg, transparent 30%, #A23B2C 30%, #A23B2C 75%, #3A2E55 75%);
  border-radius: 30% 30% 4px 4px;
}

/* Meadow spread art */
.ph-art-meadow {
  background:
    linear-gradient(180deg, #B6D8E5 0%, #DCE8C9 60%, #C9D88A 100%);
}
.ph-art-meadow .ph-art-sun {
  position: absolute;
  top: 14%; left: 20%;
  width: 16%; aspect-ratio: 1;
  background: #FAF8E9;
  border-radius: 50%;
  box-shadow: 0 0 50px 16px rgba(246,229,176,0.5);
}
.ph-art-meadow .ph-art-clouds span {
  position: absolute;
  background: #FAF8E9;
  border-radius: 50%;
}
.ph-art-meadow .ph-art-clouds span:nth-child(1) {
  top: 24%; right: 18%;
  width: 22%; height: 12%;
  box-shadow: -16px -4px 0 #FAF8E9, 16px 0 0 #FAF8E9;
}
.ph-art-meadow .ph-art-clouds span:nth-child(2) {
  top: 18%; right: 50%;
  width: 14%; height: 8%;
  box-shadow: -10px -2px 0 #FAF8E9;
}
.ph-art-meadow .ph-art-meadow-grass {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 35%;
  background:
    linear-gradient(180deg, #A8C56A 0%, #6E8E3E 100%);
  border-top-left-radius: 60% 40%;
  border-top-right-radius: 60% 40%;
}
.ph-art-meadow .ph-art-flowers span {
  position: absolute;
  width: 14px; height: 14px;
  background:
    radial-gradient(circle, #FAF8E9 0 30%, transparent 32%),
    radial-gradient(circle at 50% 0%, #C17661 0 18%, transparent 20%);
  border-radius: 50%;
}
.ph-art-meadow .ph-art-flowers span::before,
.ph-art-meadow .ph-art-flowers span::after {
  content: "";
  position: absolute;
  width: 100%; height: 100%;
  border-radius: 50%;
}
.ph-art-meadow .ph-art-flowers span:nth-child(1) { bottom: 14%; left: 20%; background: radial-gradient(circle, #C17661 0 30%, #FAF8E9 32% 60%, transparent 62%); }
.ph-art-meadow .ph-art-flowers span:nth-child(2) { bottom: 8%; left: 45%; background: radial-gradient(circle, #C17661 0 30%, #C84B4B 32% 60%, transparent 62%); }
.ph-art-meadow .ph-art-flowers span:nth-child(3) { bottom: 20%; left: 70%; background: radial-gradient(circle, #C17661 0 30%, #FAF8E9 32% 60%, transparent 62%); }
.ph-art-meadow .ph-art-flowers span:nth-child(4) { bottom: 12%; right: 12%; background: radial-gradient(circle, #C17661 0 30%, #B47AC4 32% 60%, transparent 62%); }

/* Sea spread art */
.ph-art-sea {
  background: linear-gradient(180deg, #F2D8A1 0%, #E9B27A 35%, #C8806B 100%);
  position: relative;
}
.ph-art-sea .ph-art-sea-sky { position: absolute; inset: 0; }
.ph-art-sea .ph-art-sea-sun {
  position: absolute;
  top: 24%; left: 50%; transform: translateX(-50%);
  width: 24%; aspect-ratio: 1;
  background: #FBE0A0;
  border-radius: 50%;
  box-shadow: 0 0 80px 24px rgba(246,229,176,0.6);
}
.ph-art-sea .ph-art-sea-water {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 45%;
  background:
    linear-gradient(180deg, #4A6F8E 0%, #2E4A66 100%);
}
.ph-art-sea .ph-art-sea-water::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 14px, rgba(255,255,255,0.08) 14px 16px);
}
.ph-art-sea .ph-art-boat {
  position: absolute;
  left: 50%; bottom: 30%;
  transform: translateX(-50%);
  width: 18%; aspect-ratio: 2 / 1;
  background:
    linear-gradient(180deg, transparent 50%, #5A3A28 50%);
  clip-path: polygon(10% 50%, 90% 50%, 80% 100%, 20% 100%);
}
.ph-art-sea .ph-art-boat::before {
  content: "";
  position: absolute;
  left: 48%; bottom: 50%;
  width: 4%; height: 200%;
  background: #4A2E1E;
}
.ph-art-sea .ph-art-boat::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 50%;
  width: 0; height: 0;
  border-left: 0 solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 50px solid #FAF8E9;
}

@media (max-width: 720px) {
  .ph-spread-inner { grid-template-columns: 1fr; }
  .ph-spread-inner::before { display: none; }
  .ph-spread-page.page-r { aspect-ratio: auto; padding: 32px; }
}

.ph-spreads-foot {
  max-width: 720px;
  margin: 100px auto 0;
  padding: 0 var(--gutter);
  text-align: center;
}
.ph-spreads-foot p {
  font-family: var(--serif-read);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 12px 0 0;
  font-weight: 300;
}

/* ============================================
   PH Keep — emotional outcome
   ============================================ */

.ph-keep {
  padding: 160px var(--gutter);
  border-top: 1px solid var(--rule);
}
.ph-keep-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.ph-keep-title {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 128px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  margin: 0 0 80px;
  max-width: 14ch;
}
.ph-keep-title em { font-style: italic; color: var(--gold-deep); }
:root[data-theme="dark"] .ph-keep-title em { color: var(--gold); }

.ph-keep-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.ph-keep-cell {
  padding: 40px 32px 0 0;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 200px;
}
.ph-keep-cell:last-child { border-right: 0; padding-right: 0; }
.ph-keep-cell:not(:first-child) { padding-left: 32px; }
.ph-keep-cell p {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
}

@media (max-width: 880px) {
  .ph-keep-grid { grid-template-columns: 1fr; }
  .ph-keep-cell { border-right: 0; border-bottom: 1px solid var(--rule); padding: 32px 0; }
  .ph-keep-cell:not(:first-child) { padding-left: 0; }
  .ph-keep-cell:last-child { border-bottom: 0; }
}

/* ============================================
   PH Waitlist
   ============================================ */

.ph-waitlist {
  padding: 160px var(--gutter);
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.ph-waitlist-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.ph-waitlist .ph-section-label { color: var(--gold); }
.ph-waitlist-title {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 128px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  margin: 24px 0 32px;
}
.ph-waitlist-title em { font-style: italic; color: var(--gold); }
.ph-waitlist-sub {
  font-family: var(--serif-read);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.55;
  color: rgba(246,241,231,0.7);
  max-width: 56ch;
  margin: 0 auto 48px;
  font-weight: 300;
  text-wrap: pretty;
}
.ph-waitlist-form {
  display: flex;
  gap: 8px;
  max-width: 520px;
  margin: 0 auto;
  background: rgba(246,241,231,0.06);
  border: 1px solid rgba(246,241,231,0.18);
  border-radius: 999px;
  padding: 6px;
  transition: border-color .25s var(--ease);
}
.ph-waitlist-form:focus-within { border-color: var(--gold); }
.ph-waitlist-form input {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 16px 22px;
  color: var(--paper);
  font-family: var(--serif-read);
  font-size: 16px;
  outline: none;
}
.ph-waitlist-form input::placeholder { color: rgba(246,241,231,0.4); }

/* Override browser autofill so the pill doesn't turn into a blue square. */
.ph-waitlist-form input:-webkit-autofill,
.ph-waitlist-form input:-webkit-autofill:hover,
.ph-waitlist-form input:-webkit-autofill:focus,
.ph-waitlist-form input:-webkit-autofill:active {
  -webkit-text-fill-color: #FAF8E9;
  -webkit-box-shadow: 0 0 0 1000px transparent inset;
          box-shadow: 0 0 0 1000px transparent inset;
  caret-color: #FAF8E9;
  border-radius: 999px;
  background-clip: text;
  -webkit-background-clip: text;
  transition: background-color 9999s ease-in-out 0s, color 9999s ease-in-out 0s;
}

.ph-waitlist-form button {
  padding: 16px 26px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: all .25s var(--ease);
  white-space: nowrap;
}
.ph-waitlist-form button:hover { background: var(--gold); color: var(--ink); }
.ph-waitlist-fineprint {
  margin-top: 60px;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 20px;
  color: rgba(246,241,231,0.5);
}

.ph-waitlist .waitlist-error,
.ph-waitlist .waitlist-success {
  display: block;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity .3s;
  min-height: 1em;
}
.ph-waitlist .waitlist-error { color: #E8A595; }
.ph-waitlist .waitlist-success { color: var(--gold); }
.ph-waitlist .waitlist-error.visible,
.ph-waitlist .waitlist-success.visible { opacity: 1; }

/* ============================================
   PH Footer
   ============================================ */

.ph-footer {
  padding: 80px var(--gutter) 36px;
  border-top: 1px solid var(--rule);
}
.ph-footer-top {
  max-width: var(--max);
  margin: 0 auto 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}
.ph-footer-tag {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 20px;
  color: var(--ink-soft);
  margin: 0;
}
.ph-footer-nav {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.ph-footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ph-footer-nav a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color .2s;
}
.ph-footer-nav a:hover { color: var(--ink); }

.ph-footer-meta {
  max-width: var(--max);
  margin: 56px auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

@media (max-width: 880px) {
  .ph-footer-nav { grid-template-columns: 1fr 1fr; }
  .ph-footer-meta { flex-direction: column; gap: 8px; }
}

/* ============================================
   PH Reveal-on-scroll (richer than .reveal)
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .ph-revealbook { transform: none !important; }
}

/* Hide the old hero-alt typography variant on the new page */
.hero-alt { display: none !important; }

/* ============================================
   PH2 — Apple/Nike redesign (animated logo hero,
   pinned how-it-works, palette shifts, testimonials, FAQ)
   ============================================ */

:root {
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Page-level scene transitions (cream → night → cream).
   Scene-switching is now disabled in JS (locked to "dawn"); these
   rules remain as the static base. No body-level color transition
   so individual section colours never blend through unreadable
   intermediates as scenes change. */
body[data-scene="dawn"]  { background: var(--paper); color: var(--ink); }
body[data-scene="night"] { background: #0E1A36; color: #FAF8E9; }
body[data-scene="day"]   { background: var(--paper); color: var(--ink); }
body[data-scene="night"] .header-quiet { color: #FAF8E9; }
body[data-scene="night"] .header-quiet .brand-wordmark,
body[data-scene="night"] .header-quiet .brand-monogram { color: #FAF8E9; }
body[data-scene="night"] .header-quiet .nav a { color: rgba(246,241,231,0.7); }
body[data-scene="night"] .header-quiet .btn-primary { background: #FAF8E9; color: #0E1A36; }
body[data-scene="night"] .header-quiet .theme-toggle { color: rgba(246,241,231,0.7); border-color: rgba(246,241,231,0.2); }

.header.scrolled { background: color-mix(in srgb, currentColor 0%, var(--paper) 88%); backdrop-filter: blur(14px); }
body[data-scene="night"] .header.scrolled { background: rgba(14,26,54,0.85); }

/* Page-turn overlay — superseded by transitions.js (.ph-fx-*) */

/* ============ HERO — animated mark ============ */

.ph2-hero {
  position: relative;
  min-height: 100vh;
  padding: 140px var(--gutter) 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ph2-hero-canvas {
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1.4 / 1;
  margin: 0 auto 32px;
}

.ph2-stars { position: absolute; inset: 0; pointer-events: none; }
.ph2-stars span {
  position: absolute;
  left: var(--x); top: var(--y);
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold);
  opacity: 0;
  animation: ph2-twinkle 3.6s var(--ease-soft) infinite, ph2-fadein 1.4s var(--ease-soft) forwards;
  animation-delay: var(--d), calc(var(--d) + 0.4s);
}
@keyframes ph2-twinkle { 0%,100%{opacity:.4;transform:scale(1)} 50%{opacity:1;transform:scale(1.4)} }
@keyframes ph2-fadein { to { opacity: 1; } }

.ph2-mark {
  position: relative;
  width: 100%; height: 100%;
  display: grid; place-items: center;
}
.ph2-mark-stage {
  position: relative;
  width: min(360px, 50vw);
  aspect-ratio: 1;
}

/* Book — opens on load */
.ph2-book {
  position: absolute;
  left: 50%; bottom: 8%;
  transform: translateX(-50%);
  width: 92%; aspect-ratio: 2 / 1.1;
  perspective: 1400px;
  transform-style: preserve-3d;
}
.ph2-book-page {
  position: absolute;
  top: 0; bottom: 0;
  width: 50%;
  background: linear-gradient(180deg, #FAF8E9 0%, #ECE0C5 100%);
  box-shadow: inset 0 -2px 8px rgba(0,0,0,0.08), 0 8px 20px rgba(31,29,26,0.18);
  transform-origin: right center;
  transform: rotateY(90deg);
  opacity: 0;
  animation: ph2-book-open-l 1.6s var(--ease-soft) 0.3s forwards;
}
.ph2-book-page--l { left: 0; }
.ph2-book-page--r {
  right: 0;
  transform-origin: left center;
  transform: rotateY(-90deg);
  animation-name: ph2-book-open-r;
  display: grid; place-items: center;
}
.ph2-book-spine {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 4px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #6B5028, #3A2A14);
  box-shadow: 0 6px 18px rgba(31,29,26,0.3);
  opacity: 0;
  animation: ph2-fadein 0.6s var(--ease-soft) 0.2s forwards;
  border-radius: 1px;
}
@keyframes ph2-book-open-l { 0%{transform:rotateY(90deg);opacity:0} 60%{opacity:1} 100%{transform:rotateY(0deg);opacity:1} }
@keyframes ph2-book-open-r { 0%{transform:rotateY(-90deg);opacity:0} 60%{opacity:1} 100%{transform:rotateY(0deg);opacity:1} }

/* Smoothed hero page-open: longer duration, hardback-like ease */
.ph4-hero .ph2-book-page {
  animation-duration: 2.6s;
  animation-timing-function: cubic-bezier(0.32, 0.72, 0.24, 1);
  animation-delay: 0.6s;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform, opacity;
}

.ph2-book-100 {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: clamp(56px, 11vw, 96px);
  font-weight: 500;
  color: var(--gold-deep);
  letter-spacing: -0.02em;
  opacity: 0;
  animation: ph2-fadein 0.8s var(--ease-soft) 1.6s forwards;
}

/* Moon — rises into place */
.ph2-moon {
  position: absolute;
  top: 8%; left: 50%;
  width: 22%; aspect-ratio: 1;
  transform: translate(-50%, 30px);
  opacity: 0;
  animation: ph2-moon-rise 1.6s var(--ease-soft) 1.4s forwards, ph2-moon-drift 9s ease-in-out 3s infinite;
}
.ph2-moon-face {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 35% 35%, #FBE9B5 0%, #C17661 70%, #C29240 100%);
  border-radius: 50%;
  box-shadow: 0 0 60px 16px rgba(233,195,106,0.35);
}
.ph2-moon-shade {
  position: absolute;
  inset: 0;
  background: var(--paper);
  border-radius: 50%;
  transform: translate(-22%, -8%) scale(0.92);
}
body[data-scene="night"] .ph2-moon-shade { background: #0E1A36; }
/* (removed second body transition — see top of file note about scene system) */
@keyframes ph2-moon-rise { 0%{opacity:0;transform:translate(-50%,30px)} 100%{opacity:1;transform:translate(-50%,0)} }
@keyframes ph2-moon-drift { 0%,100%{transform:translate(-50%,0)} 50%{transform:translate(-48%,-4px)} }

/* Decorative stars in mark */
.ph2-mark-star {
  position: absolute;
  font-family: var(--serif-display);
  color: var(--gold);
  font-size: 18px;
  opacity: 0;
  animation: ph2-fadein 0.8s var(--ease-soft) forwards, ph2-twinkle 3.2s ease-in-out infinite;
}
.ph2-mark-star--1 { top: 6%; left: 28%; font-size: 22px; animation-delay: 1.7s, 2.2s; }
.ph2-mark-star--2 { top: 16%; right: 22%; font-size: 14px; animation-delay: 1.9s, 2.4s; }
.ph2-mark-star--3 { top: 28%; right: 12%; font-size: 18px; animation-delay: 2.1s, 2.6s; }

/* Hero copy */
.ph2-hero-copy {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}
.ph2-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 28px;
  opacity: 0;
  animation: ph2-fadein 1s var(--ease-soft) 0.2s forwards;
}
.ph2-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  animation: ph2-twinkle 2.4s ease-in-out infinite;
}

.ph2-hero-title {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(44px, 8.5vw, 124px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.ph2-hero-title .line { display: block; }
.ph2-hero-title em { font-style: italic; color: var(--gold-deep); }
body[data-scene="night"] .ph2-hero-title { color: #FAF8E9; }
body[data-scene="night"] .ph2-hero-title em { color: var(--gold); }

/* Word-by-word reveal */
[data-reveal-words] .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.3em);
  transition: opacity 0.8s var(--ease-soft), transform 0.8s var(--ease-soft);
}
[data-reveal-words].in .w { opacity: 1; transform: none; }
[data-reveal-words].in .w:nth-child(1) { transition-delay: 0.05s; }
[data-reveal-words].in .w:nth-child(2) { transition-delay: 0.15s; }
[data-reveal-words].in .w:nth-child(3) { transition-delay: 0.25s; }
[data-reveal-words].in .w:nth-child(4) { transition-delay: 0.35s; }
[data-reveal-words].in .w:nth-child(5) { transition-delay: 0.45s; }
[data-reveal-words].in .w:nth-child(6) { transition-delay: 0.55s; }
[data-reveal-words].in .w:nth-child(7) { transition-delay: 0.65s; }
[data-reveal-words].in .line:nth-child(2) .w:nth-child(1) { transition-delay: 0.55s; }
[data-reveal-words].in .line:nth-child(2) .w:nth-child(2) { transition-delay: 0.65s; }
[data-reveal-words].in .line:nth-child(2) .w:nth-child(3) { transition-delay: 0.75s; }

.ph2-hero-sub {
  font-family: var(--serif-read);
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 24px auto 36px;
  font-weight: 300;
  text-wrap: pretty;
}
body[data-scene="night"] .ph2-hero-sub { color: rgba(246,241,231,0.7); }

.ph2-hero-actions {
  display: inline-flex; gap: 18px; flex-wrap: wrap; justify-content: center;
}

.ph2-section-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 24px;
}
.ph2-section-label--gold { color: var(--gold); }

/* ============ THE PROMISE ============ */

.ph2-promise {
  padding: clamp(72px, 9vh, 120px) var(--gutter);
  border-top: 1px solid var(--rule);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}
.ph2-promise-inner { max-width: 1280px; margin: 0 auto; width: 100%; }
.ph2-promise-title {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(40px, 6.5vw, 96px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0 0 clamp(36px, 5vh, 72px);
  max-width: 18ch;
  text-wrap: balance;
}
.ph2-promise-title em { font-style: italic; }
.ph2-promise-title .strike {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: var(--taupe);
  color: var(--ink-mute);
  font-weight: 300;
}
.ph2-promise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.ph2-promise-cell {
  padding: clamp(28px, 4vh, 48px) 40px 0 0;
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column;
  gap: 16px;
  min-height: clamp(200px, 28vh, 280px);
}
.ph2-promise-cell:last-child { border-right: 0; padding-right: 0; }
.ph2-promise-cell:not(:first-child) { padding-left: 40px; }
.ph2-cell-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.ph2-promise-cell h3 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0;
}
.ph2-promise-cell h3 em { font-style: italic; color: var(--gold-deep); }
.ph2-promise-cell p {
  font-family: var(--serif-read);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
  font-weight: 300;
}
.ph2-promise-cell p em { font-style: italic; color: var(--ink); }

/* Brand credo — closing italic line under the three Promise cells */
.ph2-promise-credo {
  margin: clamp(28px, 4vh, 56px) auto 0;
  text-align: center;
  font-family: var(--serif-display);
  font-size: clamp(22px, 2.3vw, 32px);
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.005em;
  position: relative;
  padding: 24px 0 0;
}
.ph2-promise-credo::before {
  content: "";
  position: absolute; top: 0; left: 50%;
  width: 36px; height: 1px;
  background: var(--gold);
  transform: translateX(-50%);
  opacity: 0.7;
}
.ph2-promise-credo span { font-weight: 400; }
.ph2-promise-credo em { font-style: italic; color: var(--gold-deep); }

@media (max-width: 880px) {
  .ph2-promise-grid { grid-template-columns: 1fr; }
  .ph2-promise-cell { border-right: 0; border-bottom: 1px solid var(--rule); padding: 32px 0; min-height: auto; }
  .ph2-promise-cell:not(:first-child) { padding-left: 0; }
  .ph2-promise-cell:last-child { border-bottom: 0; }
}

/* ============ HOW IT WORKS — pinned ============ */

.ph2-how {
  background: #0E1A36;
  color: #FAF8E9;
  position: relative;
}
.ph2-how-track { height: 380vh; position: relative; }
.ph2-how-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 80px var(--gutter);
  max-width: 1320px;
  margin: 0 auto;
}
.ph2-how-visual {
  position: relative;
  height: min(560px, 70vh);
  display: grid; place-items: center;
}
.ph2-how-frame {
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  opacity: 0;
  transition: opacity 0.8s var(--ease-soft), transform 0.8s var(--ease-soft);
  transform: scale(0.96);
}
.ph2-how-frame.active { opacity: 1; transform: none; }

/* Frame 0 — letter */
.ph2-how-letter {
  width: 280px; aspect-ratio: 0.78 / 1;
  background: #FAF8E9;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.4);
  padding: 40px 32px;
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
}
.ph2-letter-page {
  flex: 1;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 24px, rgba(31,29,26,0.08) 24px 25px);
  margin-bottom: 16px;
}
.ph2-letter-sig {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 18px;
  color: var(--ink);
  align-self: flex-end;
}

/* Frame 1 — sketch */
.ph2-how-sketch {
  width: 240px; aspect-ratio: 1;
  color: #FAF8E9;
}
.ph2-how-sketch svg { width: 100%; height: 100%; }

/* Frame 2 — spread */
.ph2-how-spread {
  width: 360px; aspect-ratio: 2 / 1.15;
  background: #FAF8E9;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.4);
  display: grid; grid-template-columns: 1fr 1fr;
  position: relative;
}
.ph2-how-spread::before {
  content: ""; position: absolute;
  left: 50%; top: 0; bottom: 0; width: 1px;
  background: rgba(31,29,26,0.18);
  transform: translateX(-50%);
}
.ph2-how-spread-l { padding: 16px; }
.ph2-how-spread-art {
  width: 100%; height: 100%;
  background:
    radial-gradient(circle at 70% 30%, #FAF8E9 6%, #C17661 8%, transparent 10%),
    linear-gradient(180deg, #1B2C56 0%, #5B4B7A 70%, #3A2E55 100%);
}
.ph2-how-spread-r {
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
}
.ph2-how-spread-text {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
  text-align: center;
}

/* Frame 3 — finished book */
.ph2-how-finished {
  position: relative;
  width: 220px; aspect-ratio: 0.78 / 1;
}
.ph2-how-finished-shadow {
  position: absolute; left: 6%; right: 6%;
  bottom: -20px; height: 40px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.5), transparent 70%);
  filter: blur(12px);
}
.ph2-how-finished-book {
  position: relative;
  width: 100%; height: 100%;
}
.ph2-how-finished-cover {
  height: 100%;
  background:
    radial-gradient(ellipse at 30% 10%, rgba(45, 64, 120, 0.4) 0%, transparent 60%),
    linear-gradient(160deg, #1F2C50 0%, #16213A 50%, #0B1631 100%);
  border-radius: 2px 6px 6px 2px;
  border: 1px solid rgba(193, 118, 97, 0.32);
  box-shadow:
    inset 0 0 0 1px rgba(193, 118, 97, 0.08),
    inset 0 -40px 80px rgba(0,0,0,0.4);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px;
  color: #C17661;
  position: relative;
  overflow: hidden;
}

/* Animated double border that "ignites" with gold-foil stroke */
.ph2-how-finished-frame {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1; pointer-events: none;
}
.ph2-how-finished-frame .pf-border {
  fill: none;
  stroke: #D88B73;
  stroke-width: 0.5;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  filter: drop-shadow(0 0 1.5px rgba(216, 139, 115, 0.6));
}
.ph2-how-finished-frame .pf-border-inner {
  stroke-width: 0.25;
  opacity: 0.7;
}

/* The diagonal gold-foil light sweep that "presses" the type */
.ph2-how-finished-sweep {
  position: absolute; inset: -20% -40%;
  background: linear-gradient(115deg,
    transparent 35%,
    rgba(193,118,97,0) 42%,
    rgba(216, 139, 115, 0.28) 48%,
    rgba(250, 248, 233, 0.5) 52%,
    rgba(216, 139, 115, 0.28) 56%,
    rgba(193,118,97,0) 62%,
    transparent 70%);
  background-size: 100% 100%;
  z-index: 2;
  opacity: 0;
  transform: translateX(-100%);
  mix-blend-mode: screen;
  pointer-events: none;
}

/* Stamped title: 100 + name */
.ph2-how-finished-100 {
  font-family: var(--serif-display);
  font-size: 44px;
  font-style: italic;
  color: #D88B73;
  position: relative; z-index: 3;
  opacity: 0;
  line-height: 1;
  letter-spacing: -0.01em;
  text-shadow: 0 0 12px rgba(216, 139, 115, 0);
  transform: scale(0.94);
}
.ph2-how-finished-name {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 24px;
  color: #FAF8E9;
  position: relative; z-index: 3;
  opacity: 0;
  line-height: 1;
  letter-spacing: 0.02em;
  text-shadow: 0 0 8px rgba(250, 248, 233, 0);
  transform: scale(0.94);
}

/* Ornament line under the name — small flourish drawn left-to-right */
.ph2-how-finished-ornament {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  opacity: 0;
  transform: translateY(2px);
}
.ph2-how-finished-ornament .pf-orn-line {
  display: inline-block;
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #D88B73, transparent);
  transform: scaleX(0);
  transform-origin: center;
}
.ph2-how-finished-ornament .pf-orn-line:first-child { transform-origin: right; }
.ph2-how-finished-ornament .pf-orn-line:last-child { transform-origin: left; }
.ph2-how-finished-ornament .pf-orn-dot {
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #D88B73;
  box-shadow: 0 0 6px rgba(216, 139, 115, 0.7);
  opacity: 0;
}

/* Twinkling sparkles in corners */
.ph2-how-finished-sparkles {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 4; pointer-events: none;
}
.ph2-how-finished-sparkles .pf-spark {
  fill: #D88B73;
  filter: drop-shadow(0 0 3px rgba(216, 139, 115, 0.85));
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
}

/* ============ FINISHED-BOOK ANIMATION TIMELINE ============
   Triggered when .ph2-how-frame[data-how-frame="3"] gets .active. */

/* 0.0s – 1.0s: gold-foil borders ignite */
.ph2-how-frame.active .ph2-how-finished-frame .pf-border-outer {
  animation: pf-stroke 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) 0.05s forwards;
}
.ph2-how-frame.active .ph2-how-finished-frame .pf-border-inner {
  animation: pf-stroke 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) 0.25s forwards;
}

/* 0.4s – 1.6s: gold light sweeps diagonally across the cover */
.ph2-how-frame.active .ph2-how-finished-sweep {
  animation: pf-sweep 1.2s cubic-bezier(0.4, 0.0, 0.2, 1) 0.4s forwards;
}

/* 1.05s + 1.3s: type "stamps" as the sweep crosses */
.ph2-how-frame.active .ph2-how-finished-100 {
  animation: pf-stamp 0.55s cubic-bezier(0.18, 1.4, 0.42, 1) 1.05s forwards;
}
.ph2-how-frame.active .ph2-how-finished-name {
  animation: pf-stamp 0.55s cubic-bezier(0.18, 1.4, 0.42, 1) 1.3s forwards;
}

/* 1.7s: ornament line draws */
.ph2-how-frame.active .ph2-how-finished-ornament {
  animation: pf-fadein 0.35s ease 1.7s forwards;
}
.ph2-how-frame.active .ph2-how-finished-ornament .pf-orn-line {
  animation: pf-orn-line 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) 1.75s forwards;
}
.ph2-how-frame.active .ph2-how-finished-ornament .pf-orn-dot {
  animation: pf-orn-dot 0.4s ease 2.1s forwards;
}

/* 1.8s+: corner sparkles twinkle in turn */
.ph2-how-frame.active .ph2-how-finished-sparkles .pf-spark-1 {
  animation: pf-twinkle 2.4s ease-in-out 1.85s infinite;
}
.ph2-how-frame.active .ph2-how-finished-sparkles .pf-spark-2 {
  animation: pf-twinkle 2.4s ease-in-out 2.35s infinite;
}
.ph2-how-frame.active .ph2-how-finished-sparkles .pf-spark-3 {
  animation: pf-twinkle 2.4s ease-in-out 2.85s infinite;
}

/* 2.3s: cover settles with a tiny tilt */
.ph2-how-frame.active .ph2-how-finished-book {
  animation: pf-settle 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) 2.3s forwards;
}

@keyframes pf-stroke {
  to { stroke-dashoffset: 0; }
}
@keyframes pf-sweep {
  0%   { opacity: 0; transform: translateX(-110%); }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(110%); }
}
@keyframes pf-stamp {
  0%   { opacity: 0; transform: scale(0.86); text-shadow: 0 0 0 rgba(216, 139, 115, 0); filter: blur(2px); }
  30%  { opacity: 1; transform: scale(1.08); text-shadow: 0 0 22px rgba(216, 139, 115, 0.9); filter: blur(0); }
  60%  { transform: scale(0.98); text-shadow: 0 0 14px rgba(216, 139, 115, 0.45); }
  100% { opacity: 1; transform: scale(1); text-shadow: 0 0 8px rgba(216, 139, 115, 0.18); filter: blur(0); }
}
@keyframes pf-fadein {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pf-orn-line {
  to { transform: scaleX(1); }
}
@keyframes pf-orn-dot {
  0%   { opacity: 0; transform: scale(0.4); }
  50%  { opacity: 1; transform: scale(1.4); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes pf-twinkle {
  0%, 100% { opacity: 0; transform: scale(0.4) rotate(0deg); }
  35%      { opacity: 1; transform: scale(1.1) rotate(45deg); }
  65%      { opacity: 0.7; transform: scale(0.95) rotate(80deg); }
}
@keyframes pf-settle {
  0%   { transform: rotate(0deg) translateY(0); }
  40%  { transform: rotate(-1.2deg) translateY(-3px); }
  100% { transform: rotate(0deg) translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .ph2-how-frame.active .ph2-how-finished-100,
  .ph2-how-frame.active .ph2-how-finished-name,
  .ph2-how-frame.active .ph2-how-finished-ornament,
  .ph2-how-frame.active .ph2-how-finished-frame .pf-border {
    animation: none;
    opacity: 1;
    transform: none;
    stroke-dashoffset: 0;
  }
  .ph2-how-frame.active .ph2-how-finished-ornament .pf-orn-line { transform: scaleX(1); }
  .ph2-how-frame.active .ph2-how-finished-ornament .pf-orn-dot { opacity: 1; }
  .ph2-how-finished-sweep,
  .ph2-how-finished-sparkles { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ph2-how-finished-portrait .pf-stroke { stroke-dashoffset: 0; }
  .ph2-how-finished-100, .ph2-how-finished-name { opacity: 1; }
  .ph2-how-finished-brush { display: none; }
}

.ph2-how-progress {
  position: absolute;
  bottom: -32px;
  left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px;
}
.ph2-how-progress span {
  width: 24px; height: 1px;
  background: rgba(246,241,231,0.25);
  transition: background 0.4s var(--ease-soft), width 0.4s var(--ease-soft);
}
.ph2-how-progress span.active { background: var(--gold); width: 36px; }

/* Steps text */
.ph2-how-text { position: relative; }
.ph2-how-text .ph2-section-label { color: rgba(246,241,231,0.55); }
.ph2-how-steps {
  list-style: none; padding: 0; margin: 16px 0 0;
  position: relative;
  min-height: 280px;
}
.ph2-how-steps li {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex; flex-direction: column;
  gap: 16px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-soft), transform 0.8s var(--ease-soft);
  pointer-events: none;
  max-width: 460px;
}
.ph2-how-steps li.active { opacity: 1; transform: none; pointer-events: auto; }
.ph2-step-num {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
}
.ph2-how-steps h3 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 4px 0 0;
  color: #FAF8E9;
}
.ph2-how-steps h3 em { font-style: italic; color: var(--gold); }
.ph2-how-steps p {
  font-family: var(--serif-read);
  font-size: 17px;
  line-height: 1.6;
  color: rgba(246,241,231,0.7);
  margin: 0;
  font-weight: 300;
  max-width: 44ch;
}

@media (max-width: 880px) {
  .ph2-how-track { height: auto; }
  .ph2-how-stage { position: static; height: auto; grid-template-columns: 1fr; padding: 100px var(--gutter); gap: 56px; }
  .ph2-how-visual { height: 380px; }
  .ph2-how-steps { display: flex; flex-direction: column; gap: 56px; min-height: auto; }
  .ph2-how-steps li { position: static; opacity: 1; transform: none; pointer-events: auto; }
}

/* ============ THE BOOK — full bleed ============ */

.ph2-book-section {
  position: relative;
  border-top: 1px solid var(--rule);
}
.ph2-book-bleed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 720px;
  background: linear-gradient(180deg, #ECE0C5 0%, #D9C9A6 100%);
  overflow: hidden;
}
.ph2-book-room {
  position: absolute; inset: 0;
}
.ph2-book-room-floor {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 28%;
  background: linear-gradient(180deg, #B8A37A 0%, #8E7752 100%);
}
.ph2-book-room-shelf {
  position: absolute;
  right: 8%; top: 18%;
  width: 22%; height: 6px;
  background: #6B5028;
  display: flex; gap: 6px;
  padding: 0 6px;
  align-items: flex-end;
}
.ph2-book-room-shelf::before {
  content: ""; position: absolute;
  left: 0; right: 0; top: -52px; height: 52px;
  background:
    repeating-linear-gradient(90deg,
      #5B4B7A 0 14px, #3A2E55 14px 18px,
      #6B5028 18px 32px, #4A3623 32px 36px,
      #1B2C56 36px 50px, #0B1631 50px 54px);
  border-radius: 2px 2px 0 0;
}
.ph2-book-room-window {
  position: absolute;
  left: 10%; top: 14%;
  width: 24%; aspect-ratio: 4 / 5;
  background: linear-gradient(180deg, #FBE9B5 0%, #FAF8E9 60%, #C17661 100%);
  border: 6px solid #FAF8E9;
  box-shadow: 0 0 80px 20px rgba(246,229,176,0.3);
}
.ph2-book-room-window::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, transparent 49%, #FAF8E9 49% 51%, transparent 51%),
    linear-gradient(0deg, transparent 49%, #FAF8E9 49% 51%, transparent 51%);
}
.ph2-book-room-book {
  position: absolute;
  left: 50%; top: 52%;
  transform: translate(-50%, -50%) rotateZ(-3deg);
  width: 26%; aspect-ratio: 0.78 / 1;
  filter: drop-shadow(0 30px 50px rgba(31,29,26,0.4));
  will-change: transform;
}
.ph2-book-room-cover {
  height: 100%;
  background: radial-gradient(ellipse at 30% 0%, #2D4078 0%, #16213A 50%, #0B1631 100%);
  border-radius: 2px 6px 6px 2px;
  padding: 8% 9%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: space-between;
  gap: 12px;
  color: #FAF8E9;
  position: relative;
  overflow: hidden;
}
.ph2-book-room-cover::before {
  content: ""; position: absolute; inset: 14px;
  border: 1px solid rgba(233,195,106,0.45);
}
.ph2-book-room-art {
  width: 75%; aspect-ratio: 1;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid rgba(233,195,106,0.4);
}
.ph2-book-room-art svg { width: 100%; height: 100%; display: block; }
.ph2-book-room-title {
  display: flex; flex-direction: column;
  align-items: center; gap: 2px;
  font-family: var(--serif-display);
  text-align: center;
}
.ph2-book-room-title small {
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(246,229,176,0.65); font-weight: 400;
}
.ph2-book-room-title em {
  font-style: italic; font-size: 28px;
  color: var(--gold);
  font-weight: 500;
}

.ph2-book-words {
  max-width: 1280px;
  margin: 0 auto;
  padding: 100px var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
}
.ph2-book-words h2 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 16px 0 0;
  text-wrap: balance;
}
.ph2-book-words h2 em { font-style: italic; color: var(--gold-deep); }
.ph2-book-words p {
  font-family: var(--serif-read);
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
  font-weight: 300;
  max-width: 48ch;
}
.ph2-book-specs {
  list-style: none; padding: 0; margin: 32px 0 0;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0;
  grid-column: 1 / -1;
  border-top: 1px solid var(--rule);
}
.ph2-book-specs li {
  padding: 24px 24px 0 0;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  min-height: 100px;
}
.ph2-book-specs li:nth-child(2n) { border-right: 0; padding-right: 0; }
.ph2-book-specs li:nth-child(n+3) { padding-top: 24px; padding-left: 0; }
.ph2-book-specs li:nth-child(2n+1) { padding-left: 0; }
.ph2-book-specs li strong {
  display: block;
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  font-size: 28px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.ph2-book-specs li span {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

@media (max-width: 880px) {
  .ph2-book-words { grid-template-columns: 1fr; gap: 32px; padding: 80px var(--gutter); }
  .ph2-book-specs { grid-template-columns: 1fr; }
  .ph2-book-specs li { border-right: 0; padding-left: 0 !important; padding-right: 0; }
  .ph2-book-bleed { aspect-ratio: 4 / 5; }
}

/* ============ WHY DIFFERENT ============ */

.ph2-why {
  padding: 160px var(--gutter);
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-align: center;
}
.ph2-why-inner { max-width: 1100px; margin: 0 auto; }
.ph2-why-title {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 16px auto 32px;
  text-wrap: balance;
}
.ph2-why-title em { font-style: italic; color: var(--gold-deep); }
.ph2-why-body {
  font-family: var(--serif-read);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 64ch;
  margin: 0 auto;
  font-weight: 300;
  text-wrap: pretty;
}

/* ============ STORIES ============ */

.ph2-stories {
  padding: 140px var(--gutter);
}
.ph2-stories-head {
  max-width: 1100px;
  margin: 0 auto 80px;
  text-align: center;
}
.ph2-stories-head h2 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 12px 0 0;
}
.ph2-stories-head h2 em { font-style: italic; color: var(--gold-deep); }
.ph2-stories-rail {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.ph2-quote {
  margin: 0;
  padding: 40px 32px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 3px;
  display: flex; flex-direction: column;
  gap: 24px;
  position: relative;
}
.ph2-quote::before {
  content: "“";
  font-family: var(--serif-display);
  font-size: 56px;
  line-height: 0.6;
  color: var(--gold);
  position: absolute;
  top: 28px; left: 32px;
}
.ph2-quote blockquote {
  margin: 24px 0 0;
  font-family: var(--serif-display);
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.3;
  color: var(--ink);
  font-weight: 400;
}
.ph2-quote blockquote em { font-style: italic; color: var(--gold-deep); }
.ph2-quote figcaption {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
@media (max-width: 880px) {
  .ph2-stories-rail { grid-template-columns: 1fr; }
}

/* ============ FAQ ============ */

.ph2-faq {
  padding: 140px var(--gutter);
  border-top: 1px solid var(--rule);
}
.ph2-faq-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.ph2-faq-head h2 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 12px 0 0;
}
.ph2-faq-head h2 em { font-style: italic; color: var(--gold-deep); }
.ph2-faq-list {
  display: flex;
  flex-direction: column;
}
.ph2-faq-item {
  border-top: 1px solid var(--rule);
  padding: 24px 0;
}
.ph2-faq-item:last-child { border-bottom: 1px solid var(--rule); }
.ph2-faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--serif-display);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 400;
  color: var(--ink);
  transition: color 0.3s var(--ease-soft);
}
.ph2-faq-item summary::-webkit-details-marker { display: none; }
.ph2-faq-item summary:hover { color: var(--gold-deep); }
.ph2-faq-icon {
  width: 14px; height: 14px;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-soft);
}
.ph2-faq-icon::before, .ph2-faq-icon::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  background: var(--ink-soft);
  transition: transform 0.3s var(--ease-soft);
}
.ph2-faq-icon::before { width: 14px; height: 1px; transform: translate(-50%, -50%); }
.ph2-faq-icon::after { width: 1px; height: 14px; transform: translate(-50%, -50%); }
.ph2-faq-item[open] .ph2-faq-icon::after { transform: translate(-50%, -50%) scaleY(0); }
.ph2-faq-item p {
  margin: 16px 0 0;
  font-family: var(--serif-read);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 60ch;
}
@media (max-width: 880px) {
  .ph2-faq-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ============ WAITLIST ============ */

.ph2-waitlist {
  padding: 160px var(--gutter);
  background: #0E1A36;
  color: #FAF8E9;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ph2-waitlist::before, .ph2-waitlist::after {
  content: "✦";
  position: absolute;
  font-family: var(--serif-display);
  color: var(--gold);
  opacity: 0.2;
  font-size: 120px;
}
.ph2-waitlist::before { top: 8%; left: 6%; transform: rotate(15deg); }
.ph2-waitlist::after { bottom: 8%; right: 6%; transform: rotate(-15deg); }
.ph2-waitlist-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.ph2-waitlist .ph2-section-label { color: var(--gold); }
.ph2-waitlist-title {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(48px, 9vw, 144px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  margin: 16px 0 32px;
}
.ph2-waitlist-title em { font-style: italic; color: var(--gold); }
.ph2-waitlist-sub {
  font-family: var(--serif-read);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.55;
  color: rgba(246,241,231,0.7);
  max-width: 56ch;
  margin: 0 auto 48px;
  font-weight: 300;
  text-wrap: pretty;
}
.ph2-waitlist .ph-waitlist-form {
  display: flex; gap: 8px;
  max-width: 520px; margin: 0 auto;
  background: rgba(246,241,231,0.06);
  border: 1px solid rgba(246,241,231,0.18);
  border-radius: 999px;
  padding: 6px;
}
.ph2-waitlist .ph-waitlist-form:focus-within { border-color: var(--gold); }
.ph2-waitlist .ph-waitlist-form input {
  flex: 1; background: transparent; border: 0;
  padding: 16px 22px; color: #FAF8E9;
  font-family: var(--serif-read); font-size: 16px;
  outline: none;
}
.ph2-waitlist .ph-waitlist-form input::placeholder { color: rgba(246,241,231,0.4); }

/* Override browser autofill (blue/yellow square) — keep the pill's transparent
   background and the form's dark navy palette. */
.ph2-waitlist .ph-waitlist-form input:-webkit-autofill,
.ph2-waitlist .ph-waitlist-form input:-webkit-autofill:hover,
.ph2-waitlist .ph-waitlist-form input:-webkit-autofill:focus,
.ph2-waitlist .ph-waitlist-form input:-webkit-autofill:active {
  -webkit-text-fill-color: #FAF8E9;
  -webkit-box-shadow: 0 0 0 1000px #0E1A36 inset;
          box-shadow: 0 0 0 1000px #0E1A36 inset;
  caret-color: #FAF8E9;
  border-radius: 999px;
  transition: background-color 9999s ease-in-out 0s, color 9999s ease-in-out 0s;
}

.ph2-waitlist .ph-waitlist-form button {
  padding: 16px 26px;
  background: #FAF8E9; color: #0E1A36;
  border-radius: 999px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  transition: all .25s var(--ease-soft);
  white-space: nowrap;
}
.ph2-waitlist .ph-waitlist-form button {
  position: relative; overflow: hidden;
  transition: background .5s var(--ease), color .5s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.ph2-waitlist .ph-waitlist-form button::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.32) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform .9s var(--ease);
  pointer-events: none;
}
.ph2-waitlist .ph-waitlist-form button:hover::before { transform: translateX(110%); }
.ph2-waitlist .ph-waitlist-form button:hover {
  background: linear-gradient(135deg, #C17661 0%, #9E5C49 55%, #5B4B7A 100%);
  color: #FAF8E9;
  transform: translateY(-1px);
  box-shadow: 0 18px 38px -12px rgba(158, 92, 73, 0.45);
}
.ph2-waitlist-fineprint {
  position: relative; overflow: hidden;
  transition: background .5s var(--ease), color .5s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.ph-waitlist-form button::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.32) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform .9s var(--ease);
  pointer-events: none;
}
.ph-waitlist-form button:hover::before { transform: translateX(110%); }
.ph-waitlist-form button:hover {
  background: linear-gradient(135deg, #C17661 0%, #9E5C49 55%, #5B4B7A 100%);
  color: #FAF8E9;
  transform: translateY(-1px);
  box-shadow: 0 18px 38px -12px rgba(158, 92, 73, 0.45);
}
.ph2-waitlist-fineprint {
  margin-top: 48px;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 20px;
  color: rgba(246,241,231,0.5);
}
.ph2-waitlist .waitlist-error,
.ph2-waitlist .waitlist-success {
  display: block; margin-top: 16px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  opacity: 0; transition: opacity 0.3s; min-height: 1em;
}
.ph2-waitlist .waitlist-error { color: #E8A595; }
.ph2-waitlist .waitlist-success { color: var(--gold); }
.ph2-waitlist .waitlist-error.visible,
.ph2-waitlist .waitlist-success.visible { opacity: 1; }
.ph2-waitlist .waitlist-mailto {
  color: #FAF8E9;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(250, 248, 233, 0.45);
  margin-left: 4px;
  transition: text-decoration-color .2s ease, color .2s ease;
}
.ph2-waitlist .waitlist-mailto:hover {
  color: var(--gold);
  text-decoration-color: var(--gold);
}

@media (prefers-reduced-motion: reduce) {
  .ph2-stars span,
  .ph2-book-page,
  .ph2-book-spine,
  .ph2-moon,
  .ph2-mark-star,
  .ph2-eyebrow,
  .ph2-book-100 { animation: none !important; opacity: 1 !important; transform: none !important; }
  [data-reveal-words] .w { opacity: 1; transform: none; }
  .ph2-how-frame, .ph2-how-steps li { opacity: 1 !important; transform: none !important; position: static !important; }
  .ph2-how-stage { position: static !important; height: auto !important; }
  .ph2-how-track { height: auto !important; }
}


/* Misc */
.tiny-label {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--gold-deep);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
:root[data-theme="dark"] .tiny-label { color: var(--gold); background: var(--paper-3); }


/* ============ Brand image logo (replaces SVG monogram) ============ */
.brand.brand-img {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  height: auto;
}
.brand.brand-img img {
  display: block;
  height: 36px;
  width: auto;
  /* logo PNG is black on transparent — use as-is for light theme;
     'night' header inversion handled below */
}
.header.scrolled .brand.brand-img img { height: 30px; }
.brand.brand-img--lg img { height: 52px; }

/* Footer wordmark sits below the logo as it's already part of the mark */
.ph-footer-top .brand.brand-img--lg img { height: 56px; margin-bottom: 4px; }
.ph-footer-heading {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft, rgba(20,18,14,0.55));
  padding-bottom: 4px;
  margin-bottom: 6px;
}

/* Mobile nav: keep brand logo crisp */
.mobile-nav-header .brand.brand-img img { height: 32px; }

/* Scene-aware logo: invert on night/twilight backgrounds where header is light */
body[data-scene="night"] .header-quiet .brand.brand-img img,
body[data-scene="twilight"] .header-quiet .brand.brand-img img {
  filter: invert(1) brightness(1.15);
}

@media (max-width: 640px) {
  /* On phone the logo alone reads better */
  .brand.brand-img img { height: 30px; }
}

/* ============ Hero tagline (locked brand line under H1) ============ */
.ph2-hero-tagline {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 2.1vw, 26px);
  line-height: 1.35;
  color: var(--gold-deep);
  margin: 18px 0 8px 0;
  letter-spacing: 0.005em;
  max-width: 32ch;
}
.ph2-hero-tagline em { font-style: italic; }
@media (max-width: 640px) {
  .ph2-hero-tagline { font-size: 19px; margin-top: 14px; }
}


/* ============ Legal pages (privacy, terms, child safety) ============ */
.ph2-legal-hero {
  padding: 180px 6vw 60px 6vw;
  text-align: center;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  border-bottom: 1px solid var(--rule);
}
.ph2-legal-hero .ph2-eyebrow { margin-bottom: 24px; }
.ph2-legal-hero h1 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 auto 22px auto;
  max-width: 18ch;
  text-wrap: balance;
}
.ph2-legal-hero h1 em { font-style: italic; color: var(--gold-deep); }
.ph2-legal-hero .ph2-legal-intro {
  font-family: var(--serif-text);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--ink-soft, rgba(20,18,14,0.7));
  max-width: 60ch;
  margin: 0 auto;
  text-wrap: pretty;
}

.ph2-legal-body {
  padding: 80px 24px 100px 24px;
  max-width: 720px;
  margin: 0 auto;
  font-family: var(--serif-text);
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink);
}
.ph2-legal-body .ph2-legal-updated {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 48px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}
.ph2-legal-body h2 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 56px 0 16px 0;
}
.ph2-legal-body h2:first-child { margin-top: 0; }
.ph2-legal-body p {
  margin: 0 0 18px 0;
  text-wrap: pretty;
}
.ph2-legal-body p:last-child { margin-bottom: 0; }
.ph2-legal-body strong { font-weight: 500; color: var(--ink); }
.ph2-legal-body em { font-style: italic; }
.ph2-legal-body a {
  color: var(--gold-deep);
  text-decoration: underline;
  text-decoration-color: rgba(142, 110, 61, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 240ms ease;
}
.ph2-legal-body a:hover { text-decoration-color: var(--gold-deep); }
.ph2-legal-body hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 56px 0;
}
.ph2-legal-body .ph2-legal-updated--foot {
  margin: 64px 0 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  border-bottom: 0;
}

@media (max-width: 640px) {
  .ph2-legal-hero { padding: 130px 5vw 44px 5vw; }
  .ph2-legal-body { padding: 56px 22px 80px 22px; font-size: 16px; line-height: 1.7; }
}


/* ============================================
   PH3 — The Book: pinned scroll-driven scene
   ============================================ */

/* Register --p as a typed number so calc() in transforms works reliably
   across browsers (without @property the value is treated as an unparsed
   string and interpolation in transform fails in some engines). */
@property --p {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

/* the section becomes a tall track; .ph2-book-stage sticks within it */
.ph2-book-section { position: relative; border-top: 1px solid var(--rule); overflow: visible; }
.ph2-book-track {
  position: relative;
  height: 280vh;            /* total scrollable arc */
  width: 100%;
}
.ph2-book-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  /* p is set by JS, 0..1 — drives almost everything below */
  --p: 0;
}
.ph2-book-stage .ph2-book-bleed {
  position: relative;
  width: 100%; height: 100%;
  aspect-ratio: auto;
  max-height: none;
  background: none;
  overflow: hidden;
}

/* wall + light: the wall layer behind everything fades through the day cycle.
   Day → afternoon → twilight → night, driven by --p (0..1).
   We use a single layer with a stack of transparent gradients whose opacities
   are tied to four ranges of p. */
.ph2-book-wall {
  position: absolute; inset: 0;
  background:
    /* night (top) */
    linear-gradient(180deg, #1A2342 0%, #2A2746 60%, #3A3253 100%);
  opacity: 0;
  transition: opacity 1.4s var(--ease-soft);
}
/* day floor & wall layers, painted ABOVE the night layer at low p */
.ph2-book-room {
  position: absolute; inset: 0;
  background:
    /* the original day wall stays; we mix toward night via opacity of overlays */
    linear-gradient(180deg, #ECE0C5 0%, #D9C9A6 100%);
}
/* afternoon warm glaze */
.ph2-book-room::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse at 22% 28%, rgba(255,210,140,0.45) 0%, rgba(255,210,140,0) 60%);
  opacity: calc(1 - clamp(0, (var(--p) - 0.05) * 2.4, 1));
  pointer-events: none;
  transition: opacity 0.6s var(--ease-soft);
}
/* golden hour pinks/oranges (peak ~p=0.4) */
.ph2-book-room::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse at 22% 30%, rgba(228,138,84,0.55) 0%, rgba(228,138,84,0) 65%);
  opacity: clamp(0, min((var(--p) - 0.05) * 2.4, (0.78 - var(--p)) * 2.4), 1);
  pointer-events: none;
}
/* twilight blue-violet wash (rises after 0.55) */
.ph2-book-wall {
  /* repurpose .ph2-book-wall as twilight layer */
  background: linear-gradient(180deg, #4B4566 0%, #2D2A48 100%);
  opacity: clamp(0, (var(--p) - 0.55) * 2.0, 1);
  z-index: 1;
}

/* shelf and floor over walls */
.ph2-book-room-floor {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 28%;
  background: linear-gradient(180deg, #B8A37A 0%, #8E7752 100%);
  z-index: 2;
  /* deepen with twilight */
  filter: brightness(calc(1 - var(--p) * 0.42)) saturate(calc(1 - var(--p) * 0.3));
  transition: filter 0.6s var(--ease-soft);
}
.ph2-book-room-shelf { z-index: 4; }
.ph2-book-room-shelf::before {
  /* slight darken toward night */
  filter: brightness(calc(1 - var(--p) * 0.35));
}

/* window */
.ph2-book-room-window {
  position: absolute; left: 10%; top: 14%;
  width: 24%; aspect-ratio: 4 / 5;
  z-index: 3;
  border: 6px solid #FAF8E9;
  background: linear-gradient(180deg, #FBE9B5 0%, #FAF8E9 60%, #C17661 100%);
  box-shadow: 0 0 80px 20px rgba(246,229,176,0.3);
  overflow: hidden;
  transition: background 0.8s var(--ease-soft), box-shadow 0.8s var(--ease-soft), border-color 0.8s var(--ease-soft);
}
/* window light cycles by p */
.ph2-book-section[data-day="afternoon"] .ph2-book-room-window {
  background: linear-gradient(180deg, #FFCB7A 0%, #F4A95A 100%);
  box-shadow: 0 0 70px 18px rgba(244,169,90,0.32);
}
.ph2-book-section[data-day="golden"] .ph2-book-room-window {
  background: linear-gradient(180deg, #F7825A 0%, #B85A6E 100%);
  box-shadow: 0 0 70px 18px rgba(247,130,90,0.30);
}
.ph2-book-section[data-day="twilight"] .ph2-book-room-window {
  background: linear-gradient(180deg, #5A4A78 0%, #2C2F58 100%);
  border-color: #DCD2BD;
  box-shadow: 0 0 60px 16px rgba(90,74,120,0.35);
}
.ph2-book-section[data-day="night"] .ph2-book-room-window {
  background: linear-gradient(180deg, #1B2342 0%, #0E1530 100%);
  border-color: #DCD2BD;
  box-shadow: 0 0 60px 14px rgba(40,52,100,0.35);
}
/* ============ Window portal — five illustration styles ============
   Sits behind .ph2-book-window-pane (the cross frame) and crossfades
   between five SVG illustrations every ~3s. Pause on hover. Mobile:
   swipeable + pauses while user is interacting. Reduced motion: shows
   all five as a static 1×5 grid inside the window. */
.ph2-window-portal {
  position: absolute; inset: 0;
  z-index: 1; /* below pane (which is auto/2) and night overlay */
  overflow: hidden;
  pointer-events: none;
}
.ph2-window-style {
  position: absolute; inset: 0; margin: 0;
  opacity: 0;
  transition: opacity 600ms ease-in-out;
  will-change: opacity;
}
.ph2-window-style svg { width: 100%; height: 100%; display: block; }
.ph2-window-style.is-active { opacity: 1; }

/* Slight day-tint overlay above imagery so the ambient day/night cycle still reads.
   Drops to near-zero in late evening / night. */
.ph2-window-portal::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(255,210,140, calc(0.18 * (1 - var(--p, 0)))),
    rgba(120, 90, 130, calc(0.22 * (1 - var(--p, 0)))));
  mix-blend-mode: soft-light;
  pointer-events: none;
}

/* Style label — quiet, lower-right corner, fades with image */
.ph2-window-label {
  position: absolute;
  left: 10px; bottom: 10px;
  z-index: 4; /* above pane */
  pointer-events: none;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(251, 247, 235, 0.78);
  text-shadow: 0 1px 2px rgba(11, 22, 49, 0.55);
  padding: 4px 7px;
  background: rgba(11, 22, 49, 0.18);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: 1px;
  transition: opacity 600ms ease-in-out;
}
.ph2-window-label-inner {
  display: inline-block;
  transition: opacity 300ms ease-in-out;
}
.ph2-window-label[data-fading="1"] .ph2-window-label-inner { opacity: 0; }

/* Pagination dots beneath the window — sibling of .ph2-book-room-window inside .ph2-book-room.
   Position is computed by JS to track the window's actual rendered bottom (the room's
   aspect ratio varies). Defaults below are a sane initial state for first paint. */
.ph2-window-dots {
  position: absolute;
  left: 10%;
  width: 24%;
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 6;
  pointer-events: auto;
}
.ph2-window-dot {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 14px; /* 44px tap target with 16px box around 5px dot */
  margin: -10px; /* keep visual flush while keeping hit area */
  cursor: pointer;
  position: relative;
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
}
.ph2-window-dot::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(246, 241, 231, 0.32);
  transition: background 300ms var(--ease-soft), transform 300ms var(--ease-soft);
}
.ph2-window-dot:hover::before { background: rgba(246, 241, 231, 0.55); }
.ph2-window-dot.is-active::before {
  background: rgba(246, 241, 231, 0.92);
  transform: scale(1.25);
}
.ph2-window-dot:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 2px;
  border-radius: 50%;
}

/* Reduced motion — show all five as a static vertical grid inside the window,
   hide dots & label-fades. */
@media (prefers-reduced-motion: reduce) {
  .ph2-window-portal {
    display: grid;
    grid-template-rows: repeat(5, 1fr);
  }
  .ph2-window-style {
    position: relative; inset: auto;
    opacity: 1;
    transition: none;
  }
  .ph2-window-style svg { height: 100%; }
  .ph2-window-dots { display: none; }
  .ph2-window-label { display: none; }
}

/* faint shimmer on the panes */
.ph2-book-window-pane {
  position: absolute; inset: 0; pointer-events: none;
  z-index: 2;
  background:
    linear-gradient(90deg, transparent 49%, #FAF8E9 49% 51%, transparent 51%),
    linear-gradient(0deg, transparent 49%, #FAF8E9 49% 51%, transparent 51%);
  opacity: 0.95;
}
.ph2-book-window-pane::after {
  content: ""; position: absolute; inset: -20%;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.18) 50%, transparent 60%);
  animation: ph2-shimmer 6.5s ease-in-out infinite;
  mix-blend-mode: screen;
}
@keyframes ph2-shimmer {
  0%   { transform: translateX(-30%); opacity: 0; }
  35%  { opacity: 1; }
  60%  { opacity: 1; }
  100% { transform: translateX(30%); opacity: 0; }
}
/* night sky inside the window pane (moon + stars), revealed at twilight onwards */
.ph2-book-window-night {
  position: absolute; inset: 0; pointer-events: none;
  opacity: clamp(0, (var(--p) - 0.55) * 2.4, 1);
  transition: opacity 0.8s var(--ease-soft);
}
.ph2-book-window-moon {
  position: absolute; right: 18%; top: 14%;
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #FAF8E9 0%, #E5CB78 70%, transparent 100%);
  box-shadow: 0 0 24px 6px rgba(246,229,176,0.45);
}
.ph2-book-window-star {
  position: absolute; left: var(--sx); top: var(--sy);
  width: 2px; height: 2px; border-radius: 50%; background: #FAF8E9;
  animation: ph2-twinkle 3.4s var(--sd, 0s) ease-in-out infinite;
}
@keyframes ph2-twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* light beam crossing the floor */
.ph2-book-beam {
  position: absolute;
  left: 12%; top: 26%;
  width: 36%; height: 80%;
  background: linear-gradient(150deg,
    rgba(255,224,160,0.45) 0%,
    rgba(255,224,160,0.18) 40%,
    rgba(255,224,160,0) 75%);
  transform: rotate(18deg);
  transform-origin: top left;
  pointer-events: none;
  z-index: 3;
  opacity: clamp(0, 1 - var(--p) * 1.6, 1);
  filter: blur(6px);
  transition: opacity 0.6s var(--ease-soft);
}

/* dust motes drift inside the beam */
.ph2-book-motes {
  position: absolute; left: 8%; top: 28%;
  width: 38%; height: 70%;
  z-index: 4;
  pointer-events: none;
  opacity: clamp(0, 1 - var(--p) * 1.3, 1);
}
.ph2-book-motes span {
  position: absolute;
  left: var(--mx); top: var(--my);
  width: calc(2px * var(--ms)); height: calc(2px * var(--ms));
  border-radius: 50%;
  background: rgba(255,236,180,0.85);
  box-shadow: 0 0 4px rgba(255,236,180,0.6);
  animation: ph2-mote 7s var(--md, 0s) ease-in-out infinite;
}
@keyframes ph2-mote {
  0%   { transform: translate(0, 0); opacity: 0; }
  10%  { opacity: 0.85; }
  50%  { transform: translate(8px, -14px); opacity: 1; }
  90%  { opacity: 0.4; }
  100% { transform: translate(16px, -28px); opacity: 0; }
}

/* shelf books occasional candle-flicker on gold spine accents */
.ph2-book-room-shelf .ph2-shelf-flicker {
  position: absolute; inset: -8px -2px -2px -2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,196,120,0.0) 20%,
    rgba(255,196,120,0.45) 32%, rgba(255,196,120,0.0) 44%,
    transparent 100%);
  pointer-events: none;
  mix-blend-mode: screen;
  animation: ph2-shelf-flicker 9s ease-in-out infinite;
  opacity: 0.85;
}
@keyframes ph2-shelf-flicker {
  0%, 100% { opacity: 0; transform: translateX(-30%); }
  20% { opacity: 0.9; }
  40% { opacity: 0.5; transform: translateX(0%); }
  60% { opacity: 0.95; }
  80% { opacity: 0; transform: translateX(28%); }
}

/* the book — wrapper handles lift/tilt via CSS using --p */
.ph2-book-room-book {
  position: absolute;
  left: 50%; top: 56%;
  width: 26%; aspect-ratio: 0.78 / 1;
  z-index: 6;
  filter: drop-shadow(0 30px 50px rgba(31,29,26,0.4));
  /* lift + forward tilt + small scale-up across scroll */
  transform:
    translate(-50%, calc(-50% - (var(--p) * 7%)))
    perspective(1400px)
    rotateZ(calc(-3deg + var(--p) * 3deg))
    rotateX(calc(var(--p) * -10deg))
    scale(calc(1 + var(--p) * 0.10));
  transition: filter 0.6s var(--ease-soft);
  will-change: transform;
}
.ph2-book-shadow {
  position: absolute; left: 50%; bottom: -8%;
  width: 80%; height: 8%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 70%);
  transform: translateX(-50%) scale(calc(1 + var(--p) * 0.18));
  opacity: calc(0.8 - var(--p) * 0.4);
  pointer-events: none;
  filter: blur(4px);
}

/* ============ The book itself: cover + inside spread ============ */
.ph2-book-open {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  perspective: 1800px;
}

/* leaf: the cover-as-page that rotates open */
.ph2-book-leaf {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  /* hinge on the right edge; rotate -180deg to open leftward */
  transform-origin: 0% 50%;
  transition: transform 0.8s var(--ease-soft);
}
.ph2-book-leaf--cover {
  /* opens once p > 0.62 */
  transform: rotateY(calc(min(1, max(0, (var(--p) - 0.62) * 2.7)) * -178deg));
  z-index: 3;
}
.ph2-book-leaf-front,
.ph2-book-leaf-back {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.ph2-book-leaf-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, #F6EFE0 0%, #EADFC2 100%);
  border-radius: 6px 2px 2px 6px;
  box-shadow: inset 0 0 24px rgba(110,86,42,0.25);
}
.ph2-book-leaf-flyleaf {
  position: absolute; inset: 14px;
  border: 1px solid rgba(184,147,90,0.4);
  background:
    repeating-linear-gradient(45deg, rgba(184,147,90,0.05) 0 2px, transparent 2px 8px);
}

/* keep the existing .ph2-book-room-cover styling but pin to leaf-front */
.ph2-book-leaf-front .ph2-book-room-cover {
  height: 100%;
}

/* inside spread sits behind the leaf, revealed when leaf rotates away */
.ph2-book-spread {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1fr 1fr;
  border-radius: 4px 6px 6px 4px;
  overflow: hidden;
  z-index: 1;
  box-shadow: inset 0 0 32px rgba(0,0,0,0.45);
  background: #1B2C56;
  /* inside fades in slightly after the leaf begins rotating */
  opacity: clamp(0, (var(--p) - 0.6) * 2.6, 1);
  transition: opacity 0.5s var(--ease-soft);
}
.ph2-book-spread-l, .ph2-book-spread-r {
  position: relative;
  background: linear-gradient(180deg, #1B2C56 0%, #3A2E55 100%);
  overflow: hidden;
}
.ph2-book-spread-l { border-right: 1px solid rgba(0,0,0,0.4); }
.ph2-book-spread-l svg { width: 100%; height: 100%; display: block; }
.ph2-book-spread-r {
  display: flex; align-items: center; justify-content: center;
  padding: 12%;
}
.ph2-book-spread-text {
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--serif-display);
  color: #FAF8E9;
  text-align: center;
  line-height: 1.25;
}
.ph2-book-spread-text em {
  font-style: italic; font-size: clamp(20px, 2.4vw, 36px);
  color: var(--gold);
}
.ph2-book-spread-text small {
  font-size: clamp(10px, 0.95vw, 14px);
  letter-spacing: 0.08em;
  color: rgba(246,229,176,0.85);
  font-family: var(--serif-read);
  font-style: italic;
}
.ph2-book-spread-fold {
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 14px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
  pointer-events: none;
}
/* moon "rises" along an arc as the spread is revealed */
.ph2-book-spread .ph2-spread-moon {
  transform-box: fill-box;
  transform-origin: center;
  transform: translate(calc(var(--p) * 50px), calc(var(--p) * -30px));
  transition: transform 0.8s var(--ease-soft);
  filter: drop-shadow(0 0 6px rgba(246,229,176,0.5));
}

/* cover SVG twinkle + moon breathing */
.ph2-cover-stars circle {
  transform-origin: center;
  animation: ph2-cover-twinkle 3.6s var(--td, 0s) ease-in-out infinite;
}
@keyframes ph2-cover-twinkle {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
.ph2-cover-moon { filter: drop-shadow(0 0 0 rgba(246,229,176,0)); animation: ph2-moon-breathe 6s ease-in-out infinite; }
@keyframes ph2-moon-breathe {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(246,229,176,0.35)); }
  50% { filter: drop-shadow(0 0 14px rgba(246,229,176,0.7)); }
}

/* gold sheen sweep on cover border every 8-10s */
.ph2-book-sheen {
  position: absolute; inset: 14px;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(233,195,106,0.55) 50%, transparent 60%);
  mix-blend-mode: screen;
  opacity: 0;
  animation: ph2-sheen 9s ease-in-out infinite;
}
@keyframes ph2-sheen {
  0%, 80%, 100% { opacity: 0; transform: translateX(-50%); }
  86% { opacity: 1; }
  92% { opacity: 1; transform: translateX(50%); }
}

/* ============ Entry animation (one-shot when section enters view) ============ */
.ph2-book-section[data-entered="0"] .ph2-book-room-book {
  opacity: 0;
  transform:
    translate(-50%, calc(-50% - 32px))
    perspective(1400px)
    rotateZ(-3deg)
    rotateX(0deg);
}
.ph2-book-section[data-entered="1"] .ph2-book-room-book {
  animation: ph2-book-settle 900ms var(--ease-soft) both;
}
@keyframes ph2-book-settle {
  0% { opacity: 0; transform: translate(-50%, calc(-50% - 32px)) perspective(1400px) rotateZ(-3deg); }
  60% { opacity: 1; }
  100% { transform: translate(-50%, -50%) perspective(1400px) rotateZ(-3deg); }
}
/* shelf books fade in with stagger */
.ph2-book-section[data-entered="0"] .ph2-book-room-shelf::before { opacity: 0; }
.ph2-book-section[data-entered="1"] .ph2-book-room-shelf::before { animation: ph2-fade-up 1.2s 200ms var(--ease-soft) both; }
.ph2-book-section[data-entered="0"] .ph2-book-room-window { opacity: 0; }
.ph2-book-section[data-entered="1"] .ph2-book-room-window { animation: ph2-fade-up 1.2s 60ms var(--ease-soft) both; }
@keyframes ph2-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ Headline word-by-word reveal at end of arc ============ */
.ph2-book-words h2 .ph2-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.35em);
  filter: blur(4px);
  transition:
    opacity 600ms var(--ease-soft),
    transform 600ms var(--ease-soft),
    filter 600ms var(--ease-soft);
  transition-delay: calc(var(--w-i, 0) * 70ms);
}
.ph2-book-section[data-end-reveal="1"] .ph2-book-words h2 .ph2-word {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
@media (prefers-reduced-motion: reduce) {
  .ph2-book-words h2 .ph2-word {
    opacity: 1; transform: none; filter: none; transition: none;
  }
}

/* ============ Specs panel — reveal at end of sequence (p > 0.86) ============ */
.ph2-book-section[data-end-reveal="1"] [data-book-specs] li {
  animation: ph2-fade-up 700ms var(--ease-soft) both;
}
.ph2-book-section[data-end-reveal="1"] [data-book-specs] li:nth-child(1) { animation-delay: 0ms; }
.ph2-book-section[data-end-reveal="1"] [data-book-specs] li:nth-child(2) { animation-delay: 120ms; }
.ph2-book-section[data-end-reveal="1"] [data-book-specs] li:nth-child(3) { animation-delay: 240ms; }
.ph2-book-section[data-end-reveal="1"] [data-book-specs] li:nth-child(4) { animation-delay: 360ms; }
.ph2-book-section[data-end-reveal="0"] [data-book-specs] li { opacity: 0; transform: translateY(12px); }

/* ============ Mobile / single-shot fallback ============ */
@media (max-width: 880px) {
  .ph2-book-track { height: auto; }
  .ph2-book-stage {
    position: relative;
    height: 90vh;
    min-height: 520px;
    max-height: 760px;
    --p: 0;
  }
  /* runs an automated arc once via class added by JS */
  .ph2-book-section.ph2-book-mobile-played .ph2-book-stage {
    animation: ph2-mobile-arc 6s var(--ease-soft) forwards;
  }
  @keyframes ph2-mobile-arc {
    0%   { --p: 0; }
    50%  { --p: 0.55; }
    100% { --p: 0.92; }
  }
  /* fallback for browsers that don't support animating custom properties */
  @supports not (transition: --p 1s) {
    .ph2-book-section.ph2-book-mobile-played .ph2-book-stage { --p: 0.92; }
  }
}

/* ============ Reduced motion: static end-state (book open, twilight) ============ */
@media (prefers-reduced-motion: reduce) {
  .ph2-book-track { height: auto; }
  .ph2-book-stage {
    position: relative;
    height: 80vh;
    min-height: 480px;
    --p: 0.85;
  }
  .ph2-book-stage *,
  .ph2-book-stage *::before,
  .ph2-book-stage *::after { animation: none !important; }
  .ph2-book-section[data-end-reveal] [data-book-specs] li { opacity: 1 !important; transform: none !important; }
}

/* ============================================
   PH3 — Footer contrast fix
   ============================================ */

/* navy footer with cream type */
.ph-footer {
  background: #0E1A36;
  color: #FAF8E9;
  border-top: 0;
  position: relative;
  overflow: hidden;
}
.ph-footer::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 18% 20%, rgba(184,147,90,0.10) 0%, transparent 60%),
    radial-gradient(ellipse at 82% 90%, rgba(91,75,122,0.18) 0%, transparent 65%);
  pointer-events: none;
}
.ph-footer-top,
.ph-footer-nav,
.ph-footer-meta { position: relative; z-index: 1; }

/* Top divider */
.ph-footer-top {
  border-bottom: 1px solid rgba(246,241,231,0.15);
}

/* invert the brand logo to cream on the navy background */
.ph-footer-top .brand.brand-img--lg img {
  filter: invert(1) brightness(2.1) contrast(0.95);
  /* slight warm tint from the cream */
  opacity: 0.96;
}
.ph-footer-tag {
  color: rgba(246,241,231,0.8);
}

/* section headings — quiet but readable cream */
.ph-footer .ph-footer-heading {
  color: rgba(246,241,231,0.7);
  border-bottom-color: transparent;
}

/* link text — full strength cream */
.ph-footer-nav a {
  color: rgba(246,241,231,0.96);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 240ms var(--ease-soft), border-color 240ms var(--ease-soft);
}
.ph-footer-nav a:hover,
.ph-footer-nav a:focus-visible {
  color: var(--gold, #C17661);
  border-bottom-color: rgba(217,182,121,0.55);
  outline: none;
}

/* hairline separating the link grid from the meta line */
.ph-footer-meta {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(246,241,231,0.15);
  color: rgba(246,241,231,0.6);
}

/* scene-aware: invert header logo when sitting on twilight too */
body[data-scene="twilight"] .header-quiet .brand.brand-img img {
  filter: invert(1) brightness(1.15);
}


/* ============================================
   PH4 — Hero rebuild: single-viewport, layered motion
   ============================================ */

/* --- Container: min-height one viewport, allows growth.
   Per instructions #19: relax the hard 100svh cap. Hero must breathe;
   it can grow taller than 100svh if natural content height exceeds it.
   No overflow:hidden so the absolute-positioned star sky can still bleed
   visually but content is never clipped. */
.ph4-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(2rem, 6vh, 4rem) 0;
}
/* Per instruction #18a: centred vertical stack, max-width 720px.
   Gap is the SOLE source of vertical rhythm; child margins zeroed. */
.ph4-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(1rem, 2vh, 1.75rem);
  padding: 0 clamp(1rem, 4vw, 2rem);
}

/* Per #18e: every text child centred. */
.ph4-hero-inner > * { text-align: center; }

/* --- Eyebrow: above illustration --- */
.ph4-hero .ph4-eyebrow {
  margin: 0;
  /* tone matches existing; ensure visible from load — we still fade in via JS class */
  font-size: 11px;
  letter-spacing: 0.18em;
  opacity: 0;
  animation: ph4-fade 600ms cubic-bezier(0.22,1,0.36,1) 200ms forwards;
}
.ph4-hero .ph4-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
}
/* settle pulse: two gentle pulses after the headline lands (~2.4s) */
.ph4-hero.ready .ph4-eyebrow .dot {
  animation: ph4-dot-pulse 1.8s cubic-bezier(0.22,1,0.36,1) 2.4s 2;
}
@keyframes ph4-dot-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(184,147,90,0); }
  50%      { transform: scale(1.5); box-shadow: 0 0 0 6px rgba(184,147,90,0.18); }
}

/* --- Hero illustration canvas — per instruction #21 ---
   Full-bleed background layer behind the text stack. Empty container
   reserved for parallax / overlays. The actual moon+book illustration
   now sits IN FLOW inside .ph4-hero-inner (see .ph4-hero-mark below). */
.ph4-hero .ph4-hero-canvas {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  inset: 0;
  max-width: none;
  aspect-ratio: auto;
  z-index: 0;
  pointer-events: none;
}

/* --- In-flow illustration — per instructions #18c and #20 ---
   Sits as its own row in the centred stack between eyebrow and H1.
   Sized to be the visual anchor of the hero. */
.ph4-hero-inner .ph4-hero-mark {
  position: relative;
  display: block;
  margin: 0 auto;
  pointer-events: none;
}
.ph4-hero-inner .ph2-mark-stage {
  position: relative;
  width: clamp(180px, 18vw, 280px);
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}
@media (max-width: 640px) {
  .ph4-hero-inner .ph2-mark-stage {
    width: clamp(140px, 32vw, 200px);
  }
}
/* stars overlay sized to canvas */
.ph4-hero-canvas .ph2-stars { inset: -10% -25%; }

/* sky overlay sits over the whole canvas */
.ph4-sky-overlay {
  position: absolute;
  inset: -20% -30%;
  width: 160%; height: 140%;
  pointer-events: none;
  overflow: visible;
}
.ph4-shooting-star {
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(184,147,90,0.6));
}
.ph4-constellations line {
  stroke: var(--gold);
  stroke-width: 0.5;
  stroke-linecap: round;
  fill: none;
  opacity: 0;
}

/* --- Moon: slow elliptical orbit ±20px, 40s loop --- */
.ph4-hero .ph4-moon {
  /* Override the legacy .ph2-moon rules cleanly */
  top: 4%;
  left: 50%;
  width: clamp(72px, 12vh, 112px);
  height: clamp(72px, 12vh, 112px);
  transform: translate(-50%, 0);
  opacity: 0;
  /* fade in, then enter perpetual orbit */
  animation:
    ph4-moon-fade 2.0s cubic-bezier(0.22, 0.61, 0.36, 1) 0.3s forwards,
    ph4-moon-orbit 60s cubic-bezier(0.45, 0, 0.55, 1) 2.4s infinite;
}
@keyframes ph4-moon-fade {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes ph4-moon-orbit {
  /* gentle ellipse around the centre — never exceeds ±20px */
  0%   { transform: translate(calc(-50% + 0px),   0px);  }
  25%  { transform: translate(calc(-50% + 14px), -6px);  }
  50%  { transform: translate(calc(-50% + 0px), -10px);  }
  75%  { transform: translate(calc(-50% - 14px), -6px);  }
  100% { transform: translate(calc(-50% + 0px),   0px);  }
}

/* --- Book: vertical breath ±3-4px, 6s loop --- */
.ph4-hero .ph4-book {
  /* override legacy .ph2-book transform/animation */
  width: 56%;
  bottom: 6%;
  /* fade in slowly, then breathe like a held book */
  animation:
    ph4-book-fade 1.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.4s both,
    ph4-book-breathe 9s cubic-bezier(0.45, 0, 0.55, 1) 3.6s infinite;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
@keyframes ph4-book-fade {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
/* the legacy two-page open lives on .ph2-book-page; we let those keep their own
   animations — only the parent .ph2-book breathes once page-open completes. */
@keyframes ph4-book-breathe {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, -3px); }
}

/* "100" gold shimmer every ~9s */
.ph4-hero .ph2-book-100 {
  animation: ph4-shimmer 9s cubic-bezier(0.22,1,0.36,1) 4s infinite;
}
@keyframes ph4-shimmer {
  0%, 90%, 100% {
    text-shadow: 0 0 0 rgba(184,147,90,0);
    color: var(--gold-deep, #A2B8C5);
  }
  94% {
    text-shadow: 0 0 12px rgba(246,229,176,0.85);
    color: #F2D88B;
  }
}

/* --- Headline — per #17e: shrinks on shorter viewports w/o cutting copy --- */
.ph4-hero .ph4-hero-title {
  font-size: clamp(2.25rem, 5.5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 22ch;
  /* the per-word reveal is wired via [data-reveal-words] further down */
}
.ph4-hero .ph4-hero-title .line { display: block; white-space: nowrap; }
.ph4-hero .ph4-hero-title em {
  font-style: italic;
  color: var(--gold-deep, #A2B8C5);
}

/* override existing word-reveal cadence to 180ms per word */
.ph4-hero [data-reveal-words] .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.45em) scale(1);
  filter: blur(3px);
  transition:
    opacity 700ms cubic-bezier(0.22,1,0.36,1),
    transform 700ms cubic-bezier(0.22,1,0.36,1),
    filter 700ms cubic-bezier(0.22,1,0.36,1);
  /* explicit transition-delay default; further-up rule overrides per-word */
  transition-delay: 0s;
}
.ph4-hero [data-reveal-words] .w.em {
  /* italics fade in slightly scaled-from to feel emphasised */
  transform: translateY(0.45em) scale(0.95);
}
.ph4-hero [data-reveal-words].in .w {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}
/* cadence: ~180ms per word — set indices in JS via --w-i.
   Specificity bumped with [data-reveal-words] AND .in to win against the
   legacy nth-child(N) rules earlier in the file. */
.ph4-hero [data-reveal-words].in .w,
.ph4-hero [data-reveal-words] .w {
  transition-delay: calc(var(--w-i, 0) * 180ms + 600ms) !important;
}

/* --- CTA: stays visible at fold ---
   Per #17d: margins removed; .ph4-hero-inner gap is the SOLE source of
   vertical rhythm. */
.ph4-hero-actions {
  display: inline-flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 32px);
  margin: 0;
  opacity: 0;
  animation: ph4-fade 700ms cubic-bezier(0.22,1,0.36,1) 1800ms forwards;
  flex-wrap: wrap;
  justify-content: center;
}

/* Hero subhead — lead + smaller tagline. Margin zeroed per #17d. */
.ph4-hero-sub {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0;
  animation: ph4-fade 800ms cubic-bezier(0.22,1,0.36,1) 1500ms forwards;
}
.ph4-hero-lead {
  font-family: var(--serif-read, "Newsreader", serif);
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.35;
  color: var(--ink, #1F1D1A);
  letter-spacing: 0.005em;
}
.ph4-hero-tag {
  font-family: var(--serif-display, "Cormorant Garamond", serif);
  font-style: italic;
  font-size: clamp(14px, 1.05vw, 16px);
  color: rgba(31,29,26,0.62);
  letter-spacing: 0.01em;
}

/* Secondary text link in hero */
.ph4-hero-link {
  font-family: var(--serif-display, "Cormorant Garamond", serif);
  font-style: italic;
  font-size: clamp(15px, 1.1vw, 17px);
  color: var(--ink, #1F1D1A);
  text-decoration: none;
  border-bottom: 1px solid rgba(31,29,26,0.25);
  padding-bottom: 2px;
  transition: border-color 240ms ease, color 240ms ease, transform 240ms ease;
}
.ph4-hero-link:hover {
  border-bottom-color: var(--gold-deep, #A2B8C5);
  color: var(--gold-deep, #A2B8C5);
}
.ph4-hero-link span { display: inline-block; transition: transform 240ms ease; margin-left: 2px; }
.ph4-hero-link:hover span { transform: translateX(3px); }

/* Reassurance line under primary CTA. Margin zeroed per #17d. */
.ph4-hero-reassure {
  margin: 0;
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(31,29,26,0.5);
  opacity: 0;
  animation: ph4-fade 700ms cubic-bezier(0.22,1,0.36,1) 2100ms forwards;
}

/* Waitlist additions */
.ph2-waitlist-benefit {
  margin-top: 14px;
  font-family: var(--serif-display, "Cormorant Garamond", serif);
  font-style: italic;
  font-size: clamp(15px, 1.1vw, 18px);
  color: var(--gold-deep, #A2B8C5);
  letter-spacing: 0.005em;
}
.ph2-waitlist-reassure {
  margin-top: 14px;
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(246, 241, 231, 0.55);
}

@keyframes ph4-fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Short viewports — per #17e/g.
   The gap on .ph4-hero-inner (clamp(0.75rem, 1.5vh, 1.5rem)) and the
   illustration max-height cap on .ph2-mark-stage (28vh / 22vh mobile)
   handle the bulk of compression. These rules just tighten typography
   so the H1 doesn't dominate at very short heights. */
@media (max-height: 720px) {
  .ph4-hero .ph4-hero-title { font-size: clamp(2rem, 5vw, 3.5rem); }
}
@media (max-height: 620px) {
  .ph4-hero .ph4-hero-title { font-size: clamp(2rem, 4.4vw, 3rem); }
  .ph4-hero .ph4-hero-sub  { font-size: 13px; }
  .ph4-hero .btn-lg { padding: 12px 22px; }
}
@media (max-height: 540px) {
  .ph4-hero .ph4-hero-title { font-size: clamp(2rem, 4vw, 2.5rem); }
  .ph4-hero .ph4-eyebrow { font-size: 10px; }
}

/* --- Mobile typography. Illustration cap handled in .ph2-mark-stage above. --- */
@media (max-width: 640px) {
  .ph4-hero .ph4-hero-title {
    font-size: clamp(2rem, 7vw, 2.75rem);
    max-width: 16ch;
  }
  .ph4-hero-givers {
    font-size: clamp(12px, 3.2vw, 14px);
    line-height: 1.45;
    max-width: 38ch;
  }
}
@media (max-width: 480px) {
  .ph4-hero .ph4-hero-title { font-size: 2rem; }
}

/* --- Reduced motion: static end-state --- */
@media (prefers-reduced-motion: reduce) {
  .ph4-hero .ph4-eyebrow,
  .ph4-hero-actions,
  .ph4-hero .ph4-moon,
  .ph4-hero .ph4-book,
  .ph4-hero .ph2-book-100 {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .ph4-hero .ph4-moon { transform: translate(-50%, 0) !important; }
  .ph4-hero [data-reveal-words] .w {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  .ph4-hero .ph4-eyebrow {
    animation: ph4-fade 800ms cubic-bezier(0.22,1,0.36,1) 200ms both !important;
  }
  .ph4-hero .ph4-hero-title {
    animation: ph4-fade 900ms cubic-bezier(0.22,1,0.36,1) 100ms both !important;
  }
  .ph4-shooting-star, .ph4-constellations line { display: none; }
}

/* --- Override conflicting legacy hero rules --- */
.ph4-hero.ph2-hero {
  /* ensure our padding/centring wins over the older .ph2-hero block */
  padding: 0;
}

/* Parallax wrappers: pass-through positioning so the inner .ph2-moon /
   .ph2-book absolute positioning still works. */
.ph4-parallax {
  position: absolute;
  inset: 0;
  pointer-events: none;
  will-change: transform;
}
.ph4-parallax > * { pointer-events: auto; }

/* ============================================================
   STAR PULSE — gentle, starlight-like breathing for ✦ glyphs
   Opacity 0.55 → 1.0, micro-scale 1.0 → 1.04, 2.8s ease-in-out
   Staggered ~0.4s apart so they don't sync up.
   ============================================================ */
@keyframes ph-star-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.04); }
}
@keyframes ph-star-pulse-mark {
  /* preserves the centered translate from .ph2-mark-star */
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}

/* Mark stars near the moon (homepage hero) */
.ph2-mark-star {
  /* override the old fade+twinkle; keep starting opacity sane */
  opacity: 0.7;
  animation: ph-star-pulse 2.8s ease-in-out infinite !important;
}
.ph2-mark-star--1 { animation-delay: 0s    !important; }
.ph2-mark-star--2 { animation-delay: 0.4s  !important; }
.ph2-mark-star--3 { animation-delay: 0.8s  !important; }

/* The big decorative ✦ ✦ on the waitlist section */
.ph2-waitlist::before {
  animation: ph-star-pulse 2.8s ease-in-out infinite;
  animation-delay: 0s;
  transform-origin: center;
}
.ph2-waitlist::after {
  animation: ph-star-pulse 2.8s ease-in-out infinite;
  animation-delay: 0.4s;
  transform-origin: center;
}

/* Cover-art twinkle stars — soften & stagger */
.ph2-cover-stars circle {
  animation: ph-star-pulse 2.8s ease-in-out infinite;
}
.ph2-cover-stars circle:nth-child(1) { animation-delay: 0s; }
.ph2-cover-stars circle:nth-child(2) { animation-delay: 0.4s; }
.ph2-cover-stars circle:nth-child(3) { animation-delay: 0.8s; }
.ph2-cover-stars circle:nth-child(4) { animation-delay: 1.2s; }
.ph2-cover-stars circle:nth-child(5) { animation-delay: 1.6s; }
.ph2-cover-stars circle:nth-child(6) { animation-delay: 2.0s; }

/* Reduced motion: still still */
@media (prefers-reduced-motion: reduce) {
  .ph2-mark-star,
  .ph2-waitlist::before,
  .ph2-waitlist::after,
  .ph2-cover-stars circle {
    animation: none !important;
    opacity: 0.85 !important;
    transform: none !important;
  }
}

/* ============================================================
   New copy elements — gift-givers line + anticipation block
   ============================================================ */
.ph4-hero-givers {
  display: block;
  /* margin zeroed per #17d — gap on .ph4-hero-inner controls rhythm */
  margin-top: 0;
  font-family: var(--serif, var(--serif-display, Georgia, serif));
  font-style: italic;
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: rgba(31, 29, 26, 0.62);
  max-width: 64ch;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

.ph2-waitlist-givers {
  font-family: var(--serif, var(--serif-display, Georgia, serif));
  font-style: italic;
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.6;
  color: rgba(246, 241, 231, 0.65);
  max-width: 52ch;
  margin: 6px auto 18px;
  text-wrap: pretty;
}

/* Anticipation framing replacing the testimonial rail */
.ph2-stories--anticipation {
  text-align: center;
}
.ph2-stories--anticipation .ph2-stories-head {
  text-align: center;
  margin-bottom: 28px;
}
.ph2-stories-anticipation {
  font-family: var(--serif-display, Georgia, serif);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.45;
  color: var(--ink);
  max-width: 36ch;
  margin: 0 auto;
  text-wrap: pretty;
  letter-spacing: 0.005em;
}
body[data-scene="night"] .ph2-stories-anticipation { color: rgba(250, 248, 233, 0.92); }

/* ============================================================
   HEADER — centred three-column layout (logo / nav / cta)
   nav sits exactly on the page midline regardless of side widths
   ============================================================ */
.header.header-centred {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 24px;
}
.header.header-centred > .brand { justify-self: start; }
.header.header-centred > .nav   { justify-self: center; }
.header.header-centred > .header-right { justify-self: end; }
@media (max-width: 880px) {
  .header.header-centred { grid-template-columns: 1fr auto; }
  .header.header-centred > .header-right { justify-self: end; }
}

/* ============================================================
   FAQ scene-bug fix — section is locally light regardless of
   the body[data-scene="night"] toggle that the waitlist sets.
   Stable across scroll directions and repeat passes.
   ============================================================ */
.ph2-faq {
  background: var(--paper);
  color: var(--ink);
}
body[data-scene="night"] .ph2-faq,
body[data-scene="dawn"]  .ph2-faq,
body[data-scene="day"]   .ph2-faq {
  background: var(--paper) !important;
  color: var(--ink) !important;
}
body[data-scene="night"] .ph2-faq .ph2-section-label,
body[data-scene="night"] .ph2-faq h2,
body[data-scene="night"] .ph2-faq summary,
body[data-scene="night"] .ph2-faq p {
  color: var(--ink) !important;
}
body[data-scene="night"] .ph2-faq .ph2-faq-head h2 em,
body[data-scene="night"] .ph2-faq summary:hover {
  color: var(--gold-deep) !important;
}
body[data-scene="night"] .ph2-faq .ph2-faq-item {
  border-color: var(--rule, rgba(31,29,26,0.12)) !important;
}

/* ============================================================
   Ambient hero stars — gentle starlight pulse (uses each
   star's existing --d as animation-delay so they don't sync)
   ============================================================ */
@keyframes ph-ambient-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.04); }
}
.ph2-stars span {
  /* override the legacy ph2-twinkle + ph2-fadein animation */
  opacity: 0.7;
  animation: ph-ambient-pulse 2.8s ease-in-out infinite !important;
  animation-delay: var(--d, 0s) !important;
  transform-origin: center;
  will-change: opacity, transform;
}
@media (prefers-reduced-motion: reduce) {
  .ph2-stars span {
    animation: none !important;
    opacity: 0.85 !important;
    transform: none !important;
  }
}

/* ============================================================
   Hero book/moon — smoother breathing
   GPU-promote, longer ease-in-out, no snap-back. We DON'T touch
   the legacy fade+orbit/breathe shorthand on .ph4-hero .ph4-book
   / .ph4-moon (replacing the whole shorthand would break the
   fade-in transforms). Instead we layer a transform-promotion
   so the existing keyframes run on the GPU without stutter, and
   we lengthen only the inner breathe/orbit via animation-name
   targeting via `:where()` so specificity is matched.
   ============================================================ */
.ph4-parallax,
.ph4-parallax--moon,
.ph4-parallax--book,
.ph2-mark-stage {
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}
.ph4-hero .ph4-book,
.ph4-hero .ph4-moon {
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
/* lengthen the breathe/orbit loops (the second animation in each
   shorthand) so motion feels held rather than stuttery. The fade
   is the first animation, breathe/orbit the second. */
.ph4-hero .ph4-book {
  animation-duration: 1.8s, 11s !important;
  animation-timing-function:
    cubic-bezier(0.22, 0.61, 0.36, 1),
    cubic-bezier(0.42, 0, 0.58, 1) !important;
}
.ph4-hero .ph4-moon {
  animation-duration: 1.8s, 75s !important;
  animation-timing-function:
    cubic-bezier(0.22, 0.61, 0.36, 1),
    cubic-bezier(0.45, 0, 0.55, 1) !important;
}



/* ============================================================
   #15 — Wide hero atmosphere
   The .ph4-hero-canvas (moon + book + decorative ✦) keeps its
   original size and centred position. A new sibling .ph4-hero-sky
   spans the FULL viewport width behind it and carries the
   ambient stars, constellation lines, shooting star, and a
   subtle warm-to-cool atmospheric haze.
   ============================================================ */

.ph4-hero-sky {
  position: absolute;
  /* Per instruction 16c: sky must NOT add to the hero's stacking
     height — it's a background layer that matches the hero's exact
     bounds. Use inset:0 + 100vw width so atmosphere bleeds full
     viewport width while the hero stays a single 100vh tall. */
  inset: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  /* sit BEHIND the centred .ph4-hero-canvas */
  z-index: 0;
}

/* (Redundant z-index assertion. The real positioning is set
   on .ph4-hero .ph4-hero-canvas above — per #17b it must be
   absolute, not relative. Keep z-index only.) */
.ph4-hero .ph4-hero-canvas { z-index: 0; }

/* atmospheric haze: warm-cream centre, faintly cooler at far edges */
.ph4-hero-haze {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 60% 80% at 50% 55%,
      rgba(251, 244, 226, 0.10) 0%,
      rgba(251, 244, 226, 0.06) 35%,
      rgba(231, 232, 240, 0.00) 65%,
      rgba(214, 220, 232, 0.06) 100%
    ),
    linear-gradient(
      90deg,
      rgba(214, 220, 232, 0.07) 0%,
      rgba(214, 220, 232, 0.00) 18%,
      rgba(214, 220, 232, 0.00) 82%,
      rgba(214, 220, 232, 0.07) 100%
    );
  pointer-events: none;
}

/* The .ph2-stars rule that lived INSIDE .ph4-hero-canvas no longer
   matters (stars moved out). Make stars in the new sky fill it. */
.ph4-hero-sky .ph2-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* per-star size + brightness driven by inline --s / --bright vars */
.ph4-hero-sky .ph2-stars span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s, 3px);
  height: var(--s, 3px);
  background: var(--gold);
  border-radius: 50%;
  /* most stars: gentle glow. brighter ones: stronger halo */
  box-shadow: 0 0 calc(var(--s, 3px) * 2) rgba(184, 147, 90, 0.55);
  opacity: 0.6;
}
.ph4-hero-sky .ph2-stars span[style*="--bright:1"] {
  box-shadow:
    0 0 calc(var(--s, 3px) * 2.4) rgba(184, 147, 90, 0.85),
    0 0 calc(var(--s, 3px) * 5)   rgba(184, 147, 90, 0.35);
  opacity: 0.92;
}

/* SVG overlay now fills the whole wide sky, not the small canvas */
.ph4-hero-sky .ph4-sky-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

/* shooting star + constellation lines: re-state so the OLD
   .ph4-hero-canvas-scoped rules (which used inset: -20% -30%
   and width:160%) don't fight us on .ph4-hero-sky variants. */
.ph4-hero-sky .ph4-shooting-star {
  stroke: var(--gold);
  stroke-width: 1.6;
  stroke-linecap: round;
  fill: none;
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(184, 147, 90, 0.55));
}
.ph4-hero-sky .ph4-constellations line {
  stroke: var(--gold);
  stroke-width: 0.5;
  stroke-linecap: round;
  fill: none;
  /* 0.06–0.10 — second-glance detail, not a diagram */
  opacity: 0;
}

/* Mobile: roughly 14 stars. We hide the outermost 8 (≤14% and ≥86%)
   so density tapers naturally toward the centre at small widths.
   (Sky height now inherits from .ph4-hero — see #16c.) */
@media (max-width: 640px) {
  .ph4-hero-sky .ph2-stars span[style*="--x:3%"],
  .ph4-hero-sky .ph2-stars span[style*="--x:7%"],
  .ph4-hero-sky .ph2-stars span[style*="--x:11%"],
  .ph4-hero-sky .ph2-stars span[style*="--x:14%"],
  .ph4-hero-sky .ph2-stars span[style*="--x:86%"],
  .ph4-hero-sky .ph2-stars span[style*="--x:91%"],
  .ph4-hero-sky .ph2-stars span[style*="--x:96%"],
  .ph4-hero-sky .ph2-stars span[style*="--x:82%"] {
    display: none;
  }
}

/* Reduced motion: keep stars + haze, kill the shooter/constellations.
   (The existing prefers-reduced-motion block already disables
   .ph2-stars span animation and .ph4-shooting-star/.ph4-constellations
   display: none — but those selectors were scoped via .ph4-hero, which
   still applies. Re-state for safety.) */
@media (prefers-reduced-motion: reduce) {
  .ph4-hero-sky .ph4-shooting-star,
  .ph4-hero-sky .ph4-constellations line,
  .ph4-hero-sky .ph4-constellations {
    display: none !important;
  }
  .ph4-hero-sky .ph2-stars span {
    animation: none !important;
    opacity: 0.85 !important;
    transform: none !important;
  }
}


/* ============================================
   THREE EDITIONS — editorial ladder, no prices
   ============================================ */
.ph2-editions {
  position: relative;
  background: linear-gradient(180deg, #FBF6EB 0%, var(--paper) 100%);
  padding: clamp(72px, 9vh, 120px) var(--gutter);
  border-top: 1px solid var(--rule);
  overflow: hidden;
}
.ph2-editions-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.ph2-editions-stars span {
  position: absolute;
  left: var(--x); top: var(--y);
  width: var(--s, 2px); height: var(--s, 2px);
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.35;
  animation: ph-edition-amb 3.6s ease-in-out infinite;
  animation-delay: var(--d, 0s);
  box-shadow: 0 0 calc(var(--s, 2px) * 2) rgba(142,110,61,0.5);
}
@keyframes ph-edition-amb {
  0%, 100% { opacity: 0.25; transform: scale(0.9); }
  50%      { opacity: 0.6;  transform: scale(1.1); }
}

.ph2-editions-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
}
.ph2-editions-head {
  text-align: center;
  margin-bottom: clamp(48px, 6vh, 72px);
}
.ph2-editions-head .ph2-section-label { margin-bottom: 18px; }
.ph2-editions-title {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.ph2-editions-title em {
  font-style: italic;
  color: var(--gold-deep);
}

.ph2-editions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2vw, 32px);
  align-items: stretch;
}

.ph2-edition-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(28px, 3vw, 44px) clamp(24px, 2.6vw, 40px) clamp(32px, 3.4vw, 44px);
  background: rgba(251, 246, 235, 0.55);
  border: 1px solid var(--rule);
  border-radius: 3px;
  transition: transform .5s var(--ease), border-color .5s var(--ease), background .5s var(--ease), box-shadow .5s var(--ease);
}
.ph2-edition-card:hover {
  border-color: var(--rule-strong);
  background: rgba(251, 246, 235, 0.85);
}

.ph2-edition-card--hero {
  background: #FBF6EB;
  border-color: rgba(142, 110, 61, 0.32);
  border-top: 2px solid var(--gold);
  box-shadow:
    0 1px 0 rgba(142,110,61,0.06),
    0 28px 70px -44px rgba(31,29,26,0.22);
  transform: translateY(-10px) scale(1.015);
}
.ph2-edition-card--hero:hover {
  border-color: rgba(142, 110, 61, 0.5);
  border-top-color: var(--gold-deep);
}

.ph2-edition-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: var(--paper);
  padding: 5px 12px;
  border: 1px solid rgba(142,110,61,0.35);
  border-radius: 999px;
  white-space: nowrap;
}

.ph2-edition-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

.ph2-edition-motif {
  display: inline-flex;
  align-items: center;
  height: 32px;
  margin-top: 6px;
  margin-bottom: 4px;
}
.ph2-edition-motif svg {
  display: block;
  overflow: visible;
}
.ph2-motif-star {
  fill: var(--gold);
  transform-origin: center;
  transform-box: fill-box;
  animation: ph-motif-pulse 3s ease-in-out infinite;
  animation-delay: var(--md, 0s);
}
.ph2-edition-card--hero .ph2-motif-star {
  fill: var(--gold-deep);
}
@keyframes ph-motif-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.96); }
  50%      { opacity: 1;    transform: scale(1.05); }
}

.ph2-edition-name {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 8px 0 4px;
}
.ph2-edition-card--hero .ph2-edition-name {
  font-style: italic;
  color: var(--gold-deep);
}

.ph2-edition-format {
  font-family: var(--serif-read);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.ph2-edition-line {
  font-family: var(--serif-read);
  font-style: italic;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  max-width: 32ch;
}

.ph2-editions-reassure {
  margin: clamp(48px, 6vh, 72px) auto 0;
  max-width: 56ch;
  text-align: center;
  font-family: var(--serif-read);
  font-style: italic;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-mute);
}

@media (prefers-reduced-motion: reduce) {
  .ph2-editions-stars span,
  .ph2-motif-star {
    animation: none !important;
    opacity: 0.6 !important;
    transform: none !important;
  }
}

@media (max-width: 880px) {
  .ph2-editions-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .ph2-edition-card--hero {
    transform: none;
  }
  .ph2-edition-tag { left: 24px; transform: none; }
}


/* Footer brand lockup — logo + wordmark inline */
.ph-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: auto;
}
.ph-footer-wordmark {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: -0.005em;
  color: var(--ink);
  line-height: 1;
}


/* ============================================
   Hero book — hover-to-illustrate
   On hover, story scenes are "drawn in" on both
   pages via a left-to-right clip-path reveal.
   ============================================ */
.ph4-hero .ph2-book .ph2-book-page::after {
  content: "";
  position: absolute;
  inset: 6%;
  background-size: cover;
  background-position: center;
  border-radius: 1px;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.1s cubic-bezier(.2,.7,.2,1), opacity .4s ease;
  pointer-events: none;
}
.ph4-hero .ph2-book .ph2-book-page--l::after {
  background-image: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20200%20240'%20preserveAspectRatio%3D'xMidYMid%20slice'%3E%0A%3Cdefs%3E%0A%3ClinearGradient%20id%3D'lsky'%20x1%3D'0'%20x2%3D'0'%20y1%3D'0'%20y2%3D'1'%3E%0A%3Cstop%20offset%3D'0%25'%20stop-color%3D'%23F2D9B0'%2F%3E%3Cstop%20offset%3D'55%25'%20stop-color%3D'%23D9A78E'%2F%3E%3Cstop%20offset%3D'100%25'%20stop-color%3D'%237E6D8A'%2F%3E%0A%3C%2FlinearGradient%3E%0A%3CradialGradient%20id%3D'lmoon'%20cx%3D'50%25'%20cy%3D'50%25'%20r%3D'50%25'%3E%3Cstop%20offset%3D'0%25'%20stop-color%3D'%23FBEFC8'%2F%3E%3Cstop%20offset%3D'100%25'%20stop-color%3D'%23F0D89A'%20stop-opacity%3D'0'%2F%3E%3C%2FradialGradient%3E%0A%3C%2Fdefs%3E%0A%3Crect%20width%3D'200'%20height%3D'240'%20fill%3D'url(%23lsky)'%2F%3E%0A%3Ccircle%20cx%3D'138'%20cy%3D'70'%20r%3D'30'%20fill%3D'url(%23lmoon)'%2F%3E%0A%3Ccircle%20cx%3D'138'%20cy%3D'70'%20r%3D'16'%20fill%3D'%23FBEFC8'%2F%3E%0A%3Cg%20fill%3D'%23FBEFC8'%20opacity%3D'0.85'%3E%3Ccircle%20cx%3D'34'%20cy%3D'32'%20r%3D'2'%2F%3E%3Ccircle%20cx%3D'76'%20cy%3D'22'%20r%3D'1.4'%2F%3E%3Ccircle%20cx%3D'180'%20cy%3D'46'%20r%3D'1.8'%2F%3E%3Ccircle%20cx%3D'52'%20cy%3D'60'%20r%3D'1.2'%2F%3E%3C%2Fg%3E%0A%3Cpath%20d%3D'M0%20175%20Q60%20158%20110%20168%20T200%20165%20L200%20240%20L0%20240%20Z'%20fill%3D'%235D5072'%2F%3E%0A%3Cpath%20d%3D'M0%20195%20Q70%20182%20130%20190%20T200%20188%20L200%20240%20L0%20240%20Z'%20fill%3D'%233F3654'%2F%3E%0A%3Cg%20stroke%3D'%233F3654'%20stroke-width%3D'1'%20fill%3D'%233F3654'%3E%3Cpath%20d%3D'M40%20180%20l0%20-22'%2F%3E%3Cpath%20d%3D'M36%20162%20q4%20-8%208%200%20q-4%204%20-8%200%20z'%2F%3E%3C%2Fg%3E%0A%3C%2Fsvg%3E");
  filter: saturate(1.05);
}
.ph4-hero .ph2-book .ph2-book-page--r::after {
  background-image: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20200%20240'%20preserveAspectRatio%3D'xMidYMid%20slice'%3E%0A%3Cdefs%3E%0A%3ClinearGradient%20id%3D'rsky'%20x1%3D'0'%20x2%3D'0'%20y1%3D'0'%20y2%3D'1'%3E%0A%3Cstop%20offset%3D'0%25'%20stop-color%3D'%23F4D9A8'%2F%3E%3Cstop%20offset%3D'100%25'%20stop-color%3D'%239A7B82'%2F%3E%0A%3C%2FlinearGradient%3E%0A%3C%2Fdefs%3E%0A%3Crect%20width%3D'200'%20height%3D'240'%20fill%3D'url(%23rsky)'%2F%3E%0A%3Cg%20fill%3D'%23FBEFC8'%20opacity%3D'0.8'%3E%3Ccircle%20cx%3D'40'%20cy%3D'40'%20r%3D'1.4'%2F%3E%3Ccircle%20cx%3D'120'%20cy%3D'32'%20r%3D'1'%2F%3E%3Ccircle%20cx%3D'170'%20cy%3D'58'%20r%3D'1.2'%2F%3E%3C%2Fg%3E%0A%3Cpath%20d%3D'M0%20180%20Q60%20168%20120%20178%20T200%20174%20L200%20240%20L0%20240%20Z'%20fill%3D'%233F3654'%2F%3E%0A%3Cg%20fill%3D'%231F1A2E'%20stroke%3D'%231F1A2E'%20stroke-width%3D'0.6'%3E%0A%3Ccircle%20cx%3D'98'%20cy%3D'168'%20r%3D'5'%2F%3E%0A%3Cpath%20d%3D'M91%20174%20q7%20-2%2014%200%20l-2%2022%20-10%200%20z'%2F%3E%0A%3Cpath%20d%3D'M93%20196%20l-2%2014%20l4%200%20z'%2F%3E%0A%3Cpath%20d%3D'M101%20196%20l2%2014%20l-4%200%20z'%2F%3E%0A%3C%2Fg%3E%0A%3Cg%20stroke%3D'%231F1A2E'%20stroke-width%3D'1'%20fill%3D'%233F3654'%3E%3Cpath%20d%3D'M150%20180%20l0%20-34'%2F%3E%3Ccircle%20cx%3D'150'%20cy%3D'148'%20r%3D'12'%2F%3E%3C%2Fg%3E%0A%3Ctext%20x%3D'32'%20y%3D'62'%20font-family%3D'Playfair%20Display%2C%20Georgia%2C%20serif'%20font-style%3D'italic'%20font-size%3D'14'%20fill%3D'%233F3654'%20opacity%3D'0.85'%3EOnce%2C%3C%2Ftext%3E%0A%3Ctext%20x%3D'32'%20y%3D'80'%20font-family%3D'Playfair%20Display%2C%20Georgia%2C%20serif'%20font-style%3D'italic'%20font-size%3D'9'%20fill%3D'%233F3654'%20opacity%3D'0.7'%3Ewhen%20the%20moon%20was%20full%E2%80%A6%3C%2Ftext%3E%0A%3C%2Fsvg%3E");
  filter: saturate(1.05);
  transition-delay: .15s;
}
/* "100" wordmark on right page fades out so the scene reads cleanly */
.ph4-hero .ph2-book .ph2-book-100 {
  transition: opacity .5s var(--ease);
}

/* Hover state — both pages reveal */
.ph4-hero-mark:hover .ph2-book .ph2-book-page::after,
.ph4-hero .ph2-book:hover .ph2-book-page::after {
  opacity: 1;
  clip-path: inset(0 0 0 0);
}
.ph4-hero-mark:hover .ph2-book .ph2-book-100,
.ph4-hero .ph2-book:hover .ph2-book-100 {
  opacity: 0;
  transition-delay: .1s;
}

/* Subtle lift on hover so the book feels invited-in */
.ph4-hero .ph2-book {
  transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .6s ease;
}
.ph4-hero-mark:hover .ph2-book,
.ph4-hero .ph2-book:hover {
  filter: drop-shadow(0 18px 28px rgba(26,26,26,0.18));
}

@media (prefers-reduced-motion: reduce) {
  .ph4-hero .ph2-book .ph2-book-page::after { transition: opacity .3s ease; clip-path: none; }
}


/* Handwritten lines on the letter — type in line-by-line when frame is active */
.ph2-letter-page {
  position: relative;
}
.ph2-letter-lines {
  list-style: none;
  margin: 0; padding: 4px 6px 0;
  font-family: "Caveat", "Patrick Hand", "Segoe Script", cursive;
  font-size: 16px;
  line-height: 22px;
  color: #2A2620;
  letter-spacing: 0.01em;
}
.ph2-letter-lines li {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  margin-bottom: 0;
  opacity: 0;
}
.ph2-how-frame.active .ph2-letter-lines li {
  animation:
    ph2-letter-fade .01s linear forwards,
    ph2-letter-write 1.1s steps(28, end) forwards;
}
.ph2-how-frame.active .ph2-letter-lines li:nth-child(1) { animation-delay: 0.25s, 0.25s; }
.ph2-how-frame.active .ph2-letter-lines li:nth-child(2) { animation-delay: 1.45s, 1.45s; }
.ph2-how-frame.active .ph2-letter-lines li:nth-child(3) { animation-delay: 2.65s, 2.65s; }
.ph2-how-frame.active .ph2-letter-lines li:nth-child(4) { animation-delay: 3.85s, 3.85s; }
.ph2-how-frame.active .ph2-letter-lines li:nth-child(5) { animation-delay: 5.05s, 5.05s; }
.ph2-how-frame.active .ph2-letter-lines li:nth-child(6) { animation-delay: 6.25s, 6.25s; }
.ph2-how-frame.active .ph2-letter-sig { animation: ph2-letter-fade 0.6s ease 7.6s both; }

@keyframes ph2-letter-write {
  from { width: 0; }
  to   { width: 100%; }
}
@keyframes ph2-letter-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .ph2-how-frame.active .ph2-letter-lines li {
    animation: none; width: 100%; opacity: 1;
  }
}


/* ============================================================
   CTA TRANSITION (transitions.js) — the Page Turn book flip,
   layered above all content while it runs.
   ============================================================ */
.ph-fx-layer {
  position: fixed; inset: 0; pointer-events: none;
  z-index: 80; overflow: hidden;
}
.ph-fx-layer > * { pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .ph-fx-layer { display: none !important; }
}

/* ============================================================
   PAGE TURN — 3D book flip
   The viewport is treated as a single sheet hinged at its left
   edge. It rotates from rotateY(0) → rotateY(-178deg) under a
   strong perspective, with a moving sheen, curl shadow, page-edge
   highlight and ✦ sparkles that trail the lifting edge.
   ============================================================ */
.ph-fx-flip {
  position: absolute; inset: 0;
  perspective: 2400px;
  perspective-origin: 50% 45%;
}
.ph-fx-flip-stage {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  opacity: 0;
  transition: opacity .22s ease;
}
.ph-fx-flip-stage.in { opacity: 1; }

.ph-fx-flip-page {
  position: absolute; inset: 0;
  transform-origin: 0% 50%;
  transform-style: preserve-3d;
  transform: rotateY(0deg);
  transition: transform 1.15s cubic-bezier(0.58, 0.02, 0.34, 1);
  will-change: transform;
}
.ph-fx-flip-page.flip { transform: rotateY(-178deg); }

.ph-fx-flip-face {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background:
    radial-gradient(ellipse at 16% 22%, rgba(193,118,97,0.06), transparent 55%),
    radial-gradient(ellipse at 84% 78%, rgba(91,75,122,0.06), transparent 55%),
    linear-gradient(135deg, #FAF8E9 0%, #F2EAD0 60%, #EADFC2 100%);
  box-shadow:
    inset 26px 0 60px -16px rgba(91,75,122,0.18),   /* shadow pooling toward the spine */
    inset -34px 0 70px -12px rgba(0,0,0,0.10),      /* trailing edge shadow */
    0 28px 80px -18px rgba(0,0,0,0.38);
  overflow: hidden;
}

/* Subtle paper grain */
.ph-fx-flip-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background-image:
    radial-gradient(rgba(116,87,69,0.07) 1px, transparent 1px),
    radial-gradient(rgba(91,75,122,0.05) 1px, transparent 1px);
  background-size: 7px 7px, 11px 11px;
  background-position: 0 0, 3px 4px;
}

/* "Manuscript" content drawn on the page */
.ph-fx-flip-frame {
  position: absolute; left: 14%; right: 14%; top: 16%; bottom: 16%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px;
  color: #5B4B7A;
  font-family: 'Playfair Display', Georgia, serif;
}
.ph-fx-flip-logo {
  width: clamp(72px, 9vw, 120px);
  height: auto;
  opacity: 0.78;
  /* the asset is solid black on transparent — tint toward the ink/violet so it
     reads as a printed mark on the cream page rather than a sticker */
  filter:
    brightness(0) saturate(100%)
    invert(28%) sepia(14%) saturate(820%) hue-rotate(220deg)
    drop-shadow(0 1px 0 rgba(91,75,122,0.10));
  margin-bottom: 2px;
}
.ph-fx-flip-folio {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(193,118,97,0.75);
}
.ph-fx-flip-lines {
  width: 100%; max-width: 440px;
  display: flex; flex-direction: column; gap: 12px;
}
.ph-fx-flip-lines i {
  display: block; height: 1.5px; background: rgba(91,75,122,0.20); border-radius: 2px;
}
.ph-fx-flip-lines i:nth-child(1) { width: 100%; }
.ph-fx-flip-lines i:nth-child(2) { width: 88%; }
.ph-fx-flip-lines i:nth-child(3) { width: 95%; }
.ph-fx-flip-lines i:nth-child(4) { width: 76%; }
.ph-fx-flip-lines i:nth-child(5) { width: 92%; }
.ph-fx-flip-lines i:nth-child(6) { width: 84%; }
.ph-fx-flip-lines i:nth-child(7) { width: 58%; }
.ph-fx-flip-ornament {
  display: flex; align-items: center; gap: 12px;
  color: rgba(193,118,97,0.85);
  font-size: 14px;
}
.ph-fx-flip-ornament i {
  display: block; width: 48px; height: 1px;
  background: rgba(91,75,122,0.32);
}
.ph-fx-flip-ornament b { font-weight: normal; font-style: normal; }

/* Moving sheen — slow diagonal highlight to suggest light catching the page */
.ph-fx-flip-sheen {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg,
    transparent 30%,
    rgba(255,250,225,0.0) 42%,
    rgba(255,250,225,0.55) 50%,
    rgba(255,250,225,0.0) 58%,
    transparent 70%);
  transform: translateX(-100%);
  mix-blend-mode: screen;
}
.ph-fx-flip-page.flip .ph-fx-flip-sheen {
  animation: ph-fx-flip-sheen 1.1s cubic-bezier(0.4, 0, 0.4, 1) forwards;
}
@keyframes ph-fx-flip-sheen {
  0%   { transform: translateX(-100%); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

/* Right-edge curl shadow — darkens as the page lifts */
.ph-fx-flip-curl {
  position: absolute; top: -10%; bottom: -10%; right: 0; width: 28%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0,0,0,0.03) 40%,
    rgba(0,0,0,0.10) 75%,
    rgba(0,0,0,0.22) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .9s ease;
}
.ph-fx-flip-page.flip .ph-fx-flip-curl { opacity: 1; }

/* Hair-thin warm edge along the lifting (right) side */
.ph-fx-flip-edge {
  position: absolute; top: 0; bottom: 0; right: 0;
  width: 2px;
  background: linear-gradient(180deg,
    rgba(193,118,97,0.0) 0%,
    rgba(193,118,97,0.65) 20%,
    rgba(91,75,122,0.55) 80%,
    rgba(91,75,122,0.0) 100%);
}

/* Sparkle trail along the lifting edge */
.ph-fx-flip-sparkles {
  position: absolute; inset: 0; pointer-events: none;
  /* sits ABOVE the page in DOM so sparkles read against the dark
     waitlist that scrolls in behind the page */
}
.ph-fx-flip-spark {
  position: absolute;
  right: -6px; top: var(--y);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: var(--sz);
  line-height: 1;
  color: #FAF8E9;
  text-shadow:
    0 0 8px rgba(254,232,164,0.85),
    0 0 18px rgba(193,118,97,0.55);
  opacity: 0;
  transform: translate(0, 0) scale(0.6) rotate(0deg);
  animation: ph-fx-flip-spark var(--dur) cubic-bezier(0.22, 0.61, 0.36, 1) var(--del) forwards;
  will-change: transform, opacity;
}
@keyframes ph-fx-flip-spark {
  0%   { opacity: 0; transform: translate(0, 0) scale(0.4) rotate(0deg); }
  18%  { opacity: 1; }
  60%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.3) rotate(180deg); }
}

/* Mobile / portrait — tighten manuscript so it still reads on a narrow page */
@media (max-width: 600px) {
  .ph-fx-flip-frame {
    left: 10%; right: 10%; top: 12%; bottom: 12%;
    gap: 14px;
  }
  .ph-fx-flip-logo {
    width: clamp(56px, 18vw, 84px);
  }
  .ph-fx-flip-folio {
    font-size: 10px;
    letter-spacing: 0.2em;
  }
  .ph-fx-flip-lines { gap: 10px; max-width: 320px; }
  .ph-fx-flip-lines i { height: 1.25px; }
  .ph-fx-flip-ornament { gap: 9px; font-size: 12px; }
  .ph-fx-flip-ornament i { width: 32px; }
  /* Fewer, smaller sparkles read better in portrait */
  .ph-fx-flip-spark { font-size: calc(var(--sz) * 0.78); }
}

/* ============================================================
   HERO SCROLL CUE
   Subtle invitation to scroll: italic "Turn the page" label over
   a thin vertical rule with a small terracotta dot that travels
   top → bottom on a slow loop. Sits absolutely at the foot of
   the hero and links to #promise.
   ============================================================ */
.ph4-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(20px, 4vh, 36px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  z-index: 4;
  opacity: 0;
  animation: ph4-scroll-cue-in 1s cubic-bezier(0.22, 0.61, 0.36, 1) 1.4s forwards;
}
.ph4-scroll-cue-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
  transition: color .25s var(--ease, ease);
}
.ph4-scroll-cue:hover .ph4-scroll-cue-label { color: var(--gold-deep); }

.ph4-scroll-cue-line {
  position: relative;
  width: 1px;
  height: 48px;
  /* Soft fade in & out so the rule doesn't read as a hard tick */
  background: linear-gradient(180deg,
    rgba(116,122,138,0.0) 0%,
    rgba(116,122,138,0.40) 30%,
    rgba(116,122,138,0.40) 70%,
    rgba(116,122,138,0.0) 100%);
  overflow: visible;
}
.ph4-scroll-cue-line i {
  position: absolute;
  left: 50%;
  top: 0;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--gold, #C17661);
  box-shadow:
    0 0 6px rgba(193,118,97,0.55),
    0 0 14px rgba(193,118,97,0.25);
  animation: ph4-scroll-cue-dot 2.4s cubic-bezier(0.55, 0, 0.45, 1) infinite;
  will-change: transform, opacity;
}
@keyframes ph4-scroll-cue-dot {
  0%   { transform: translateY(0);      opacity: 0; }
  18%  { opacity: 1; }
  78%  { opacity: 1; }
  100% { transform: translateY(44px);   opacity: 0; }
}
@keyframes ph4-scroll-cue-in {
  to { opacity: 1; }
}

/* Mobile — keep it; smaller line, tighter spacing */
@media (max-width: 600px) {
  .ph4-scroll-cue {
    bottom: 18px;
    gap: 10px;
  }
  .ph4-scroll-cue-label { font-size: 9px; letter-spacing: 0.22em; }
  .ph4-scroll-cue-line  { height: 36px; }
  @keyframes ph4-scroll-cue-dot {
    0%   { transform: translateY(0);     opacity: 0; }
    20%  { opacity: 1; }
    78%  { opacity: 1; }
    100% { transform: translateY(34px);  opacity: 0; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .ph4-scroll-cue-line i { animation: none; opacity: 1; }
}

/* ============================================================
   CHAPTER RAIL  (chapter-rail.js)
   Fixed vertical column on the right edge marking each section
   as a "chapter". Active section's tick lengthens and turns
   terracotta. Tiny italic "p. NN / NN" counter at the top.
   A subtle progress bar below the ticks fills as you scroll
   the whole document.
   ============================================================ */
.ph-rail {
  position: fixed;
  right: clamp(16px, 2.2vw, 32px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  pointer-events: none;
  /* Quietly arrive after the page settles */
  opacity: 0;
  animation: ph-rail-in 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) 0.6s forwards;
}
.ph-rail > * { pointer-events: auto; }
@keyframes ph-rail-in {
  to { opacity: 1; }
}

.ph-rail-page {
  font-family: var(--serif-display, Georgia, serif);
  font-size: 12px;
  font-style: italic;
  color: var(--ink-soft, #747A8A);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 6px;
  white-space: nowrap;
}
.ph-rail-page b {
  font-family: var(--mono, ui-monospace, monospace);
  font-weight: 500;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink, #1A1A1A);
}
.ph-rail-page i {
  font-style: italic;
  color: var(--ink-mute, #A9ADB8);
  font-size: 11px;
}
.ph-rail-page .ph-rail-page-total {
  font-family: var(--mono, ui-monospace, monospace);
  font-weight: 400;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-mute, #A9ADB8);
}

.ph-rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.ph-rail-list li { display: flex; }
.ph-rail-list a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  text-decoration: none;
  cursor: pointer;
}

/* The tick itself — short hairline by default, lengthens & warms on active */
.ph-rail-tick {
  display: block;
  width: 16px;
  height: 1.5px;
  background: rgba(116, 122, 138, 0.45);
  border-radius: 2px;
  transition:
    width   .35s cubic-bezier(0.22, 0.61, 0.36, 1),
    height  .35s cubic-bezier(0.22, 0.61, 0.36, 1),
    background .25s ease;
}
.ph-rail-list a:hover .ph-rail-tick {
  background: var(--gold-deep, #9E5C49);
  width: 22px;
}
.ph-rail-list a.on .ph-rail-tick {
  width: 32px;
  height: 2px;
  background: var(--gold, #C17661);
  box-shadow: 0 0 8px rgba(193, 118, 97, 0.45);
}

/* Floating label — appears to the LEFT of the tick on hover or active */
.ph-rail-label {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink, #1A1A1A);
  background: rgba(250, 248, 233, 0.96);
  border: 1px solid rgba(116, 122, 138, 0.22);
  padding: 4px 8px;
  border-radius: 3px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity .25s ease, transform .25s cubic-bezier(0.22, 0.61, 0.36, 1);
  pointer-events: none;
  box-shadow: 0 6px 18px -8px rgba(26, 26, 26, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.ph-rail-list a:hover .ph-rail-label {
  opacity: 1;
  transform: translateX(0);
}

/* Vertical progress bar below the ticks — scales the document scroll 0..1 */
.ph-rail-progress {
  position: relative;
  width: 1px;
  height: 64px;
  margin-top: 10px;
  background: rgba(116, 122, 138, 0.22);
  border-radius: 1px;
  overflow: hidden;
}
.ph-rail-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--gold, #C17661), var(--gold-deep, #9E5C49));
  transform-origin: top center;
  transform: scaleY(0);
  /* set inline via JS each scroll tick — no transition for liveness */
}

/* On dark sections, recolour neutrals so the rail still reads.
   .ph2-waitlist is dark; we'll detect via body's offset to that
   section through a data attribute set by JS. For now, simply use
   colours that survive both backgrounds (gold + medium grey). */

/* Light-on-dark mode — applied by JS when the active section has
   a dark background (#how, #waitlist). */
.ph-rail.on-dark .ph-rail-page b   { color: #FAF8E9; }
.ph-rail.on-dark .ph-rail-page i,
.ph-rail.on-dark .ph-rail-page .ph-rail-page-total {
  color: rgba(250, 248, 233, 0.55);
}
.ph-rail.on-dark .ph-rail-tick { background: rgba(250, 248, 233, 0.40); }
.ph-rail.on-dark .ph-rail-list a:hover .ph-rail-tick {
  background: var(--gold, #C17661);
}
.ph-rail.on-dark .ph-rail-progress { background: rgba(250, 248, 233, 0.18); }
.ph-rail.on-dark .ph-rail-label {
  color: #FAF8E9;
  background: rgba(14, 26, 54, 0.85);
  border-color: rgba(250, 248, 233, 0.18);
}

/* Hide on mobile — too tight, and the page is already short enough
   that the user can sense their position without a rail. The top
   progress sliver (if any) handles that case. */
@media (max-width: 899.98px) {
  .ph-rail { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ph-rail { animation: none; opacity: 1; }
  .ph-rail-tick { transition: none; }
}
