/* =========================================================
   Page Hundred — The Small Press
   Editorial, literary-luxury launch site
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Colour — restrained, literary */
  --ivory: #F7F2E8;
  --ivory-warm: #EFE7D5;
  --ivory-deep: #E7DFCC;
  --midnight: #0E2654;
  --midnight-soft: #1a3a6b;
  --ink: #222222;
  --ink-soft: #3a3a3a;
  --ink-muted: #6b6355;
  --gold: #E6C15C;
  --gold-deep: #b8964a;
  --stone: #d9d0bd;

  /* Type */
  --serif: "Fraunces", "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans: "DM Sans", "Söhne", "Helvetica Neue", Arial, sans-serif;

  /* Rhythm */
  --max: 1240px;
  --max-narrow: 880px;
  --max-text: 680px;
  --pad-x: clamp(1.25rem, 4vw, 2.5rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea { font: inherit; color: inherit; }

/* ---------- Base ---------- */
body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "ss01", "ss02", "kern";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Subtle paper grain — makes the ivory feel like real stock */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0.35  0 0 0 0 0.28  0 0 0 0 0.18  0 0 0 0.12 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

main, header, footer, section, nav { position: relative; z-index: 2; }

/* ---------- Typography ---------- */
.serif { font-family: var(--serif); font-variation-settings: "opsz" 16, "SOFT" 50, "wght" 400; }
.sans  { font-family: var(--sans); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--midnight);
  font-weight: 400;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 144, "SOFT" 50, "wght" 400;
}

h1 { line-height: 1.02; }
h2 { line-height: 1.08; }
h3 { line-height: 1.2; }

.display-xl {
  font-family: var(--serif);
  font-size: clamp(2.75rem, 7.2vw, 6.25rem);
  line-height: 1.0;
  letter-spacing: -0.022em;
  color: var(--midnight);
  font-variation-settings: "opsz" 144, "SOFT" 50, "wght" 380;
}

.display-l {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.018em;
  color: var(--midnight);
  font-variation-settings: "opsz" 144, "SOFT" 50, "wght" 400;
}

.display-m {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: var(--midnight);
  font-variation-settings: "opsz" 72, "SOFT" 50, "wght" 420;
}

.italic { font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 100, "wght" 360; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-muted);
  font-weight: 500;
}

.eyebrow--gold { color: var(--gold-deep); }

p { color: var(--ink-soft); }

.lead {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.55;
  color: var(--ink-soft);
  font-variation-settings: "opsz" 36, "SOFT" 80, "wght" 380;
  max-width: 58ch;
}

.body-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 62ch;
}

a.inline-link {
  color: var(--midnight);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: opacity 0.3s var(--ease);
}
a.inline-link:hover { opacity: 0.6; }

/* ---------- Layout helpers ---------- */
.wrap        { max-width: var(--max);        margin: 0 auto; padding: 0 var(--pad-x); }
.wrap-narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 var(--pad-x); }
.wrap-text   { max-width: var(--max-text);   margin: 0 auto; padding: 0 var(--pad-x); }

.section { padding: clamp(5rem, 10vw, 9rem) 0; }
.section--tight { padding: clamp(3.5rem, 7vw, 6rem) 0; }

.rule {
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--stone) 20%, var(--stone) 80%, transparent);
  border: 0;
}

.rule--gold {
  background: linear-gradient(90deg, transparent, var(--gold) 25%, var(--gold-deep) 50%, var(--gold) 75%, transparent);
  opacity: 0.55;
}

.rule--short { width: 60px; margin: 0 auto; background: var(--gold-deep); opacity: 0.7; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  background: rgba(247, 242, 232, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: rgba(109, 99, 85, 0.18);
  background: rgba(247, 242, 232, 0.92);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--midnight);
}
.brand-mark {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: none;
}
.brand-word {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-variation-settings: "opsz" 24, "SOFT" 50, "wght" 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.nav-links a {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--midnight); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  color: var(--midnight);
}
.nav-toggle svg { width: 20px; height: 20px; }

