/* ---------- Reset ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #1c1917;
  --ink-2: #44403c;
  --muted: #78716c;
  --line: #e7e5e4;
  --mute-line: #a8a29e;
  --bg: #fff;
  --cream: #faf6ef;
  --container: 1080px;
  --prose: 640px;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  font-size: 17px;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a { color: inherit; }

/* ---------- Grain overlay ---------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.7 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
}

/* ---------- Scroll progress bar ---------- */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 60;
}

@supports (animation-timeline: scroll(root)) {
  .progress-bar {
    animation: progress-grow linear;
    animation-timeline: scroll(root);
  }
}

@keyframes progress-grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .progress-bar { animation: none; }
}

/* ---------- Site sticky top (header + optional banner) ---------- */
/* Wrapping the header + banner in one sticky block means they pin together
   under the viewport, with the banner below the nav row. */
.site-sticky-top {
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-banner {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 0.55rem clamp(1rem, 4vw, 2rem);
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-2);
}

.site-banner p {
  margin: 0;
  max-width: 720px;
  margin-inline: auto;
  line-height: 1.45;
}

@media (max-width: 560px) {
  .site-banner {
    padding: 0.5rem 1rem;
    font-size: 0.78rem;
  }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-logo {
  width: 28px;
  height: 28px;
  display: block;
  color: var(--ink);
  overflow: visible;
}

.brand-bar {
  fill: currentColor;
  transform-origin: 50% 50%;
  transform-box: fill-box;
  transition: none;
}

.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  font-size: 0.9rem;
}

.site-nav a {
  color: var(--ink-2);
  text-decoration: none;
  transition: color 150ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.site-nav .nav-cta {
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
  transition: background 150ms ease, color 150ms ease;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  background: var(--ink);
  color: var(--bg);
}

.lang-switch {
  position: relative;
}

/* Hide the default <details> marker so the summary can be styled as a chip. */
.lang-switch > summary { list-style: none; }
.lang-switch > summary::-webkit-details-marker { display: none; }
.lang-switch > summary::marker { content: ''; }

/* Chip is flat by default: just the flag + arrow. Border shows on hover so
   it announces itself as an affordance only when the user is near it. */
.lang-switch-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink-2);
  background: transparent;
  cursor: pointer;
  user-select: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.lang-switch[open] > .lang-switch-button,
.lang-switch-button:hover,
.lang-switch-button:focus-visible {
  background: var(--cream);
  border-color: var(--line);
  color: var(--ink);
}

/* Shared flag styling — every flag is rendered into the exact same 18×12 box
   regardless of its source aspect ratio. `object-fit: cover` crops slightly so
   the three look visually identical in size (Canada 2:1 loses a hair on the
   sides; Quebec 3:2 fits exactly; Haudenosaunee 5:3 loses a hair too). */
.lang-switch-flag {
  display: block;
  flex-shrink: 0;
  width: 18px;
  height: 12px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(20, 16, 12, 0.1);
  object-fit: cover;
  object-position: center;
}

.lang-switch-chev {
  width: 11px;
  height: 11px;
  display: block;
  flex-shrink: 0;
  opacity: 0.55;
  transition: transform 200ms ease, opacity 160ms ease;
}

.lang-switch[open] .lang-switch-chev,
.lang-switch-button:hover .lang-switch-chev,
.lang-switch-button:focus-visible .lang-switch-chev {
  opacity: 1;
}

.lang-switch[open] .lang-switch-chev {
  transform: rotate(180deg);
}

.lang-switch-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  list-style: none;
  margin: 0;
  padding: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  box-shadow: 0 8px 32px rgba(20, 16, 12, 0.1);
  z-index: 60;
  animation: lang-menu-in 180ms cubic-bezier(.2,.7,.2,1);
  transform-origin: top right;
}

