/* Ash Haven Wellness. Hand-written, no framework. */

@font-face { font-family: "Bodoni Moda"; src: url("../fonts/bodoni-moda-var.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("../fonts/bodoni-moda-italic-var.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-var.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  /* the same by day and by night */
  --paper: #fcf0e0;
  --pine: #2e4229;
  --pine-deep: #1d2b1a;
  --pine-black: #131d11;
  --brass-light: #d9c4a0;
  /* day: sampled from the logo, or derived from it */
  --ivory: #fffbf4;
  --cream: #fcf0e0;
  --cream-deep: #f5e6d0;
  --mist: #eff1e4;
  --mist-2: #f1f2e6;
  --card: #fffbf4;
  --ink: #1c241a;
  --ink-soft: #465043;
  --moss: #4e6135;
  --olive: #6f8746;
  --sage: #b6bfa2;
  --kraft: #bda380;
  --brass: #a78a60;
  --numeral: #765a30;
  --amount: #2e4229;
  --btn: #2e4229;
  --btn-fg: #fcf0e0;
  --btn-hover: #1d2b1a;
  --btn-edge: #6f7a66;
  --haze: #eef0e3;
  --haze-vein: #f7f7ee;
  --ghost: #f3e4cb;
  --ghost-vein: #f9eedd;
  --leaf-a: #2e4229;
  --leaf-a-vein: #7f9d57;
  --leaf-b: #6f8746;
  --leaf-b-vein: #b9c795;
  --petal-a: #a3ad86;
  --petal-rib: #8a9a5b;
  --vine: #5f7a3c;
  --bud-vein: #c5d1a6;
  --field: #fff;
  --field-ink: #1c241a;
  --field-line: #7c7f6a;
  --placeholder: #5f6457;
  --glow: rgba(252, 240, 224, 1);
  --photo: none;

  --serif: "Bodoni Moda", Didot, "Bodoni 72", "Bodoni MT", Georgia, serif;
  --sans: "Jost", "Avenir Next", "Century Gothic", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --gutter: clamp(1.35rem, 5vw, 4rem);
  --leafcut: 0 clamp(3.5rem, 9vw, 8rem) 0 clamp(3.5rem, 9vw, 8rem);
  --pad: clamp(5rem, 11vw, 10rem);
  --vein: #8fae63;
  --rib: rgba(255, 255, 255, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
body { transition: background-color .4s; margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--sans); font-size: clamp(1.09rem, 1rem + .32vw, 1.22rem); line-height: 1.65; overflow-x: clip; font-optical-sizing: none; font-variation-settings: "opsz" 15; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
main { overflow-x: clip; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: var(--brass); }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.06; letter-spacing: -.012em; margin: 0; text-wrap: balance; font-optical-sizing: none; font-variation-settings: "opsz" 22; }
h2 { font-size: clamp(2.1rem, 1.3rem + 3.3vw, 3.9rem); }
.h3 { font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.6rem); }
p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: #b6bfa2; color: #1c241a; }
:focus-visible { outline: 2px solid var(--moss); outline-offset: 4px; }
.contact :focus-visible, .canopy :focus-visible, .top.is-dark :focus-visible { outline-color: var(--brass-light); }
main:focus { outline: none; }

.sprite { position: absolute; }
.veins { stroke: var(--vein); }
.rib { stroke: var(--rib); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--pine); color: var(--paper); padding: .8rem 1.3rem; }
.skip:focus { top: 1rem; }
.wrap { width: min(76rem, 100% - 2 * var(--gutter)); margin-inline: auto; }
.big { font-family: var(--serif); font-optical-sizing: none; font-variation-settings: "opsz" 15; font-size: clamp(1.45rem, 1.15rem + 1.25vw, 2.05rem); line-height: 1.24; letter-spacing: -.005em; text-wrap: balance; }
.aside { font-family: var(--serif); font-optical-sizing: none; font-variation-settings: "opsz" 13; font-style: italic; font-size: clamp(1.3rem, 1.1rem + .9vw, 1.75rem); line-height: 1.3; margin: 0; }
@media (scripting: none) { .js-only { display: none !important; } }

.preview-note { margin: 0; padding: .45rem 1rem; text-align: center; font-size: .9rem; background: #bda380; color: #1c241a; position: relative; z-index: 60; }

/* ───── Buttons: the leaf-cut corner is the site's shape ───── */
.btn { --bg: var(--btn); --fg: var(--btn-fg); display: inline-flex; align-items: center; justify-content: center; min-height: 3.4rem; padding: .7rem 2rem; border: 1px solid var(--bg); border-radius: 0 1.5rem 0 1.5rem; background: var(--bg); color: var(--fg); font-size: 1.06em; font-weight: 500; letter-spacing: .015em; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: border-radius .6s var(--ease), background-color .4s, border-color .4s, color .4s; }
.btn:hover { border-radius: 1.5rem 0 1.5rem 0; background: var(--btn-hover); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--btn-edge); }
.btn-line:hover { background: var(--btn); color: var(--btn-fg); border-color: var(--btn); }
.btn-small { min-height: 2.75rem; padding: .45rem 1.4rem; font-size: 1rem; border-radius: 0 1.2rem 0 1.2rem; }
.link, .textlink { font-weight: 500; }
.textlink { background: none; border: 0; padding: .6rem 0; text-decoration: underline; text-underline-offset: .22em; text-decoration-color: var(--brass); cursor: pointer; }

