:root {
  --forest: #112920;
  --deep: #0b2019;
  --ink: #21352a;
  --cream: #f7f0e3;
  --gold: #e8c482;
  --ochre: #775528;
  --line: #d6c7ac;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(102px + env(safe-area-inset-top)); }
body { margin: 0; background: var(--cream); color: var(--ink); font: 1rem/1.6 var(--sans); }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
.shell { width: min(100% - 112px, 1220px); margin-inline: auto; }
.skip { position: fixed; z-index: 5; top: .5rem; left: .5rem; background: var(--cream); color: var(--ink); padding: .65rem 1rem; transform: translateY(-150%); }
.skip:focus { transform: none; }
.site-header { position: fixed; inset: calc(16px + env(safe-area-inset-top)) 0 auto; z-index: 4; color: var(--cream); }
.header-inner {
  width: min(100% - 56px, 1480px);
  margin-inline: auto;
  min-height: 70px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.2rem;
  padding: .65rem clamp(1rem, 2.5vw, 2.1rem);
  border: 1px solid #e8c48226;
  border-radius: 16px;
  background: #0a1b15eb;
  box-shadow: 0 8px 32px #07120c22;
  backdrop-filter: blur(14px);
}
.brand-wordmark { display: inline-flex; gap: .45em; align-items: center; font: 600 clamp(1.6rem, 2.6vw, 2.3rem)/1 var(--serif); white-space: nowrap; text-decoration: none; }
.brand-tree { width: 1.2em; height: 1.2em; object-fit: cover; border: 1px solid #e8c48680; border-radius: 50%; }
.brand-legacy { color: var(--gold); font-style: italic; }
nav, .header-actions { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.3rem); }
.header-actions { justify-content: flex-end; }
.site-header [aria-current="page"] { color: var(--gold); }
.header-inner .brand-wordmark { justify-self: center; }
.header-inner .desktop-nav, .header-actions { gap: clamp(.8rem, 1.8vw, 1.6rem); }
nav a { font-size: .86rem; font-weight: 600; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 46px; padding: .68rem 1.2rem; border: 1px solid transparent; border-radius: 999px; font-size: .88rem; font-weight: 700; text-decoration: none; transition: background-color .18s, border-color .18s; }
.header-cta { min-height: 42px; border-color: #e8c4827a; color: var(--gold); }
.header-cta:hover { background: #17392d; border-color: var(--gold); }
.primary { color: #172820; background: var(--gold); }
.primary:hover { background: #f9dca3; }
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); align-items: center; gap: clamp(2rem, 8vw, 7rem); padding-block: clamp(3.5rem, 8vw, 7rem); }
.story h2 { font-size: clamp(4rem, 7vw, 7rem); }
.story-copy > p:not(.eyebrow) { margin-block: 1.2rem; max-width: 29rem; }
.story-cta { border-color: #92784e; }
.story-cta:hover { background: #ebdbc0; }
.features { padding-block: 3.5rem 5rem; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.eyebrow { color: var(--ochre); font-weight: 700; font-size: .73rem; letter-spacing: .15em; text-transform: uppercase; }
h2 { font: 600 clamp(2.75rem, 5vw, 4.3rem)/.9 var(--serif); letter-spacing: -.035em; }
.section-heading h2 { margin-block: .65rem 1.9rem; }
h3 { margin-block: .65rem .4rem; font: 700 1.8rem/1 var(--serif); }
article p { color: #4b5549; font-size: .94rem; line-height: 1.55; }
.closing { background: var(--forest); color: var(--cream); border-bottom: 1px solid #e8c48235; }
.closing-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.3rem; padding-block: 3.8rem; }
.closing .button { flex: none; }
@media (max-width: 840px) {
  .shell { width: calc(100% - 56px); }
  .story { grid-template-columns: 1fr minmax(0, 44%); }
}
@media (max-width: 630px) {
  .shell { width: calc(100% - 36px); }
  .story { grid-template-columns: 1fr; gap: 1.65rem; }
  .features { padding-block: 2.8rem 3.5rem; }
  .closing-inner { align-items: flex-start; flex-direction: column; padding-block: 2.65rem; }
}
@media (max-width: 350px) {
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}

.page-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.35rem; }
.story { border-top: 1px solid var(--line); }
.film { position: relative; width: min(100%, 360px); aspect-ratio: 9 / 16; justify-self: center; background: var(--deep); border: 1px solid #876637; border-radius: 10px; overflow: hidden; box-shadow: 0 12px 30px #11292026; }
.film video { display: block; width: 100%; height: 100%; object-fit: contain; }
.play-film { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); min-height: 58px; padding-inline: 1.45rem; white-space: nowrap; cursor: pointer; box-shadow: 0 4px 25px #0b201980; }
.play-film[hidden] { display: none; }
.film-error { position: absolute; inset: auto 1rem 3rem; color: white; background: var(--deep); text-align: center; padding: .65rem; }
[aria-current="page"] { text-decoration: underline; color: var(--gold); }
.page-intro { background: var(--deep); color: var(--cream); padding-block: 142px 68px; }
.page-intro .eyebrow { color: var(--gold); }
.page-intro h1 { font-size: clamp(3.5rem, 7vw, 6.75rem); max-width: 15ch; margin-block: .65rem 1.2rem; }
.page-intro p:last-child { max-width: 54ch; }
.page-section { padding-block: clamp(3rem, 7vw, 6rem); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding-inline-start: 1.3rem; margin-block: 1.8rem; }
.steps li { padding-inline: .4rem .8rem; }
.steps li::marker { color: var(--ochre); font-weight: 700; }
.plan-grid, .testimonial-grid { display: grid; gap: 1rem; }
.plan-grid { grid-template-columns: repeat(3, 1fr); margin-block: 1.65rem; }
.testimonial-grid { grid-template-columns: repeat(2, 1fr); }
.plan { border: 1px solid var(--line); padding: clamp(1.2rem, 2.75vw, 2rem); border-radius: 6px; background: #fffaf1; }
.plan h2 { font-size: clamp(2.4rem, 4vw, 3.3rem); }
.plan h3 { margin-top: 0; }
.plan .plan-price { font: 700 3.25rem/1.2 var(--serif); color: var(--ink); margin-top: .75rem; }
.plan-price span { font: 600 .85rem/1 var(--sans); }
.plan ul { padding-inline-start: 1.2rem; margin-bottom: 0; }
.plan li + li { margin-top: .45rem; }
.testimonial-grid p, .pricing-note { margin-block: .85rem; max-width: 64ch; }
@media (max-width: 690px) {
  .plan-grid, .testimonial-grid, .steps { grid-template-columns: 1fr; }
  .steps { gap: .8rem; }
}
@media (max-width: 630px) {
  .film { width: min(100%, 330px); }
  .page-intro { padding-block: calc(100px + env(safe-area-inset-top)) 45px; }
  .page-intro h1 { font-size: clamp(3rem, 12vw, 4.2rem); }
}

.mobile-menu, .mobile-home { display: none; }
@media (max-width: 800px) {
  html { scroll-padding-top: calc(76px + env(safe-area-inset-top)); }
  .site-header { inset-block-start: calc(8px + env(safe-area-inset-top)); }
  .header-inner {
    width: calc(100% - 24px);
    min-height: 56px;
    grid-template-columns: 1fr auto auto;
    gap: .4rem;
    padding: .3rem .55rem;
    border-radius: 13px;
  }
  .header-inner .desktop-nav, .header-inner .brand-name { display: none; }
  .header-inner .brand-wordmark { justify-self: start; min-height: 44px; gap: .5rem; font: 600 .85rem/1 var(--sans); }
  .header-inner .brand-tree { width: 26px; height: 26px; }
  .mobile-home, .mobile-menu { display: block; }
  .mobile-menu { position: relative; }
  .mobile-menu summary {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-inline: .65rem;
    font-size: .84rem;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
  }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
  .mobile-menu nav {
    position: absolute;
    inset: calc(100% + .55rem) 0 auto auto;
    display: grid;
    gap: 0;
    min-width: 168px;
    padding: .35rem;
    border: 1px solid #e8c48261;
    border-radius: 10px;
    background: var(--deep);
    box-shadow: 0 8px 24px #0b201959;
  }
  .mobile-menu nav a { display: flex; align-items: center; min-height: 44px; padding-inline: .7rem; }
  .header-cta { min-height: 44px; padding-inline: .75rem; white-space: nowrap; }
}

/* Shared content styles for the pages below the main hero. */
:root {
  --surface: #fffdf8;
  --surface-muted: #efe6d4;
  --ui-border: #d9cdb8;
  --ui-shadow: 0 10px 28px #23362a0c;
}
.inner-page .site-header .header-inner { background: #0b2019f5; }
.inner-page .page-intro {
  padding-block: 140px clamp(2.25rem, 5vw, 4.75rem);
  color: var(--ink);
  background: #efe7d7;
  border-bottom: 1px solid var(--ui-border);
}
.page-intro .eyebrow { color: var(--ochre); }
.page-intro h1 {
  max-width: 19ch;
  margin-block: .6rem .85rem;
  font: 700 clamp(2.3rem, 5.4vw, 4.5rem)/1.05 var(--sans);
  letter-spacing: -.055em;
  text-shadow: none;
}
.page-intro p:not(.eyebrow) { max-width: 57ch; color: #445148; }
.page-intro .page-actions { margin-top: 1.4rem; }
.inner-page h2, .inner-page h3 {
  font-family: var(--sans);
  line-height: 1.12;
  letter-spacing: -.035em;
}
.inner-page h2 { font-size: clamp(1.65rem, 3vw, 2.6rem); }
.inner-page h3 { font-size: 1.2rem; }
.inner-page .button, .home-page main .button {
  border-radius: 10px;
}
.inner-page .primary, .home-intro .primary {
  color: var(--cream);
  background: var(--forest);
}
.inner-page .primary:hover, .home-intro .primary:hover { background: #29493a; }
.inner-page .closing .primary {
  color: var(--deep);
  background: var(--gold);
}
.inner-page .closing .primary:hover { background: #f9dca3; }
.steps { counter-reset: step; padding: 0; list-style: none; }
.steps li, .plan, .account-note {
  background: var(--surface);
  border: 1px solid var(--ui-border);
  border-radius: 16px;
  box-shadow: var(--ui-shadow);
}
.steps li { counter-increment: step; padding: clamp(1.1rem, 2.5vw, 1.8rem); }
.steps li::before {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 9px;
  color: var(--forest);
  background: #e9dfca;
  content: counter(step);
  font-weight: 700;
}
.steps li h3 { margin-block: .95rem .45rem; }
.steps li p { color: #4b5549; }
.plan-family { border-color: #8a6b39; background: #fff9ec; }
.plan .plan-price { font: 700 clamp(2.35rem, 4vw, 3.25rem)/1.2 var(--sans); letter-spacing: -.06em; }
.plan-price span { letter-spacing: normal; }
.plan ul { border-top: 1px solid var(--ui-border); padding-top: .85rem; }
.account-note { display: grid; gap: .7rem; padding: 1rem 1.25rem; background: var(--surface-muted); }
.account-note strong { display: block; color: var(--ink); }
.testimonial-grid article { display: flex; flex-direction: column; align-items: flex-start; }
.testimonial-grid article .button { margin-top: auto; }
.testimonial-grid p { margin-bottom: 1.3rem; }
@media (max-width: 800px) {
  .inner-page .page-intro { padding-top: calc(94px + env(safe-area-inset-top)); }
}


.home-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  min-height: max(650px, 94svh);
  background: var(--deep);
  color: var(--cream);
}
.home-intro::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -22px;
  background: linear-gradient(105deg, #102a21c9, #142b20ad), url("tree.jpg") 22% center / cover;
  filter: blur(15px);
}
.home-hero-media { position: absolute; z-index: -1; inset: 0 0 0 41%; }
.home-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #142a235c, transparent 13%), linear-gradient(0deg, #142a2352, transparent 23%);
}
.home-tree { width: 100%; height: 100%; object-fit: cover; object-position: 53% center; }
.home-intro-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: 2rem;
  align-items: end;
  padding-block: 7rem clamp(1.75rem, 5vw, 4.5rem);
}
.home-intro h1 {
  max-width: 12ch;
  font: 600 clamp(3.5rem, 5.9vw, 6.5rem)/.9 var(--serif);
  letter-spacing: -.04em;
  text-wrap: balance;
}
.home-intro-copy > p { max-width: 38ch; margin-top: 1.05rem; color: #fbf1e0; }
.home-page .home-intro .button { border-radius: 999px; }
.home-page .home-intro .primary { color: var(--deep); background: var(--cream); }
.home-page .home-intro .primary:hover { background: var(--gold); }
.home-intro .story-cta { color: var(--cream); border-color: #fff3d99e; }
.home-intro .story-cta:hover { background: #ffffff26; }
.home-page h2 { font: 600 clamp(2.6rem, 5vw, 4.8rem)/.98 var(--serif); letter-spacing: -.035em; }
.home-page .story { grid-template-columns: minmax(0, 1fr) minmax(0, 390px); margin-block: clamp(1.65rem, 5vw, 4.5rem); padding: clamp(1.3rem, 4vw, 3.75rem); background: var(--surface); border: 1px solid var(--ui-border); border-radius: 16px; }
.home-page .story h2 { margin-top: .55rem; }
.home-page .story .film { width: min(100%, 360px); }
.home-page .features { border-top: 0; padding-top: 0; }
.inner-page .page-intro h1 { font-family: var(--serif); font-weight: 600; letter-spacing: -.035em; }
@media (max-width: 630px) {
  .home-intro { min-height: 0; }
  .home-hero-media { inset: 0 0 auto; height: clamp(300px, 108vw, 500px); }
  .home-hero-media::after { background: linear-gradient(0deg, #172b22, transparent 26%); }
  .home-intro-inner {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    padding-block: clamp(288px, 103vw, 475px) 1.65rem;
  }
  .home-intro h1 { font-size: clamp(3.2rem, 12vw, 4.5rem); }
  }

.home-hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 46%;
  opacity: 0;
  transition: opacity .35s ease;
}
.home-hero-media video.is-playing { opacity: 1; }
.home-hero-media:has(video.is-playing)::after { opacity: .55; }
@media (prefers-reduced-motion: reduce) {
  .home-hero-media video { transition: none; }
}

.home-page .closing-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: center;
  gap: clamp(1.5rem, 6vw, 5rem);
  padding-block: clamp(1.8rem, 5vw, 4.25rem);
}
.closing-tree {
  width: 100%;
  height: auto;
  border: 1px solid #e8c48252;
  border-radius: 16px;
}
.closing-copy .button { margin-top: 1.15rem; }
@media (max-width: 800px) {
  .home-page .story { grid-template-columns: minmax(0, 1fr) minmax(0, 48%); }
}
@media (max-width: 630px) {
  .home-page .story, .home-page .closing-inner { grid-template-columns: 1fr; }
  .home-page .story .film { width: min(100%, 330px); }
}

/* The walkthrough follows the page scroll, with one full-height visual stage. */
.home-page .features { padding-bottom: 0; }
.features .section-heading { padding-block: clamp(2rem, 5vw, 4.5rem); }
.features .section-heading h2 { margin: 0; }
.feature-scroll {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: var(--deep);
  color: var(--cream);
}
.feature-stage, .feature-steps { grid-area: 1 / 1; }
.feature-stage {
  position: sticky;
  top: 0;
  align-self: start;
  display: grid;
  grid-template: minmax(0, 1fr) auto / 56% 1fr;
  gap: .85rem 0;
  height: 100svh;
  padding: clamp(5rem, 12svh, 7rem) clamp(1.3rem, 5vw, 5rem) clamp(1.3rem, 4vh, 3rem);
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(ellipse at 25% 35%, #2d4a36, var(--deep) 75%);
}
.feature-topology { position: absolute; inset: 0; z-index: -1; opacity: .72; pointer-events: none; }
.feature-visuals { position: relative; grid-column: 1; overflow: hidden; border: 1px solid #e8c48254; border-radius: 17px; }
.feature-visual { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s ease; }
.feature-visual.is-current { opacity: 1; }
.feature-caption { grid-column: 1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .85rem; font-weight: 600; }
.feature-count { color: var(--gold); font-variant-numeric: tabular-nums; }
.feature-steps { z-index: 1; justify-self: end; width: 41%; padding-inline-end: clamp(1rem, 5vw, 5rem); }
.feature-step {
  display: grid;
  align-content: center;
  min-height: 100svh;
  padding: 5.25rem clamp(1.25rem, 4.25vw, 4rem) 3rem;
  border-inline-start: 1px solid #e8c48255;
}
.feature-step.is-current { border-inline-start-color: var(--gold); }
.feature-step h3 { margin: 0 0 .85rem; font: 600 clamp(2.7rem, 5.8vw, 6.5rem)/.94 var(--serif); text-wrap: balance; }
.feature-step p { max-width: 33ch; color: #f4ead7; font-size: clamp(1rem, 1.5vw, 1.22rem); }
@media (max-width: 720px) {
  .feature-scroll { gap: 0; }
  .feature-stage, .feature-steps { grid-area: auto; }
  .feature-stage {
    z-index: 2;
    top: 0;
    grid-template-columns: 1fr;
    height: clamp(210px, 44svh, 395px);
    gap: .55rem;
    padding: calc(70px + env(safe-area-inset-top)) 18px .75rem;
  }
  .feature-visuals { border-radius: 11px; }
  .feature-steps { width: 100%; padding: 0 18px 1.5rem; }
  .feature-step { min-height: 54svh; padding: 2rem 1rem; scroll-margin-top: calc(clamp(210px, 44svh, 395px) - 60px); }
  .feature-step h3 { font-size: clamp(2.6rem, 11vw, 4rem); }
}
@media (prefers-reduced-motion: reduce) {
  .feature-visual { transition: none; }
}

.home-opening { position: relative; isolation: isolate; }
.home-opening .home-intro { position: sticky; top: 0; }
.home-reveal {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  min-height: clamp(390px, 70svh, 680px);
  padding-block: 4.5rem;
  color: var(--cream);
  background: #10261eea;
  backdrop-filter: blur(22px);
}
.home-reveal-inner {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 7vw, 6rem);
  align-items: start;
}
.home-reveal-inner p {
  max-width: 26ch;
  font: 600 clamp(1.65rem, 3.25vw, 3.1rem)/1.08 var(--serif);
}
.home-reveal .story-cta { margin-top: 1.5rem; border-color: #fff3d99e; }
.home-reveal .story-cta:hover { background: #ffffff26; }
@media (max-width: 767px) {
  .home-opening .home-intro { position: relative; }
  .home-reveal { min-height: 0; padding-block: 3.2rem; backdrop-filter: none; }
  .home-reveal-inner { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .home-opening .home-intro { position: relative; }
  .home-reveal { backdrop-filter: none; }
}

.hero-motion-backdrop {
  position: absolute;
  z-index: -2;
  inset: -24px;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  object-fit: cover;
  object-position: center 46%;
  filter: blur(26px) brightness(.43) saturate(.85);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.home-intro.has-motion-backdrop .hero-motion-backdrop { opacity: 1; }
.home-intro-copy { position: relative; }
.home-intro h1 { text-shadow: 0 2px 22px #0b201972; }
.home-intro .page-actions { gap: .65rem; }
@media (max-width: 630px) {
  .home-hero-media { height: clamp(255px, 90vw, 445px); }
  .home-hero-media video { object-position: center 43%; }
  .home-hero-media::after { background: linear-gradient(0deg, #132b21 0%, transparent 35%); }
  .home-hero-media:has(video.is-playing)::after { opacity: .86; }
  .home-intro-inner { padding-top: clamp(233px, 83vw, 418px); }
  .home-intro h1 { max-width: 13ch; font-size: clamp(3rem, 11.5vw, 4.3rem); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-motion-backdrop { transition: none; }
}

/* One scroll sequence from the opening footage to the tree. */
.home-opening .home-intro { top: var(--hero-stick-top, 0px); }
.home-reveal {
  background: linear-gradient(180deg, #10261ecf, #132a21f0 58%, #172e24);
}
.film-section {
  background: linear-gradient(180deg, #172e24 0%, #d9dfd0 44%, #ece7d8 100%);
  padding-block: clamp(2.5rem, 8vw, 7.5rem) clamp(2rem, 5vw, 4.5rem);
}
.home-page .film-section .story {
  margin-block: 0;
  background: #fffdf5;
  border-color: #fff8;
  box-shadow: 0 18px 45px #10261e18;
}
.home-page .features {
  background: linear-gradient(180deg, #ece7d8 0%, #d9dfd0 9rem, #b8c6b3 13rem, var(--deep) 16rem);
}
.features .section-heading { padding-block: clamp(2.25rem, 6vw, 5.25rem); }
.feature-stage {
  background: radial-gradient(ellipse at 25% 35%, #2d4a36, var(--deep) 75%);
}
.home-page .closing {
  background: radial-gradient(ellipse at 24% 75%, #3b3c23, transparent 55%),
    linear-gradient(180deg, var(--deep), #192e22 34%, #14291f);
}
.home-page .closing-inner { min-height: min(680px, 80svh); }
.closing-tree { box-shadow: 0 24px 60px #08150eb0; }
[data-scroll-reveal] {
  opacity: calc(.74 + var(--scroll-reveal, 1) * .26);
  transform: translateY(calc((1 - var(--scroll-reveal, 1)) * 30px));
}
@media (max-width: 767px) {
  .home-opening .home-intro { position: sticky; }
  .home-reveal { background: linear-gradient(180deg, #10261ee6, #172e24); }
  .home-page .closing-inner { min-height: 0; }
  [data-scroll-reveal] { transform: translateY(calc((1 - var(--scroll-reveal, 1)) * 17px)); }
}
@media (prefers-reduced-motion: reduce) {
  .home-opening .home-intro { position: relative; top: auto; }
  [data-scroll-reveal] { opacity: 1; transform: none; }
}

.home-intro.has-motion-backdrop .home-hero-media {
  mask-image: linear-gradient(90deg, transparent, #000 13%);
}
.home-intro.has-motion-backdrop .home-hero-media::after { opacity: 0; }
.hero-motion-backdrop {
  filter: blur(32px) brightness(.42) saturate(.86);
}
@media (max-width: 630px) {
  .home-intro.has-motion-backdrop .home-hero-media {
    mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  }
}

.feature-illustration {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  background: var(--cream);
}
.memory-preview {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  width: 100%;
  height: 100%;
  color: var(--ink);
}
.memory-entry {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 33%) minmax(0, 1fr);
  align-items: center;
  min-height: 0;
}
.memory-entry + .memory-entry { border-top: 1px solid var(--ui-border); }
.memory-entry img { width: 100%; height: 100%; min-height: 0; object-fit: contain; background: #e8deca; }
.memory-preview-copy { padding: clamp(.7rem, 2.4vw, 1.4rem); }
.memory-preview-copy > span { color: var(--ochre); font-size: clamp(.65rem, 1vw, .8rem); font-weight: 700; }
.memory-preview-copy strong { display: block; margin-block: .25rem .55rem; font: 700 clamp(1.35rem, 3.2vw, 2.5rem)/.98 var(--serif); }
.memory-waveform {
  width: 100%;
  height: clamp(14px, 2.8vw, 30px);
  background: repeating-linear-gradient(90deg, var(--ochre) 0 2px, transparent 2px 6px);
  clip-path: polygon(0 42%, 8% 30%, 16% 46%, 24% 15%, 32% 5%, 40% 26%, 48% 40%, 56% 18%, 64% 0, 72% 27%, 80% 38%, 88% 15%, 96% 37%, 100% 45%, 100% 55%, 96% 63%, 88% 85%, 80% 62%, 72% 73%, 64% 100%, 56% 82%, 48% 60%, 40% 74%, 32% 95%, 24% 85%, 16% 54%, 8% 70%, 0 58%);
}

.example-card {
  display: grid;
  align-content: center;
  width: 100%;
  height: 100%;
  padding: clamp(1rem, 6vw, 4.25rem);
  background: var(--cream);
  color: var(--ink);
}
.example-heading { display: flex; align-items: center; gap: .65rem; }
.example-card strong { font: 700 clamp(1.35rem, 3vw, 2.35rem)/1 var(--serif); }
.example-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: clamp(28px, 4.5vw, 44px);
  aspect-ratio: 1;
  border-radius: 8px;
  background: #e9dec5;
  color: var(--ochre);
}
.example-icon svg { width: 60%; height: 60%; }
.vault-files {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(.6rem, 3vw, 1.75rem);
  list-style: none;
  padding: 0;
  margin: .65rem 0 0;
}
.vault-files li {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .42rem 0;
  border-top: 1px solid var(--ui-border);
  font-size: clamp(.72rem, 1.3vw, .94rem);
}
.vault-files li::before {
  content: "";
  flex: none;
  width: .52rem;
  height: .65rem;
  border: 1px solid var(--ochre);
  border-radius: 2px;
}
.message-preview .example-heading { justify-content: space-between; margin-bottom: .65rem; }
.message-preview strong { display: block; }
.message-status { background: #e9dec5; border-radius: 999px; padding: .22rem .55rem; color: var(--ochre); font-size: .72rem; font-weight: 700; }
.message-note { display: block; margin-top: .45rem; font-size: clamp(.72rem, 1.3vw, .94rem); }
@media (max-width: 720px) and (max-height: 640px) {
  .example-card { padding: .55rem .7rem; }
  .vault-files { margin-top: .4rem; }
  .vault-files li { padding-block: .22rem; }
  .message-preview .example-heading { margin-bottom: .4rem; }
}

.site-footer { background: var(--deep); color: var(--gold); }
.footer-inner { container-type: inline-size; }
.footer-top, .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem 1.4rem;
  padding-block: clamp(1.1rem, 3vw, 2.6rem);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.footer-top nav { flex-wrap: wrap; gap: .2rem clamp(1rem, 2.4vw, 2rem); }
.footer-top a, .footer-bottom a { text-decoration: none; }
.footer-top nav a { font-size: inherit; }
.footer-top a:hover, .footer-bottom a:hover { text-decoration: underline; }
.footer-signup { flex: none; }
.footer-wordmark {
  display: flex;
  justify-content: center;
  gap: .2em;
  padding-block: .33em .42em;
  border-block: 1px solid #e8c48247;
  color: var(--gold);
  font-size: clamp(1.7rem, 12cqi, 9.5rem);
  letter-spacing: -.045em;
}
.footer-wordmark .brand-tree { width: .78em; height: .78em; flex: none; }
.footer-bottom { display: grid; grid-template-columns: 1fr auto 1fr; }
.footer-bottom a:last-child { justify-self: end; }
@media (max-width: 630px) {
  .footer-top { align-items: flex-start; }
  .footer-top nav a, .footer-signup, .footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-top, .footer-bottom { font-size: .68rem; }
  .footer-bottom { grid-template-columns: repeat(2, max-content); justify-content: space-between; }
  .footer-bottom span { grid-column: 1 / -1; }
}

.feature-tree-link { justify-self: start; margin-top: .8rem; padding-block: .3rem; color: var(--gold); font-size: .85rem; font-weight: 600; }

.feature-tree-art {
  display: grid;
  place-items: center;
  container-type: inline-size;
  background: #f1e9db;
  color: var(--ink);
}
.tree-example { width: 100%; padding: clamp(.35rem, 3cqi, 1.6rem); }
.tree-example-label {
  margin-bottom: clamp(.25rem, 2cqi, .9rem);
  text-align: center;
  font: 700 clamp(.9rem, 4cqi, 1.8rem)/1 var(--serif);
}
.tree-diagram {
  --tree-line: #8a754f;
  --tree-gap: clamp(.48rem, 4cqi, 2.1rem);
  display: grid;
  gap: var(--tree-gap);
  text-align: center;
}
.tree-grandparents, .tree-parents, .tree-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tree-grandparents { gap: 4%; }
.tree-pair, .tree-parents { position: relative; justify-items: center; }
.tree-pair::before, .tree-parents::before {
  content: "";
  position: absolute;
  top: 35%;
  left: 25%;
  right: 25%;
  border-top: 1px dashed var(--tree-line);
}
.tree-pair::after, .tree-parents::after {
  content: "";
  position: absolute;
  top: 35%;
  bottom: calc(-1 * var(--tree-gap));
  left: 50%;
  border-left: 1px dashed var(--tree-line);
}
.tree-child { display: grid; justify-items: center; }
.tree-person {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: .18em;
  width: min(91%, clamp(44px, 16cqi, 130px));
  padding: .32em .2em .46em;
  border: 1px solid #cba763;
  border-radius: 1.5em;
  background: #214438;
  color: var(--cream);
  font: 600 clamp(.53rem, 2.45cqi, 1.12rem)/1.08 var(--serif);
}
.tree-portrait {
  display: grid;
  place-items: center;
  width: clamp(19px, 7.8cqi, 66px);
  aspect-ratio: 1;
  border: 1px solid #d5b575;
  border-radius: 50%;
  color: var(--gold);
  background-color: #35594b;
  background-image: url("assets/rivera-brooks-portraits.jpg");
  background-size: 400% 200%;
  background-position: var(--portrait-x) var(--portrait-y);
  font-size: 0;
}
.tree-person small { color: #f5dfb3; font-size: .76em; }
.tree-full { max-width: 850px; padding-block: 2.5rem 3.5rem; }
.tree-full h1 { margin-block: 1.3rem .45rem; font: 600 clamp(2.3rem, 6vw, 4.7rem)/1 var(--serif); }
.tree-full .tree-example { container-type: inline-size; margin-top: 1.3rem; background: #f1e9db; border: 1px solid var(--ui-border); border-radius: 16px; padding: clamp(.65rem, 3vw, 2rem); }
@media (max-width: 720px) and (max-height: 640px) {
  .feature-tree-art .tree-example-label, .feature-tree-art .tree-person small { display: none; }
  .feature-tree-art .tree-diagram { --tree-gap: .4rem; }
}
@media (max-width: 720px) and (max-height: 640px) {
  .feature-tree-art .tree-example { padding: .2rem; }
  .feature-tree-art .tree-person { gap: .1em; padding: .2em .12em .28em; }
  .feature-tree-art .tree-portrait { width: 17px; }
}

/* Keep the illustration and its frame proportional as the viewport grows. */
@media (min-width: 721px) {
  .feature-stage {
    grid-template-rows: minmax(0, min(58svh, 460px)) auto;
    align-content: center;
  }
  .feature-visuals { container-type: size; }
  .feature-tree-art { container-type: size; }
  .feature-tree-art .tree-example { padding: clamp(.35rem, 3cqh, 1.25rem); }
  .feature-tree-art .tree-diagram { --tree-gap: clamp(.45rem, 4cqh, 1.4rem); }
  .feature-tree-art .tree-portrait { width: clamp(19px, min(7.2cqw, 11cqh), 48px); }
  .feature-tree-art .tree-person { font-size: clamp(.56rem, min(2.4cqw, 3.4cqh), .94rem); }
}
@media (max-width: 720px) and (max-height: 640px) {
  .feature-tree-art .tree-person { font-size: .5rem; }
  .feature-tree-art .tree-portrait { width: 15px; }
  .feature-tree-art .tree-diagram { --tree-gap: .28rem; }
}

.film-example {
  display: grid;
  grid-template-columns: minmax(0, .52fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.4rem, 5vw, 4rem);
  margin-bottom: clamp(2.75rem, 7vw, 5.5rem);
  padding: clamp(1.2rem, 4vw, 3rem);
  border: 1px solid var(--ui-border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--ui-shadow);
}
.film-example img {
  justify-self: center;
  width: min(100%, 225px);
  height: auto;
  border-radius: 10px;
}
.film-example-copy { max-width: 56ch; }
.film-example-copy h2 { margin-block: .45rem .9rem; }
.film-example-copy p + p { margin-top: .8rem; }
.film-example-copy .button { margin-top: 1.2rem; }
@media (max-width: 630px) {
  .film-example { grid-template-columns: 1fr; }
  .film-example img { grid-row: 2; width: min(100%, 175px); }
}

@media (max-width: 720px) {
  .memory-entry { grid-template-columns: minmax(0, 28%) minmax(0, 1fr); }
  .memory-preview-copy { padding: .35rem .6rem; }
  .memory-preview-copy > span { display: block; line-height: 1.1; }
  .memory-preview-copy strong { font-size: clamp(1rem, 4.4vw, 1.65rem); margin-block: .2rem; }
  .memory-waveform { height: 10px; }
}
@media (max-width: 720px) and (max-height: 640px) {
  .vault-preview { padding: .38rem .65rem; }
  .vault-files { margin-top: .28rem; }
  .vault-files li { gap: .3rem; padding-block: .2rem; font-size: .67rem; line-height: 1.15; }
}

.feature-topology {
  mask-image: linear-gradient(to bottom, #000 68%, #0009 85%, transparent);
}
.feature-stage {
  background: linear-gradient(transparent 60%, var(--deep)), radial-gradient(ellipse at 25% 27%, #2d4a36, var(--deep) 72%);
}
.home-page .closing {
  border-bottom: 0;
  background: radial-gradient(ellipse 55% 37% at 24% 61%, #3b3c23, transparent),
    linear-gradient(180deg, var(--deep), #192e22 45%, var(--deep));
}

.scheduled-examples { list-style: none; margin: 0; padding: 0; }
.scheduled-examples li {
  padding-block: .45rem;
  border-top: 1px solid var(--ui-border);
  font: 700 clamp(1.12rem, 2.75vw, 2.25rem)/1.1 var(--serif);
}
@media (max-width: 720px) and (max-height: 640px) {
  .message-preview { padding: .35rem .65rem; }
  .scheduled-examples li { padding-block: .21rem; font-size: 1rem; }
}
.home-faq { color: var(--ink); }
.home-faq h2 { margin-bottom: 1.2rem; }
.home-faq details { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.home-faq summary { font-weight: 700; cursor: pointer; }
.home-faq details p { max-width: 68ch; margin-top: .55rem; }
.steps li p + p { margin-top: .6rem; }
.billing-choice, .demo-tabs { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; }
.billing-choice { padding: .65rem 1rem; border: 1px solid var(--ui-border); border-radius: 10px; }
.billing-choice legend { padding-inline: .35rem; font-weight: 700; }
.billing-choice input, #demo-sharing input[type="checkbox"] { accent-color: var(--forest); }
.plan-select { margin-top: 1rem; cursor: pointer; }
.plan-price strong { font-weight: inherit; }
.comparison-title { margin-top: 2rem; }
.comparison-table { overflow-x: auto; margin-block: 1rem 1.5rem; }
.comparison-table table { width: 100%; border-collapse: collapse; text-align: left; background: var(--surface); }
.comparison-table th, .comparison-table td { padding: .65rem; border-bottom: 1px solid var(--ui-border); }
.plan-dialog { width: min(100% - 2rem, 520px); padding: 1.5rem; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: var(--cream); }
.plan-dialog::backdrop { background: #081912b5; }
.plan-dialog p { margin-top: .7rem; }
.plan-dialog button:disabled { opacity: .55; }
.industry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); gap: .85rem; margin-block: 1.4rem 2rem; }
.demo-tabs { margin-bottom: 1rem; }
.demo-tabs button { cursor: pointer; }
.demo-tabs [aria-pressed="true"] { background: var(--forest); color: var(--cream); }
.demo-panel > p, .demo-panel > a, #demo-recording > p, #demo-recording > a { margin-block: .65rem; }
.demo-panel [hidden] { display: none; }
#demo-sharing { display: grid; gap: .65rem; max-width: 32rem; margin-top: .8rem; }
#demo-sharing fieldset { display: flex; flex-wrap: wrap; gap: .5rem 1rem; border: 1px solid var(--line); border-radius: 8px; }
#demo-sharing input:not([type="checkbox"]) { display: block; width: 100%; padding: .55rem; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
#demo-sharing button { justify-self: start; cursor: pointer; }
.policy-summary h2 { margin-top: 1.4rem; }
.policy-summary li + li { margin-top: .6rem; }

.policy-intro h1 { max-width: 24ch; }
.policy-layout { display: grid; grid-template-columns: minmax(10rem, .28fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.policy-contents { position: sticky; top: 7rem; display: grid; align-content: start; gap: .6rem; padding: 1rem 0; border-top: 1px solid var(--ui-border); }
.policy-contents p { font-weight: 700; }
.policy-contents a { color: var(--ochre); }
.policy-document { min-width: 0; padding: clamp(1.1rem, 3.6vw, 3.25rem); background: var(--surface); border: 1px solid var(--ui-border); border-radius: 16px; box-shadow: var(--ui-shadow); }
.policy-section + .policy-section { border-top: 1px solid var(--ui-border); margin-top: 2rem; padding-top: 2rem; }
.policy-section h2 { margin: .35rem 0 .9rem; }
.policy-section h3 { margin: 1rem 0 .6rem; }
.policy-section p + p, .policy-section li + li { margin-top: .6rem; }
.policy-section ul, .policy-section ol { padding-inline-start: 1.3rem; }
.policy-section table { min-width: 540px; }
.policy-section table th, .policy-section table td { vertical-align: top; }
.policy-section table ul { margin-block: 0; }
.policy-source { display: inline-block; margin-top: 1.25rem; color: var(--ochre); font-weight: 600; }
@media (max-width: 760px) {
  .policy-layout { grid-template-columns: minmax(0, 1fr); }
  .policy-contents { position: static; padding-block: .5rem; }
  .policy-contents a { padding-block: .2rem; }
}

.industry-choice {
  display: grid;
  align-content: start;
  gap: .45rem;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.industry-choice strong { font-size: 1.1rem; }
.industry-choice[aria-pressed="true"] { border-color: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); }
.intake-panel { max-width: 52rem; margin-inline: auto; scroll-margin-top: 6rem; }
.intake-panel > p, #intake-review > p { margin-block: .6rem; }
.intake-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.intake-form label { display: grid; gap: .35rem; font-weight: 600; }
.intake-form label[hidden] { display: none; }
.intake-form .intake-check { display: flex; align-items: center; align-self: end; min-height: 44px; }
.intake-wide { grid-column: 1 / -1; }
.intake-form input:not([type="checkbox"]), .intake-form select, .intake-form textarea, #intake-details {
  width: 100%;
  min-height: 44px;
  padding: .55rem .7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  color: var(--forest);
  font: inherit;
  font-weight: 400;
}

.intake-form input[type="checkbox"] { accent-color: var(--forest); }
.intake-form button, #intake-review button, .demo-panel button { cursor: pointer; }
#intake-review { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
#intake-review .page-actions, .intake-form .page-actions { flex-wrap: wrap; }
.demo-panel[hidden] { display: none; }
.demo-film { display: block; max-width: 42rem; width: 100%; max-height: 65svh; margin: 1rem 0; border-radius: 12px; background: var(--forest); }
.demo-chart { display: grid; gap: 1.25rem; margin-top: 1rem; padding: clamp(.5rem, 3vw, 2rem); border-radius: 16px; background: var(--cream); }
.demo-generation { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.demo-generation + .demo-generation::before {
  content: "";
  position: absolute;
  top: -1.25rem;
  left: 50%;
  height: 1.25rem;
  border-left: 1px solid var(--forest);
}

.demo-person {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: .45rem;
  width: min(8.25rem, 100%);
  padding: .65rem .45rem;
  border: 1px solid var(--gold);
  border-radius: 16px;
  background: var(--forest);
  color: var(--cream);
  font: inherit;
  overflow-wrap: anywhere;
}

.demo-portrait {
  display: grid;
  place-items: center;
  width: 3rem;
  aspect-ratio: 1;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
}
.demo-portrait-photo { background: url("assets/rivera-brooks-portraits.jpg") no-repeat; background-size: 400% 200%; }
#demo-profile { width: min(32rem, calc(100% - 2rem)); padding: 1.25rem; border: 1px solid var(--line); border-radius: 16px; color: var(--forest); background: var(--cream); }
#demo-profile::backdrop { background: rgb(11 32 25 / .75); }

@media (max-width: 560px) {
  .intake-form { grid-template-columns: minmax(0, 1fr); }
}