@keyframes lang-menu-in {
  from { opacity: 0; transform: translateY(-4px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.lang-switch-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0;
  transition: background-color 150ms ease, color 150ms ease;
}

.lang-switch-item-name {
  flex: 1;
  min-width: 0;
}

.lang-switch-item-price {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.lang-switch-item-price-symbol {
  font-size: 0.92rem;
}

.lang-switch-item-price-code {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.1em 0.35em;
  border: 1px solid var(--line);
  border-radius: 4px;
  line-height: 1;
}

.lang-switch-item:hover,
.lang-switch-item:focus-visible {
  background: var(--cream);
  color: var(--ink);
}

.lang-switch-item.is-active {
  color: var(--ink);
  font-weight: 500;
  background: rgba(20, 16, 12, 0.04);
}

@media (max-width: 560px) {
  .site-header { gap: 0.5rem; padding-left: 0.75rem; padding-right: 0.75rem; }
  .site-nav { gap: 0.5rem; }
  .site-nav > a:not(.nav-cta) { display: none; }
  .site-nav .nav-cta { padding: 0.35rem 0.7rem; font-size: 0.78rem; }
  .brand-name { font-size: 0.95rem; }
  .brand-logo { width: 22px; height: 22px; }
  .lang-switch-button { padding: 0.4rem 0.45rem; }
  .lang-switch-menu { min-width: 220px; right: -8px; }
}

@media (max-width: 360px) {
  .brand-name { display: none; }
}

/* ---------- Sections ---------- */
section {
  padding: clamp(4.5rem, 10vw, 9rem) clamp(1rem, 4vw, 2rem);
  scroll-margin-top: 64px;
}

.section-head {
  max-width: var(--prose);
  margin: 0 auto clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.display {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.04;
  text-wrap: balance;
  font-variant-ligatures: no-common-ligatures;
}

h1.display {
  font-size: clamp(2.5rem, 6.5vw, 4.75rem);
  font-weight: 600;
  margin: 0.4rem 0 1rem;
}

h2.display {
  font-size: clamp(1.75rem, 4.2vw, 2.85rem);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

p {
  text-wrap: pretty;
}

.lede {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.5;
  max-width: 48ch;
  margin: 0 auto;
}

.prose {
  max-width: var(--prose);
  margin: 0 auto;
  text-align: center;
}

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: clamp(3rem, 8vw, 5rem);
  padding-bottom: clamp(4rem, 10vw, 7rem);
}

.hero h1 {
  max-width: 16ch;
}

.hero-wave {
  width: clamp(280px, 60vw, 560px);
  margin: clamp(2rem, 5vw, 3rem) auto clamp(2.5rem, 6vw, 4rem);
  color: var(--ink);
}

.hero-wave svg {
  width: 100%;
  height: auto;
}

.wave rect {
  transform: scaleY(0.05);
  transform-origin: 50% 50%;
  transform-box: fill-box;
  animation: wave-grow 720ms cubic-bezier(.2,.8,.2,1) backwards;
  animation-delay: calc(var(--i, 0) * 22ms + 200ms);
}

@keyframes wave-grow {
  0%   { transform: scaleY(0.05); opacity: 0; }
  60%  { transform: scaleY(1.08); opacity: 1; }
  100% { transform: scaleY(1);    opacity: 1; }
}

/* After the load animation, JS drives per-bar transforms each frame
   to simulate speech amplitude. Disable the load animation so JS
   transforms aren't fought by it. */
.wave.is-ready rect {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .wave rect { animation: none; transform: none; }
  .wave.is-ready rect { transform: none; }
}

.cta-row {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.45rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
  border: 1px solid transparent;
}

.cta-primary {
  background: var(--ink);
  color: var(--bg);
}

.cta-primary:hover,
.cta-primary:focus-visible {
  background: #000;
  transform: translateY(-1px);
}

.cta-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.cta-secondary:hover,
.cta-secondary:focus-visible {
  background: var(--ink);
  color: var(--bg);
}

.cta-large {
  padding: 0.95rem 1.85rem;
  font-size: 1rem;
}

/* ---------- Problem (inverted) ---------- */
.problem {
  background: var(--ink);
  color: var(--bg);
  padding-block: clamp(6rem, 14vw, 11rem);
}

.problem .prose { color: var(--bg); }

.problem-line {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 6vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.problem-sub {
  margin-top: clamp(2rem, 5vw, 3rem);
  font-family: var(--sans);
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}


/* ---------- How it works (scrollytelling) ---------- */
.how {
  padding-block: clamp(4rem, 8vw, 6rem) 0;
}

.how-scroller {
  position: relative;
  /* 100vh stage + 260vh of "stuck" scroll. Steps 1 and 3 each
     take 80vh; step 2 takes 100vh (25% more). */
  height: calc(100vh + 260vh);
}

.how-stage {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 4vw, 2.5rem);
  max-width: var(--container);
  margin: 0 auto;
  overflow: hidden;
}

.how-stage > .section-head {
  margin: 0 auto;
  flex-shrink: 0;
}

.how-side {
  position: absolute;
  left: clamp(1.25rem, 3vw, 2rem);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: auto;
}

.how-head {
  margin: 0;
  text-align: left;
}

.how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  --rail-progress: 0;
}

.how-steps::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.95rem;
  bottom: 0.95rem;
  width: 1px;
  background: var(--line);
  opacity: 0.55;
}

.how-steps::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.95rem;
  width: 1px;
  height: calc(var(--rail-progress) * (100% - 1.9rem));
  background: var(--ink-2);
  pointer-events: none;
}

.how-step {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.35rem 0;
  color: var(--mute-line);
  transition: color 280ms ease;
  position: relative;
}

.how-step + .how-step {
  margin-top: 0.85rem;
}

.how-step-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--mute-line);
  background: var(--bg);
  flex-shrink: 0;
  z-index: 1;
  transition: background 280ms ease, border-color 280ms ease, transform 280ms ease;
}

.how-step.is-active {
  color: var(--ink);
}

.how-step.is-active .how-step-dot {
  background: var(--ink);
  border-color: var(--ink);
  transform: scale(1.18);
  box-shadow: 0 0 0 3px rgba(28, 25, 23, 0.07);
}

