/* ============================================================
   HOPE — House of Playful Expression
   Design System & Global Styles
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&family=Caveat:wght@400;600;700&family=Special+Elite&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ══════════════════════════════════════════════
   CSS VARIABLES — Design Tokens
   ══════════════════════════════════════════════ */
:root {
  /* Palette */
  --cream:        #F5F0E8;
  --cream-dark:   #EDE7D9;
  --cream-deeper: #E4DCC8;
  --parchment:    #F9F5EE;
  --ink:          #1C1917;
  --ink-light:    #44403C;
  --ink-muted:    #78716C;

  --purple:       #5B2BE0;
  --purple-light: #7C3AED;
  --purple-pale:  #EDE9FE;
  --gold:         #D97706;
  --gold-light:   #FCD34D;
  --gold-pale:    #FEF3C7;
  --coral:        #DC2626;
  --green:        #059669;
  --green-pale:   #D1FAE5;
  --blue:         #2563EB;
  --blue-pale:    #DBEAFE;

  /* Typography */
  --font-display:    'Permanent Marker', cursive;   /* brush/handwritten title */
  --font-hand:       'Caveat', cursive;             /* sticky notes, hand labels */
  --font-body:       'Special Elite', cursive;      /* typewriter body text */
  --font-ui:         'DM Sans', system-ui, sans-serif; /* nav, buttons, UI elements */

  /* Sizing */
  --nav-h:          72px;
  --max-w:          1440px;
  --section-pad:    clamp(60px, 8vw, 120px);
  --gutter:         clamp(20px, 5vw, 80px);

  /* Radius */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-pill: 999px;

  /* Shadow */
  --shadow-sm:  0 1px 4px rgba(28,25,23,.08);
  --shadow-md:  0 4px 20px rgba(28,25,23,.12);
  --shadow-lg:  0 12px 48px rgba(28,25,23,.16);
  --shadow-xl:  0 24px 80px rgba(28,25,23,.20);

  /* Easing */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.7, 0, 0.84, 0);
  --ease-bounce:cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Transitions */
  --t-fast:   150ms;
  --t-base:   300ms;
  --t-slow:   600ms;
  --t-slower: 900ms;
}

/* ══════════════════════════════════════════════
   RESET & BASE
   ══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-ui);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none; /* custom cursor */
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: none; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }

/* ══════════════════════════════════════════════
   CUSTOM CURSOR
   ══════════════════════════════════════════════ */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 12px; height: 12px;
  background: var(--purple);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform var(--t-fast) var(--ease-out),
              width var(--t-base) var(--ease-out),
              height var(--t-base) var(--ease-out),
              background var(--t-base);
  mix-blend-mode: multiply;
}
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 40px; height: 40px;
  border: 1.5px solid var(--purple);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 80ms linear,
              width var(--t-base) var(--ease-out),
              height var(--t-base) var(--ease-out),
              opacity var(--t-base);
  opacity: 0.5;
}
body.cursor-hover .cursor { width: 20px; height: 20px; background: var(--gold); }
body.cursor-hover .cursor-ring { width: 60px; height: 60px; opacity: 0.3; }

/* ══════════════════════════════════════════════
   PAPER TEXTURE OVERLAY
   ══════════════════════════════════════════════ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9990;
  opacity: 1;
}

/* ══════════════════════════════════════════════
   NOTEBOOK SPIRAL (Left Edge)
   ══════════════════════════════════════════════ */
