/* =====================================================================
 * Everlasting Memory — Marketing Site
 * Multi-page prototype: Home, About, Pricing, Features, Support, Sign Up
 * ===================================================================== */

/* colors_and_type.css and fonts loaded via <link> in index.html */

/* ─── Skip navigation ─── */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--em-gold);
  color: var(--em-ink);
  font-weight: 600;
  font-size: 14px;
  border-radius: 0 0 var(--em-radius-md) var(--em-radius-md);
  text-decoration: none;
  transition: top 0.1s;
}
.skip-nav:focus { top: 0; }

/* ─── Screen-reader utility ─── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  color: var(--em-ink);
  font-family: var(--em-font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }
h1 em, h2 em, h3 em, h4 em, h5 em, h6 em { font-style: normal; }

/* ─── Scroll reveal ─── */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.75s var(--em-ease), transform 0.75s var(--em-ease);
  transition-delay: var(--delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ─────────── Buttons ─────────── */
.btn {
  font-family: var(--em-font-body);
  font-size: 15px; font-weight: 500;
  border: 0; cursor: pointer;
  padding: 12px 22px;
  border-radius: var(--em-radius-md);
  transition: all var(--em-dur) var(--em-ease);
  display: inline-flex; align-items: center; gap: 8px;
  letter-spacing: 0.005em; text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: scale(0.99); transition-duration: 100ms; }
.btn--lg { font-size: 16px; padding: 15px 30px; }
.btn--sm { font-size: 13px; padding: 8px 14px; }

.btn--gold { background: var(--em-gold); color: var(--em-ink); font-weight: 600; }
.btn--gold:hover { background: var(--em-gold-bright); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; pointer-events: none; }

.btn--outline-gold { background: transparent; color: var(--em-gold); border: 1px solid var(--em-gold); padding: 13px 27px; }
.btn--outline-gold.btn--lg { padding: 14px 29px; }
.btn--outline-gold:hover { background: rgba(201,162,76,0.10); }


.btn--outline-ink { background: transparent; color: var(--em-ink); border: 1px solid rgba(14,11,8,0.2); padding: 13px 27px; }
.btn--outline-ink:hover { border-color: var(--em-ink); }

.btn--ghost-light { background: transparent; color: var(--em-ivory); }
.btn--ghost-light:hover { background: rgba(246,241,231,0.06); }


.btn:focus-visible { outline: 2px solid var(--em-gold); outline-offset: 3px; }
.btn--gold:focus-visible { outline-color: var(--em-ink); }


/* ─────────── Header ─────────── */
.header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 24px;
  padding: 16px 40px;
  background: rgba(0, 0, 0, 1);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(201,162,76,0.18);
  color: var(--em-ivory);
}
.header__brand { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.header__mark { display: flex; align-items: center; justify-content: center; }
.header__mark img { width: auto; height: 44px; display: block; }
.header__nav { display: flex; gap: 28px; position: absolute; left: 50%; transform: translateX(-50%); }
.header__nav a {
  color: var(--em-mist); font-size: 14px; font-weight: 500;
  padding: 6px 0; border-bottom: 1px solid transparent;
  transition: all 200ms ease; cursor: pointer;
}
.header__nav a:hover { color: var(--em-ivory); border-bottom-color: var(--em-gold); }
.header__nav a:focus-visible { outline: 2px solid var(--em-gold); outline-offset: 4px; border-radius: 2px; }
.header__nav a.is-active { color: var(--em-ivory); border-bottom-color: var(--em-gold); }
.header__actions { margin-left: auto; display: flex; gap: 12px; align-items: center; }

/* ─────────── Footer ─────────── */
.footer { background: var(--em-ink); color: var(--em-ivory); padding: 64px 40px 32px; }
.footer__rule { height: 1px; background: var(--em-gold); opacity: 0.4; max-width: 1120px; margin: 0 auto 48px; }
.footer__inner { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 320px 1fr; gap: 48px; }
.footer__brand { display: flex; gap: 14px; align-items: center; }
.footer__brand img { width: auto; height: 48px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer__cols .em-eyebrow { color: var(--em-gold); margin-bottom: 14px; display: block; }
.footer__cols a { display: block; color: var(--em-mist); font-size: 14px; padding: 4px 0; transition: color 200ms ease; cursor: pointer; }
.footer__cols a:hover { color: var(--em-gold); }
.footer__small {
  max-width: 1120px; margin: 64px auto 0; font-size: 12px; color: var(--em-mist);
  border-top: 1px solid rgba(246,241,231,0.06); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px 32px; flex-wrap: wrap;
}
.footer__legal { display: flex; gap: 24px; }
.footer__legal a { color: var(--em-mist); transition: color 200ms ease; }
.footer__legal a:hover, .footer__cookie-btn:hover { color: var(--em-gold); }
.footer__cookie-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--em-mist); cursor: pointer; transition: color 200ms ease; }
.footer__legal { flex-wrap: wrap; }

/* ─────────── Layout primitives ─────────── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 40px; }

.section { padding: 96px 0; }
.section--ink { background: var(--em-ink); color: var(--em-ivory); }
.section--paper { background: var(--em-paper); }

.section__head { text-align: center; max-width: 720px; margin: 0 auto 64px; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.section__head .em-eyebrow { color: var(--em-antique-gold); }
.section--ink .section__head .em-eyebrow { color: var(--em-gold); }


/* ─────────── Pricing page ─────────── */
/* Four plans in one row; the "+" joins Legacy (an add-on) to the plans before it */
.pricing-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.pricing-plans__inner { max-width: 1280px; margin: 0 auto; padding-inline: 40px; }
.pricing-plans__grid { display: grid; grid-template-columns: repeat(3, 1fr) 40px 1fr; gap: 20px; align-items: stretch; }
.pricing-plans__join { display: flex; align-items: center; justify-content: center; }
.pricing-plans__plus {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--em-paper); border: 1px solid rgba(142,107,38,0.45);
  color: var(--em-antique-gold);
}

.pricing-card {
  position: relative;
  display: flex; flex-direction: column; gap: 18px;
  background: var(--em-paper);
  border: 1px solid rgba(14,11,8,0.12);
  border-radius: var(--em-radius-lg);
  padding: 30px 24px 24px;
}
/* Reveal owns opacity/transform on entry; the hover lift adds a shadow only */
.pricing-card.is-visible {
  transition: opacity 0.75s var(--em-ease), transform 0.75s var(--em-ease), box-shadow 240ms cubic-bezier(0.23,1,0.32,1);
  transition-delay: var(--delay, 0ms), var(--delay, 0ms), 0ms;
}
@media (hover: hover) and (pointer: fine) {
  .pricing-card:hover { box-shadow: var(--em-shadow-lift); }
}
.pricing-card--ink { background: var(--em-ink); color: var(--em-ivory); border-color: rgba(201,162,76,0.35); }
.pricing-card--cream { background: var(--em-ivory); border-color: rgba(142,107,38,0.45); }
.pricing-card__badge {
  position: absolute; top: -12px; left: 24px;
  background: var(--em-gold); color: var(--em-ink);
  font-family: var(--em-font-display); font-weight: 600;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 6px 12px; border-radius: var(--em-radius-sm);
}
.pricing-card__name {
  margin: 0;
  font-weight: 600;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--em-antique-gold);
}
.pricing-card--ink .pricing-card__name { color: var(--em-gold); }
.pricing-card--cream .pricing-card__name { color: var(--em-ink); }
.pricing-card__price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pricing-card__price {
  font-family: var(--em-font-display); font-weight: 500;
  font-size: 46px; line-height: 1; letter-spacing: -0.02em; color: var(--em-ink);
}
.pricing-card__per { font-size: 15px; color: var(--em-charcoal); }
.pricing-card__line { margin: 0; font-size: 15px; line-height: 1.55; color: var(--em-charcoal); }
.pricing-card--ink .pricing-card__price { color: var(--em-ivory); }
.pricing-card--ink .pricing-card__per, .pricing-card--ink .pricing-card__line { color: var(--em-mist); }
.pricing-card__feats { list-style: none; margin: 0; padding: 0; flex: 1; }
.pricing-card__feats li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 11px 0; border-top: 1px solid var(--em-rule);
  font-size: 14.5px; line-height: 1.5; color: var(--em-charcoal);
}
.pricing-card__feats svg { flex-shrink: 0; margin-top: 3px; color: var(--em-antique-gold); }
.pricing-card--ink .pricing-card__feats li { color: var(--em-mist); border-color: rgba(201,162,76,0.18); }
.pricing-card--ink .pricing-card__feats svg { color: var(--em-gold); }
.pricing-card__cta { width: 100%; min-height: 48px; justify-content: center; }
.pricing-card__cta:active { transform: scale(0.97); }

.pricing-h2 { font-size: 40px; }
/* Four across needs ~1200px; below that, 2×2 (the "+" can't sit between rows, so it hides) */
@media (max-width: 1200px) {
  .pricing-plans__grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .pricing-plans__join { display: none; }
}