.how-step-label {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.how-deck {
  position: relative;
  width: 100%;
  max-width: 620px;
  flex: 1;
  min-height: 0;
}

.how-progress {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 580px;
  height: 2px;
  background: var(--line);
  border-radius: 1px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 360ms ease;
}

.how-progress.is-visible {
  opacity: 1;
}

.how-progress::after {
  content: "";
  display: block;
  height: 100%;
  background: var(--ink);
  border-radius: 1px;
  transform: scaleX(var(--within, 0));
  transform-origin: left center;
}

.how-panel {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 500ms cubic-bezier(.2, .7, .2, 1),
              transform 500ms cubic-bezier(.2, .7, .2, 1);
  pointer-events: none;
}

.how-panel.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.how-video {
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: 16px;
  display: block;
  background: var(--cream);
}

.how-panel-stack {
  grid-template-columns: 1fr;
}

.how-panel-stack .how-content {
  max-width: 580px;
  margin: 0 auto;
  min-height: clamp(360px, 52vh, 460px);
  display: flex;
  flex-direction: column;
}

.how-panel-stack .how-video {
  margin: 0.85rem auto 1.1rem;
  max-width: 100%;
  max-height: 320px;
  object-fit: cover;
}

.how-content {
  max-width: 540px;
  text-align: center;
}

.how-content .eyebrow {
  margin-bottom: 0.5rem;
}

.how-content h3 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 0.85rem;
  text-wrap: balance;
}

.how-lede {
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
}

/* Icon + short text trio shown beneath a step's title/video. As scroll
   progresses through the step, the active item shifts left-to-right;
   only one box is inverted at a time, and a matching blurb shows below. */
.how-features {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.5rem, 1.25vw, 1rem);
  text-align: center;
}

.how-features li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 0.6rem;
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
  opacity: 0.45;
  transition: background-color 380ms ease, opacity 380ms ease, box-shadow 380ms ease;
}

.how-features li.is-active {
  background: var(--cream);
  opacity: 1;
  box-shadow:
    inset 0 2px 4px rgba(28, 25, 23, 0.12),
    inset 0 -1px 0 rgba(255, 255, 255, 0.6);
}

.how-feature-icon {
  width: 28px;
  height: 28px;
  display: block;
  filter: invert(0.55);
}

.how-features span {
  font-family: var(--sans);
  font-size: clamp(0.8rem, 1.1vw, 0.9rem);
  font-weight: 500;
  line-height: 1.3;
}

.how-feature-blurbs {
  margin: clamp(1.25rem, 2.5vw, 1.75rem) auto 0;
  width: 100%;
  max-width: 420px;
  display: grid;
}

.how-feature-blurb {
  grid-area: 1 / 1;
  margin: 0;
  text-align: center;
  font-family: var(--sans);
  font-size: clamp(0.92rem, 1.3vw, 1rem);
  color: var(--ink-2);
  line-height: 1.45;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 380ms ease, transform 380ms ease;
  pointer-events: none;
}

.how-feature-blurb.is-active {
  opacity: 1;
  transform: none;
}

.persona-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 92% 0%, rgba(255, 255, 255, 0.10), transparent 55%),
    linear-gradient(135deg, rgba(58, 54, 50, 0.92), rgba(24, 22, 20, 0.94));
  color: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.1rem 1.25rem;
  max-width: 380px;
  margin: clamp(4rem, 10vh, 6rem) auto 0;
  text-align: left;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 220ms ease-out,
              transform 380ms cubic-bezier(.16, 1, .3, 1);
}

.persona-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  pointer-events: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.6) 55%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.6) 55%, #000 100%);
  background: linear-gradient(to bottom, rgba(20, 18, 16, 0) 0%, rgba(20, 18, 16, 0.45) 100%);
}

.persona-card.is-revealed {
  opacity: calc(1 - var(--leave, 0));
  transform: translateY(calc(var(--leave, 0) * 12px));
}

.persona-card-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.persona-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.persona-meta { flex: 1; min-width: 0; }

.persona-tagline {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 0.15rem;
}

.persona-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--bg);
  margin: 0;
  letter-spacing: -0.01em;
}

.persona-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
  margin: 0 0 1rem;
}

.persona-traits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.persona-traits li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0.85rem;
  align-items: center;
}

.trait-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}

.trait-bar {
  position: relative;
  height: 6px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 3px;
  overflow: hidden;
}

.trait-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg);
  border-radius: 3px;
  transform: scaleX(var(--fill, 0));
  transform-origin: left center;
}

@media (max-width: 860px), (prefers-reduced-motion: reduce) {
  .persona-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .trait-bar::after {
    transform: scaleX(var(--level, 0));
    transition: none;
  }
}

