/* A slow breeze: only the illustration moves; faces and controls stay still. */
.tree-art { transform: translate(var(--tree-drift-x, 0px), var(--tree-drift-y, 0px)); transition: transform 1.2s ease-out; pointer-events: none; }
.tree-art img { transform-origin: 51% 86%; animation: tree-breeze 16s ease-in-out infinite; }
@keyframes tree-breeze {
  0%, 100% { transform: rotate(-.55deg) scale(1); }
  40% { transform: rotate(.65deg) scale(1.012, 1.004); }
  75% { transform: rotate(-.15deg) scale(1.004, 1.008); }
}
.tree-stage.motion-paused .tree-art img { animation-play-state: paused; }
.tree-stage.motion-paused .tree-art { transform: none; }
.tree-caption { position: absolute; left: 4%; right: 4%; bottom: -8px; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px 18px; }
.tree-caption .tree-hint { position: static; font-size: 13px; }
.motion-toggle { min-height: 44px; padding: 6px 12px; font-size: 12px; border: 1px solid var(--line); border-radius: 30px; color: var(--muted); }
.motion-toggle[hidden] { display: none; }
.motion-toggle:hover { border-color: var(--green); }
@media(max-width:767px) {
  .tree-caption { position: relative; inset: auto; order: 1; margin: 0 0 24px; gap: 4px 12px; }
  .tree-caption .tree-hint { margin: 0; }
  .tree-art img { animation-duration: 19s; }
}
@media(prefers-reduced-motion:reduce) {
  .tree-art { transform: none !important; transition: none !important; }
  .tree-art img { animation: none !important; }
}