/* Comparison table */
.pricing-compare-section { background: var(--em-ivory); }
/* antique gold is 4.36:1 on ivory, under AA for small text */
.pricing-compare-section .section__head .em-eyebrow { color: var(--em-charcoal); }
.pricing-compare {
  position: relative; /* contains the visually hidden cell labels */
  overflow-x: auto; background: var(--em-paper);
  border: 1px solid rgba(14,11,8,0.12); border-radius: var(--em-radius-lg);
}
.pricing-compare:focus-visible { outline: 2px solid var(--em-antique-gold); outline-offset: 3px; }
.pricing-compare table { width: 100%; min-width: 760px; border-collapse: collapse; }
.pricing-compare th, .pricing-compare td {
  padding: 16px 18px; text-align: center; vertical-align: middle;
  font-size: 14.5px; line-height: 1.45; color: var(--em-charcoal);
  border-top: 1px solid var(--em-rule);
}
.pricing-compare thead th, .pricing-compare thead td { border-top: 0; padding-block: 22px 18px; }
.pricing-compare tbody th { text-align: left; font-weight: 500; color: var(--em-ink); width: 30%; }
.pricing-compare__plan {
  display: block; font-weight: 600;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--em-ink);
}
.pricing-compare__with { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 400; color: var(--em-charcoal); }
.pricing-compare .is-legacy { background: var(--em-ivory); }
.pricing-compare thead .is-legacy { box-shadow: inset 0 3px 0 var(--em-gold); }
.pricing-compare tbody tr:first-child td { font-family: var(--em-font-display); font-size: 18px; color: var(--em-ink); }
.pricing-compare__yes { display: inline-flex; color: var(--em-antique-gold); }
.pricing-compare__no { display: inline-block; width: 12px; height: 1.5px; vertical-align: middle; background: #767062; }
.pricing-compare__hint { display: none; }
.pricing-compare-frame { position: relative; }
/* Right-edge fade: shown only while there's more table to the right (tablet and phone) */
.pricing-compare-frame::after {
  content: ''; position: absolute; top: 1px; right: 1px; bottom: 1px; width: 36px;
  border-radius: 0 var(--em-radius-lg) var(--em-radius-lg) 0;
  background: linear-gradient(to left, var(--em-paper), rgba(255,255,255,0));
  opacity: 0; transition: opacity 150ms ease; pointer-events: none;
}
.pricing-compare-wrap[data-end="true"] .pricing-compare-frame::after { opacity: 1; }
@keyframes pricingNudge { 0%, 100% { transform: none; } 40% { transform: translateX(4px); } }
.pricing-compare__foot { margin: 20px 0 0; text-align: center; font-size: 15px; color: var(--em-charcoal); }

/* ─────────── Legal pages (Terms, Privacy) ─────────── */
/* Sticky contents beside a readable column; collapses to one column at 768 */
.legal__inner {
  max-width: 1120px; margin: 0 auto; padding-inline: 40px;
  display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 72px; align-items: start;
}
.legal__toc { position: sticky; top: 104px; }
.legal__toc-title {
  font-family: var(--em-font-display); font-weight: 600;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--em-ink);
  margin-bottom: 14px;
}
.legal__toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--em-rule); }
.legal__toc a {
  display: block; padding: 6px 0 6px 16px; margin-left: -1px;
  border-left: 1px solid transparent;
  font-size: 14px; line-height: 1.4; color: var(--em-charcoal);
  transition: color 150ms ease, border-color 150ms ease;
}
.legal__toc a:hover { color: var(--em-ink); }
.legal__toc a[aria-current="true"] { color: var(--em-ink); border-left-color: var(--em-antique-gold); }
.legal__body { max-width: 68ch; }
.legal__notice {
  margin: 0 0 20px; padding: 16px 20px;
  background: var(--em-ivory); border: 1px solid rgba(142,107,38,0.45); border-radius: var(--em-radius-md);
  font-size: 15px; line-height: 1.6; color: var(--em-charcoal);
}
.legal__notice strong { color: var(--em-ink); }
.legal__updated { margin: 0 0 40px; font-size: 14px; color: var(--em-charcoal); }
.legal__section { padding-top: 32px; border-top: 1px solid var(--em-rule); margin-top: 32px; scroll-margin-top: 96px; }
.legal__section:first-of-type { margin-top: 0; }
.legal__section h2 {
  margin: 0 0 14px; font-family: var(--em-font-display); font-weight: 500;
  font-size: 26px; line-height: 1.25; letter-spacing: -0.01em; color: var(--em-ink);
}
.legal__section h2:focus { outline: none; }
.legal__num { color: var(--em-charcoal); }
.legal__section p { margin: 0 0 14px; font-size: 16px; line-height: 1.7; color: var(--em-charcoal); }
.legal__section p:last-child { margin-bottom: 0; }
.legal__table { overflow-x: auto; margin: 0 0 14px; border: 1px solid rgba(14,11,8,0.12); border-radius: var(--em-radius-md); }
.legal__table:focus-visible { outline: 2px solid var(--em-antique-gold); outline-offset: 3px; }
.legal__table table { width: 100%; min-width: 520px; border-collapse: collapse; }
.legal__table th, .legal__table td { padding: 12px 16px; text-align: left; vertical-align: top; font-size: 14.5px; line-height: 1.5; color: var(--em-charcoal); border-top: 1px solid var(--em-rule); }
.legal__table thead th { border-top: 0; background: var(--em-ivory); color: var(--em-ink); font-weight: 600; }
.legal__table tbody th { color: var(--em-ink); font-weight: 500; white-space: nowrap; }

/* ─────────── Page hero (smaller, for non-home pages) ─────────── */
.page-hero {
  background: var(--em-ink); color: var(--em-ivory);
  padding: 96px 40px 80px; text-align: center; position: relative; overflow: hidden;
}
.page-hero__vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 40% at 50% 30%, rgba(201,162,76,0.08), transparent 70%);
  pointer-events: none;
}
.page-hero__inner { position: relative; max-width: 800px; margin: 0 auto; }
.page-hero__title {
  font-family: var(--em-font-display); font-weight: 500;
  font-size: 64px; line-height: 1.08; letter-spacing: -0.02em;
  margin: 0 0 20px; color: var(--em-ivory); text-wrap: balance;
}
.page-hero__title em { font-style: normal; color: var(--em-gold); font-weight: 400; }
.page-hero__lede {
  font-size: 18px; line-height: 1.6; color: var(--em-mist);
  max-width: 580px; margin: 0 auto;
}

/* ─────────── About page ─────────── */
/* About hero: headline + an archival artefact (old print) that
   settles into place once on load. Entrance only, so keyframes are fine here. */
.about-hero { background: var(--em-ink); color: var(--em-ivory); overflow: hidden; background-image: radial-gradient(ellipse 50% 60% at 75% 50%, rgba(201,162,76,0.10), transparent 70%); }
.about-hero__inner { max-width: 1120px; margin: 0 auto; padding: clamp(64px, 10vh, 112px) 40px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.about-hero__copy { display: grid; gap: 22px; }
.about-hero__title { margin: 0; font-family: var(--em-font-display); font-weight: 500; font-size: clamp(2.5rem, 3.8vw + 0.8rem, 4.25rem); line-height: 1.05; letter-spacing: -0.025em; color: var(--em-ivory); text-wrap: balance; }
.about-hero__lede { margin: 0; font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.25rem); line-height: 1.6; color: var(--em-mist); max-width: 32ch; }
.about-hero__art { position: relative; padding: 12px 0 40px; }
.about-hero__print { width: min(440px, 100%); margin-left: auto; padding: 10px 10px 34px; background: var(--em-ivory); border-radius: 3px; box-shadow: 0 30px 60px -24px rgba(0,0,0,0.8), 0 2px 6px rgba(0,0,0,0.3); transform: rotate(var(--r)); transform-origin: 60% 40%; }
.about-hero__print img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; border-radius: 1px; }
.about-hero__in { opacity: 0; transform: translateY(10px); animation: aboutRise 600ms cubic-bezier(0.23, 1, 0.32, 1) forwards; animation-delay: calc(var(--i, 0) * 70ms + 80ms); }
.about-hero__settle { opacity: 0; transform: translateY(16px) rotate(calc(var(--r) + 5deg)) scale(0.97); animation: aboutSettle 760ms cubic-bezier(0.23, 1, 0.32, 1) forwards; animation-delay: calc(var(--i, 0) * 140ms + 260ms); }
@keyframes aboutRise { to { opacity: 1; transform: none; } }
@keyframes aboutSettle { to { opacity: 1; transform: rotate(var(--r)); } }

/* Our story: single long-form column, ~62ch measure */
.about-story__head { max-width: 680px; margin: 0 auto 40px; display: grid; gap: 14px; text-align: center; justify-items: center; }
.about-story__head .em-h1 { margin: 0; font-size: 44px; }
.about-story__body { max-width: 640px; margin: 0 auto; }
.about-story__body > p { font-size: 18px; line-height: 1.75; color: var(--em-charcoal); margin: 0 0 22px; text-wrap: pretty; }
.about-story__body > .about-story__question {
  margin: 48px 0; padding-top: 28px; position: relative; text-align: center;
  font-family: var(--em-font-display); font-weight: 500; font-size: 32px; line-height: 1.25;
  letter-spacing: -0.01em; color: var(--em-ink); text-wrap: balance;
}
.about-story__body > .about-story__question::before { content: ""; position: absolute; top: 0; left: 50%; width: 48px; height: 1px; margin-left: -24px; background: var(--em-antique-gold); }
.about-story__break { display: flex; align-items: center; gap: 20px; margin: 44px 0; }
.about-story__break::before, .about-story__break::after { content: ""; flex: 1; height: 1px; background: var(--em-rule-strong); }
.about-story__break img { width: 32px; height: 32px; }
.about-story__body > .about-story__close { font-family: var(--em-font-display); font-weight: 500; font-size: 24px; line-height: 1.4; color: var(--em-ink); margin-top: 32px; }
.about-story__signoff { display: flex; align-items: center; gap: 16px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--em-rule); }
.about-story__avatars { display: flex; }
.about-story__avatars span {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #d6c89c, #8e6b26); color: var(--em-ivory); border: 2px solid var(--em-ivory);
  font-family: var(--em-font-display); font-weight: 500; font-size: 17px;
}
.about-story__avatars span + span { margin-left: -12px; }
.about-story__names { display: block; font-family: var(--em-font-display); font-weight: 500; font-size: 18px; color: var(--em-ink); }
.about-story__roles { display: block; font-size: 13px; color: var(--em-charcoal); }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.value {
  border-top: 1px solid var(--em-rule);
  padding: 32px 0 0;
}
.value h3 {
  font-family: var(--em-font-display); font-weight: 500;
  font-size: 24px; line-height: 1.25; margin: 0 0 12px; color: var(--em-ink);
  text-wrap: balance;
}
.value p { font-size: 15px; line-height: 1.65; color: var(--em-charcoal); margin: 0; }