.how-emerge {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.story-graph {
  position: relative;
  width: 100%;
  max-width: 460px;
  height: clamp(300px, 40vh, 360px);
  margin: 0.85rem auto 1.1rem;
  text-align: left;
}

.story-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.story-link {
  fill: none;
  stroke: var(--mute-line);
  stroke-width: 1;
  stroke-opacity: 0.55;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.story-link[data-link="s2-family"] { opacity: var(--draw-s2fam, 0); }
.story-link[data-link="s2-life"] { opacity: var(--draw-s2life, 0); }
.story-link[data-link="s2-ellen"] { opacity: var(--draw-s2ellen, 0); }

.story-tile,
.story-theme,
.story-person {
  position: absolute;
  white-space: nowrap;
}

.story-tile {
  top: var(--top);
  left: var(--left);
  transform: translate(-50%, -50%);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.5rem 0.85rem 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04);
}

.story-tile-eyebrow {
  font-family: var(--sans);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.story-tile-title {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.story-theme {
  top: var(--top);
  left: var(--left);
  transform: translate(-50%, -50%);
  background: var(--bg);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  font-family: var(--serif);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(28, 25, 23, 0.06);
}

.story-person {
  top: var(--top);
  left: var(--left);
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 0.3rem 0.75rem 0.3rem 0.32rem;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(28, 25, 23, 0.06);
  white-space: nowrap;
}

.story-person-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
}

.story-person-name {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.story-tile[data-tile="s1"] {
  opacity: 1;
  left: calc(50% - 28% * var(--s1-shift, 0));
  transition: none;
}
.story-tile[data-tile="s2"] {
  opacity: var(--story-s2, 0);
  left: calc(65% + 13% * var(--s2-shift, 0));
}

.story-theme[data-theme="family"],
.story-theme[data-theme="food"] { opacity: 1; }
.story-theme[data-theme="food"] {
  left: calc(30% - 8% * var(--s1-shift, 0));
}
.story-theme[data-theme="family"] {
  left: calc(70% - 20% * var(--s1-shift, 0));
}
.story-theme[data-theme="life"] {
  opacity: var(--theme-life, 0);
  transform: translate(-50%, -50%) scale(calc(0.92 + 0.08 * var(--theme-life, 0)));
}

.story-person[data-person="mom"] {
  left: calc(50% - 15% * var(--s1-shift, 0) + 15% * var(--merge, 0));
  transform: translate(-50%, -50%) scale(calc(1 + 0.08 * var(--settle, 0)));
}

.story-person[data-person="ellen"] {
  left: calc(65% - 15% * var(--merge, 0));
  opacity: calc(var(--person-ellen, 0) * (1 - var(--ellen-fade-out, 0)));
  transform: translate(-50%, -50%) scale(calc(1 - 0.25 * var(--ellen-fade-out, 0)));
}

@media (max-width: 860px), (prefers-reduced-motion: reduce) {
  .story-graph {
    height: clamp(240px, 64vw, 300px);
    max-width: 320px;
  }
  /* Place the two stories side by side; themes on top, Mom centered below. */
  .story-theme[data-theme="food"]   { top: 8%;  left: 22%; }
  .story-theme[data-theme="family"] { top: 8%;  left: 50%; }
  .story-theme[data-theme="life"]   { top: 8%;  left: 78%; opacity: 1; transform: translate(-50%, -50%); }
  .story-tile[data-tile="s1"] {
    top: 50%;
    left: 28%;
    transition: none;
  }
  .story-tile[data-tile="s2"] {
    top: 50%;
    left: 72%;
    opacity: 1;
  }
  .story-person[data-person="mom"] {
    top: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .story-person[data-person="ellen"] {
    display: none;
  }
  /* Redraw connectors for the side-by-side mobile layout. The s2-ellen
     path is repurposed to link the second story to Mom. The s2 opacity
     overrides above are tied to scroll-driven custom properties that
     don't run on mobile, so re-assert visibility here at matching
     specificity. */
  .story-link[data-link="s1-food"]   { opacity: 1; }
  .story-link[data-link="s1-family"] { opacity: 1; }
  .story-link[data-link="s1-mom"]    { opacity: 1; }
  .story-link[data-link="s2-family"] { opacity: 1; }
  .story-link[data-link="s2-life"]   { opacity: 1; }
  .story-link[data-link="s2-ellen"]  { opacity: 1; }
}

.how-tags {
  position: absolute;
  inset: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.how-tags li {
  position: absolute;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink-2);
  border: 1px solid var(--line);
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, calc(-50% + 6px));
  transition: opacity 380ms ease, transform 380ms ease;
}

.how-tags-people li {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.how-tags li.is-revealed {
  opacity: 1;
  transform: translate(-50%, -50%);
}

@media (prefers-reduced-motion: reduce) {
  .how-tags li {
    transition: none;
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 860px) {
  .how-emerge {
    position: static;
    inset: auto;
    pointer-events: auto;
    margin-top: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
  }
  .how-tags { display: contents; }
  .how-tags li {
    position: static;
    opacity: 1;
    transform: none;
    transition: none;
  }
  .how-tags-themes li:nth-child(n+4) { display: none; }
  .how-tags-people li:nth-child(n+3) { display: none; }
}

/* Drop sticky scrollytelling on small screens or reduced-motion:
   stack panels vertically and let them flow with the page. */
@media (max-width: 860px), (prefers-reduced-motion: reduce) {
  .how { padding-block: clamp(4rem, 9vw, 6rem); }
  .how-scroller { height: auto; }
  .how-stage {
    position: static;
    height: auto;
    display: block;
    padding: 0;
    overflow: visible;
    max-width: none;
  }
  .how-stage > .section-head {
    margin: 0 auto clamp(2rem, 5vw, 3.5rem);
  }
  .how-side {
    position: static;
    transform: none;
    display: block;
    text-align: center;
    padding-inline: clamp(1rem, 4vw, 2rem);
    margin-bottom: clamp(1.5rem, 5vw, 2.5rem);
    width: 100%;
  }
  .how-head {
    text-align: center;
  }
  .how-steps { display: none; }
  .how-progress { display: none; }
  .how-deck {
    height: auto;
  }
  .how-panel {
    position: relative;
    inset: auto;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: clamp(3rem, 8vw, 4.5rem);
    padding-inline: clamp(1rem, 4vw, 2rem);
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition: none;
  }
  .how-panel:last-of-type { margin-bottom: 0; }
  .how-video { max-width: 260px; }
  .how-panel-stack .how-video { max-height: none; }
  .how-panel-stack .how-content { min-height: 0; display: block; }
}

/* ---------- Promise (inverted) ---------- */
.promise {
  background: var(--ink);
  color: var(--bg);
  padding-block: clamp(5rem, 11vw, 9rem);
}

.promise .eyebrow {
  color: rgba(255, 255, 255, 0.55);
}

.promise .display {
  color: var(--bg);
}

.promise-pillars {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--container);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.promise-pillar {
  text-align: left;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.95rem;
  align-items: start;
}

.promise-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  color: rgba(255, 255, 255, 0.42);
  filter:
    drop-shadow(0 1px 0 rgba(0, 0, 0, 0.7))
    drop-shadow(0 -0.5px 0 rgba(255, 255, 255, 0.14));
}

.promise-icon svg,
.promise-icon img {
  width: 28px;
  height: 28px;
}

.promise-icon img {
  filter: invert(1);
  opacity: 0.55;
}

.promise-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--bg);
  letter-spacing: -0.01em;
  margin-bottom: 0.45rem;
}

.promise-desc {
  grid-column: 2;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  max-width: 30ch;
}

@media (max-width: 900px) {
  .promise-pillars { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .promise-pillars { grid-template-columns: 1fr; }
}

.promise-privacy {
  max-width: 760px;
  margin: clamp(4rem, 9vw, 6.5rem) auto 0;
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.promise-privacy-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.6rem;
}

.promise-privacy-label {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg);
  margin-bottom: 0.55rem;
}

/* ---------- Audience ---------- */
.audience {
  padding-block: clamp(5rem, 11vw, 9rem);
}

.audience-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
}

.audience-card {
  display: flex;
  flex-direction: column;
}

.audience-video {
  aspect-ratio: 4 / 5;
  background: var(--cream);
  border-radius: 16px;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mute-line);
  border: 1px solid var(--line);
  overflow: hidden;
}