/* Mobile nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--ivory);
  display: none;
  flex-direction: column;
  padding: 1.5rem var(--pad-x) 3rem;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  border-bottom: 1px solid var(--stone);
}
.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 2rem;
}
.mobile-nav a {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2rem, 7vw, 3rem);
  color: var(--midnight);
  padding: 0.5rem 0;
  font-variation-settings: "opsz" 72, "SOFT" 60, "wght" 380;
  letter-spacing: -0.01em;
}
.mobile-nav .eyebrow { margin-top: 2rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.75rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 999px;
  transition: all 0.35s var(--ease);
  will-change: transform;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
}

.btn--primary {
  background: var(--midnight);
  color: var(--ivory);
  border: 1px solid var(--midnight);
}
.btn--primary:hover {
  background: var(--ink);
  border-color: var(--ink);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--midnight);
  border: 1px solid rgba(14, 38, 84, 0.25);
}
.btn--ghost:hover {
  border-color: var(--midnight);
  background: rgba(14, 38, 84, 0.04);
}

.btn--small {
  padding: 0.7rem 1.3rem;
  font-size: 0.74rem;
}

.btn .arrow {
  width: 14px; height: 10px;
  transition: transform 0.35s var(--ease);
}
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Hero (Title page) ---------- */
.hero {
  padding-top: clamp(4rem, 9vw, 8rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  text-align: center;
  position: relative;
}

.hero-ornament {
  display: flex;
  justify-content: center;
  margin-bottom: 2.25rem;
  opacity: 0;
  transform: translateY(8px);
  animation: fadeUp 1s var(--ease-out) 0.1s forwards;
}
.hero-ornament svg { width: 54px; height: auto; color: var(--midnight); }

/* Colour mark — hero centrepiece */
.hero-mark {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(2rem, 3.5vw, 3rem);
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  animation: markReveal 1.4s var(--ease-out) 0.15s forwards;
  position: relative;
}
.hero-mark::before {
  /* Soft aura behind the mark — barely there, makes it feel luminous */
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(280px, 36vw, 460px);
  height: clamp(220px, 28vw, 360px);
  background: radial-gradient(ellipse at center,
    rgba(230, 193, 92, 0.18) 0%,
    rgba(230, 193, 92, 0.06) 35%,
    transparent 65%);
  filter: blur(8px);
  z-index: 0;
  pointer-events: none;
}
.hero-mark-img {
  position: relative;
  z-index: 1;
  width: auto;
  height: clamp(140px, 18vw, 210px);
  max-width: 100%;
  animation: markFloat 7s ease-in-out 1.6s infinite;
  filter: drop-shadow(0 12px 28px rgba(14, 38, 84, 0.14))
          drop-shadow(0 2px 4px rgba(14, 38, 84, 0.08));
}
@keyframes markReveal {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes markFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-mark { animation: none; opacity: 1; transform: none; }
  .hero-mark-img { animation: none; }
}

/* Twinkling stars in ornament */
.twinkle { animation: twinkle 3.2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.twinkle--a { animation-delay: 0s; }
.twinkle--b { animation-delay: 0.9s; }
.twinkle--c { animation-delay: 1.8s; }
@keyframes twinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50%      { opacity: 1;    transform: scale(1.1); }
}

.hero-eyebrow {
  opacity: 0;
  transform: translateY(8px);
  animation: fadeUp 1s var(--ease-out) 0.15s forwards;
  margin-bottom: 1.75rem;
}
.hero-eyebrow .dot {
  display: inline-block;
  width: 4px; height: 4px;
  background: var(--gold-deep);
  border-radius: 50%;
  vertical-align: middle;
  margin: 0 0.7em;
}

.hero-headline {
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 1.1s var(--ease-out) 0.25s forwards;
}
.hero-headline .line-two {
  display: block;
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "wght" 360;
  color: var(--midnight-soft);
}

.hero-sub {
  max-width: 52ch;
  margin: 1.75rem auto 0;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 1s var(--ease-out) 0.45s forwards;
}

.hero-ctas {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 1s var(--ease-out) 0.6s forwards;
}

.hero-foot {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: center;
  opacity: 0;
  animation: fadeIn 1.2s var(--ease-out) 0.9s forwards;
}
.hero-foot span { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-muted); }
.hero-foot .hf-left  { text-align: right; }
.hero-foot .hf-right { text-align: left;  }
.hero-foot .hf-mark {
  width: 8px; height: 8px; background: var(--gold-deep); border-radius: 50%; justify-self: center;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  to { opacity: 1; }
}