.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.member {
  background: var(--em-paper);
  border: 1px solid var(--em-rule);
  border-radius: var(--em-radius-md);
  padding: 28px;
}
.member__photo {
  width: 100%; aspect-ratio: 1 / 1; border-radius: var(--em-radius-sm);
  background: linear-gradient(135deg, #d6c89c, #8e6b26);
  margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
  color: var(--em-ivory);
  font-family: var(--em-font-display); font-weight: 500; font-size: 48px;
  letter-spacing: -0.01em;
  position: relative; overflow: hidden;
}
.member__photo::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.2), transparent 60%);
}
.member__name {
  font-family: var(--em-font-display); font-weight: 500;
  font-size: 22px; line-height: 1.2; margin: 0 0 4px; color: var(--em-ink);
}
.member__role {
  font-family: var(--em-font-display); font-weight: 600;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--em-antique-gold); margin-bottom: 14px;
}
.member__bio { font-size: 14px; line-height: 1.6; color: var(--em-charcoal); margin: 0; }

.pullquote {
  text-align: center; max-width: 800px; margin: 0 auto;
  padding: 64px 40px;
}
.pullquote__rule { width: 48px; height: 1px; background: var(--em-gold); opacity: 0.7; margin: 0 auto 32px; }
.pullquote q {
  display: block; quotes: none;
  font-family: var(--em-font-display); font-style: italic;
  font-size: 36px; line-height: 1.3; letter-spacing: -0.005em;
  color: var(--em-ivory);
  text-wrap: balance;
}
.pullquote q::before, .pullquote q::after { content: ""; }
.pullquote__attr {
  margin-top: 28px;
  font-family: var(--em-font-display); font-weight: 600;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--em-gold);
}

/* ─────────── Features page ─────────── */
/* Features hero: headline + a collage of real product UI (same viz parts as the
   rows below) that settles into place once on load. */
.features-hero { background: var(--em-ink) radial-gradient(ellipse 50% 60% at 78% 50%, rgba(201,162,76,0.10), transparent 70%); color: var(--em-ivory); overflow: hidden; }
.features-hero__inner { max-width: 1440px; margin: 0 auto; padding: clamp(56px, 9vh, 104px) 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.features-hero__copy { display: grid; gap: 20px; justify-items: start; }
.features-hero__title { margin: 0; font-family: var(--em-font-display); font-weight: 500; font-size: clamp(2.25rem, 2.8vw + 0.8rem, 3.5rem); line-height: 1.07; letter-spacing: -0.02em; color: var(--em-ivory); text-wrap: balance; }
.features-hero__lede { margin: 0; font-size: 1.0625rem; line-height: 1.65; color: var(--em-mist); max-width: 42ch; text-wrap: pretty; }
.features-hero__collage { position: relative; height: 440px; }
.features-hero__card { position: absolute; padding: 14px; background: var(--em-ivory); color: var(--em-ink); border-radius: var(--em-radius-lg); box-shadow: 0 24px 50px -18px rgba(0,0,0,0.7); transform: rotate(var(--r)); }
.features-hero__card--rec { left: 6%; top: 4%; width: 190px; display: grid; justify-items: center; gap: 10px; padding: 20px 14px; }
.features-hero__rec { width: 64px; height: 64px; margin: 0; }
.features-hero__rec-time { font-size: 20px; font-weight: 300; font-feature-settings: "tnum" 1; letter-spacing: 0.04em; }
.features-hero__rec-time span { color: var(--em-antique-gold); }
.features-hero__card--sched { right: 0; top: 10%; width: 300px; display: grid; gap: 8px; }
.features-hero__card--tree { left: 0; bottom: 8%; width: 230px; display: grid; gap: 8px; }
.features-hero__card--tree .viz-tree__node { width: auto; }
.features-hero__card--vault { right: 6%; bottom: 0; width: 300px; padding: 10px; }
.features-hero__in { opacity: 0; transform: translateY(10px); animation: featuresRise 600ms cubic-bezier(0.23, 1, 0.32, 1) forwards; animation-delay: calc(var(--i, 0) * 60ms + 80ms); }
.features-hero__settle { opacity: 0; transform: translateY(16px) rotate(calc(var(--r) + 4deg)) scale(0.97); animation: featuresSettle 720ms cubic-bezier(0.23, 1, 0.32, 1) forwards; animation-delay: calc(var(--i, 0) * 110ms + 240ms); }
@keyframes featuresRise { to { opacity: 1; transform: none; } }
@keyframes featuresSettle { to { opacity: 1; transform: rotate(var(--r)); } }

.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding: 64px 0; border-top: 1px solid var(--em-rule); }
.feature-row:first-of-type { border-top: 0; padding-top: 16px; }
.feature-row--reverse .feature-row__visual { order: -1; }
.feature-row__copy h2, .feature-row__copy h3 {
  font-family: var(--em-font-display); font-weight: 500;
  font-size: 40px; line-height: 1.12; letter-spacing: -0.015em;
  margin: 16px 0 18px; color: var(--em-ink); text-wrap: balance;
}
.feature-row__copy p { font-size: 17px; line-height: 1.65; color: var(--em-charcoal); margin: 0 0 16px; }
/* Bullets match the paragraph above them (size and line height) */
.feature-row__list { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 12px; }
.feature-row__list li { font-size: 17px; color: var(--em-charcoal); padding-left: 20px; position: relative; line-height: 1.65; }
.feature-row__list li::before {
  content: ""; position: absolute; left: 0; top: 0.825em; /* half a line, so it centres on the first line */
  width: 8px; height: 1px; background: var(--em-antique-gold);
}

.feature-row__visual {
  background: var(--em-paper);
  border: 1px solid var(--em-rule);
  border-radius: var(--em-radius-lg);
  aspect-ratio: 4 / 3;
  padding: 32px;
  display: flex;
  box-shadow: var(--em-shadow-soft);
  position: relative;
  overflow: hidden;
}

/* visuals: schedule */
.viz-schedule { width: 100%; display: flex; flex-direction: column; gap: 12px; align-self: center; }
.viz-schedule__row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--em-rule);
  border-radius: var(--em-radius-md);
}
.viz-schedule__row--featured { border-top: 1px solid var(--em-antique-gold); border-bottom: 1px solid var(--em-antique-gold); }
.viz-schedule__date {
  font-family: var(--em-font-display); font-weight: 600;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--em-antique-gold);
  min-width: 76px;
}
.viz-schedule__title {
  font-family: var(--em-font-display); font-weight: 500;
  font-size: 16px; color: var(--em-ink); flex: 1;
}
.viz-schedule__icon { color: var(--em-antique-gold); }

/* visuals: vault */
.viz-vault { width: 100%; align-self: center; display: flex; flex-direction: column; gap: 16px; }
.viz-vault__lock {
  display: flex; gap: 14px; align-items: center; padding: 18px 20px;
  background: var(--em-ink); color: var(--em-ivory);
  border-radius: var(--em-radius-md);
  border: 1px solid rgba(201,162,76,0.25);
}
.viz-vault__lock-mark { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--em-gold); display: flex; align-items: center; justify-content: center; color: var(--em-gold); }
.viz-vault__lock-text { font-family: var(--em-font-body); font-size: 13px; color: var(--em-mist); flex: 1; }
.viz-vault__lock-text strong { color: var(--em-ivory); font-weight: 500; }
.viz-vault__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.viz-vault__chip {
  font-family: var(--em-font-body); font-size: 12px; color: var(--em-charcoal);
  background: #fff; border: 1px solid var(--em-rule);
  padding: 6px 12px; border-radius: var(--em-radius-pill);
  display: inline-flex; gap: 6px; align-items: center;
}
.viz-vault__chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--em-antique-gold); }
.viz-vault__list { display: flex; flex-direction: column; gap: 8px; }
.viz-vault__item {
  display: flex; gap: 12px; align-items: center;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--em-rule);
  border-radius: var(--em-radius-md);
  font-size: 13px; color: var(--em-charcoal);
}
.viz-vault__item-name { font-family: var(--em-font-display); font-size: 16px; color: var(--em-ink); flex: 1; }
.viz-vault__item-meta { font-size: 11px; color: var(--em-charcoal); letter-spacing: 0.08em; text-transform: uppercase; }

/* visuals: record */
.viz-record { width: 100%; align-self: center; text-align: center; padding: 12px; }
.viz-record__btn {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--em-gold); margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
  color: var(--em-ink);
  position: relative;
}
.viz-record__btn::after {
  content: ""; position: absolute; inset: -10px;
  border-radius: 50%; border: 1px solid var(--em-gold); opacity: 0.4;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.4); opacity: 0; }
}
.viz-record__time { font-family: var(--em-font-body); font-size: 28px; font-weight: 300; color: var(--em-ink); margin-bottom: 16px; font-feature-settings: "tnum" 1; letter-spacing: 0.04em; }
.viz-record__time .live { color: var(--em-antique-gold); }
.viz-record__meter { display: flex; align-items: center; justify-content: center; gap: 3px; height: 32px; }
.viz-record__bar { width: 3px; background: var(--em-antique-gold); border-radius: 1px; opacity: 0.7; }