.audience-video svg {
  width: 42px;
  height: 42px;
}

.audience-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.audience-card h3 {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  text-wrap: balance;
}

.audience-card p {
  font-size: 0.97rem;
  color: var(--ink-2);
  line-height: 1.6;
}

.audience-also {
  max-width: 760px;
  margin: clamp(2.25rem, 4.5vw, 3rem) auto 0;
  padding: clamp(1.1rem, 2vw, 1.5rem) clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  text-align: center;
}

.audience-also-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.audience-also-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
}

.audience-also-list li {
  font-family: var(--serif);
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0.1rem 0;
}

.audience-also-list li:not(:last-child)::after {
  content: "·";
  color: var(--mute-line);
  margin: 0 0.7rem;
}

@media (max-width: 720px) {
  .audience-grid { grid-template-columns: 1fr; }
  .audience-also { padding: 1.1rem 1.25rem; }
}

/* ---------- Excerpt: inline Kindle-style reader ----------
   The book has its own typographic system — EB Garamond on white,
   black ink — so the inline reader feels like the book itself,
   separate from the rest of the marketing page. */
:root {
  --book-paper: #fefefe;
  --book-ink: #141414;
  --book-ink-soft: rgba(20, 20, 20, 0.6);
  --book-rule: rgba(20, 20, 20, 0.12);
  --book-serif: "EB Garamond", "Garamond", "Sabon", "Adobe Garamond Pro",
                "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --reader-shell: #fbfbf9;
  --reader-shell-deep: #ececea;
}

.founder {
  background: var(--cream);
  padding-block: clamp(5.5rem, 12vw, 10rem);
  text-align: center;
}