.notebook-spine {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: 36px;
  background: #C8B89A;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 40px;
  gap: 28px;
  box-shadow: 2px 0 12px rgba(28,25,23,.15);
}
.notebook-spine::before {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 2px;
  background: #A89070;
}
.spiral-ring {
  width: 22px; height: 22px;
  border: 3px solid #7A6040;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.2);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 36px; right: 0;
  height: var(--nav-h);
  background: rgba(245,240,232,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 500;
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
  border-bottom: 1px solid rgba(120,113,108,.12);
  transition: box-shadow var(--t-base);
}
.nav.scrolled { box-shadow: var(--shadow-md); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo-mark {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
}
.nav-logo-mark .h { color: var(--green); }
.nav-logo-mark .o { color: var(--coral); }
.nav-logo-mark .p { color: var(--purple); }
.nav-logo-mark .e { color: var(--gold); }
.nav-logo-sub {
  font-family: var(--font-hand);
  font-size: 11px;
  color: var(--ink-muted);
  line-height: 1.2;
  max-width: 90px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  margin: 0 auto;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-light);
  letter-spacing: .3px;
  position: relative;
  padding-bottom: 2px;
  transition: color var(--t-fast);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--purple);
  transition: width var(--t-base) var(--ease-out);
}
.nav-link:hover, .nav-link.active { color: var(--purple); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.btn-alive {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .3px;
  transition: all var(--t-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.btn-alive::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(100%);
  transition: transform var(--t-base) var(--ease-out);
}
.btn-alive span, .btn-alive i { position: relative; z-index: 1; }
.btn-alive:hover { color: var(--cream); border-color: var(--ink); }
.btn-alive:hover::before { transform: translateY(0); }

.nav-menu-btn {
  width: 36px; height: 36px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px; cursor: none;
}
.nav-menu-btn span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
  transition: all var(--t-base) var(--ease-out);
  transform-origin: center;
}
.nav-menu-btn.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.nav-menu-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-menu-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* Chapter nav dots (left side) */
.chapter-dots {
  position: fixed;
  left: 52px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.chapter-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(120,113,108,.3);
  transition: all var(--t-base) var(--ease-out);
  position: relative;
  cursor: none;
}
.chapter-dot::before {
  content: attr(data-label);
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-hand);
  font-size: 12px;
  color: var(--ink-muted);
  white-space: nowrap;
  opacity: 0;
  transition: opacity var(--t-base);
  pointer-events: none;
}
.chapter-dot:hover::before, .chapter-dot.active::before { opacity: 1; }
.chapter-dot.active { background: var(--purple); transform: scale(1.4); }
.chapter-dot:hover { background: var(--purple-light); }

/* ══════════════════════════════════════════════
   SOUND & THEME TOGGLES
   ══════════════════════════════════════════════ */
.corner-controls {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ctrl-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(245,240,232,.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(120,113,108,.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-muted);
  font-size: 16px;
  transition: all var(--t-base) var(--ease-out);
  box-shadow: var(--shadow-sm);
}
.ctrl-btn:hover { background: var(--ink); color: var(--cream); transform: scale(1.1); }

/* Scroll indicator */
.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ink-muted);
  font-family: var(--font-hand);
  font-size: 13px;
}
.scroll-cue-arrow {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, var(--ink-muted));
  position: relative;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* ══════════════════════════════════════════════
   LAYOUT
   ══════════════════════════════════════════════ */
.page-wrap {
  margin-left: 36px;
  padding-top: var(--nav-h);
}

.chapter-section {
  min-height: 100vh;
  padding: var(--section-pad) var(--gutter);
  position: relative;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 60px;
  align-items: center;
}
.chapter-section + .chapter-section {
  border-top: 1px solid rgba(120,113,108,.1);
}

.chapter-left { position: relative; }
.chapter-right { position: relative; }

/* ══════════════════════════════════════════════
   TYPOGRAPHY
   ══════════════════════════════════════════════ */
.chapter-label {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 800;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-style: italic;
}
.chapter-label::after {
  content: '';
  display: block;
  height: 3px;
  width: 40px;
  background: var(--purple);
  border-radius: 2px;
  flex-shrink: 0;
}
/* Chapter 0 has underline below the label text */
.chapter-label.underline-style {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.chapter-label.underline-style::after {
  width: 100%;
  max-width: 140px;
  height: 3px;
  border-radius: 0;
  background: var(--purple);
}

.chapter-title {
  font-family: var(--font-display);         /* Permanent Marker — brush handwritten */
  font-size: clamp(44px, 5.5vw, 80px);
  font-weight: 400;                         /* Permanent Marker has no weight variants */
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 28px;
  letter-spacing: -0.5px;
}
.chapter-title em {
  font-style: italic;
  color: var(--purple);
  font-family: var(--font-display);
}
.chapter-title .accent { color: var(--gold); }

/* Paint-stroke yellow highlight bar — matches client design */
.highlight-bar {
  display: inline-block;
  background: #F5C842;                      /* solid yellow paint stroke */
  padding: 8px 18px 8px 14px;
  border-radius: 3px;
  font-family: var(--font-body);            /* Special Elite typewriter */
  font-size: 15px;
  color: var(--ink);
  margin: 20px 0;
  line-height: 1.45;
  border: none;                             /* remove the left border */
  position: relative;
}
/* Rough paint stroke edges via box-shadow */
.highlight-bar::before {
  content: '';
  position: absolute;
  inset: -2px -4px;
  background: #F5C842;
  border-radius: 4px;
  z-index: -1;
  opacity: 0.6;
  transform: skew(-1deg, 0.3deg);
}

.body-text {
  font-family: var(--font-body);            /* Special Elite typewriter */
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-light);
  margin-bottom: 14px;
}
.body-text strong { color: var(--ink); font-weight: 700; }
.body-text.purple {
  color: var(--purple);
  font-weight: 400;
  font-style: italic;
}