/* visuals: delivery */
.viz-deliver { width: 100%; align-self: center; display: flex; flex-direction: column; gap: 10px; }
.viz-deliver__step {
  display: flex; gap: 14px; align-items: center;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--em-rule);
  border-radius: var(--em-radius-md);
  font-size: 14px;
}
.viz-deliver__step--done { background: var(--em-paper); }
.viz-deliver__step-num {
  font-family: var(--em-font-display); font-style: italic;
  font-size: 12px; color: var(--em-antique-gold);
  width: 24px; flex-shrink: 0;
}
.viz-deliver__step-text { color: var(--em-charcoal); flex: 1; }
.viz-deliver__step-text strong { font-family: var(--em-font-display); font-weight: 500; font-size: 16px; color: var(--em-ink); display: block; margin-bottom: 2px; font-style: normal; }
.viz-deliver__step-state { font-weight: 600; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--em-antique-gold); }

/* visuals: family tree */
.feature-row__visual--auto { aspect-ratio: auto; }
.viz-tree { width: 100%; align-self: center; display: flex; flex-direction: column; align-items: center; }
.viz-tree__filters { display: flex; gap: 6px; margin-bottom: 20px; }
.viz-tree__filter {
  font-size: 11px; color: var(--em-charcoal);
  padding: 5px 12px; border-radius: var(--em-radius-pill);
  border: 1px solid var(--em-rule);
}
.viz-tree__filter.is-on { color: var(--em-ink); border-color: var(--em-antique-gold); background: var(--em-gold-veil); }
.viz-tree__row { display: flex; justify-content: center; gap: 24px; position: relative; }
.viz-tree__row::before {
  content: ""; position: absolute; left: 25%; right: 25%; top: 50%;
  height: 1px; background: var(--em-mist); z-index: 0;
}
.viz-tree__stem { width: 1px; height: 14px; background: var(--em-mist); }
.viz-tree__node {
  position: relative; z-index: 1;
  display: flex; gap: 10px; align-items: center;
  width: 180px; padding: 8px 12px 8px 8px;
  background: #fff; border: 1px solid var(--em-rule);
  border-radius: var(--em-radius-md);
}
.viz-tree__avatar {
  width: 30px; height: 30px; flex: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--em-font-display); font-size: 11px; font-weight: 500;
  background: var(--em-parchment); color: var(--em-charcoal);
}
.viz-tree__name { font-family: var(--em-font-display); font-size: 14px; color: var(--em-ink); line-height: 1.2; }
.viz-tree__rel { font-size: 11px; color: var(--em-charcoal); white-space: nowrap; }
.viz-tree__node--memorial .viz-tree__avatar { background: transparent; border: 1px dashed var(--em-antique-gold); color: var(--em-antique-gold); }
.viz-tree__node--memorial .viz-tree__rel { color: var(--em-antique-gold); }
.viz-tree__node--self { border-color: var(--em-antique-gold); }
.viz-tree__node--self .viz-tree__avatar { background: var(--em-ink); color: var(--em-gold); font-size: 9px; }

/* visuals: photos + stories */
.viz-mem { width: 100%; align-self: center; display: flex; flex-direction: column; gap: 14px; }
.viz-mem__head { display: flex; gap: 12px; align-items: center; }
.viz-mem__avatar {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  border: 1px dashed var(--em-antique-gold); color: var(--em-antique-gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--em-font-display); font-size: 13px;
}
.viz-mem__name { font-family: var(--em-font-display); font-size: 17px; color: var(--em-ink); line-height: 1.2; }
.viz-mem__meta { font-size: 12px; color: var(--em-charcoal); }
.viz-mem__label {
  font-family: var(--em-font-display); font-weight: 600;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--em-antique-gold); margin-bottom: 8px;
}
.viz-mem__photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
/* Small prints: white border, photo, caption on a soft shade so it reads over any image */
.viz-mem__photo {
  position: relative; margin: 0; aspect-ratio: 1;
  padding: 4px; background: #fff;
  border-radius: var(--em-radius-sm); box-shadow: var(--em-shadow-soft);
}
.viz-mem__photo picture, .viz-mem__photo img { display: block; width: 100%; height: 100%; }
.viz-mem__photo img { object-fit: cover; border-radius: 2px; }
.viz-mem__photo figcaption {
  position: absolute; left: 4px; right: 4px; bottom: 4px;
  padding: 14px 7px 5px; border-radius: 0 0 2px 2px;
  background: linear-gradient(to top, rgba(14,11,8,0.78), rgba(14,11,8,0));
  font-size: 10px; line-height: 1.3; color: var(--em-ivory);
}
.viz-mem__story {
  background: #fff; border: 1px solid var(--em-rule);
  border-radius: var(--em-radius-md); padding: 12px 14px;
}
.viz-mem__story-title { font-family: var(--em-font-display); font-size: 15px; color: var(--em-ink); margin-bottom: 4px; }
.viz-mem__story p { font-size: 12px; line-height: 1.5; color: var(--em-charcoal); margin: 0; }
.viz-mem__share { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--em-charcoal); }
.viz-mem__check {
  width: 16px; height: 16px; border-radius: var(--em-radius-sm);
  background: var(--em-antique-gold); color: #fff;
  display: flex; align-items: center; justify-content: center;
}

/* ─────────── Support page ─────────── */
.support-grid { display: grid; grid-template-columns: 280px 1fr; gap: 64px; align-items: start; }
.support-side {
  position: sticky; top: 120px;
  border-top: 1px solid var(--em-antique-gold);
  padding-top: 24px;
}
.support-side__label {
  font-weight: 600;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--em-antique-gold); margin-bottom: 16px;
}
.support-side__cats { display: flex; flex-direction: column; gap: 4px; margin-bottom: 32px; }
.support-side__cat {
  text-align: left; background: transparent; border: 0;
  padding: 10px 12px; border-radius: var(--em-radius-sm);
  font-family: var(--em-font-body); font-size: 14px; color: var(--em-charcoal);
  cursor: pointer; transition: all 200ms ease;
}
.support-side__cat:hover { background: var(--em-paper); color: var(--em-ink); }
.support-side__cat.is-active { background: var(--em-paper); color: var(--em-ink); font-weight: 500; }
.support-side__contact {
  background: var(--em-paper); border: 1px solid var(--em-rule);
  border-radius: var(--em-radius-md); padding: 20px;
}
/* Topic dropdown: replaces the topic list where the layout stacks (≤1024px) */
.support-topic { display: none; }
.support-topic__box { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px;
  padding: 12px 16px; background: var(--em-paper); border: 1px solid rgba(14,11,8,0.16); border-radius: var(--em-radius-md);
  cursor: pointer; transition: transform 120ms cubic-bezier(0.23,1,0.32,1); }
.support-topic__box:active { transform: scale(0.99); }
.support-topic__box:focus-within { outline: 2px solid var(--em-antique-gold); outline-offset: 2px; }
.support-topic__eyebrow { font-family: var(--em-font-display); font-weight: 600; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--em-charcoal); }
.support-topic__value { font-size: 16px; font-weight: 500; color: var(--em-ink); }
.support-topic__chev { color: var(--em-charcoal); font-size: 14px; }
/* The real <select> sits over the box: the phone's own picker opens on tap */
.support-topic select { position: absolute; inset: 0; width: 100%; opacity: 0; font-size: 16px; cursor: pointer; }
.support-main__title { scroll-margin-top: 150px; }
.support-main .faq { animation: supportIn 200ms cubic-bezier(0.23,1,0.32,1) both; }
@keyframes supportIn { from { opacity: 0; transform: translateY(6px); } }
.support-side__contact h2 { font-family: var(--em-font-display); font-weight: 500; font-size: 18px; margin: 0 0 8px; color: var(--em-ink); }
.support-side__contact p { font-size: 13px; line-height: 1.55; color: var(--em-charcoal); margin: 0 0 14px; }

.faq { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--em-rule);
  padding: 24px 0;
}
.faq-item:first-child { border-top: 1px solid var(--em-rule); }
.faq-item__q {
  width: 100%; text-align: left;
  background: transparent; border: 0; cursor: pointer;
  font-family: var(--em-font-display); font-weight: 500;
  font-size: 22px; line-height: 1.3; color: var(--em-ink);
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; padding: 0;
}
.faq-item__q:hover { color: var(--em-antique-gold); }
.faq-item__plus {
  flex-shrink: 0; width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  color: var(--em-antique-gold); transition: transform var(--em-dur) var(--em-ease);
}
.faq-item.is-open .faq-item__plus { transform: rotate(45deg); }
.faq-item__a {
  max-height: 0; overflow: hidden;
  transition: max-height var(--em-dur) var(--em-ease), padding var(--em-dur) var(--em-ease);
}
.faq-item.is-open .faq-item__a { max-height: 400px; padding-top: 16px; }
.faq-item__a p { font-size: 16px; line-height: 1.65; color: var(--em-charcoal); margin: 0; max-width: 640px; }