.book-author {
  margin: 0;
  max-width: 320px;
  padding: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 1rem;
  row-gap: 1.1rem;
  text-align: left;
}

.book-author-photo {
  grid-column: 1;
  grid-row: 1;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #fff;
}

.book-author-head {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.book-author-name {
  font-family: var(--book-serif);
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.005em;
}

.book-author-line {
  font-family: var(--book-serif);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.45;
}

.book-author-bio {
  grid-column: 1 / -1;
  grid-row: 2;
  font-family: var(--book-serif);
  font-size: 1rem;
  color: var(--ink-2);
  line-height: 1.6;
}

.reader-stage {
  padding-block: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 2.5rem);
  padding-inline: clamp(1rem, 4vw, 2rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  position: relative;
}

.reader {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  aspect-ratio: 13 / 18;
  background: linear-gradient(155deg, var(--reader-shell) 0%, var(--reader-shell-deep) 100%);
  border-radius: 22px;
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 -1px 0 rgba(0, 0, 0, 0.05) inset,
    0 38px 70px -22px rgba(0, 0, 0, 0.18),
    0 50px 90px -20px rgba(0, 0, 0, 0.22);
  flex-shrink: 0;
}

.reader::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -32px;
  width: 80%;
  height: 24px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.16), transparent 70%);
  filter: blur(8px);
  z-index: -1;
  pointer-events: none;
}

.reader-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--book-paper);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 2px 10px rgba(0, 0, 0, 0.18) inset;
  transition: filter 0ms linear;
}

/* E-ink page refresh — softened flash (dark grey, not full black) then snap to new content. */
@keyframes ink-refresh {
  0%   { filter: invert(0.82); }
  46%  { filter: invert(0.82); }
  50%  { filter: invert(0); }
  100% { filter: invert(0); }
}

.reader-screen.is-flipping {
  animation: ink-refresh 220ms linear forwards;
}

.reader-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem 0.4rem;
  font-family: var(--book-serif);
  font-size: 0.78rem;
  color: var(--book-ink-soft);
  flex-shrink: 0;
  border-bottom: 1px solid rgba(20, 20, 20, 0.05);
}

.reader-status-title {
  font-style: italic;
  color: var(--book-ink);
}

.reader-status-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--book-ink-soft);
}

.reader-wifi {
  width: 14px;
  height: 11px;
  color: currentColor;
}

.reader-battery {
  position: relative;
  width: 20px;
  height: 9px;
  border: 1px solid currentColor;
  border-radius: 2px;
}

.reader-battery::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 1.5px;
  bottom: 1.5px;
  width: 2px;
  background: currentColor;
  border-radius: 1px;
}

.reader-battery-fill {
  position: absolute;
  inset: 1.5px;
  width: 80%;
  background: currentColor;
  border-radius: 1px;
}

.reader-page-area {
  position: relative;
  flex: 1;
  padding: clamp(1.4rem, 3.5vw, 2.4rem) clamp(2.2rem, 6vw, 3.8rem);
  overflow: hidden;
}

/* The pages container clips the flow; the flow is laid out in CSS columns
   the width of the visible area, and translated horizontally to expose
   one column (= one page) at a time. */
.reader-pages {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.reader-flow {
  width: 100%;
  height: 100%;
  text-align: left;
  /* column-width is set by JS to match the visible width. */
  column-gap: 0;
  column-fill: auto;
  will-change: transform;
}

.reader-page-head {
  text-align: center;
  margin-bottom: clamp(1.2rem, 2.4vw, 1.8rem);
}

.reader-page-eyebrow {
  font-family: var(--book-serif);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--book-ink-soft);
}

.reader-page-title {
  font-family: var(--book-serif);
  font-weight: 500;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.15;
  color: var(--book-ink);
  margin-top: 0.4rem;
}

.reader-page-ornament {
  display: block;
  font-family: var(--book-serif);
  color: var(--book-ink-soft);
  font-size: 0.9rem;
  margin-top: 0.7rem;
  letter-spacing: 0.5em;
  padding-left: 0.5em;
}

.reader-page-prose {
  font-family: var(--book-serif);
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  line-height: 1.7;
  color: var(--book-ink);
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.reader-page-prose p + p { margin-top: 0; text-indent: 1.2em; }

/* Final illustration — flows after the last paragraph, lands on whatever
   page has room (the chapter's last page). Cropped to a portrait window,
   mostly desaturated with a hint of color, like an old family photo. */
.reader-figure {
  break-inside: avoid;
  margin: 1.4em auto 0;
  max-width: 20ch;
  text-align: center;
}

.reader-figure-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 42%;
  display: block;
  border-radius: 2px;
  filter: saturate(0.32) contrast(1.04);
}

.reader-figure-caption {
  font-family: var(--book-serif);
  font-style: italic;
  font-size: 0.9em;
  color: var(--book-ink-soft);
  margin-top: 0.6em;
  text-indent: 0;
}