/* ---------- The Excerpt (signature artifact) ---------- */
.excerpt-section {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(5rem, 9vw, 8rem);
}

.excerpt-card {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5.5rem) clamp(2rem, 5vw, 4.5rem);
  background: var(--ivory-warm);
  border: 1px solid var(--stone);
  border-radius: 2px;
  position: relative;
  text-align: center;
  box-shadow:
    0 1px 0 rgba(0,0,0,0.02),
    0 30px 60px -30px rgba(20, 30, 50, 0.15),
    0 10px 20px -10px rgba(20, 30, 50, 0.08);
}

.excerpt-card::before,
.excerpt-card::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 1px;
  background: var(--gold-deep);
  opacity: 0.6;
}
.excerpt-card::before { top: 1.75rem; }
.excerpt-card::after  { bottom: 1.75rem; }

.excerpt-chapter {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.5rem;
}

.excerpt-body {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.45;
  color: var(--midnight);
  font-variation-settings: "opsz" 72, "SOFT" 100, "wght" 380;
  max-width: 32ch;
  margin: 0 auto 2rem;
}
.excerpt-body .drop {
  font-size: 1.3em;
  line-height: 1;
  font-style: normal;
  color: var(--gold-deep);
  font-variation-settings: "opsz" 144, "SOFT" 30, "wght" 500;
}

.excerpt-attribution {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.excerpt-attribution em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--midnight-soft);
  font-variation-settings: "opsz" 36, "SOFT" 100, "wght" 380;
}

.excerpt-caption {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---------- Section header pattern ---------- */
.section-head {
  text-align: center;
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}
.section-head .eyebrow { display: inline-block; margin-bottom: 1.25rem; }
.section-head h2 { max-width: 22ch; margin: 0 auto; }
.section-head p { max-width: 58ch; margin: 1.25rem auto 0; }

.section-head--left { text-align: left; margin-bottom: clamp(3rem, 5vw, 4.5rem); }
.section-head--left h2 { max-width: 22ch; }
.section-head--left p { margin-top: 1.25rem; }

/* ---------- Positioning band ---------- */
.positioning {
  background: var(--midnight);
  color: var(--ivory);
  padding: clamp(5rem, 9vw, 8rem) 0;
  position: relative;
  overflow: hidden;
}
.positioning::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(230, 193, 92, 0.10), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(26, 58, 107, 0.8), transparent 50%);
  pointer-events: none;
}
.positioning > * { position: relative; }