/* ─────────── Cookie banner ─────────── */
/* Bottom bar, only rendered when EM_GA_ID is set. Accept and Decline are the same size. */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40;
  max-width: 960px; margin: 0 auto;
  background: var(--em-ink); color: var(--em-ivory);
  border: 1px solid rgba(201,162,76,0.35); border-radius: var(--em-radius-lg);
  box-shadow: 0 16px 40px rgba(0,0,0,0.28);
  padding: 20px 24px;
  animation: cookieIn 300ms cubic-bezier(0.23,1,0.32,1) both;
}
.cookie-banner.is-closing { animation: cookieOut 200ms cubic-bezier(0.23,1,0.32,1) both; }
@keyframes cookieIn { from { opacity: 0; transform: translateY(16px); } }
@keyframes cookieOut { to { opacity: 0; transform: translateY(16px); } }
@keyframes cookieFade { from { opacity: 0; } }
@keyframes cookieFadeOut { to { opacity: 0; } }
.cookie-banner__inner { display: flex; align-items: center; gap: 16px 32px; flex-wrap: wrap; }
.cookie-banner__copy { flex: 1 1 420px; }
.cookie-banner__title { margin: 0 0 4px; font-family: var(--em-font-display); font-weight: 500; font-size: 18px; color: var(--em-ivory); }
.cookie-banner p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--em-mist); }
.cookie-banner a { color: var(--em-gold); text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner__actions { display: flex; gap: 12px; }
.cookie-banner__actions .btn { min-width: 120px; justify-content: center; }
.cookie-banner__actions .btn:active { transform: scale(0.97); }

/* ─────────── CTA band ─────────── */
.cta-band { padding: 96px 40px; background: var(--em-ink); color: var(--em-ivory); position: relative; overflow: hidden; text-align: center; }
.cta-band__vignette { position: absolute; inset: 0; background: radial-gradient(ellipse 50% 60% at 50% 40%, rgba(201,162,76,0.12), transparent 70%); pointer-events: none; }
.cta-band__inner { position: relative; max-width: 720px; margin: 0 auto; }
.cta-band h2 {
  font-family: var(--em-font-display); font-weight: 500;
  font-size: 56px; line-height: 1.1; letter-spacing: -0.02em;
  margin: 0 0 20px; color: var(--em-ivory); text-wrap: balance;
}
.cta-band h2 em { font-style: normal; color: var(--em-gold); font-weight: 400; }
.cta-band p { font-size: 18px; color: var(--em-mist); margin: 0 0 36px; line-height: 1.6; max-width: 520px; margin-left: auto; margin-right: auto; }
/* Small line under the button, matching the hero's offer line */
.cta-band .cta-band__note { margin: 16px auto 0; font-size: var(--em-text-sm); line-height: 1.5; color: var(--em-mist); }

/* ─────────── Misc ─────────── */

.fade-in { animation: fadeIn 320ms cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* =====================================================================
 * RESPONSIVE
 * Breakpoints: tablet ≤ 1024px · mobile ≤ 768px · small ≤ 480px
 * ===================================================================== */

/* ── Burger (hidden on desktop) ── */
.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
  margin-left: auto;
  flex-shrink: 0;
}
.header__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--em-ivory);
  border-radius: 1px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.header.nav-open .header__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header.nav-open .header__burger span:nth-child(2) { opacity: 0; }
.header.nav-open .header__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@keyframes mobileNavIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
/* Hidden on desktop, shown inside mobile nav */
.header__nav-signin { display: none; }

/* ─────────── Tablet ≤ 1024px ─────────── */
@media (max-width: 1024px) {
  .pricing-plans__inner { padding-inline: 24px; }
  .container { padding: 0 24px; }

  /* Header */
  .header { padding: 14px 24px; }
  .header__nav { gap: 20px; }
  .header__nav a { font-size: 13px; }

  /* Sections */
  .section { padding: 72px 0; }

  /* Pricing */

  /* Footer */
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }

  /* Page hero */
  .page-hero { padding: 72px 24px 80px; }
  .about-hero__inner { padding-inline: 24px; }
  .page-hero__title { font-size: 48px; }

  /* CTA band */
  .cta-band { padding: 72px 24px; }
  .cta-band h2 { font-size: 42px; }

  /* Features page */
  .feature-row { grid-template-columns: 1fr; gap: 40px; padding: 48px 0; }
  .features-hero__inner { padding-inline: 24px; }
  .features-hero__collage { height: 400px; }
  .feature-row--reverse .feature-row__visual { order: 0; }

  /* About page */
  .values { grid-template-columns: 1fr 1fr; }
  .team { grid-template-columns: 1fr 1fr; }

  /* Support page */
  .support-grid { grid-template-columns: 1fr; gap: 40px; }
  .support-side { position: static; top: auto; order: 2; } /* "Still need a person?" after the answers */
  .section.support-section { padding-top: 0; } /* the topic strip starts right where the hero ends (beats the 768px .section rule) */
  .support-side__label, .support-side__cats { display: none; }
  /* Full-width parchment strip, flush under the header, with a rule to separate it from the answers */
  .support-topic { display: block; position: sticky; top: 72px; z-index: 5; margin: 0 -24px 24px; padding: 10px 24px;
    background: var(--em-parchment); border-bottom: 1px solid var(--em-rule-strong); }
}

/* ─────────── Mobile ≤ 768px ─────────── */
@media (max-width: 768px) {
  .legal__inner { grid-template-columns: 1fr; gap: 40px; padding-inline: 20px; }
  .legal__toc { position: static; }
  .legal__section h2 { font-size: 22px; }
  .pricing-plans__inner { padding-inline: 20px; }
  .pricing-plans__grid { grid-template-columns: 1fr; gap: 20px; }
  .pricing-plans__join { display: flex; }
  .pricing-h2 { font-size: 30px; }
  /* Comparison: swipe sideways, feature column pinned, columns snap */
  .pricing-compare__hint { display: block; margin: 0 0 10px; font-size: 13px; color: var(--em-charcoal); text-align: center; }
  .pricing-compare__hint span { display: inline-block; animation: pricingNudge 1.6s cubic-bezier(0.23,1,0.32,1) 0.6s 2 both; }
  .pricing-compare { scroll-snap-type: x mandatory; scroll-padding-left: 132px; overscroll-behavior-x: contain; }
  .pricing-compare table { width: max-content; min-width: 0; border-collapse: separate; border-spacing: 0; }
  .pricing-compare th, .pricing-compare td { padding: 14px 12px; font-size: 14px; line-height: 1.4; }
  .pricing-compare thead th, .pricing-compare thead td { padding-block: 16px 12px; }
  .pricing-compare thead th, .pricing-compare tbody td { width: 112px; min-width: 112px; scroll-snap-align: start; }
  .pricing-compare__plan { font-size: 11px; letter-spacing: 0.16em; }
  .pricing-compare__with { font-size: 11.5px; }
  .pricing-compare tbody th, .pricing-compare__corner {
    position: sticky; left: 0; z-index: 1;
    width: 132px; min-width: 132px; max-width: 132px;
    font-size: 13px; background: var(--em-paper);
  }
  .pricing-compare tbody tr:first-child td { font-size: 16px; }
  /* Pinned column's shadow appears only once something has slid under it */
  .pricing-compare tbody th::after, .pricing-compare__corner::after {
    content: ''; position: absolute; top: 0; bottom: 0; right: -12px; width: 12px;
    background: linear-gradient(to right, rgba(14,11,8,0.10), transparent);
    opacity: 0; transition: opacity 150ms ease; pointer-events: none;
  }
  .pricing-compare-wrap[data-start="true"] tbody th::after,
  .pricing-compare-wrap[data-start="true"] .pricing-compare__corner::after { opacity: 1; }
  .container { padding: 0 20px; }

  /* Header — burger */
  .header { padding: 12px 20px; gap: 12px; }
  .header__nav {
    display: none;
    position: fixed;
    inset: 0;
    transform: none;
    z-index: 20;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 5vh, 44px);
    /* bottom padding leaves room for the pinned buttons */
    padding: 88px 20px calc(176px + env(safe-area-inset-bottom, 0px));
    background: var(--em-ink);
  }
  /* The header is its own containing block, so size the menu to the screen explicitly.
     dvh tracks the visible area, keeping the bottom buttons above mobile browser bars. */
  .header.nav-open .header__nav { display: flex; height: 100vh; height: 100dvh; animation: mobileNavIn 0.3s var(--em-ease) both; }
  .header__nav a {
    font-size: 28px;
    font-family: var(--em-font-display);
    font-weight: 500;
    letter-spacing: -0.01em;
    padding: 0;
    border-bottom: none;
    color: var(--em-ivory);
    text-align: center;
  }
  .header__nav a.is-active { color: var(--em-gold); }
  .header__nav a:hover { color: var(--em-gold); border-bottom: none; }
  /* Free trial + Sign in: pinned to the bottom, full width */
  .header__nav-signin {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: absolute;
    left: 20px; right: 20px;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }
  .header__nav .header__nav-signin .btn {
    width: 100%;
    min-height: 52px;
    justify-content: center;
    text-align: center;
    padding: 14px 20px;
    font-family: var(--em-font-body);
    font-size: 16px; font-weight: 600;
    letter-spacing: 0.005em;
  }
  .header__nav .header__nav-signin .btn--gold { color: var(--em-ink); }
  .header__nav .header__nav-signin .btn--ghost-light { color: var(--em-ivory); border: 1px solid rgba(246,241,231,0.3); }
  .header__nav .header__nav-signin .btn:active { transform: scale(0.97); }
  .header__actions { display: none; }
  .header__burger { display: flex; z-index: 25; position: relative; }

  /* Sections */
  .section { padding: 56px 0; }
  .section__head { margin-bottom: 40px; }

  /* Pricing */

  /* Footer */
  .footer { padding: 48px 20px 24px; }
  .footer__inner { gap: 28px; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 20px; }

  /* Page hero */
  .page-hero { padding: 52px 20px 60px; }
  .about-hero__inner { grid-template-columns: 1fr; padding-inline: 20px; }
  .about-hero__art { max-width: 420px; width: 100%; margin: 0 auto; }
  .page-hero__title { font-size: 34px; }
  .page-hero__lede { font-size: 15px; }

  /* CTA band */
  .cta-band { padding: 56px 20px; }
  .cta-band h2 { font-size: 28px; }
  .cta-band p { font-size: 15px; }


  /* Features */
  .feature-row__copy h2, .feature-row__copy h3 { font-size: 28px; }
  .features-hero__inner { grid-template-columns: 1fr; padding-inline: 20px; }
  .features-hero__collage { height: 400px; max-width: 520px; width: 100%; margin: 0 auto; }
  .feature-row__visual { border-radius: 12px; }
  .feature-row__visual--auto { padding: 24px 16px; }
  .viz-tree__row { gap: 12px; }
  .viz-tree__node { width: auto; min-width: 0; flex: 1 1 0; max-width: 180px; }
  .viz-tree__rel { white-space: normal; }
  .pullquote { padding: 48px 24px; }
  .pullquote q { font-size: 24px; }

  /* About page */
  .values { grid-template-columns: 1fr; }

  /* Support page */
  .support-topic { top: 68px; margin-inline: -20px; padding-inline: 20px; }

  /* Pricing compare table */

  /* Type scale */
  .em-h1 { font-size: 30px; }

}