.reader-page-prose > p:first-child::first-letter {
  font-family: var(--book-serif);
  font-size: 3.6em;
  line-height: 0.86;
  float: left;
  font-weight: 500;
  padding: 0.04em 0.12em 0 0;
  margin-bottom: -0.06em;
  color: var(--book-ink);
}

.reader-tap {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 26%;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 2;
}

.reader-tap-prev { left: 0; }
.reader-tap-next { right: 0; }

.reader-tap:focus-visible {
  outline: 1px dashed var(--book-rule);
  outline-offset: -8px;
}

.reader-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 1rem 0.7rem;
  border-top: 1px solid rgba(20, 20, 20, 0.06);
  flex-shrink: 0;
}

.reader-arrow {
  appearance: none;
  background: transparent;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--book-ink);
  transition: background 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.reader-arrow svg { width: 18px; height: 18px; }

.reader-arrow:hover { background: rgba(0, 0, 0, 0.05); }
.reader-arrow:active { transform: scale(0.96); }
.reader-arrow:disabled { opacity: 0.25; cursor: default; }
.reader-arrow:disabled:hover { background: transparent; }

/* First-time hint: pulse the next chevron so visitors notice the pages
   can be turned. Removed on first flip. */
@keyframes reader-next-halo {
  0%   { box-shadow: 0 0 0 0 rgba(20, 20, 20, 0.22); }
  70%  { box-shadow: 0 0 0 10px rgba(20, 20, 20, 0); }
  100% { box-shadow: 0 0 0 0 rgba(20, 20, 20, 0); }
}

@keyframes reader-next-nudge {
  0%, 100% { transform: translateX(0); }
  55%      { transform: translateX(3px); }
}

.reader.is-hinting .reader-arrow[data-next] {
  animation: reader-next-halo 1.6s ease-out infinite;
}

.reader.is-hinting .reader-arrow[data-next] svg {
  animation: reader-next-nudge 1.6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .reader.is-hinting .reader-arrow[data-next],
  .reader.is-hinting .reader-arrow[data-next] svg {
    animation: none;
  }
}

.reader-indicator {
  font-family: var(--book-serif);
  font-feature-settings: "tnum" 1;
  font-style: italic;
  font-size: 0.92rem;
  color: var(--book-ink);
}

.reader-indicator-sep {
  font-style: normal;
  color: var(--book-ink-soft);
  margin-inline: 0.3rem;
}

@media (max-width: 600px) {
  .reader {
    aspect-ratio: 12 / 18;
    padding: 12px;
    border-radius: 16px;
  }
  .reader-page-area { padding: 1.2rem 1.2rem; }
  .reader-page-prose { font-size: 1.02rem; line-height: 1.65; }
}

@media (prefers-reduced-motion: reduce) {
  .reader-screen.is-flipping { animation: none; }
}

.section-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0 auto;
  width: min(720px, calc(100% - 3rem));
  height: 0;
}

/* ---------- Format ---------- */
.format-section {
  padding-block: clamp(5rem, 11vw, 9rem);
}