.positioning .eyebrow { color: var(--gold); }
.positioning h2 {
  color: var(--ivory);
  font-size: clamp(2rem, 4.2vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  max-width: 20ch;
  margin: 1.25rem 0 0;
}
.positioning h2 em {
  font-style: italic;
  color: var(--gold);
  font-variation-settings: "opsz" 144, "SOFT" 100, "wght" 360;
}

.positioning-body {
  margin-top: 2.5rem;
  max-width: 56ch;
  color: rgba(247, 242, 232, 0.78);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.7;
}
.positioning-body + .positioning-body { margin-top: 1rem; }

/* ---------- Emotional promise (4 pillars) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
}
.pillar {
  padding: clamp(2rem, 3.5vw, 3rem) clamp(1.25rem, 2.5vw, 2rem);
  border-right: 1px solid var(--stone);
  position: relative;
}
.pillar:last-child { border-right: 0; }
.pillar .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold-deep);
  letter-spacing: 0.05em;
  font-variation-settings: "opsz" 36, "SOFT" 100, "wght" 400;
  margin-bottom: 1.75rem;
  display: block;
}
.pillar h3 {
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  line-height: 1.15;
  margin-bottom: 0.9rem;
}
.pillar p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  gap: clamp(2rem, 3.5vw, 3rem);
}
.step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: clamp(1.25rem, 3vw, 3rem);
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  border-top: 1px solid var(--stone);
  align-items: baseline;
}
.step:last-child { border-bottom: 1px solid var(--stone); }
.step-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--gold-deep);
  line-height: 1;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 144, "SOFT" 100, "wght" 340;
}
.step-content h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.15;
  margin-bottom: 0.7rem;
}
.step-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 58ch;
}

/* ---------- Inspired by (editorial tag composition) ---------- */
.inspired {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem 1.5rem;
  align-items: baseline;
}
.insp {
  font-family: var(--serif);
  color: var(--midnight);
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 72, "SOFT" 70, "wght" 380;
}
.insp em { font-style: italic; color: var(--gold-deep); font-variation-settings: "opsz" 72, "SOFT" 100, "wght" 360; }

.insp--xl   { font-size: clamp(2rem, 4.2vw, 3.25rem); grid-column: span 7; }
.insp--l    { font-size: clamp(1.6rem, 3.2vw, 2.5rem); grid-column: span 5; text-align: right; }
.insp--m    { font-size: clamp(1.4rem, 2.6vw, 2rem);  grid-column: span 6; }
.insp--m-r  { font-size: clamp(1.4rem, 2.6vw, 2rem);  grid-column: span 6; text-align: right; }
.insp--s    { font-size: clamp(1.2rem, 2vw, 1.65rem); grid-column: span 4; }
.insp--s-c  { font-size: clamp(1.2rem, 2vw, 1.65rem); grid-column: span 4; text-align: center; }
.insp--s-r  { font-size: clamp(1.2rem, 2vw, 1.65rem); grid-column: span 4; text-align: right; }

/* ---------- Keepsake moment ---------- */
.keepsake {
  background: var(--ivory-warm);
  padding: clamp(5rem, 10vw, 9rem) 0;
  text-align: center;
  border-top: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
}
.keepsake h2 {
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  line-height: 1.08;
  max-width: 18ch;
  margin: 0 auto;
}
.keepsake h2 em {
  font-style: italic;
  color: var(--gold-deep);
  font-variation-settings: "opsz" 144, "SOFT" 100, "wght" 360;
}
.keepsake-meta {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.keepsake-meta-item .eyebrow { display: block; margin-bottom: 0.6rem; color: var(--gold-deep); }
.keepsake-meta-item p {
  font-family: var(--serif);
  color: var(--midnight);
  font-size: 1rem;
  line-height: 1.4;
  font-variation-settings: "opsz" 36, "SOFT" 70, "wght" 400;
  max-width: 22ch;
}

/* ---------- Waitlist ---------- */
.waitlist {
  padding: clamp(5rem, 10vw, 9rem) 0;
  text-align: center;
}
.waitlist h2 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.08;
  max-width: 18ch;
  margin: 0 auto;
}
.waitlist h2 em { font-style: italic; color: var(--gold-deep); font-variation-settings: "opsz" 144, "SOFT" 100, "wght" 360; }
.waitlist p { max-width: 48ch; margin: 1.5rem auto 0; }

.waitlist-form {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  max-width: 480px;
  margin: 2.5rem auto 0;
  background: var(--ivory);
  border: 1px solid var(--stone);
  border-radius: 999px;
  padding: 0.35rem 0.35rem 0.35rem 1.4rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.waitlist-form:focus-within {
  border-color: var(--midnight);
  box-shadow: 0 0 0 4px rgba(14, 38, 84, 0.08);
}
.waitlist-form input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0.85rem 0;
  font-size: 0.95rem;
  outline: none;
  min-width: 0;
}
.waitlist-form input::placeholder { color: var(--ink-muted); }
.waitlist-form button {
  flex-shrink: 0;
}

.waitlist-micro {
  margin-top: 1.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.waitlist-success {
  display: none;
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--gold);
  border-radius: 4px;
  background: rgba(230, 193, 92, 0.1);
  color: var(--midnight);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  font-variation-settings: "opsz" 36, "SOFT" 100, "wght" 400;
}
.waitlist-success.is-visible { display: block; animation: fadeUp 0.6s var(--ease-out) both; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--midnight);
  color: rgba(247, 242, 232, 0.8);
  padding: clamp(4rem, 7vw, 6rem) 0 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  margin-bottom: 4rem;
}
.footer-brand .brand-word { color: var(--ivory); display: block; margin-top: 1rem; }
.footer-brand p {
  font-family: var(--serif);
  font-style: italic;
  margin-top: 1rem;
  color: rgba(247, 242, 232, 0.65);
  max-width: 32ch;
  line-height: 1.5;
  font-variation-settings: "opsz" 36, "SOFT" 100, "wght" 380;
}
.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a {
  font-size: 0.95rem;
  color: rgba(247, 242, 232, 0.75);
  transition: color 0.3s var(--ease);
}
.footer-col a:hover { color: var(--ivory); }