/* ─────────── Small mobile ≤ 480px ─────────── */
@media (max-width: 480px) {
  .cookie-banner { padding: 18px 18px 16px; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { flex: 1; min-width: 0; }

  .team { grid-template-columns: 1fr; }

  .about-story__body > p { font-size: 17px; }
  .about-story__body > .about-story__question { font-size: 24px; margin: 36px 0; }
  .about-story__body > .about-story__close { font-size: 20px; }

  .page-hero__title { font-size: 28px; }
  .features-hero__collage { height: 360px; }
  .features-hero__card--rec { width: 44%; left: 0; }
  .features-hero__card--sched { width: 66%; }
  .features-hero__card--tree { width: 54%; }
  .features-hero__card--vault { width: 72%; right: 0; }
  .features-hero__card .viz-schedule__date { min-width: 0; }

}

/* ─────────── Reduced motion ─────────── */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .fade-in { animation: none; }
  .viz-record__btn::after { animation: none; }
  .about-hero__in, .about-hero__settle, .features-hero__in, .features-hero__settle { opacity: 1; animation: none; }
  .features-hero__in { transform: none; }
  .features-hero__settle { transform: rotate(var(--r)); }
  .pricing-card.is-visible { transition: none; }
  .pricing-compare__hint span { animation: none; }
  .support-main .faq { animation: none; }
  .support-topic__box { transition: none; }
  .cookie-banner { animation-name: cookieFade; }
  .cookie-banner.is-closing { animation-name: cookieFadeOut; }
  .about-hero__in { transform: none; }
  .about-hero__settle { transform: rotate(var(--r)); }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* =====================================================================
 * HOME
 * Video hero, pinned "How it works" deck, pinned time statement,
 * pinned chapters reel, trust. Scoped under .home; tokens only.
 * Scroll-driven elements carry no CSS transitions: HomePage.jsx writes
 * transform/opacity per frame. .home--static is the reduced-motion layout.
 * ===================================================================== */
.home { --home-head: 76px;
  --home-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --home-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --home-gutter: clamp(20px, 4vw, 40px);
  --home-max: 1200px;
  background: var(--em-bg);
  color: var(--em-fg);
  overflow-x: clip;
  --home-accent-text: var(--em-gold); }
.home-light { --em-bg:          var(--em-ivory);
  --em-bg-elevated: var(--em-paper);
  --em-fg:          var(--em-ink);
  --em-fg-muted:    var(--em-charcoal);
  --em-fg-subtle:   var(--em-charcoal);
  --em-accent:      var(--em-antique-gold);
  --em-rule:        rgba(14, 11, 8, 0.10);
  --em-rule-strong: rgba(14, 11, 8, 0.18);
  --home-accent-text: var(--em-charcoal);
  background: var(--em-bg);
  color: var(--em-fg); }
.home-paper { --em-bg: var(--em-paper); --home-accent-text: var(--em-antique-gold); background: var(--em-paper); }
.home :focus-visible { outline: 2px solid var(--em-accent); outline-offset: 3px; border-radius: 4px; }
.home .btn--gold:focus-visible { outline-color: var(--em-gold); }
.home .btn { transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, transform 160ms var(--home-ease-out);
  min-height: 44px; }
.home .btn:active { transform: scale(0.97); }
.home-light .btn--outline-gold { color: var(--em-antique-gold); border-color: var(--em-antique-gold); }
.home [data-reveal] { transform: translateY(12px);
  transition: opacity 600ms var(--home-ease-out), transform 600ms var(--home-ease-out);
  transition-delay: var(--delay, 0ms); }
.home [data-reveal].is-visible { opacity: 1; transform: none; }
.home-wrap { max-width: var(--home-max); margin: 0 auto; padding-inline: var(--home-gutter); }
.home-wrap--narrow { max-width: 820px; }
.home-section { padding-block: clamp(64px, 9vw, 128px); }
.home-h2 { font-family: var(--em-font-display); font-weight: 500;
  font-size: clamp(2rem, 2.6vw + 1rem, 3.25rem);
  line-height: 1.08; letter-spacing: -0.02em;
  color: var(--em-fg); margin: 0; text-wrap: balance; }
.home-h3 { font-family: var(--em-font-display); font-weight: 500;
  font-size: clamp(1.375rem, 0.6vw + 1.2rem, 1.75rem);
  line-height: 1.2; letter-spacing: -0.01em;
  color: var(--em-fg); margin: 0; text-wrap: balance; }
.home-lede { font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.25rem); line-height: 1.6;
  color: var(--em-fg-muted); margin: 0; max-width: 36em; text-wrap: pretty; }
.home-body { font-size: var(--em-text-base); line-height: 1.65; color: var(--em-fg-muted); margin: 0; text-wrap: pretty; }
.home-head { display: grid; gap: 16px; margin-bottom: clamp(40px, 5vw, 64px); max-width: 44rem; }
.home-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.home-link { color: var(--home-accent-text); font-weight: 600; text-underline-offset: 4px;
  text-decoration: underline; text-decoration-thickness: 1px;
  transition: text-decoration-color 200ms ease; }
@media (hover: hover) and (pointer: fine) {
  .home-link:hover { text-decoration-color: transparent; }
}
.home-photo { display: block; position: relative; overflow: hidden; background: var(--em-soft-black); border-radius: var(--em-radius-lg); }
.home-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(201,162,76,0.08), rgba(14,11,8,0.14));
  mix-blend-mode: multiply; }
.home-quote { border: 1px solid var(--em-rule-strong);
  border-radius: var(--em-radius-lg);
  padding: 28px;
  display: grid; gap: 12px; align-content: start;
  background: transparent; }
.home-quote__text { font-family: var(--em-font-display); font-size: 1.25rem; line-height: 1.4;
  color: var(--em-fg-muted); margin: 0; }
.home-quote__who { font-size: var(--em-text-sm); color: var(--em-fg-subtle); margin: 0; }
.home-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.home-step { font-weight: 600; font-size: var(--em-text-xs);
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--home-accent-text); }
.home-icon { width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--em-accent); color: var(--em-accent);
  display: grid; place-items: center; }
.home-faq .faq-item { border-color: var(--em-rule-strong); }
.home-faq .faq-item:first-child { border-top-color: var(--em-rule-strong); }
.home-faq .faq-item__q { color: var(--em-fg); font-size: clamp(1.125rem, 0.5vw + 1rem, 1.375rem);
  min-height: 44px; transition: color 200ms ease; }
.home-faq .faq-item__q:hover { color: var(--em-fg); }
@media (hover: hover) and (pointer: fine) {
  .home-faq .faq-item__q:hover { color: var(--em-accent); }
}
.home-faq .faq-item__plus { color: var(--em-accent); }
.home-faq .faq-item__a p { color: var(--em-fg-muted); }
.home-ui__mark { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--em-gold); color: var(--em-ink); }
.home-ui__title { font-family: var(--em-font-display); font-size: 1rem; line-height: 1.3; margin: 0; color: var(--em-ivory); }
.home-ui__meta { font-size: var(--em-text-xs); color: var(--em-stone); margin: 2px 0 0; }
.home-ui__avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--em-parchment); display: grid; place-items: center; font-family: var(--em-font-display); font-size: 12px; color: var(--em-charcoal); }
.home-ui__check { width: 20px; height: 20px; border-radius: 4px; border: 1px solid rgba(14,11,8,0.24); display: grid; place-items: center; color: var(--em-paper); }
.home-hero { position: relative; min-height: calc(100svh - var(--home-head)); display: grid; place-items: center; overflow: hidden; padding: 32px var(--home-gutter) 40px; }
.home-hero__media { position: absolute; inset: 0; overflow: hidden; transform-origin: 50% 0%; will-change: transform; background: var(--em-soft-black); }
.home-hero__video { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-hero__scrim { position: absolute; inset: 0; background:
  radial-gradient(ellipse 70% 60% at 50% 55%, rgba(14,11,8,0.62), rgba(14,11,8,0.30) 70%),
  linear-gradient(180deg, rgba(14,11,8,0.25), rgba(14,11,8,0.55) 60%, rgba(14,11,8,0.92)); }
.home-hero__copy { position: relative; z-index: 1; display: grid; gap: 22px; justify-items: center; text-align: center; max-width: 820px; will-change: transform, opacity; }
.home-hero__copy .home-lede { color: var(--em-ivory); margin-inline: auto; text-shadow: 0 1px 16px rgba(14,11,8,0.6); }
.home-hero__title { font-family: var(--em-font-display); font-weight: 500; color: var(--em-ivory); margin: 0;
  font-size: clamp(2.5rem, 5vw + 0.5rem, 5.25rem); max-width: 14ch; margin-inline: auto; line-height: 1.0; letter-spacing: -0.03em; text-wrap: balance;
  text-shadow: 0 2px 24px rgba(14,11,8,0.45); }
.home-ctabar { display: flex; align-items: center; gap: 6px; padding: 6px; margin-top: 8px;
  border-radius: var(--em-radius-pill); background: rgba(14,11,8,0.72); border: 1px solid rgba(246,241,231,0.14);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.home-ctabar .btn { border-radius: var(--em-radius-pill); }
.home-hero__pause { position: absolute; z-index: 2; right: 20px; bottom: 20px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: var(--em-ivory);
  background: rgba(14,11,8,0.6); border: 1px solid rgba(246,241,231,0.2);
  transition: background-color 160ms ease, transform 160ms var(--home-ease-out); }
.home-hero__pause:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) {
  .home-hero__pause:hover { background: rgba(14,11,8,0.85); }
}
.home-deck { position: relative; height: 420vh; }
.home-deck:focus { outline: none; }
.home-deck__stage { --fw: min(50vw, 680px, calc((92svh - var(--home-head) - 240px) * 4 / 3));
  --cw: min(20vw, 270px);
  position: sticky; top: var(--home-head); height: calc(100svh - var(--home-head)); display: grid; place-items: center; overflow: hidden; }
.home-deck__head { position: absolute; top: 16px; left: 0; right: 0; display: grid; gap: 6px; justify-items: center; text-align: center; padding-inline: var(--home-gutter); }
/* Phone-only step progress (deck + time statement); see HomeSegments */
.home-progress { display: none; }
.home-deck__count { margin: 0; font-size: var(--em-text-xs); letter-spacing: 0.18em; color: var(--em-stone); font-feature-settings: "tnum" 1; }
.home-deck__frame { position: relative; width: var(--fw); aspect-ratio: 4 / 3; }
.home-card { position: absolute; inset: 0; border-radius: 28px; overflow: hidden; background: var(--em-soft-black);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.75); transform-origin: 50% 0%; will-change: transform;
  transform: translateY(112%); }