.formats {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.tier {
  position: relative;
  padding: clamp(1.85rem, 3.5vw, 2.5rem) clamp(1rem, 2vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 18px;
  text-align: center;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tier-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
  color: var(--bg);
  border-radius: 50%;
  background: var(--ink);
}

.tier-icon svg {
  width: 24px;
  height: 24px;
}

.tier-label {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.tier-price {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.75rem;
  line-height: 1;
}

.tier-desc {
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 28ch;
}

.format-note {
  max-width: var(--prose);
  margin: clamp(2rem, 4vw, 2.75rem) auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

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

/* ---------- FAQ ---------- */
.faq {
  background: var(--cream);
  padding-block: clamp(5rem, 11vw, 9rem);
}

.faq-list {
  max-width: var(--prose);
  margin: 0 auto;
}

.faq details {
  border-top: 1px solid rgba(28, 25, 23, 0.1);
  padding: 1.15rem 0;
}

.faq details:last-child {
  border-bottom: 1px solid rgba(28, 25, 23, 0.1);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--muted);
  line-height: 1;
  transition: transform 220ms ease, color 220ms ease;
  flex-shrink: 0;
}

.faq details[open] summary::after {
  content: "−";
  color: var(--ink);
  transform: rotate(180deg);
}

.faq details > p {
  margin-top: 0.85rem;
  color: var(--ink-2);
  font-size: 0.97rem;
  line-height: 1.65;
  max-width: 60ch;
}

.faq details > p a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--mute-line);
  transition: text-decoration-color 160ms ease;
}

.faq details > p a:hover {
  text-decoration-color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  .faq summary::after { transition: none; }
}

/* ---------- Closing ---------- */
.closing {
  position: relative;
  padding-block: clamp(7rem, 18vw, 12rem);
  padding-inline: clamp(1rem, 4vw, 2rem);
  min-height: min(80vh, 760px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image:
    linear-gradient(rgba(20, 16, 12, 0.45), rgba(20, 16, 12, 0.55)),
    url("/assets/trees.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  isolation: isolate;
}

.closing .prose { color: #fff; }

.closing-line {
  font-size: clamp(2.25rem, 6vw, 3.8rem);
  font-weight: 500;
  color: #fff;
  margin-bottom: 2.25rem;
  text-wrap: balance;
  text-shadow: 0 1px 30px rgba(0, 0, 0, 0.35);
}

.closing .cta-primary {
  background: #fff;
  color: var(--ink);
}

.closing .cta-primary:hover,
.closing .cta-primary:focus-visible {
  background: #fff;
  color: #000;
}

/* ---------- Footer (inverted) ---------- */
.site-footer {
  background: var(--ink);
  padding: clamp(2.25rem, 5vw, 3.25rem) clamp(1rem, 4vw, 2rem) 1.25rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-cols {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(1.75rem, 4vw, 2.75rem);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-heading {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bg);
  margin: 0 0 0.45rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 160ms ease;
}

.footer-col a:hover {
  color: var(--bg);
}

.footer-note {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0.15rem 0 0;
}

.footer-socials {
  display: flex;
  gap: 0.85rem;
  margin: 0.15rem 0 0.3rem;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: rgba(255, 255, 255, 0.65);
  transition: color 160ms ease;
}

.footer-social:hover {
  color: var(--bg);
}

.footer-social svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.footer-base {
  max-width: var(--container);
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  padding-top: clamp(1.25rem, 2.5vw, 1.75rem);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8rem;
}

.footer-flag {
  font-style: normal;
  color: initial;
  margin-left: 0.15em;
}

/* ---------- Reveal-on-scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
}

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    transition: opacity 700ms cubic-bezier(.2,.7,.2,1),
                transform 700ms cubic-bezier(.2,.7,.2,1);
  }
  .tier[data-reveal]:nth-child(2) { transition-delay: 70ms; }
  .tier[data-reveal]:nth-child(3) { transition-delay: 140ms; }
}

[data-reveal].in {
  opacity: 1;
  transform: none;
}

/* ---------- Legal page (privacy, etc.) ---------- */
.legal {
  padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 5vw, 2rem) clamp(4rem, 9vw, 6rem);
}

.legal-prose {
  max-width: 720px;
  margin: 0 auto;
  color: var(--ink-2);
}

.legal-head {
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
  text-align: left;
}

.legal-head .eyebrow {
  margin-bottom: 0.65rem;
}

.legal-head h1 {
  margin-bottom: 0.85rem;
  text-wrap: balance;
}

.legal-meta {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--mute-line);
  letter-spacing: 0.02em;
}

.legal-summary {
  background: var(--cream);
  border-radius: 18px;
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.legal-summary-title {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.85rem;
}

.legal-summary ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.97rem;
  line-height: 1.55;
  color: var(--ink-2);
}

.legal-summary li {
  position: relative;
  padding-left: 1.1rem;
}

.legal-summary li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
}

.legal-prose h2 {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-top: clamp(2.25rem, 4vw, 3rem);
  margin-bottom: 0.85rem;
  text-wrap: balance;
}

.legal-prose h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 1.4rem;
  margin-bottom: 0.4rem;
}

.legal-prose p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0.95rem;
}

.legal-prose ul {
  margin: 0.5rem 0 1rem 1.25rem;
  padding-left: 0.25rem;
}

.legal-prose li {
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 0.5rem;
}

.legal-prose li::marker {
  color: var(--mute-line);
}

.legal-prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--mute-line);
  transition: text-decoration-color 160ms ease;
}

.legal-prose a:hover {
  text-decoration-color: var(--ink);
}

.legal-footnote {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--mute-line);
}

.legal-copyright {
  margin-top: clamp(2rem, 4vw, 3rem);
  text-align: center;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--mute-line);
}

/* Footer-note links use a softer treatment to not shout in muted text */
.footer-note a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: rgba(255, 255, 255, 0.18);
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.footer-note a:hover {
  color: var(--bg);
  text-decoration-color: var(--bg);
}

/* ---------- Focus ---------- */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Selection ---------- */
::selection {
  background: var(--ink);
  color: var(--bg);
}

/* ---------- Kanien'kéha stub page ---------- */
.stub {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 2rem);
}

.stub-inner {
  max-width: 560px;
  text-align: center;
}

.stub-inner .eyebrow {
  margin-bottom: 1.25rem;
}

.stub-greeting {
  font-size: clamp(3rem, 7vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.stub-greeting-note {
  color: var(--muted);
  font-style: italic;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.stub-body {
  color: var(--ink-2);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.stub-body:last-of-type {
  margin-bottom: 2rem;
}

.stub-ctas {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.cta.cta-ghost {
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
}

.cta.cta-ghost:hover,
.cta.cta-ghost:focus-visible {
  background: var(--ink);
  color: var(--bg);
}

.stub-ack {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

.stub-ack strong {
  color: var(--ink);
  font-weight: 500;
}