.hand-note {
  font-family: var(--font-hand);
  font-size: 15px;
  color: var(--ink-muted);
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hand-note i { color: var(--coral); font-size: 12px; }

/* ══════════════════════════════════════════════
   STICKY NOTES
   ══════════════════════════════════════════════ */
.sticky {
  background: var(--purple-pale);
  border-radius: var(--r-sm);
  padding: 18px 20px;
  font-family: var(--font-hand);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  position: relative;
  box-shadow: var(--shadow-sm), 2px 3px 0 rgba(0,0,0,.06);
}
.sticky::before {
  content: '';
  position: absolute;
  top: -8px; right: 20px;
  width: 28px; height: 8px;
  background: rgba(200,184,154,.8);
  border-radius: 2px 2px 0 0;
}
.sticky.yellow { background: var(--gold-pale); }
.sticky.green  { background: var(--green-pale); }
.sticky.blue   { background: var(--blue-pale); }
.sticky.white  { background: #FFFFFF; }

.sticky-clip::before {
  content: '';
  position: absolute;
  top: -14px; right: 16px;
  width: 18px; height: 24px;
  border: 2.5px solid #999;
  border-radius: 8px 8px 0 0;
  border-bottom: none;
}

.heart-mark {
  display: inline-block;
  color: var(--coral);
  font-size: 13px;
}

/* ══════════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════════ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}

.flip-card {
  aspect-ratio: 3/4;
  perspective: 800px;
  cursor: none;
}
.flip-card-inner {
  position: relative;
  width: 100%; height: 100%;
  transition: transform 0.6s var(--ease-out);
  transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner,
.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}
.flip-front, .flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--r-md);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.flip-front {
  background: var(--parchment);
  border: 1px solid var(--cream-deeper);
  box-shadow: var(--shadow-sm);
}
.flip-front .card-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-muted);
  font-size: 22px;
}
.flip-front .card-label {
  font-family: var(--font-hand);
  font-size: 13px;
  text-align: center;
  color: var(--ink-light);
  line-height: 1.3;
}
.flip-back {
  background: var(--purple);
  color: white;
  transform: rotateY(180deg);
}
.flip-back p {
  font-family: var(--font-hand);
  font-size: 14px;
  text-align: center;
  line-height: 1.5;
}

/* General card */
.info-card {
  background: white;
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(120,113,108,.08);
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base);
}
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Zone cards */
.zone-card {
  background: var(--parchment);
  border-radius: var(--r-lg);
  padding: 32px 24px;
  border: 1px solid var(--cream-deeper);
  position: relative;
  overflow: hidden;
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base);
}
.zone-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.zone-card.zone-1::before { background: var(--green); }
.zone-card.zone-2::before { background: var(--gold); }
.zone-card.zone-3::before { background: var(--coral); }
.zone-card.zone-4::before { background: var(--blue); }
.zone-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.zone-number {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
  color: white;
  margin-bottom: 16px;
}
.zone-1 .zone-number { background: var(--green); }
.zone-2 .zone-number { background: var(--gold); }
.zone-3 .zone-number { background: var(--coral); }
.zone-4 .zone-number { background: var(--blue); }

.zone-name {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.zone-1 .zone-name { color: var(--green); }
.zone-2 .zone-name { color: var(--gold); }
.zone-3 .zone-name { color: var(--coral); }
.zone-4 .zone-name { color: var(--blue); }

.zone-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.zone-tagline {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}
.zone-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.zone-tag {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(120,113,108,.08);
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ══════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .3px;
  transition: all var(--t-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--purple);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(107,70,193,.35);
}
.btn-outline {
  border: 1.5px solid var(--ink);
  color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--cream);
}
.btn-gold {
  background: var(--gold);
  color: white;
}
.btn-gold:hover {
  background: #B45309;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217,119,6,.4);
}

/* ══════════════════════════════════════════════
   QUOTE BLOCK
   ══════════════════════════════════════════════ */
.quote-block {
  position: relative;
  padding: 28px 32px;
  background: var(--parchment);
  border-radius: var(--r-lg);
  border: 1px solid var(--cream-deeper);
}
.quote-block .quote-mark {
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 0.6;
  color: var(--purple-pale);
  position: absolute;
  top: 16px; left: 20px;
  font-weight: 900;
}
.quote-block p {
  font-family: var(--font-hand);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  position: relative;
  z-index: 1;
  padding-left: 20px;
}
.quote-block .quote-circle {
  display: inline;
  border: 2px solid var(--coral);
  border-radius: 50%;
  padding: 0 4px;
}