.home-card:first-child { transform: scale(0.84); }
.home-card__media, .home-card__media.home-photo { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; object-fit: cover; }
.home-card__media img { object-position: var(--pos, 50% 50%); }
.home-card__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,11,8,0) 40%, rgba(14,11,8,0.55)); pointer-events: none; }
.home-card__dim { position: absolute; inset: 0; background: var(--em-ink); opacity: 0; pointer-events: none; }
.home-card__ui { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); width: min(86%, 360px); display: grid; justify-items: center; }
.home-ui { color: var(--em-ink); background: rgba(246,241,231,0.94); border-radius: var(--em-radius-lg); box-shadow: 0 20px 40px -12px rgba(0,0,0,0.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.home-ui--pill { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: var(--em-radius-pill); font-size: 14px; font-weight: 500; }
.home-ui__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--em-danger); box-shadow: 0 0 0 4px rgba(142,58,46,0.18); }
.home-ui--card { width: 100%; padding: 14px; display: grid; gap: 8px; }
.home-ui__label { margin: 0; font-weight: 600; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--em-charcoal); }
.home-ui__row { display: grid; grid-template-columns: 28px 1fr 20px; gap: 10px; align-items: center; padding: 6px 8px; border-radius: var(--em-radius-md); background: var(--em-paper); font-size: 14px; border: 1px solid rgba(14,11,8,0.06); }
.home-ui__row .home-ui__avatar { width: 28px; height: 28px; font-size: 11px; }
.home-ui__row small { color: var(--em-charcoal); font-size: 12px; margin-left: 4px; }
.home-ui__row.is-on { border-color: var(--em-antique-gold); }
.home-ui__row.is-on .home-ui__check { background: var(--em-antique-gold); border-color: var(--em-antique-gold); }
.home-ui__when { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--em-radius-md); background: var(--em-paper); font-size: 13px; color: var(--em-charcoal); }
.home-ui__when strong { font-family: var(--em-font-display); font-weight: 500; font-size: 1.0625rem; color: var(--em-ink); }
.home-ui__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.home-ui__chips span { font-size: 12px; padding: 5px 10px; border-radius: var(--em-radius-pill); border: 1px solid rgba(14,11,8,0.16); background: var(--em-paper); color: var(--em-charcoal); }
.home-ui__chips .is-on { background: var(--em-ink); border-color: var(--em-ink); color: var(--em-ivory); }
.home-ui--note { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 14px 16px; background: rgba(14,11,8,0.88); color: var(--em-ivory); border: 1px solid rgba(201,162,76,0.32); }
.home-ui--note .home-ui__title { color: var(--em-ivory); }
.home-caps { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; pointer-events: none; }
.home-cap { position: absolute; top: 50%; width: var(--cw); margin-top: -80px; display: grid; gap: 10px; opacity: 0; will-change: transform, opacity; }
.home-cap:first-child { opacity: 1; }
.home-cap--left { left:  calc(50% - var(--fw) / 2 - 48px - var(--cw)); }
.home-cap--right { right: calc(50% - var(--fw) / 2 - 48px - var(--cw)); }
.home-time { position: relative; height: 340vh; }
.home-time__stage { position: sticky; top: var(--home-head); height: calc(100svh - var(--home-head)); overflow: hidden; display: grid; place-items: center; }
.home-phrases { position: relative; width: min(90vw, 760px); height: 3.6em; font-size: clamp(2rem, 3.4vw + 1rem, 3.75rem); z-index: 2; }
.home-phrase { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; margin: 0; font-size: inherit; will-change: transform, opacity;
  text-shadow: 0 2px 30px var(--em-ink), 0 0 60px var(--em-ink); }
.home-float { position: absolute; inset: 0; pointer-events: none; }
.home-float__item { position: absolute; will-change: transform; }
.home-float__item .home-photo { border-radius: var(--em-radius-lg); box-shadow: 0 30px 60px -24px rgba(0,0,0,0.8); }
.home-float__item .viz-schedule__row { box-shadow: 0 20px 40px -16px rgba(0,0,0,0.7); white-space: nowrap; }
.home-float__item--1 { left: 6%;  top: 8%;  width: clamp(140px, 17vw, 260px); }
.home-float__item--1 .home-photo { aspect-ratio: 4/3; }
.home-float__item--2 { left: 9%;  top: 64%; }
.home-float__item--3 { right: 7%; top: 6%;  width: clamp(120px, 14vw, 220px); }
.home-float__item--3 .home-photo { aspect-ratio: 4/5; }
.home-float__item--4 { right: 5%; top: 58%; width: clamp(150px, 18vw, 280px); }
.home-float__item--4 .home-photo { aspect-ratio: 3/2; }
.home-float__item--5 { right: 22%; top: 84%; }
.home-float__item--6 { left: 24%; top: 82%; width: clamp(110px, 12vw, 200px); }
.home-float__item--6 .home-photo { aspect-ratio: 3/2; }
@media (max-width: 1024px) {
  .home { --home-head: 72px; }
  .home-deck__stage { --fw: min(88vw, 640px, calc((100svh - var(--home-head) - 330px) * 4 / 3)); }
  .home-cap, .home-cap--left, .home-cap--right { left: 50%; right: auto; top: 108px; margin: 0; width: min(88vw, 560px); transform: none; margin-left: max(-44vw, -280px); text-align: center; justify-items: center; gap: 6px; }
  .home-deck__stage { align-items: end; padding-bottom: 32px; }
}
@media (max-width: 768px) {
  .home { --home-head: 68px; }
  .home-hero { place-items: end center; padding-top: 0; min-height: calc(100svh - var(--home-head)); }
  .home-hero__media { inset: 0 0 auto 0; height: 56vw; min-height: 260px; }
  .home-hero__scrim { background: linear-gradient(180deg, rgba(14,11,8,0.05) 40%, var(--em-ink)); }
  .home-hero { background: var(--em-ink); }
  .home-hero__copy { padding-top: calc(56vw - 40px); gap: 18px; }
  .home-hero__copy .home-lede { text-shadow: none; color: var(--em-mist); }
  .home-ctabar { flex-direction: column; padding: 0; background: none; border: 0; gap: 10px; width: 100%; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .home-ctabar .btn { width: 100%; justify-content: center; order: -1; }
  .home-hero__pause { top: calc(56vw - 52px); bottom: auto; right: 12px; }
  .home-deck { height: 380vh; }
  .home-deck__frame { aspect-ratio: 4 / 5; }
  .home-cap .home-body { font-size: 14px; }
  .home-card__ui { bottom: 5%; width: 90%; }
  .home-float__item--2, .home-float__item--5 { display: none; }
  /* Step progress replaces both "01 / 04" and "Step N" (kept for screen readers), and the
     smaller card is centred in the space under the caption so the section can breathe */
  .home-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: min(220px, 60vw); margin-top: 4px; }
  .home-progress span { height: 3px; border-radius: 3px; background: var(--em-rule-strong); overflow: hidden; }
  .home-progress i { display: block; height: 100%; background: var(--em-gold); transform-origin: 0 50%; transform: scaleX(0); will-change: transform; }
  .home-progress--time { position: absolute; left: 50%; top: calc(50% + 92px); margin: 0; transform: translateX(-50%); z-index: 2; }
  .home-deck__count { display: none; }
  .home-cap .home-step { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .home-cap, .home-cap--left, .home-cap--right { top: 96px; }
  .home-deck__stage { --fw: min(72vw, calc((100svh - var(--home-head) - 270px) * 4 / 5)); align-items: center; padding-top: 236px; padding-bottom: 16px; }
  /* Phones: photos sit in a top band and a bottom band (anchored to each edge, so short
     screens don't pull them inwards), leaving the middle clear for the phrases */
  .home-float__item--1 { left: -4%; top: 2%; width: 128px; }
  .home-float__item--3 { right: -4%; top: 3%; width: 100px; }
  .home-float__item--4 { right: -6%; top: auto; bottom: 3%; width: 140px; }
  .home-float__item--6 { left: -2%; top: auto; bottom: 6%; width: 110px; }
}
.home--static .home-hero__media { transform: none; }
.home--static .home-deck, .home--static .home-time { height: auto; }
.home--static .home-deck__stage, .home--static .home-time__stage { position: static; height: auto; overflow: visible; display: block; padding: 24px var(--home-gutter) 64px; }
.home--static .home-deck__count, .home--static .home-float, .home--static .home-progress { display: none; }
.home--static .home-deck__frame { width: auto; aspect-ratio: auto; display: grid; gap: 24px; max-width: 760px; margin: 0 auto; }
.home--static .home-card { position: relative; inset: auto; transform: none; aspect-ratio: 4 / 3; }
.home--static .home-caps { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; max-width: var(--home-max); margin: 40px auto 0; }
.home--static .home-cap { position: static; opacity: 1; width: auto; margin: 0; transform: none; text-align: left; justify-items: start; }
.home--static .home-phrases { height: auto; width: auto; display: grid; gap: 12px; text-align: center; padding-block: 48px; }
.home--static .home-phrase { position: static; opacity: 1 !important; transform: none; }
.home-story { display: grid; gap: 20px; justify-items: center; text-align: center; max-width: 40rem; margin: 0 auto clamp(40px, 5vw, 64px); }
.home-voicemail { display: grid; grid-template-columns: 40px auto 1fr auto; align-items: center; gap: 14px; width: min(100%, 420px);
  padding: 14px 18px; border-radius: var(--em-radius-lg); background: var(--em-soft-black); border: 1px solid rgba(246,241,231,0.12); text-align: left; }
.home-voicemail__play { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--em-gold); color: var(--em-ink); }
.home-voicemail__meta { display: grid; gap: 2px; }
.home-voicemail__title { font-family: var(--em-font-display); font-weight: 500; font-size: 16px; color: var(--em-ivory); }
.home-voicemail__when, .home-voicemail__time { font-size: 13px; color: var(--em-fg-muted); font-feature-settings: "tnum" 1; }
.home-voicemail__wave { display: flex; align-items: center; justify-content: center; gap: 3px; height: 24px; }
.home-voicemail__wave i { width: 3px; border-radius: 2px; background: var(--em-gold); opacity: 0.6; }
.home-whatif__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); max-width: 1000px; margin: 0 auto; }
.home-whatif__col { display: grid; gap: 14px; align-content: start; padding: 32px; border: 1px solid var(--em-rule); border-radius: var(--em-radius-lg); background: var(--em-soft-black); }
/* Chapters: pinned "keepsake pile". Each chapter's polaroid drops onto a
   growing pile; the meter's fill and dot are scrubbed from scroll (no transitions). */