/* ───── Header ───── */
.top { position: sticky; top: 0; z-index: 50; transition: background-color .35s, box-shadow .35s, color .35s; }
.top .lockup, .top .lockup svg { transition: color .35s; }
.top.is-stuck { background: var(--ivory); box-shadow: 0 1px 0 color-mix(in srgb, var(--brass) 32%, transparent); }
.top.is-dark { background: rgb(24, 36, 21); color: var(--paper); box-shadow: 0 1px 0 rgba(217, 196, 160, .22); }
.top.is-dark .lockup { color: var(--paper); }
.top.is-dark .lockup svg { color: #a9bd7f; }
.top.is-dark .btn { --bg: var(--paper); --fg: var(--pine-deep); }
.top.is-dark .btn:hover { background: #fff; }
.top-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .2rem 1.5rem; min-height: 5rem; }
.lockup { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.lockup svg { width: 3.1rem; height: 1.8rem; color: var(--olive); }
.lockup-text { display: grid; line-height: 1; }
.lockup-name { white-space: nowrap; font-optical-sizing: none; font-variation-settings: "opsz" 11; font-family: var(--serif); font-weight: 600; font-size: 1.42rem; letter-spacing: .01em; text-transform: uppercase; }
.lockup-sub { font-size: .7rem; letter-spacing: .345em; text-transform: uppercase; margin-top: .34rem; }
.nav { display: none; gap: clamp(1.2rem, 2.4vw, 2.4rem); font-size: 1.02rem; }
.nav a { text-decoration: none; padding: .5rem 0; background: linear-gradient(var(--brass), var(--brass)) 0 88% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.nav a:hover { background-size: 100% 1px; }
.top-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem 1.1rem; }
.top-phone { display: none; text-decoration: none; white-space: nowrap; font-variant-numeric: lining-nums; }
@media (max-width: 27rem) { .top-cta .btn { padding-inline: 1.1rem; } .lockup svg { width: 2.5rem; height: 1.45rem; } .lockup-name { font-size: 1.22rem; } .lockup-sub { font-size: .62rem; } .lockup { gap: .45rem; } }
@media (max-width: 63.99rem) { .top-cta .btn { transition: opacity .4s, visibility .4s, border-radius .6s var(--ease), background-color .4s, color .4s; } .top.has-dock .top-cta .btn { opacity: 0; visibility: hidden; } }
@media (min-width: 64rem) { .nav { display: flex; } }
@media (min-width: 78rem) { .top-phone { display: block; } }

/* ───── Phone and tablet menu: a native popover, so Escape, tap-outside, and focus come built in ───── */
.menu-btn, .menu-close { position: relative; flex: none; width: 2.9rem; height: 2.9rem; padding: 0; background: none; border: 0; color: inherit; cursor: pointer; }
.menu-btn span, .menu-close span { position: absolute; left: 22%; width: 56%; height: 1.6px; background: currentColor; border-radius: 1px; }
.menu-btn span:first-child { top: 42%; } .menu-btn span:last-child { top: 58%; width: 38%; }
.menu-close { position: absolute; top: 1.05rem; right: calc(var(--gutter) - .7rem); }
.menu-close span { top: 49%; } .menu-close span:first-child { rotate: 45deg; } .menu-close span:last-child { rotate: -45deg; }
/* the popover covers the whole screen, so a tap outside the panel closes it and touches nothing underneath */
.menu { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden auto; overscroll-behavior: contain; background: rgba(19, 29, 17, .6); color: var(--paper); }
.menu-panel { position: relative; isolation: isolate; padding: 4.6rem var(--gutter) 2rem; border-radius: 0 0 0 clamp(3.5rem, 14vw, 7rem); overflow: clip; background: var(--pine); }
.menu :focus-visible { outline-color: var(--brass-light); }
.menu-art { position: absolute; z-index: -1; inset: 0; overflow: clip; pointer-events: none; }
.menu-art svg { position: absolute; right: -6.5rem; bottom: -6.5rem; width: 20rem; height: 20rem; color: #283b24; --vein: #3a5033; transform: rotate(196deg); }
.menu li a { display: block; padding: .78rem 0; font-family: var(--serif); font-size: clamp(1.5rem, 6.4vw, 1.9rem); line-height: 1.2; text-decoration: none; border-bottom: 1px solid rgba(217, 196, 160, .3); }
.menu li:first-child a { border-top: 1px solid rgba(217, 196, 160, .3); }
.menu li a:hover { color: var(--brass-light); }
.menu-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.6rem; margin-top: 1.7rem; }
.menu .btn { --bg: var(--paper); --fg: var(--pine-deep); }
.menu .btn:hover { background: #fff; }
.menu-tel { padding: .7rem 0; white-space: nowrap; font-variant-numeric: lining-nums; }
@media (prefers-reduced-motion: no-preference) {
  .menu { opacity: 0; transition: opacity .35s, display .35s allow-discrete, overlay .35s allow-discrete; }
  .menu-panel { translate: 0 -1.5rem; transition: translate .5s var(--ease); }
  .menu:popover-open { opacity: 1; } .menu:popover-open .menu-panel { translate: 0 0; }
  @starting-style { .menu:popover-open { opacity: 0; } .menu:popover-open .menu-panel { translate: 0 -1.5rem; } }
}
@media (max-width: 63.99rem) { .top-in { gap: .2rem .8rem; } .top-cta { gap: .2rem .6rem; } .menu-btn { margin-right: -.65rem; } }
@media (max-width: 22.5rem) { .lockup svg { display: none; } }
@media (max-width: 30rem) { .btn-more { display: none; } .top-cta .btn { padding-inline: 1.35rem; } }
@media (min-width: 64rem) { .menu-btn, .menu { display: none; } }
@supports not selector(:popover-open) { .menu-btn, .menu { display: none; } }

/* ───── Hero ───── */
.hero { position: relative; isolation: isolate; margin-top: -5rem; padding: 6.2rem 0 clamp(4rem, 9vw, 7rem); background: radial-gradient(70rem 46rem at 78% 42%, var(--glow) 0, transparent 68%), var(--ivory); }
.hero-far, .hero-near { position: absolute; inset: 0; pointer-events: none; overflow: clip; overflow-clip-margin: 12rem; }
.hero-far { z-index: -1; overflow: clip; overflow-clip-margin: 0; }
.hero-near { z-index: 3; overflow: visible; }
.haze { position: absolute; color: var(--haze); --vein: var(--haze-vein); }
.haze svg { width: 100%; height: 100%; }
.haze-1 { width: max(34rem, 46vw); aspect-ratio: 1; left: max(-18rem, -20vw); top: -8rem; }
.haze-1 svg { transform: rotate(96deg); }
.haze-2 { width: max(30rem, 40vw); aspect-ratio: 1; right: max(-15rem, -14vw); bottom: -10rem; }
.haze-2 svg { transform: rotate(-18deg); }
.near { position: absolute; aspect-ratio: 1; background: url("../img/leaf-near.webp") center / contain no-repeat; }
.near-1 { width: clamp(13rem, 22vw, 23rem); left: clamp(-13rem, -11vw, -7rem); bottom: clamp(-13rem, -14vw, -8rem); rotate: -62deg; }
.near-2 { width: clamp(12rem, 22vw, 23rem); right: clamp(-11rem, -9vw, -6.5rem); bottom: clamp(-11rem, -12vw, -8rem); rotate: 150deg; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.2rem, 4vw, 4.5rem); align-items: center; }
.hero-copy { text-align: center; max-width: 38rem; margin-inline: auto; }
h1, h2, h3 { overflow-wrap: anywhere; }
h1 { font-size: clamp(2.5rem, .9rem + 4.35vw, 4.85rem); line-height: 1.03; letter-spacing: -.022em; font-variation-settings: "opsz" 26; }
h1 em { font-style: italic; font-weight: 400; color: var(--moss); }
.lede { margin: 1.5rem auto 2rem; max-width: 34em; color: var(--ink-soft); font-size: 1.06em; }
.actions { display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center; font-variant-numeric: lining-nums; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem 1.5rem; margin-top: 1.7rem; color: var(--ink-soft); font-size: .95em; }
.facts li { display: flex; align-items: center; gap: .6rem; }
.facts li::before { content: ""; width: .5rem; height: .5rem; background: var(--olive); border-radius: 0 60% 0 60%; }
@media (max-width: 59.99rem) { .hero { padding-top: 5.2rem; } .lede { font-size: 1em; line-height: 1.55; margin: 1.1rem auto 1.5rem; } }
.medallion { position: relative; order: -1; width: min(18.5rem, 76vw); aspect-ratio: 724 / 750; margin-inline: auto; }
.part { position: absolute; inset: 0; pointer-events: none; }
.part > svg { width: 100%; height: 100%; overflow: visible; }
.sage { fill: var(--sage); opacity: .62; }
.petal-sage { color: var(--petal-a); }
.petal-kraft { color: var(--kraft); --rib: var(--petal-rib); }
.petal-sage { --rib: var(--petal-rib); }
.leaf-dark { color: var(--leaf-a); --vein: var(--leaf-a-vein); }
.leaf-light { color: var(--leaf-b); --vein: var(--leaf-b-vein); }
.olive { color: #6f8746; }

.coin { position: absolute; left: 20.7%; top: 19.1%; width: 58.8%; aspect-ratio: 1; perspective: 1500px; }
.coin-in { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(180deg); animation: turn 1.9s cubic-bezier(.62, .03, .16, 1) 1.5s both; }
.face { position: absolute; inset: 0; border-radius: 50%; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--paper); box-shadow: 0 1.1rem 2.4rem -.8rem rgba(40, 45, 25, .5); }
.face svg { width: 100%; height: 100%; }
.face-photo { transform: rotateY(180deg); padding: 2.6%; }
.face-photo::after { content: ""; position: absolute; inset: 1.5%; border-radius: 50%; border: 1.5px solid #6f8746; }
.face-photo picture { display: block; position: absolute; inset: 3.6%; border-radius: 50%; overflow: hidden; }
.face-photo img { width: 100%; height: 100%; object-fit: cover; filter: var(--photo); }
.ring { fill: none; stroke: #8a9a5b; stroke-width: 3; }
.mark { font-family: var(--serif); font-weight: 600; text-anchor: middle; fill: #0d100c; font-optical-sizing: none; font-variation-settings: "opsz" 13; }
.mark-sub { font-family: var(--sans); font-weight: 400; text-anchor: middle; fill: #0d100c; }
.drop-part { inset: auto; left: 48.6%; top: 94%; width: 3%; aspect-ratio: 22 / 30; color: #7b9453; }
.drip { animation: drip 3.2s cubic-bezier(.5, 0, .75, 0) 1.6s both; transform-origin: 50% 0; }

.bloom { transform-origin: 50% 47.5%; animation: bloom 1.9s var(--ease) both; }
/* each leaf opens from where it meets the disc, never around the photo */
.hinge.tl, .b5 { transform-origin: 34.5% 24.7%; } .hinge.tr, .b6 { transform-origin: 65.7% 24.7%; }
.hinge.bl, .b3 { transform-origin: 31.8% 66%; } .hinge.br, .b4 { transform-origin: 68.5% 66%; }
.unfurl { animation: unfurl 1.7s var(--ease) both; }
.b1 { animation-delay: .05s; } .b2 { animation-delay: .16s; } .b3 { --from: 16deg; animation-delay: .34s; } .b4 { --from: -16deg; animation-delay: .42s; } .b5 { --from: -16deg; animation-delay: .54s; } .b6 { --from: 16deg; animation-delay: .62s; }
@keyframes bloom { from { transform: scale(.5); opacity: 0; } 35% { opacity: 1; } to { transform: none; } }
@keyframes unfurl { from { transform: scale(.3) rotate(var(--from)); opacity: 0; } 30% { opacity: 1; } to { transform: none; } }
@keyframes turn { from { transform: rotateY(0); } to { transform: rotateY(180deg); } }
@keyframes drip { 0% { transform: scale(.2); opacity: 0; } 30% { transform: scale(1); opacity: 1; } 52% { transform: scale(1, 1.12); opacity: 1; } 86% { transform: translateY(7rem) scale(.9, 1.2); opacity: 0; } 87% { transform: scale(.2); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

@media (min-width: 60rem) {
  .hero { min-height: min(100svh, 62rem); display: grid; align-items: center; }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .hero-copy { text-align: left; margin: 0; }
  .lede { margin-inline: 0; }
  .actions, .facts { justify-content: flex-start; }
  .medallion { order: 0; width: 104%; justify-self: center; }
}
@media (min-width: 75rem) { .medallion { width: min(43rem, 116%); } }
@media (min-width: 40rem) and (max-width: 59.99rem) { .medallion { width: 25rem; } }

/* ───── Recognition ───── */
.familiar { position: relative; z-index: 2; padding: calc(var(--pad) * .9) 0 var(--pad); }
.familiar-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.familiar-head p { margin-top: 1.2rem; color: var(--ink-soft); }
.statements { display: grid; border-top: 1px solid color-mix(in srgb, var(--brass) 45%, transparent); }
.statements button { display: flex; align-items: center; gap: 1rem; width: 100%; min-height: 4rem; padding: .8rem .2rem; background: none; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--brass) 45%, transparent); text-align: left; font-family: var(--serif); font-size: clamp(1.28rem, 1.1rem + .8vw, 1.68rem); line-height: 1.2; cursor: pointer; transition: color .4s, padding .6s var(--ease); }
.statements svg { flex: none; width: 1.35rem; height: 1.35rem; color: var(--sage); transform: scale(.72) rotate(-24deg); transform-origin: 10% 90%; transition: transform .7s var(--ease), color .4s; }
.statements button:hover svg { color: var(--olive); transform: scale(.9) rotate(-10deg); }
.statements button[aria-pressed="true"], .statements button.is-demo { color: var(--moss); padding-left: .7rem; }
.statements button[aria-pressed="true"] svg, .statements button.is-demo svg { color: var(--olive); transform: scale(1.35); }
/* a ghost pointer shows once that these can be tapped, then leaves everything as it was */
.ghost { position: absolute; z-index: 4; left: 0; top: 0; width: 1.75rem; height: 1.75rem; opacity: 0; pointer-events: none; }
.ghost svg { width: 100%; height: 100%; overflow: visible; transition: transform .14s ease-out; }
.ghost-arrow { transform-origin: 15% 10%; } .ghost-arrow path { fill: var(--ink); stroke: var(--ivory); stroke-width: 1.4; stroke-linejoin: round; }
.ghost-tap { display: none; } .ghost-tap circle { fill: color-mix(in srgb, var(--olive) 38%, transparent); stroke: var(--moss); stroke-width: 1.4; }
.ghost.is-down svg { transform: scale(.8); }
.ghost::before { content: ""; position: absolute; left: -.55rem; top: -.55rem; width: 1.6rem; height: 1.6rem; border: 2px solid var(--olive); border-radius: 50%; opacity: 0; }
.ghost.is-down::before { animation: ping .5s ease-out; }
@keyframes ping { from { transform: scale(.3); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
@media (hover: none) { .ghost-arrow { display: none; } .ghost-tap { display: block; } .ghost { width: 2.3rem; height: 2.3rem; margin: -1.15rem 0 0 -1.15rem; } .ghost::before { left: .35rem; top: .35rem; } }
.familiar-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.6rem 3rem; margin-top: clamp(2rem, 4vw, 3.4rem); }
.familiar-foot .aside { max-width: 26em; }
@media (min-width: 44rem) { .statements { grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 5vw, 5rem); } }
.statements li { display: flex; }

/* ───── Through the leaves (pinned, scroll-driven) ───── */
.canopy { --p: 1; --u: max(1vw, .72svh); position: relative; z-index: 3; color: var(--paper); background: var(--pine-deep); }
.canopy-stage { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: clip; isolation: isolate; background: radial-gradient(75% 62% at 50% 48%, #40573a 0, #33492d 34%, var(--pine-deep) 74%, var(--pine-black) 100%); }
.canopy-glow { position: absolute; z-index: -1; inset: 50% auto auto 50%; width: calc(var(--u) * 92); aspect-ratio: 1; margin: calc(var(--u) * -46) 0 0 calc(var(--u) * -46); border-radius: 50%; background: radial-gradient(closest-side, rgba(252, 222, 166, .15), rgba(252, 222, 166, .07) 46%, transparent); opacity: var(--p); transform: scale(calc(.55 + var(--p) * .45)); }
.canopy-leaves { position: absolute; inset: 0; pointer-events: none; }
.cl { --o: clamp(0, var(--p) * 1.25, 1.25); position: absolute; width: calc(var(--u) * var(--s)); aspect-ratio: 1; transform: translate3d(calc(var(--u) * var(--in) * (1 - var(--o))), calc(var(--u) * var(--dy, 0) * (1 - var(--o))), 0) rotate(calc(var(--r) * 1deg)) scale(calc(1 + (1 - var(--o)) * .16)); }
.cl svg { width: 100%; height: 100%; }
.far { color: #3b5334; --vein: #4c6642; }
.mid { color: #24371f; --vein: #3d5433; }
.close { background: url("../img/leaf-near-dark.webp") center / contain no-repeat; }
.l1 { --s: 45; --in: 14; --r: 200; --k: 3; left: calc(var(--u) * -10); top: calc(var(--u) * -11); }
.r1 { --s: 44; --in: -14; --r: 92; --k: -3; right: calc(var(--u) * -10); top: calc(var(--u) * -12); }
.l2 { --s: 43; --in: 14; --r: 284; --k: 3; left: calc(var(--u) * -10); bottom: calc(var(--u) * -10); }
.r2 { --s: 45; --in: -14; --r: 6; --k: -3; right: calc(var(--u) * -11); bottom: calc(var(--u) * -10); }
.l3 { --s: 46; --in: 27; --dy: 3; --r: 226; --k: 6; left: calc(var(--u) * -25); top: 18%; }
.r3 { --s: 46; --in: -27; --dy: -4; --r: 44; --k: -6; right: calc(var(--u) * -25); top: 22%; }
.l4 { --s: 44; --in: 24; --dy: 9; --r: 168; --k: 7; left: calc(var(--u) * -21); top: calc(var(--u) * -20); }
.r4 { --s: 44; --in: -27; --dy: 8; --r: 128; --k: -7; right: calc(var(--u) * -21); top: calc(var(--u) * -20); }
.l5 { --s: 58; --in: 25; --dy: -7; --r: 300; --k: 9; left: calc(var(--u) * -32); bottom: calc(var(--u) * -27); }
.r5 { --s: 56; --in: -25; --dy: -7; --r: 336; --k: -9; right: calc(var(--u) * -32); bottom: calc(var(--u) * -27); }
.canopy-copy { position: relative; width: min(72rem, 100% - 2 * var(--gutter)); text-align: center; padding: 6rem 0; }
.vow { font-size: clamp(2.15rem, 1rem + 4.2vw, 4.7rem); font-style: italic; font-weight: 400; line-height: 1.12; letter-spacing: -.012em; text-shadow: 0 0 1.4em rgba(25, 38, 20, .75); }
.vow-sub { max-width: 35em; margin: 1.8rem auto 0; font-size: 1.08em; text-shadow: 0 0 1em rgba(20, 32, 16, .9); }
.ln { display: block; }
/* .is-live is only set by script in browsers without scroll-driven animations; see "Depth" below */
.canopy.is-live { height: 205svh; }
.canopy.is-live .canopy-stage { position: sticky; top: 0; min-height: 100svh; }
.canopy.is-live .ln { --t: clamp(0, (var(--p) - var(--at)) * 6, 1); opacity: var(--t); transform: translateY(calc((1 - var(--t)) * 1.6rem)); }
.ln1 { --at: .36; } .ln2 { --at: .45; } .ln3 { --at: .54; } .ln4 { --at: .66; }
@media (max-width: 44rem) { .canopy.is-live { height: 180svh; } .canopy-copy { padding: 4rem 0; } }
@media (max-aspect-ratio: 4/5) {
  .canopy { --u: .88svh; }
  .l3 { top: 27%; } .r3 { top: 34%; }
  .l2, .r2 { bottom: calc(var(--u) * -6); }
  .l5 { --dy: -18; } .r5 { --dy: -14; }
}

/* ───── About ───── */
.about { position: relative; padding: var(--pad) 0 calc(var(--pad) * .85); }
.frame { overflow: hidden; overflow: clip; border-radius: var(--leafcut); margin: 0; background: var(--cream-deep); }
.frame-in { height: 100%; }
.frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); filter: var(--photo); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.about-photo { aspect-ratio: 4 / 4.9; }
.about-copy .big { margin: 1.4rem 0 1.5rem; color: var(--moss); }
.about-h { margin: 1.9rem 0 .6rem; font-size: clamp(1.35rem, 1.15rem + .8vw, 1.7rem); }
.creds { margin: 2.2rem 0 0; border-top: 1px solid color-mix(in srgb, var(--brass) 45%, transparent); }
.creds div { display: grid; grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr); gap: 1rem; padding: .72rem 0; border-bottom: 1px solid color-mix(in srgb, var(--brass) 45%, transparent); font-size: .97em; }
.creds dt { color: var(--ink-soft); }
.creds dd { margin: 0; font-variant-numeric: lining-nums; overflow-wrap: anywhere; }
@media (min-width: 60rem) { .about-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } .about-photo { position: sticky; top: 7.5rem; align-self: start; max-height: calc(100svh - 10rem); } }

.work { margin-top: clamp(4.5rem, 9vw, 8rem); }
.work-grid { display: grid; gap: 2rem; margin-top: clamp(1.6rem, 3vw, 2.6rem); }
.work-grid article { padding-top: 1.5rem; border-top: 1px solid var(--brass); }
.work-grid h3 { font-size: clamp(1.7rem, 1.3rem + 1.3vw, 2.3rem); margin-bottom: .7rem; color: var(--moss); }
.work-grid p { color: var(--ink-soft); max-width: 30em; }
.also { display: flex; flex-wrap: wrap; gap: .3rem 1.6rem; margin: 2.8rem 0 0; }
.also span { display: inline-flex; align-items: center; gap: .6rem; }
.also span::before { content: ""; width: .5rem; height: .5rem; background: var(--olive); border-radius: 0 60% 0 60%; }
.welcome { margin: 1.6rem 0 0; max-width: 46em; color: var(--ink-soft); }
@media (min-width: 52rem) { .work-grid { grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 4rem); } }

/* ───── Colleagues ───── */
.voices { position: relative; isolation: isolate; overflow: clip; padding: calc(var(--pad) * .85) 0; background: var(--cream); }
.voices-leaf { position: absolute; z-index: -1; right: -8rem; top: -6rem; width: clamp(20rem, 38vw, 34rem); aspect-ratio: 1; color: var(--ghost); --vein: var(--ghost-vein); }
.voices-leaf svg { width: 100%; height: 100%; transform: rotate(24deg); }
.voices-grid { display: grid; gap: clamp(2.2rem, 5vw, 5.5rem); margin-top: clamp(1.8rem, 4vw, 3.2rem); }
.voices figure { margin: 0; display: flex; flex-direction: column; }
.voices blockquote { margin: 0 0 1.3rem; font-family: var(--serif); font-size: clamp(1.25rem, 1.08rem + .75vw, 1.6rem); line-height: 1.38; }
.voices figcaption { font-weight: 500; padding-top: 1rem; border-top: 1px solid var(--brass); margin-top: auto; }
.voices figcaption span { font-weight: 400; color: var(--ink-soft); }
.source { margin-top: 2rem; font-size: .9em; color: var(--ink-soft); }
@media (min-width: 52rem) { .voices-grid { grid-template-columns: 1fr 1fr; } }

/* ───── Office walk-through ───── */
.office { padding: var(--pad) 0 calc(var(--pad) * .9); }
.office-head { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3.6rem); }
.office-head p { margin-top: 1.1rem; color: var(--ink-soft); }
.walk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.4rem, 4vw, 2rem) clamp(.9rem, 3vw, 2rem); }
.shot { margin: 0; }
.shot figcaption { margin-top: .9rem; font-size: .95em; line-height: 1.45; color: var(--ink-soft); max-width: 30em; }
.shot-barn { grid-column: 1 / -1; }
.shot-barn .frame { aspect-ratio: 16 / 11; }
.shot-lobby .frame, .shot-couch .frame { aspect-ratio: 3 / 4.1; --leafcut: 0 clamp(2.5rem, 7vw, 7rem) 0 clamp(2.5rem, 7vw, 7rem); }
.shot-couch { margin-top: 3rem; }
.walk-note { grid-column: 1 / -1; padding-top: 1rem; }
.walk-note .big { margin-bottom: .6rem; color: var(--moss); }
.addr { margin: 1.4rem 0 1rem; padding-top: 1.2rem; border-top: 1px solid var(--brass); line-height: 1.5; }
@media (min-width: 60rem) {
  .walk { grid-template-columns: repeat(12, 1fr); gap: 4.5rem 2rem; align-items: start; }
  .shot-barn { grid-column: 1 / 9; }
  .shot-lobby { grid-column: 9 / 13; margin-top: 9rem; }
  .shot-couch { grid-column: 2 / 7; margin-top: 0; }
  .walk-note { grid-column: 8 / 13; align-self: center; padding: 0; }
}

/* ───── How it starts: a vine that climbs out of its pot ─────
   At rest (no motion, no script, short screens) it is a finished plant with the steps in reading order.
   In motion the scene pins, and the plant grows from the pot up: step 1 nearest the soil, step 3 at the tip. */
.start { --g: 1; position: relative; background: linear-gradient(var(--cream), var(--mist-2) 14%); }
.start-anchor { position: absolute; top: 0; }
.start-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.4rem, 4vw, 4rem); padding: calc(var(--pad) * .9) 0; }
.start-head p { margin-top: 1rem; color: var(--ink-soft); max-width: 24em; }
.start-head .btn { margin-top: 1.8rem; }
.plant { --vx: min(2.65rem, 11vw); --leaf: min(3.9rem, 16vw); --h: 1.4rem; --stem: 2.8rem; --pot: min(6.8rem, 28vw); --c: calc(var(--h) * .53 + var(--leaf) * .21); position: relative; isolation: isolate; display: grid; grid-template-rows: 1fr auto; min-height: 0; }
.climb { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); min-height: 0; }
.vine { position: absolute; z-index: 1; left: calc(var(--vx) - var(--stem) / 2); top: var(--c); width: var(--stem); height: 100%; overflow: visible; fill: var(--vine); clip-path: inset(calc(100% - var(--g) * 110%) -2rem 0 -2rem); }
.steps { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(3, minmax(8.5rem, 1fr)); counter-reset: step; min-height: 0; }
.step { --sway: 1; position: relative; min-height: 0; padding: 0 0 .5rem calc(var(--vx) + var(--leaf) + .75rem); counter-increment: step; }
.s2 { --sway: -1; }
.step h3 { font-size: var(--h); margin-bottom: .35rem; }
.step h3::before { content: counter(step); margin-right: .55em; font-style: italic; font-weight: 400; color: var(--numeral); }
.step-text { overflow-wrap: anywhere; }
.step p { color: var(--ink-soft); max-width: 27em; line-height: 1.45; }
.bud { position: absolute; z-index: 1; left: var(--vx); top: calc(var(--c) - var(--leaf) * .645); width: var(--leaf); aspect-ratio: 124 / 112; color: var(--leaf-b); --vein: var(--bud-vein); }
.s2 .bud { color: var(--leaf-a); --vein: var(--leaf-a-vein); }
.bud svg, .offshoot svg { width: 100%; height: 100%; overflow: visible; }
.stalk { fill: none; stroke: var(--vine); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 1; }
.blade { transform-box: view-box; transform-origin: 40px 40px; }
.offshoot { --tw: calc(var(--leaf) * .52); position: absolute; z-index: 0; width: var(--tw); aspect-ratio: 64 / 44; left: calc(var(--vx) + var(--sway) * var(--stem) * .133 - var(--tw) * .9375); top: calc(50% + var(--c) - var(--tw) * .469); transform-origin: 93.75% 68.2%; }
.twig { fill: none; stroke: var(--vine); stroke-width: 2.6; stroke-linecap: round; }
.leaflet { fill: #92a868; } .s2 .leaflet { fill: var(--olive); }
.riblet { fill: none; stroke: #dfe6c9; stroke-width: 1.4; stroke-linecap: round; }
.pot { position: relative; width: var(--pot); aspect-ratio: 200 / 190; margin: calc(var(--c) - var(--pot) * .125) 0 0 calc(var(--vx) - var(--pot) / 2); }
.pot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pot-back { z-index: 0; } .pot-front { z-index: 2; }
.pot-word { font-family: var(--serif); font-size: 33px; font-weight: 600; letter-spacing: .02em; text-anchor: middle; fill: #62381f; }
.pot-word-lit { fill: #ebc6a8; transform: translate(.8px, 1.3px); }
@media (max-width: 63.99rem) { .start-head .btn { display: none; } }
@media (min-width: 60rem) {
  .start-in { grid-template-columns: 5fr 7fr; }
  .plant { --vx: 6.2rem; --leaf: 8.4rem; --h: 2.15rem; --stem: 3.75rem; --pot: 11.5rem; }
  .start-head { align-self: center; }
  .step h3 { margin-bottom: .5rem; }
}
@media (min-width: 60rem) and (max-width: 74.99rem) { .plant { --vx: 5.2rem; --leaf: 6.4rem; --h: 1.75rem; --pot: 9.6rem; } .start-in { grid-template-columns: 4fr 7fr; } }
/* pinned layout, shared by both motion paths; tiny and landscape-phone screens keep the finished plant */
@media (min-height: 30rem) and (min-width: 22rem) {
.start.is-live { height: 180svh; }
.start.is-live .start-stage { position: sticky; top: 0; min-height: 100svh; overflow: clip; }
.start.is-live .start-anchor { top: calc(100% - 106svh); scroll-margin-top: -5.5rem; } /* links land on the grown plant */
.start.is-live .s1 { grid-row: 3; } .start.is-live .s2 { grid-row: 2; } .start.is-live .s3 { grid-row: 1; }
.start.is-live .steps { grid-template-rows: repeat(3, minmax(min-content, 1fr)); }
.start.is-live .start-in { min-height: 100svh; padding: 5.6rem 0 5.5rem; grid-template-rows: auto minmax(min-content, 1fr); }
@media (min-width: 60rem) { .start.is-live .start-in { padding: 8.6rem 0 2.2rem; grid-template-rows: minmax(min-content, 1fr); } .start.is-live .plant { max-height: 47rem; align-self: end; height: 100%; } }
@media (max-height: 43rem) and (max-width: 59.99rem) { .start.is-live .start-head p { display: none; } .start.is-live .step p { font-size: .9em; line-height: 1.32; } .start.is-live .step h3 { margin-bottom: .15rem; } .start.is-live .plant { --pot: 5.2rem; --h: 1.3rem; --leaf: 3.5rem; } .start.is-live .start-in { gap: .9rem; } }
@media (max-height: 43rem) and (min-width: 60rem) { .start.is-live .start-in { padding: 7.8rem 0 1.2rem; } .start.is-live .plant { --leaf: 5.8rem; --pot: 8rem; --h: 1.6rem; } }
/* browsers without scroll-driven animations: script sets --g from the scroll position */
.start.is-var .step { --t: clamp(0, (var(--g) - var(--at)) * 7, 1); } .s1 { --at: .27; } .s2 { --at: .56; } .s3 { --at: .85; }
.start.is-var .stalk { stroke-dashoffset: calc(1 - var(--t)); opacity: calc(var(--t) * 8); }
.start.is-var .blade { transform: scale(var(--t)); }
.start.is-var .step-text, .start.is-var .offshoot { opacity: var(--t); }
}

/* ───── Fees ───── */
.fees { padding: var(--pad) 0; background: var(--mist); }
.fees-grid { display: grid; gap: clamp(3rem, 6vw, 6rem); align-items: start; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem 1.1rem; margin: 1.8rem 0 1.6rem; }
.amount { font-family: var(--serif); font-size: clamp(4.6rem, 3.2rem + 5.4vw, 8rem); line-height: .9; letter-spacing: -.02em; color: var(--amount); font-variant-numeric: lining-nums; font-variation-settings: "opsz" 18; }
.plain li { padding: .75rem 0; border-top: 1px solid color-mix(in srgb, var(--brass) 55%, transparent); }
.plans { background: var(--card); padding: clamp(1.6rem, 4vw, 3rem); border-radius: 0 clamp(3rem, 6vw, 5.5rem) 0 clamp(3rem, 6vw, 5.5rem); }
.plans h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.05rem); }
.plan-search { margin-top: 1.3rem; }
input:is([type="search"], [type="text"], [type="email"], [type="tel"]), select { width: 100%; min-height: 3.3rem; padding: .6rem 1rem; border: 1px solid var(--field-line); border-radius: 0 1rem 0 1rem; background: var(--field); color: var(--field-ink); }
input::placeholder { color: var(--placeholder); opacity: 1; }
.plan-result { min-height: 1px; }
.plan-result > * { margin-top: 1.1rem; }
.plan-result .yes { font-family: var(--serif); font-size: 1.35rem; line-height: 1.3; color: var(--moss); margin-bottom: 0; }
.plan-result .note { font-size: .95em; color: var(--ink-soft); margin: .4rem 0 0; }
.picks { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.plan-list { columns: 2; column-gap: 2rem; margin-top: 1.5rem; font-size: .97em; line-height: 1.35; }
.plan-list li { break-inside: avoid; padding: .42rem 0; transition: opacity .4s, color .4s; }
.plan-tip { margin: .7rem 0 0; font-size: .95em; color: var(--ink-soft); }
.plan-list li:has(> .plan-pick) { padding: 0; }
.plan-pick { display: block; width: 100%; padding: .42rem 0; background: none; border: 0; text-align: left; line-height: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .22em; transition: color .3s, text-decoration-color .3s; }
.plan-pick:hover { color: var(--moss); text-decoration-color: var(--brass); }
.plan-list.is-filtered li { opacity: .7; }
.plan-list.is-filtered li.hit { opacity: 1; color: var(--moss); font-weight: 600; }
@media (max-width: 26rem) { .plan-list { columns: 1; } }
@media (min-width: 60rem) { .fees-grid { grid-template-columns: 5fr 6fr; } }

/* ───── Questions ───── */
.questions { padding: var(--pad) 0; background: var(--cream); }
.questions-grid { display: grid; gap: clamp(2rem, 5vw, 5rem); }
.faq { border-top: 1px solid var(--brass); }
.faq details { border-bottom: 1px solid color-mix(in srgb, var(--brass) 55%, transparent); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; min-height: 4rem; padding: 1.05rem 0; font-family: var(--serif); font-size: clamp(1.2rem, 1.06rem + .65vw, 1.5rem); line-height: 1.25; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: .95rem; height: .95rem; background: var(--olive); border-radius: 0 70% 0 70%; transition: transform .7s var(--ease), background-color .4s; }
.faq details[open] summary::after { transform: rotate(135deg); background: var(--kraft); }
.faq summary:hover { color: var(--moss); }
.faq details p { max-width: 42em; padding-bottom: 1.6rem; color: var(--ink-soft); }
/* the same leaf as the answers in the email helper */
.leaf-chip { display: inline-block; margin: 0 .04em 0 .12em; padding: .14em .9em .18em; border: 1px solid var(--btn-edge); border-radius: 0 1.1rem 0 1.1rem; background: var(--card); color: var(--ink); line-height: 1.5; text-decoration: none; box-shadow: 0 .5rem .9rem -.4rem var(--chip-shade, rgba(30, 36, 22, .5)); transition: border-radius .6s var(--ease), box-shadow .4s, translate .4s var(--ease); }
.leaf-chip:hover { border-radius: 1.1rem 0 1.1rem 0; box-shadow: 0 .8rem 1.3rem -.5rem var(--chip-shade, rgba(30, 36, 22, .5)); translate: 0 -1px; }
@media (min-width: 60rem) { .questions-grid { grid-template-columns: 5fr 8fr; } .questions h2 { position: sticky; top: 8rem; align-self: start; font-size: clamp(2rem, 1.2rem + 2.4vw, 3.2rem); } }

/* ───── Contact: the half-written letter ───── */
.contact { position: relative; isolation: isolate; overflow: clip; padding: var(--pad) 0; color: var(--paper); background: radial-gradient(60rem 46rem at 72% 46%, var(--contact-glow, #3d5235) 0, transparent 70%), var(--contact-bg, #2e4229); }
.contact-leaves { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.builder input[type="text"], .builder select { --field-line: #a9b39b; }
.kl { position: absolute; width: clamp(22rem, 44vw, 40rem); aspect-ratio: 1; color: #283b24; --vein: #3a5033; }
.kl svg { width: 100%; height: 100%; }
.kl-1 { left: -14rem; bottom: -9rem; } .kl-1 svg { transform: rotate(-70deg); }
.kl-2 { right: -13rem; top: -9rem; } .kl-2 svg { transform: rotate(150deg); }
.contact-head { max-width: 50rem; margin-bottom: clamp(2.2rem, 5vw, 4rem); }
.contact-head h2 { font-size: clamp(2.1rem, 1.3rem + 2.9vw, 3.6rem); }
.contact-head p { margin-top: 1.2rem; max-width: 38em; color: #e9e2d0; }
.contact-grid { display: grid; gap: clamp(2.4rem, 5vw, 4.5rem); align-items: start; }
.builder { display: grid; gap: 1.9rem; min-width: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend, .field label { padding: 0; margin-bottom: .75rem; font-family: var(--serif); font-size: 1.28rem; line-height: 1.2; display: block; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chips span { display: flex; align-items: center; min-height: 2.75rem; padding: .35rem 1.15rem; border: 1px solid rgba(252, 240, 224, .6); border-radius: 0 1.1rem 0 1.1rem; font-size: .98em; line-height: 1.25; transition: background-color .35s, color .35s, border-color .35s, border-radius .6s var(--ease); }
.chips label:hover span { border-color: var(--paper); }
.chips input:checked + span { background: var(--paper); color: var(--pine-deep); border-color: var(--paper); border-radius: 1.1rem 0 1.1rem 0; }
.chips input:focus-visible + span { outline: 2px solid var(--brass-light); outline-offset: 3px; }
.two { display: grid; gap: 1.5rem; }
.field { margin: 0; }
@media (min-width: 34rem) { .two { grid-template-columns: 1fr 1fr; } }
/* the letter is paper by day and by night, so it keeps the day colours */
.letter { --field: #fff; --field-ink: #1c241a; --field-line: #7c7f6a; --placeholder: #5f6457; --ink: #1c241a; --ink-soft: #465043; --moss: #4e6135; --btn: #2e4229; --btn-fg: #fcf0e0; --btn-hover: #1d2b1a; --btn-edge: #6f7a66; color-scheme: light; position: relative; background: var(--paper); color: var(--ink); padding: clamp(1.5rem, 3.6vw, 2.8rem); border-radius: 0 clamp(3rem, 6vw, 5.5rem) 0 clamp(3rem, 6vw, 5.5rem); box-shadow: 0 2.5rem 5rem -2rem rgba(10, 18, 8, .75); }
.letter :focus-visible { outline-color: var(--moss); }
.letter.is-filled { animation: filled 1.7s ease-out .5s both; }
@keyframes filled { 0%, 100% { box-shadow: 0 2.5rem 5rem -2rem rgba(10, 18, 8, .75); } 30% { box-shadow: 0 2.5rem 5rem -2rem rgba(10, 18, 8, .75), 0 0 0 6px rgba(217, 196, 160, .75); } }
textarea { display: block; width: 100%; min-height: 17rem; margin: .4rem 0 1.2rem; padding: .9rem 0; border: 0; background: transparent; resize: vertical; line-height: 1.6; field-sizing: content; }
textarea:focus-visible { outline-offset: 6px; }
.letter-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; }
.letter-top { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 1.3rem; margin: -.5rem 0 -.3rem; }
.letter-top .textlink { font-size: .95em; }
textarea::placeholder { color: var(--placeholder); opacity: 1; }
.contact-head .textlink { padding: 0; text-decoration-color: var(--brass-light); }
.letter-actions .btn { flex: 1 1 12rem; padding-inline: 1.2rem; }
.copied { min-height: 1.5em; margin: .8rem 0 0; font-size: .95em; color: var(--moss); }
.btn-wide { flex-basis: 100% !important; }
.btn[aria-disabled="true"] { cursor: progress; opacity: .8; }
.reply { margin-bottom: 1.4rem; padding-top: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--brass) 55%, transparent); }
.reply legend { float: left; width: 100%; margin-bottom: 1rem; }
.reply .two { clear: both; gap: 1rem; }
.reply .field label { margin-bottom: .35rem; font-family: inherit; font-size: 1em; }
.hint { margin: .6rem 0 0; font-size: .95em; color: var(--ink-soft); }
.problem { margin: 0; padding-left: .9rem; border-left: 3px solid #9c3a1c; color: #86300f; font-weight: 500; }
.problem:empty { display: none; }
.problem + .letter-actions { margin-top: 1.1rem; }
.letter [aria-invalid="true"] { border-color: #9c3a1c; box-shadow: 0 0 0 1px #9c3a1c; }
.field-problem { display: block; margin-top: .45rem; font-size: .95em; line-height: 1.4; color: #86300f; font-weight: 500; }
.field-problem:empty { display: none; }
.nowrap { white-space: nowrap; }
textarea[aria-invalid="true"] { padding-inline: .7rem; }
.sent { min-height: 20rem; display: grid; align-content: center; justify-items: start; gap: .9rem; }
.sent[hidden] { display: none; }
.sent:focus { outline: none; }
.sent h3 { font-size: clamp(1.9rem, 1.4rem + 1.7vw, 2.7rem); }
.sent p { margin: 0; overflow-wrap: anywhere; }
.sent-sprig { width: 6.5rem; height: auto; color: var(--moss); }
@media (prefers-reduced-motion: no-preference) {
  .sent:not([hidden]) .sent-sprig { animation: settle 1.1s var(--ease) both; transform-origin: 50% 85%; }
}
@keyframes settle { from { opacity: 0; transform: scale(.6) rotate(-8deg); } }
.direct { margin-top: clamp(2.4rem, 5vw, 4rem); max-width: 40em; }
.direct .aside { margin-bottom: .6rem; color: var(--brass-light); }
@media (min-width: 60rem) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .letter { position: sticky; top: 7rem; } }

/* ───── Footer ───── */
.foot { padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem); text-align: center; background: var(--ivory); }
.foot-logo { width: clamp(13rem, 24vw, 19rem); margin: 0 auto 2.2rem; }
.foot-line { display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem .8rem; }
.crisis { max-width: 44em; margin: 1.6rem auto; padding: 1.3rem 0; border-block: 1px solid color-mix(in srgb, var(--brass) 55%, transparent); }
.legal { font-size: .9em; color: var(--ink-soft); }
.legal a { margin-left: .6em; }

/* ───── Phone dock ───── */
.dock { position: fixed; z-index: 45; inset: auto 0 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .6rem; padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--ivory) 95%, transparent); box-shadow: 0 -1px 0 color-mix(in srgb, var(--brass) 40%, transparent); transform: translateY(110%); visibility: hidden; transition: transform .6s var(--ease), visibility .6s; }
.dock.is-up { transform: none; visibility: visible; }
.dock .btn { min-height: 3.1rem; padding-inline: min(1.6rem, 4vw); }
@media (min-width: 64rem) { .dock { display: none; } }
/* at very high zoom, or on a landscape phone, nothing sticks and covers the page */
@media (max-height: 26rem) { .top { position: relative; } .dock { display: none; } html { scroll-padding-top: 1rem; } }
@media (max-width: 63.99rem) and (min-height: 26.01rem) { html { scroll-padding-bottom: 5.5rem; } }

/* ───── Plain pages ───── */
.page { padding: clamp(3rem, 8vw, 7rem) 0; }
.page .wrap { max-width: 46rem; }
.page h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); margin-bottom: 1.6rem; }
.page h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); margin: 2.2rem 0 .7rem; }
.page .btn { margin-top: 1.4rem; }
.page h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); margin: 1.7rem 0 .45rem; }
.page ul, .page ol { padding-left: 1.2em; margin-bottom: 1.1em; }
.page ul { list-style: disc; } .page ol { list-style: decimal; }
.page li { margin-bottom: .55em; }
.notice-for { color: var(--ink-soft); }
.notice-head { margin: 1.8rem 0; padding: 1.3rem 1.5rem; border: 1px solid var(--brass); border-radius: 0 2rem 0 2rem; font-weight: 500; }
.notice mark { background: #f3dcae; color: #1c241a; padding: 0 .15em; }
.review { margin-bottom: 3rem; padding: clamp(1.3rem, 4vw, 2rem); background: var(--cream-deep); border-radius: 0 2.5rem 0 2.5rem; font-size: .95em; }
.review h2 { margin-top: 0; }
.ack { display: none; }
.lost { display: grid; place-items: center; min-height: 90svh; text-align: center; }
.lost-mark { margin: 0 auto 1.6rem; }

/* ───── Depth ─────
   Every layer's place is a pure function of the scroll position. The browser runs it off the main
   thread, so a big flick, a reversal, or a resize has nothing to overshoot, lag, or spring back. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .haze, .near, .lift-1, .lift-2, .coin-part, .hinge { animation: drift linear both; animation-timeline: scroll(root block); animation-range: 0 100lvh; }
    .hinge { animation-name: drift, hinge; animation-timeline: scroll(root block), scroll(root block); animation-range: 0 100lvh, 0 100lvh; }
    .haze-1 { --dy: 13; } .haze-2 { --dy: 9; }
    .lift-1 { --dy: 3; } .lift-2 { --dy: 2; } .coin-part { --dy: 1; }
    .hinge.bl { --dx: -2; --dy: 2; --turn: 6deg; } .hinge.br { --dx: 2; --dy: 2; --turn: -6deg; }
    .hinge.tl { --dx: -3; --dy: -2; --turn: -8deg; } .hinge.tr { --dx: 3; --dy: -2; --turn: 8deg; }
    .near-1 { --dx: -2; --dy: -15; } .near-2 { --dx: 3; --dy: -18; }
    @keyframes drift { from { translate: 0 0; } to { translate: calc(var(--dx, 0) * 1lvh) calc(var(--dy, 0) * 1lvh); } }
    @keyframes hinge { from { rotate: 0deg; } to { rotate: var(--turn, 0deg); } }

    .frame { view-timeline: --frame block; }
    .frame-in { animation: pan linear both; animation-timeline: --frame; }
    @keyframes pan { from { translate: 0 -6%; } to { translate: 0 6%; } }
    .shot-lobby, .shot-couch, .voices-leaf, .kl { animation: float linear both; animation-timeline: view(); }
    .shot-lobby { --lift: 1rem; } .shot-couch { --lift: -.6rem; } .voices-leaf { --lift: -2.5rem; } .kl-1 { --lift: 2.5rem; } .kl-2 { --lift: -2.5rem; }
    @keyframes float { from { translate: 0 var(--lift); } to { translate: 0 calc(var(--lift) * -1); } }

    @keyframes rise { from { opacity: 0; translate: 0 1.6rem; } to { opacity: 1; translate: 0 0; } }
  }
  @media (prefers-reduced-motion: no-preference) and (min-height: 30rem) {
    .canopy { height: 205lvh; view-timeline: --canopy block; }
    .canopy-stage { position: sticky; top: 0; min-height: 100lvh; }
    .cl { animation: part ease-in-out both; animation-timeline: --canopy; animation-range: entry 70% contain 60%; }
    @keyframes part {
      from { transform: translate3d(calc(var(--u) * var(--in)), calc(var(--u) * var(--dy, 0)), 0) rotate(calc((var(--r) - var(--k)) * 1deg)) scale(1.16); }
      to { transform: translate3d(calc(var(--u) * var(--in) * -.25), calc(var(--u) * var(--dy, 0) * -.25), 0) rotate(calc((var(--r) + var(--k)) * 1deg)) scale(.96); }
    }
    .canopy-glow { animation: glow ease-in-out both; animation-timeline: --canopy; animation-range: entry 70% contain 60%; }
    @keyframes glow { from { opacity: 0; transform: scale(.55); } to { opacity: 1; transform: none; } }
    .ln { animation: rise ease-out both; animation-timeline: --canopy; }
    .ln1 { animation-range: contain 24% contain 38%; } .ln2 { animation-range: contain 32% contain 46%; } .ln3 { animation-range: contain 40% contain 54%; } .ln4 { animation-range: contain 52% contain 66%; }
  }
  @media (prefers-reduced-motion: no-preference) and (min-height: 30rem) and (min-width: 22rem) {
    .start.is-live { height: 180lvh; view-timeline: --start block; }
    .start.is-live .start-stage { min-height: 100lvh; }
    .start.is-live .start-anchor { top: calc(100% - 106lvh); }
    .is-live .vine { animation: climb linear both; animation-timeline: --start; animation-range: entry 90% contain 74%; }
    @keyframes climb { from { clip-path: inset(100% -2rem 0 -2rem); } to { clip-path: inset(-10% -2rem 0 -2rem); } }
    /* --s is the moment the tip of the vine reaches that step */
    .s1 { --s: 13%; } .s2 { --s: 39.5%; } .s3 { --s: 65.5%; }
    .is-live .offshoot { animation: leaf-out ease-out both; animation-timeline: --start; animation-range: contain calc(var(--s) - 12%) contain calc(var(--s) + 2%); }
    .is-live .stalk { animation: draw ease-out both; animation-timeline: --start; animation-range: contain var(--s) contain calc(var(--s) + 7%); }
    .is-live .blade { animation: leaf-out ease-out both; animation-timeline: --start; animation-range: contain calc(var(--s) + 4%) contain calc(var(--s) + 18%); }
    .is-live .step-text { animation: rise ease-out both; animation-timeline: --start; animation-range: contain calc(var(--s) + 2%) contain calc(var(--s) + 14%); }
    @keyframes draw { from { stroke-dashoffset: 1; opacity: 0; } 12% { opacity: 1; } to { stroke-dashoffset: 0; opacity: 1; } }
    @keyframes leaf-out { from { transform: scale(.02) rotate(-34deg); opacity: 0; } 20% { opacity: 1; } to { transform: none; opacity: 1; } }
  }
  @media (prefers-reduced-motion: no-preference) and (min-height: 30rem) and (min-width: 22rem) and (max-width: 44rem) {
    .start.is-live { height: 170lvh; }
  }
  @media (prefers-reduced-motion: no-preference) and (min-width: 60rem) {
    .shot-lobby { --lift: 3.2rem; } .shot-couch { --lift: 1.4rem; } .voices-leaf { --lift: -4rem; } .kl-1 { --lift: 4rem; } .kl-2 { --lift: -4rem; }
  }
  @media (prefers-reduced-motion: no-preference) and (min-height: 30rem) and (max-width: 44rem) {
    .canopy { height: 180lvh; }
  }
  @media (prefers-reduced-motion: no-preference) and (max-width: 44rem) {
    .near-1 { --dy: -8; } .near-2 { --dy: -10; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .coin-in { transform: rotateY(180deg); }
}

/* ───── Day / night switch ───── */
.theme-btn { position: relative; flex: none; width: 2.9rem; height: 2.9rem; padding: 0; background: none; border: 0; border-radius: 50%; color: inherit; cursor: pointer; }
.theme-btn svg { position: absolute; inset: 22%; width: 56%; height: 56%; transition: transform .7s var(--ease), opacity .4s; }
.theme-btn .moon { transform: rotate(-70deg) scale(.4); opacity: 0; }
:root[data-theme="night"] .theme-btn .sun { transform: rotate(70deg) scale(.4); opacity: 0; }
:root[data-theme="night"] .theme-btn .moon { transform: none; opacity: 1; }
.switch { display: inline-flex; align-items: center; gap: .7rem; min-height: 2.75rem; padding: .3rem 0; background: none; border: 0; color: inherit; cursor: pointer; }
.switch i { position: relative; flex: none; width: 2.7rem; height: 1.5rem; border: 1.5px solid currentColor; border-radius: 1rem; transition: background-color .35s; }
.switch i::after { content: ""; position: absolute; top: 50%; left: .2rem; width: .95rem; height: .95rem; margin-top: -.475rem; border-radius: 50%; background: currentColor; transition: translate .4s var(--ease); }
.switch[aria-checked="true"] i { background: color-mix(in srgb, currentColor 28%, transparent); }
.switch[aria-checked="true"] i::after { translate: 1.1rem 0; }
.menu .switch { flex-basis: 100%; }
@media (max-width: 30rem) { .top-cta:has(.menu-btn) .theme-btn { display: none; } } /* on phones the home page keeps it in the menu */
@media (scripting: none) { .theme-btn, .switch { display: none; } }
.is-shifting *, .is-shifting *::before, .is-shifting *::after { transition: none !important; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ───── Night: the same garden after dusk ───── */
:root[data-theme="night"] {
  color-scheme: dark;
  --ivory: #141c12;
  --cream: #1a2517;
  --cream-deep: #26331f;
  --mist: #17210f;
  --mist-2: #172112;
  --card: #212d1c;
  --ink: #f6ecdb;
  --ink-soft: #cdc9b5;
  --moss: #bccd92;
  --olive: #93ab68;
  --sage: #5f6d54;
  --kraft: #a98c64;
  --brass: #b3925f;
  --numeral: #dcbb88;
  --amount: #ecd9b4;
  --btn: #f0dfc2;
  --btn-fg: #1d2b1a;
  --btn-hover: #fff6e6;
  --btn-edge: #94a084;
  --haze: #1a2517;
  --haze-vein: #223020;
  --ghost: #22301d;
  --ghost-vein: #2c3c26;
  --leaf-a: #4d7043;
  --leaf-a-vein: #a9c587;
  --leaf-b: #86a35a;
  --leaf-b-vein: #d5e0b2;
  --petal-a: #6d7d57;
  --petal-rib: #55673e;
  --vine: #7f9a54;
  --bud-vein: #d5e0b2;
  --field: #0e150c;
  --field-ink: #f6ecdb;
  --field-line: #8f9b7f;
  --placeholder: #a9af9b;
  --glow: rgba(214, 178, 118, .17);
  --photo: brightness(.9) saturate(.96);
  --chip-shade: rgba(0, 0, 0, .85);
  --contact-bg: #1b2818;
  --contact-glow: #2b3f25;
}
:root[data-theme="night"] .near { filter: brightness(.8); }
:root[data-theme="night"] .pot svg { filter: brightness(.9); }
:root[data-theme="night"] .face { box-shadow: 0 0 4.5rem rgba(224, 186, 122, .3), 0 1.1rem 2.4rem -.8rem rgba(0, 0, 0, .7); }
:root[data-theme="night"] .canopy-stage { background: radial-gradient(75% 62% at 50% 48%, #34492f 0, #293c24 34%, #172114 74%, #0f160d 100%); }
:root[data-theme="night"] .kl { color: #22311d; --vein: #33472c; }
/* her logo has dark leaves, so at night it sits on a round of its own cream paper */
:root[data-theme="night"] .foot-logo { padding: clamp(1.6rem, 3vw, 2.2rem); border-radius: 50%; background: var(--paper); box-shadow: 0 0 5rem rgba(224, 186, 122, .22); aspect-ratio: 1; object-fit: contain; }

/* ───── Windows high contrast and other forced palettes: keep every state visible ───── */
@media (forced-colors: active) {
  .chips input:checked + span { outline: 3px solid Highlight; outline-offset: -4px; }
  .statements button[aria-pressed="true"] { text-decoration: underline; text-decoration-thickness: 3px; }
  .plan-list.is-filtered li.hit { text-decoration: underline; }
  .faq summary::after, .facts li::before, .also span::before, .menu-btn span, .menu-close span, .switch i::after { forced-color-adjust: none; background: CanvasText; }
  .switch[aria-checked="true"] i { forced-color-adjust: none; background: Highlight; }
  .canopy-leaves, .hero-near, .hero-far, .contact-leaves, .voices-leaf { display: none; }
}
@media print {
  .top, .menu, .dock, .canopy-leaves, .hero-near, .hero-far, .contact-leaves, .builder, .letter-actions { display: none !important; }
  .canopy, .contact { background: none; color: #000; }
  .page { padding: 0; } .page .wrap { width: 100%; max-width: none; } .page .btn { display: none; }
  .notice { font-size: 10.5pt; line-height: 1.42; color: #000; }
  .notice h1 { font-size: 22pt; } .notice h2 { font-size: 14pt; break-after: avoid; } .notice h3 { font-size: 11.5pt; break-after: avoid; }
  .notice li, .notice p { orphans: 3; widows: 3; }
  .review { border: 1px solid #999; break-after: page; }
  .ack { display: block; break-before: page; }
  .ack .sign { margin: 3.2em 0 0; padding-top: .3em; border-top: 1px solid #000; min-height: 1.4em; }
  .ack .small { margin-top: 3em; }
}