/* ══════════════════════════════════════════════
   ICON LIST
   ══════════════════════════════════════════════ */
.icon-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.icon-list-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 14px;
  color: var(--ink-light);
  line-height: 1.5;
}
.icon-list-item .item-icon {
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  background: var(--purple-pale);
  display: flex; align-items: center; justify-content: center;
  color: var(--purple);
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Checkbox list (signs) */
.check-list { display: flex; flex-direction: column; gap: 10px; }
.check-item {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: var(--ink-light);
}
.check-item i {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(120,113,108,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
  color: transparent;
}

/* ══════════════════════════════════════════════
   CHAPTER 0 — HERO
   ══════════════════════════════════════════════ */
#chapter-0 {
  grid-template-columns: 380px 1fr;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}
#chapter-0 .hero-image-wrap {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 55%;
  overflow: hidden;
}
.hero-illustration {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #FEF3C7 0%, #FCD34D 30%, #F59E0B 60%, #D97706 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero-illustration svg {
  width: 90%; height: 90%;
  opacity: 0.9;
}
.hero-deco {
  position: absolute;
  font-family: var(--font-hand);
  color: rgba(28,25,23,.12);
  font-size: 11px;
  letter-spacing: 1px;
  pointer-events: none;
}

/* Flying elements */
.flying-element {
  position: absolute;
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}
.flying-element:nth-child(2) { animation-delay: -2s; }
.flying-element:nth-child(3) { animation-delay: -4s; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-12px) rotate(3deg); }
  66% { transform: translateY(6px) rotate(-2deg); }
}

/* Heavy icons row */
.icon-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.icon-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: white;
  border-radius: var(--r-pill);
  border: 1px solid var(--cream-deeper);
  font-size: 13px;
  color: var(--ink-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--t-base) var(--ease-out);
}
.icon-pill i { color: var(--purple); font-size: 14px; }
.icon-pill:hover {
  background: var(--purple);
  color: white;
  border-color: var(--purple);
  transform: translateY(-2px);
}
.icon-pill:hover i { color: white; }

/* ══════════════════════════════════════════════
   CHAPTER ILLUSTRATION PLACEHOLDERS
   ══════════════════════════════════════════════ */
.illus-frame {
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.illus-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.illus-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  font-family: var(--font-hand);
  font-size: 14px;
  color: rgba(120,113,108,.5);
  border: 2px dashed rgba(120,113,108,.2);
  background: rgba(245,240,232,.5);
}
.illus-placeholder i {
  font-size: 36px;
  opacity: .3;
}

/* ══════════════════════════════════════════════
   TAPE EFFECT
   ══════════════════════════════════════════════ */
.tape {
  display: inline-block;
  padding: 4px 24px;
  background: rgba(200,184,154,.5);
  border-radius: 2px;
  transform: rotate(-1.5deg);
  box-shadow: 1px 1px 4px rgba(0,0,0,.08);
}
.tape.right { transform: rotate(1.5deg); }

/* ══════════════════════════════════════════════
   SCATTER LAYOUT (floating notes)
   ══════════════════════════════════════════════ */
.scatter-area {
  position: relative;
  min-height: 500px;
}
.scatter-item {
  position: absolute;
}

/* ══════════════════════════════════════════════
   TRANSFORMATION (Chapter 6)
   ══════════════════════════════════════════════ */