/* --home-chapter-scroll: scroll distance per chapter (was 95svh). Lower = fewer scrolls to get through. */
.home-chapters { --home-chapter-scroll: 30svh; position: relative; height: calc(var(--home-chapters-n, 4) * var(--home-chapter-scroll) + 100svh); background: radial-gradient(ellipse 60% 50% at 50% 55%, rgba(201,162,76,0.07), transparent 70%), var(--em-ink); }
.home-chapters__stage { position: sticky; top: var(--home-head); height: calc(100svh - var(--home-head)); display: grid; overflow: hidden; }
.home-chapters__layout { width: 100%; display: grid; grid-template-rows: auto 1fr; align-content: center; gap: clamp(20px, 4.5vh, 52px); padding-block: clamp(20px, 4vh, 48px); }
.home-chapters__intro { display: grid; gap: 10px; text-align: center; justify-items: center; }
.home-chapters__intro .home-h2 { font-size: clamp(1.875rem, 1.8vw + 1rem, 2.75rem); }
.home-chapters__intro .home-lede { font-size: clamp(1rem, 0.3vw + 0.95rem, 1.125rem); margin-inline: auto; }
.home-chapters__body { display: grid; grid-template-columns: auto minmax(0, 30rem); gap: clamp(40px, 6vw, 96px); align-items: center; justify-content: center; }
.home-chapters__pile { position: relative; width: min(440px, 50svh); aspect-ratio: 0.86; container-type: inline-size; }
.home-polaroid { position: absolute; inset: 0; margin: 0; padding: 14px 14px 0; display: grid; grid-template-rows: auto 1fr;
  background: var(--em-ivory); border-radius: 3px; box-shadow: 0 30px 60px -24px rgba(0,0,0,0.75), 0 2px 6px rgba(0,0,0,0.25);
  transform-origin: 50% 60%; }
.home-polaroid img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; display: block; border-radius: 1px; }
.home-polaroid figcaption { display: grid; place-items: center; font-family: var(--em-font-display); font-size: 1.125rem; color: var(--em-charcoal); padding-block: 8px; }
/* Caption scales with the polaroid so it never spills out of the frame */
.home-chapters__pile .home-polaroid figcaption { font-size: clamp(0.75rem, 5.2cqi, 1.125rem); line-height: 1.2; padding-block: 0.5em; text-align: center; white-space: nowrap; }
.home-chapters__card { transform: translate(var(--x), var(--y)) rotate(var(--r));
  transition: transform 700ms var(--home-ease-out), opacity 260ms ease; }
/* Waiting above the frame: lifted, turned a little more, invisible */
.home-chapters__card[data-state="up"] { transform: translate(var(--x), -135%) rotate(calc(var(--r) + 9deg)); opacity: 0; }
.home-chapters__text { max-width: 30rem; }
.home-chapters__fade { display: grid; gap: 12px; animation: home-fade-up 320ms var(--home-ease-out); }
.home-chapters__title { font-size: clamp(2rem, 2.2vw + 1rem, 3.25rem); }
.home-chapters__text .home-body { font-size: clamp(1rem, 0.3vw + 0.9rem, 1.125rem); }
.home-chapters__meter { position: absolute; right: clamp(18px, 3vw, 44px); top: 50%; height: min(46svh, 420px); transform: translateY(-50%); width: 12px; }
.home-chapters__track { position: absolute; left: 5px; top: 0; bottom: 0; width: 2px; border-radius: 2px; background: var(--em-rule-strong); overflow: hidden; }
.home-chapters__track i { position: absolute; inset: 0; background: var(--em-gold); transform-origin: 50% 0; transform: scaleY(0); will-change: transform; }
.home-chapters__dot { position: absolute; left: 0; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--em-gold); box-shadow: 0 0 0 4px rgba(201,162,76,0.18); will-change: transform; }
@media (max-width: 960px) {
  .home-chapters__body { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 20px; }
  .home-chapters__fade { justify-items: center; }
}
@media (max-width: 768px) {
  .home-whatif__cols { grid-template-columns: 1fr; }
  .home-voicemail { grid-template-columns: 40px 1fr auto; }
  .home-voicemail__wave { display: none; }
  .home-whatif__col { padding: 24px; }
  .home-ctabar .btn--ghost-light { order: 0; border: 1px solid rgba(246,241,231,0.3); }
}
@media (max-width: 640px) {
  .home-chapters__layout { gap: 16px; padding-block: 16px; }
  .home-chapters__pile { width: min(60vw, 30svh); }
  .home-chapters__meter { right: 10px; height: 34svh; }
  .home-chapters__title { font-size: 1.625rem; }
}
/* Short phones (e.g. 375×667): tighten so the pinned chapter always fits */
@media (max-width: 640px) and (max-height: 700px) {
  .home-chapters__intro .home-lede { display: none; }
  .home-chapters__pile { width: min(56vw, 27svh); }
  .home-chapters__title { font-size: 1.375rem; }
  .home-chapters__text .home-body { font-size: 0.9375rem; }
}
@media (prefers-reduced-motion: reduce) {
  .home-chapters__card { transition: none; }
  .home-chapters__fade { animation: none; }
}
.home-offer { margin: 0; font-size: var(--em-text-sm); color: var(--em-mist); text-shadow: 0 1px 12px rgba(14,11,8,0.6); }
.home-trust__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.home-trust__head { display: grid; gap: 16px; justify-items: start; position: sticky; top: calc(var(--home-head) + 32px); }
.home-trust__head .home-lede { max-width: 26em; }
.home-trust__items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 48px; }
.home-trust__item { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 16px; padding-top: 28px; }
.home-trust__item::before, .home-trust__item::after { content: ""; position: absolute; top: 0; left: 0; height: 1px; transform-origin: 0 50%; }
.home-trust__item::before { right: 0; background: var(--em-rule-strong); }
.home-trust__item::after { width: 48px; background: var(--em-antique-gold); }
.home-trust__item h3 { font-family: var(--em-font-display); font-weight: 600; font-size: 1.1875rem; line-height: 1.3; margin: 6px 0 8px; color: var(--em-fg); }
.home-trust__item .home-body { font-size: 15px; max-width: 36ch; }
.home-trust__icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--em-antique-gold); border: 1px solid var(--em-antique-gold); }
.home-trust__shackle { transform-box: fill-box; transform-origin: 50% 100%; }
@media (prefers-reduced-motion: no-preference) {
  .home-trust__item[data-reveal] { transform: translateY(8px); transition: opacity 520ms var(--home-ease-out), transform 520ms var(--home-ease-out); transition-delay: var(--delay, 0ms); }
  .home-trust__item::before, .home-trust__item::after { transform: scaleX(0); transition: transform 700ms var(--home-ease-out); transition-delay: var(--delay, 0ms); }
  .home-trust__item::after { transition-delay: calc(var(--delay, 0ms) + 120ms); }
  .home-trust__item.is-visible::before, .home-trust__item.is-visible::after { transform: scaleX(1); }
  .home-trust__shackle { transform: translateY(-3px); transition: transform 420ms var(--home-ease-out) calc(var(--delay, 0ms) + 380ms); }
  .home-trust__item.is-visible .home-trust__shackle { transform: none; }
}
@media (max-width: 1024px) {
  .home-trust__grid { grid-template-columns: 1fr; }
  .home-trust__head { position: static; }
}
@media (max-width: 640px) {
  .home-trust__items { grid-template-columns: 1fr; gap: 32px; }
}
.home-chapters--static { height: auto; }
.home-chapters--static .home-chapters__intro { margin-bottom: 40px; }
.home-chapters__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.home-chapters__item { display: grid; gap: 16px; align-content: start; }
.home-polaroid--flat { position: relative; inset: auto; transform: rotate(var(--r)); padding-bottom: 0; }
@media (max-width: 1024px) {
  .home-quotes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .home-quotes { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .home [data-reveal] { transform: none; }
}
@keyframes home-fade-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