.footer-base {
  border-top: 1px solid rgba(247, 242, 232, 0.12);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: rgba(247, 242, 232, 0.55);
}

/* ---------- Page header (for interior pages) ---------- */
.page-header {
  padding: clamp(5rem, 8vw, 7rem) 0 clamp(3rem, 5vw, 4.5rem);
  text-align: center;
}
.page-header .eyebrow { margin-bottom: 1.5rem; }
.page-header h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin: 0 auto;
  font-variation-settings: "opsz" 144, "SOFT" 50, "wght" 400;
}
.page-header h1 em { font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 100, "wght" 360; color: var(--midnight-soft); }
.page-header p { max-width: 52ch; margin: 1.5rem auto 0; }

/* ---------- Long-form prose (About page) ---------- */
.prose {
  max-width: 640px;
  margin: 0 auto;
}
.prose h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}
.prose h2:first-child { margin-top: 0; }
.prose p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}
.prose p.lead-p {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.5;
  color: var(--midnight);
  font-variation-settings: "opsz" 72, "SOFT" 80, "wght" 380;
  margin-bottom: 2rem;
}
.prose .pullquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  line-height: 1.3;
  color: var(--midnight);
  font-variation-settings: "opsz" 72, "SOFT" 100, "wght" 380;
  text-align: center;
  padding: 2.5rem 0;
  margin: 3rem 0;
  border-top: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
  position: relative;
}
.prose .pullquote::before {
  content: "";
  display: block;
  width: 24px; height: 1px;
  background: var(--gold-deep);
  margin: 0 auto 1.25rem;
}

/* ---------- Contact form ---------- */
.contact-form {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
}
.field { display: grid; gap: 0.5rem; text-align: left; }
.field label {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.field input,
.field textarea,
.field select {
  padding: 0.9rem 1rem;
  border: 1px solid var(--stone);
  border-radius: 4px;
  background: var(--ivory);
  font-size: 1rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  font-family: inherit;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--midnight);
  box-shadow: 0 0 0 4px rgba(14, 38, 84, 0.08);
}

/* ---------- Scroll reveal ----------
   Progressive enhancement: only hide reveal elements once JS is known to be running.
   Without the .js class on <html>, everything is visible — so no-JS users, crawlers,
   and slow connections never see a blank page. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-ornament, .hero-eyebrow, .hero-headline, .hero-sub, .hero-ctas, .hero-foot {
    opacity: 1; transform: none; animation: none;
  }
  .twinkle { animation: none; opacity: 0.8; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(2) { border-right: 0; }
  .pillar:nth-child(1), .pillar:nth-child(2) { border-bottom: 1px solid var(--stone); }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }

  .inspired { grid-template-columns: repeat(8, 1fr); }
  .insp--xl, .insp--l, .insp--m, .insp--m-r { grid-column: span 8; text-align: left; }
  .insp--s, .insp--s-c, .insp--s-r { grid-column: span 4; text-align: left; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }

  .hero-foot { grid-template-columns: 1fr; gap: 0.5rem; text-align: center; }
  .hero-foot .hf-left, .hero-foot .hf-right { text-align: center; }
  .hero-foot .hf-mark { display: none; }

  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: 0; border-bottom: 1px solid var(--stone); }
  .pillar:last-child { border-bottom: 0; }

  .step { grid-template-columns: 1fr; gap: 0.75rem; }
  .step-num { font-size: 2.25rem; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }

  .waitlist-form {
    flex-direction: column;
    border-radius: 12px;
    padding: 0.75rem;
    gap: 0.75rem;
  }
  .waitlist-form input { padding: 0.7rem 1rem; }
  .waitlist-form button { width: 100%; padding: 0.95rem 1.25rem; }

  .footer-base { flex-direction: column; align-items: flex-start; }
}

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