.transform-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.transform-before {
  background: linear-gradient(160deg, #E8E4E0, #D4CFC9);
  padding: 40px 32px;
  position: relative;
}
.transform-after {
  background: linear-gradient(160deg, #FEF3C7, #FCD34D 60%, #F59E0B);
  padding: 40px 32px;
  position: relative;
}
.transform-label {
  position: absolute;
  top: 16px; left: 16px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: .5;
}

/* ══════════════════════════════════════════════
   CONTACT FORM
   ══════════════════════════════════════════════ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .5px;
  color: var(--ink-muted);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}
.form-label i { font-size: 12px; color: var(--purple); }
.form-input {
  padding: 12px 16px;
  border: 1.5px solid rgba(120,113,108,.2);
  border-radius: var(--r-md);
  background: white;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
}
.form-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(107,70,193,.12);
}
.form-input::placeholder { color: rgba(120,113,108,.4); }
textarea.form-input { resize: vertical; min-height: 100px; }

/* ══════════════════════════════════════════════
   CONTACT INFO GRID
   ══════════════════════════════════════════════ */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: white;
  border-radius: var(--r-md);
  border: 1px solid rgba(120,113,108,.08);
}
.contact-info-icon {
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.contact-info-icon.green { background: var(--green-pale); color: var(--green); }
.contact-info-icon.orange { background: var(--gold-pale); color: var(--gold); }
.contact-info-icon.blue { background: var(--blue-pale); color: var(--blue); }
.contact-info-icon.purple { background: var(--purple-pale); color: var(--purple); }
.contact-info-label { font-size: 11px; color: var(--ink-muted); margin-bottom: 3px; font-weight: 500; letter-spacing: .3px; }
.contact-info-val { font-size: 13px; color: var(--ink); font-weight: 500; }

/* ── Drawn heart (SVG inline, matches client design) ── */
.drawn-heart {
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
}
.drawn-heart svg {
  width: 0.7em;
  height: 0.7em;
  display: inline;
  vertical-align: middle;
}

/* quote-block uses Special Elite too */
.quote-block p {
  font-family: var(--font-hand);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  position: relative;
  z-index: 1;
  padding-left: 20px;
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--t-slower) var(--ease-out),
              transform var(--t-slower) var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }
.reveal-delay-5 { transition-delay: 500ms; }

.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity var(--t-slower) var(--ease-out),
              transform var(--t-slower) var(--ease-out);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity var(--t-slower) var(--ease-out),
              transform var(--t-slower) var(--ease-out);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
.site-footer {
  background: var(--ink);
  color: rgba(245,240,232,.7);
  padding: 48px var(--gutter) 32px;
  margin-left: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: var(--cream);
  margin-bottom: 8px;
}
.footer-tagline {
  font-family: var(--font-hand);
  font-size: 15px;
  color: rgba(245,240,232,.5);
}
.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-link {
  font-size: 13px;
  transition: color var(--t-fast);
}
.footer-link:hover { color: var(--cream); }
.footer-copy {
  grid-column: 1 / -1;
  font-size: 12px;
  border-top: 1px solid rgba(245,240,232,.1);
  padding-top: 24px;
  margin-top: 8px;
}

/* ══════════════════════════════════════════════
   PROGRESS BAR
   ══════════════════════════════════════════════ */
.reading-progress {
  position: fixed;
  top: 0; left: 36px; right: 0;
  height: 2px;
  background: rgba(120,113,108,.1);
  z-index: 600;
}
.reading-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--gold));
  width: 0%;
  transition: width 100ms linear;
}

/* ══════════════════════════════════════════════
   MOBILE MENU
   ══════════════════════════════════════════════ */
.mobile-menu {
  position: fixed;
  top: var(--nav-h); left: 36px; right: 0; bottom: 0;
  background: var(--cream);
  z-index: 400;
  padding: 40px var(--gutter);
  transform: translateX(100%);
  transition: transform var(--t-slow) var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid rgba(120,113,108,.1);
  padding-bottom: 16px;
  transition: color var(--t-fast);
}
.mobile-nav-link:hover { color: var(--purple); }

/* ══════════════════════════════════════════════
   UTILITY CLASSES
   ══════════════════════════════════════════════ */
.mt-sm  { margin-top: 12px; }
.mt-md  { margin-top: 24px; }
.mt-lg  { margin-top: 40px; }
.mt-xl  { margin-top: 60px; }
.mb-sm  { margin-bottom: 12px; }
.mb-md  { margin-bottom: 24px; }
.flex   { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }
.text-hand { font-family: var(--font-hand); }
.text-display { font-family: var(--font-display); }
.text-muted { color: var(--ink-muted); }
.text-purple { color: var(--purple); }
.text-gold { color: var(--gold); }
.text-coral { color: var(--coral); }
.underline-gold { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.underline-purple { text-decoration: underline; text-decoration-color: var(--purple); text-underline-offset: 4px; }

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .chapter-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .chapter-dots { display: none; }
}
@media (max-width: 768px) {
  :root { --gutter: 20px; --section-pad: 48px; }
  .notebook-spine { display: none; }
  .page-wrap { margin-left: 0; }
  .nav { left: 0; }
  .reading-progress { left: 0; }
  .nav-links { display: none; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .transform-split { grid-template-columns: 1fr; }
  .contact-info-grid { grid-template-columns: 1fr; }
  .cursor, .cursor-ring { display: none; }
  body { cursor: auto; }
  button { cursor: pointer; }
}