/* Warm editorial typography with cleaner, contemporary controls. */
:root { --radius-control: 999px; --radius-surface: 18px; }
html { scroll-padding-top: 120px; -webkit-text-size-adjust: 100%; }
.header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid #DDD7C970; }
.header nav a { position: relative; padding-block: 10px; }
.header nav a::after { content: ''; position: absolute; height: 1px; background: var(--green); bottom: 5px; left: 0; right: 0; transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.header nav a:hover::after, .header nav a:focus-visible::after { transform: scaleX(1); }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .2em; }
.eyebrow::before { content: ''; flex: 0 0 22px; height: 1px; background: currentColor; opacity: .7; }
.intro h1 { letter-spacing: -.045em; font-weight: 500; }
.intro-copy { color: var(--muted); }
.solid-button { border-radius: var(--radius-control); padding: 10px 12px 10px 24px; gap: 26px; min-height: 52px; transition: background .4s ease, box-shadow .4s ease; }
.solid-button > span { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 1px solid #FEFAF150; border-radius: 50%; font-size: 18px; transition: transform .4s ease; }
.solid-button:hover > span { transform: rotate(8deg); }
.solid-button:not(:has(> span)) { padding-inline: 26px; }
.explore-link { gap: 24px; padding-bottom: 8px; }
.explore-link > span, .read-story > span { transition: transform .4s ease; }
.explore-link:hover > span, .featured:hover .read-story > span { transform: translate(2px, -2px); }
.story-preview { border: 1px solid var(--line); border-radius: var(--radius-surface); padding: 25px 26px; background: #FFFFFF30; scroll-margin-top: 120px; }
.featured blockquote { font-size: clamp(24px,2vw,29px); }
.play-button { border-radius: var(--radius-control); padding-inline: 17px; transition: background .35s ease; }
.play-button:hover:not(:disabled) { background: var(--ink); }
.circle-button { transition: background .35s ease, border-color .35s ease; }
.circle-button:hover { border-color: var(--green); }
.home-leaves { border-top: 0; gap: 0 20px; }
.home-leaf, .home-leaf:first-child { padding: 26px 8px 26px 0; border-right: 0; border-top: 1px solid var(--line); }
.home-leaf.active { border-top-color: var(--green); }
.leaf-number { margin-bottom: 28px; }
.leaf-play { display: flex; justify-content: space-between; }
.section-heading { gap: 7%; }
.section-heading > div, .section-heading > p, .steps > article, .memory-items > article, .start > div, .faq > div, .interviewer > div { min-width: 0; }
.section-heading > p { color: var(--muted); }
.moments { background: #F4F0E5; border-radius: 24px; width: 90%; padding-inline: 4%; }
.moments-grid .section-number { font-size: 16px; letter-spacing: -.02em; }
.steps .section-number { margin-bottom: 28px; }
.conversation { border-radius: var(--radius-surface); padding: 38px; }
.question, .answer { padding-block: 22px; }
.promise-inner { padding-block: 100px; }
.promise-grid { gap: 6%; }
.promise-footnote { max-width: 650px; padding-top: 22px; border-top: 1px solid #FEFAF125; }
.closing { padding-top: 40px; }
.closing h2 { letter-spacing: -.04em; }
.dialog-bottom { flex-wrap: wrap; }
.dialog-person > div { min-width: 0; }
dialog { border-radius: var(--radius-surface); }

/* Tablet: a paired introduction and listening area, then a generously sized tree. */
@media(min-width:768px) and (max-width:1199px) {
  .header { height: 92px; padding-inline: 5%; gap: 24px; }
  .header nav { gap: 20px; }
  .header nav a:nth-child(2) { display: inline; }
  .header-cta { gap: 14px; font-size: 14px; padding-left: 20px; }
  .brand img { width: 132px; }
  .experience { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 0 36px; padding-top: 48px; }
  .intro { grid-column: 1; grid-row: 1; max-width: none; padding-top: 0; }
  .intro h1 { font-size: clamp(37px,4.4vw,52px); }
  .intro-copy { font-size: 17px; }
  .desktop-break { display: none; }
  .hero-cta { max-width: 100%; gap: 14px; font-size: 14px; }
  .story-preview { grid-column: 2; grid-row: 1; align-self: center; justify-self: stretch; margin: 0; width: auto; max-width: none; padding: 25px 22px; }
  .featured blockquote { font-size: 25px; }
  .tree-stage { grid-column: 1 / -1; grid-row: 2; width: min(86%,760px); margin-top: 24px; justify-self: center; }
  .person .portrait { width: clamp(50px,5.5vw,62px); height: clamp(50px,5.5vw,62px); }
  .person-name { font-size: 14px; }
  .person-region { font-size: 12px; }
  .bottom-note { grid-row: 3; margin-top: 44px; }
  .section { padding-block: 76px; }
  .section-heading { align-items: flex-start; gap: 32px; }
  .section-heading > div { flex: 1.1; }
  .section-heading > p { flex: 1; padding-top: 40px; font-size: 16px; }
  .home-leaves { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0 26px; }
  .home-leaf, .home-leaf:first-child { padding: 24px 0; border-right: 0; }
  .home-leaf:nth-child(n+4) { border-top: 1px solid var(--line); }
  .leaf-title { font-size: 24px; }
  .leaf-person { font-size: 13px; }
  .steps { gap: 28px; }
  .steps h3, .memory-items h3, .promise-grid h3 { font-size: 23px; }
  .interviewer { gap: 5%; }
  .conversation { padding: 26px; }
  .question p, .answer p { font-size: 21px; }
  .memory-items { gap: 28px; }
  .promise-inner { padding-block: 76px; }
  .promise-grid { gap: 30px; }
  .start { grid-template-columns: 1.1fr 1fr; gap: 28px; }
  .start-action .solid-button { font-size: 14px; gap: 14px; }
  .faq { grid-template-columns: .8fr 1.2fr; gap: 6%; }
  footer { justify-content: flex-start; column-gap: 26px; }
}
@media(min-width:768px) and (max-width:850px) {
  .header nav { gap: 15px; }
  .header nav a:nth-child(2) { display: none; }
  .header { gap: 18px; }
  .experience { gap: 0 24px; }
  .story-preview { padding: 24px 18px; }
  .audio-row { gap: 10px; }
  .play-button { min-width: 100px; padding-inline: 13px; }
}

/* Phone: touch-first spacing; readable portraits instead of a miniature tree. */
@media(max-width:767px) {
  html { scroll-padding-top: 102px; }
  .header { height: 82px; padding-inline: 6%; }
  .header-cta { min-height: 46px; padding: 7px 8px 7px 17px; gap: 10px; }
  .header-cta > span { width: 28px; height: 28px; font-size: 16px; }
  .intro h1 { font-size: clamp(37px,9.4vw,52px); }
  .intro .eyebrow { margin-bottom: 22px; }
  .hero-cta { justify-content: space-between; min-height: 56px; padding-left: 24px; }
  .story-preview { margin-top: 30px; padding: 24px 20px; scroll-margin-top: 102px; }
  .featured blockquote { font-size: 25px; }
  .story-controls { gap: 18px; }
  .tree-stage { margin-top: 24px; }
  .tree-art, .tree-art img { height: 260px; }
  .mobile-tree-label { margin-top: 2px; margin-bottom: 14px; font-size: 24px; }
  .person { min-height: 170px; gap: 0 12px; padding-block: 23px; }
  .person .portrait { width: 48px; height: 48px; }
  .person-story { font-size: 18px; }
  .person.active { border-top-color: var(--green); }
  .section { padding-block: 62px; }
  .section-heading > p { font-size: 17px; }
  .home-leaves { gap: 0; }
  .home-leaf, .home-leaf:first-child { padding: 22px 0; border-bottom: 0; border-top: 1px solid var(--line); }
  .home-leaf.active { border-top-color: var(--green); }
  .leaf-number { margin-bottom: 12px; }
  .leaf-title { font-size: 25px; }
  .leaf-play { display: block; }
  .moments { width: 100%; border-radius: 0; padding-inline: 6%; }
  .moments-grid .section-number { margin-top: 9px; font-size: 14px; }
  .steps .section-number { margin-bottom: 18px; }
  .conversation { padding: 25px; }
  .promise-inner { padding-block: 65px; }
  .promise-grid { gap: 26px; }
  .start-action .solid-button { justify-content: space-between; }
  .closing { padding-top: 24px; }
}
@media(max-width:389px) {
  .header .brand img { width: 105px; }
  .header-cta { gap: 7px; padding-left: 13px; font-size: 13px; }
  .story-preview { padding: 22px 16px; }
  .featured blockquote { font-size: 24px; }
  .people { grid-template-columns: 1fr; }
  .person { grid-template-columns: 52px 1fr; min-height: 0; padding-block: 20px; }
  .person .portrait { grid-row: 1 / 4; align-self: start; margin-top: 4px; }
  .person-story { grid-column: 2; min-height: 0; margin-top: 8px; }
  .person-format { grid-column: 2; }
  .person-name { font-size: 16px; }
  .leaf-play { font-size: 12px; padding-left: 8px; }
}
@media(pointer:coarse) {
  .audio-timeline input { height: 44px; }
  .person { touch-action: manipulation; }
  .motion-toggle { min-height: 48px; }
}
@media(prefers-reduced-motion:reduce) {
  .solid-button, .solid-button > span, .explore-link > span, .header nav a::after { transition: none !important; }
}
