/* ==========================================================================
   The Heart of Noticing
   Direction: field notes at first light. Cream paper and forest ink, a soft
   optical serif (Fraunces) that breathes at large sizes, and the tree's breath
   gradient (gold → amber → orchid) used only where something moves or connects.
   Layout: one centered column (max 1240px), long unhurried sections, sage and
   moss-dark bands as pauses. Offerings get their own soft colour washes.
   ========================================================================== */

/* Fonts ship with the site: trimmed to Latin and only the weights in use */
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces.woff2") format("woff2"); font-weight: 300 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-italic.woff2") format("woff2"); font-weight: 300 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Dancing Script"; src: url("../fonts/dancing-script.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --paper: #EAE5D4;
  --canvas: #EFEADA;
  --paper-deep: #E1D9C4;
  --linen: #F3EFE4;
  --mist: #DCE1D0;
  --night: #0F1E17;
  --card: #F5F1E6;
  --field: #FFFDF8;
  --ink: #183624;
  --ink-hover: #24503A;
  --ink-body: #33483A;
  --ink-lead: #2C4A36;
  --ink-muted: #4B5F50;
  --line: #D2C8B2;
  --frame: rgba(24, 54, 36, 0.3);
  --amber: #C98A3C;
  --amber-deep: #8F5A20;
  --flow-1: #F5DF9E;
  --flow-2: #D98A3C;
  --flow-3: #C77DFF;
  --flow-4: #7B2CBF;
  --breath: linear-gradient(90deg, #E9C979, #D98A3C 35%, #B56FE8 72%, #7B2CBF);
  --rule: linear-gradient(90deg, transparent, var(--line) 14%, var(--line) 86%, transparent);
  /* Paper resting on the canvas: a lit top edge, a close contact shadow and a long soft one */
  --paper-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 1px 2px rgba(70, 56, 30, 0.08),
    0 14px 28px -16px rgba(70, 56, 30, 0.28),
    0 44px 80px -52px rgba(24, 54, 36, 0.4);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;
  --font-script: "Dancing Script", "Snell Roundhand", cursive;

  --wrap: 1240px;
  --gutter: 22px;
  --header-h: 84px;
  --ease: cubic-bezier(0.25, 1, 0.5, 1);

  /* One motion language: quick taps, small state changes, and settling panels share these */
  --dur-1: 120ms;
  --dur-2: 200ms;
  --dur-3: 320ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-breath: cubic-bezier(0.45, 0, 0.55, 1);
  /* Sherbet hues for the four ways to work together: a soft wash and a deeper accent each */
  --peach: #F8C9A8; --peach-soft: #FCE6D6; --peach-deep: #B8622E;
  --mint: #BFE5C6; --mint-soft: #E3F4E5; --mint-deep: #3E8556;
  --lilac: #D9C8F5; --lilac-soft: #EFE7FB; --lilac-deep: #7651B5;
  --rose: #F6BCC8; --rose-soft: #FCE3E8; --rose-deep: #B8475F;
  --danger: #8A3A10;
  --success: #3F6B48;

  color-scheme: light;
}

@media (min-width: 900px) {
  :root { --gutter: 48px; }
}

/* Dark surfaces: the 1-on-1 page, the photo pause and the closing invitation */
.theme-dark, .tone-dark {
  --paper: #0F1E17;
  --paper-deep: #15281F;
  --card: #13261C;
  --ink: #F1EBDD;
  --ink-hover: #FFFFFF;
  --ink-body: #D6DACD;
  --ink-lead: #EDE4CF;
  --ink-muted: #B3BEAF;
  --line: rgba(241, 235, 221, 0.2);
  --frame: rgba(241, 235, 221, 0.32);
  --amber: #E6A95C;
  --amber-deep: #F0C07E;
  color-scheme: dark;
}

/* The colour each page drifts through as you scroll: cream at the top and bottom,
   soft tints in between, all one continuous blend */
body { --tint-1: #EFEADA; --tint-2: #E7EBDA; --tint-3: #F1E5DB; --tint-4: #E9E4EF; --tint-5: #EFEADA; }
.flow-earth { --tint-2: #E5EBD7; --tint-3: #DFE7D3; --tint-4: #E9EBD9; }
.flow-body { --tint-2: #F3E7D7; --tint-3: #F3E1D5; --tint-4: #EFE7DB; }
.flow-room { --tint-2: #E6EAED; --tint-3: #E7E4EF; --tint-4: #ECEAE5; }
.flow-circle { --tint-2: #F2E5E2; --tint-3: #EDE2EC; --tint-4: #F1E7E0; }
.flow-dusk { --tint-2: #EBE5EC; --tint-3: #E5E0ED; --tint-4: #EEE6E1; }

/* ── Base ─────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

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

/* Keep every page clear of the notch and home bar the same way (the viewport uses viewport-fit=cover),
   so the header sits at exactly the same height on every page */
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }

body {
  margin: 0;
  background-color: var(--canvas);
  background-image:
    radial-gradient(1500px 1100px at 6% -12%, rgba(255, 252, 242, 0.78), rgba(255, 252, 242, 0) 70%),
    radial-gradient(1200px 1000px at 108% 16%, rgba(176, 170, 132, 0.2), rgba(176, 170, 132, 0) 70%),
    url("../images/canvas.jpg"),
    linear-gradient(180deg, var(--tint-1) 0%, var(--tint-2) 24%, var(--tint-3) 50%, var(--tint-4) 76%, var(--tint-5) 100%);
  background-repeat: no-repeat, no-repeat, repeat, no-repeat;
  background-size: auto, auto, 256px 256px, 100% 100%;
  background-blend-mode: normal, multiply, multiply, normal;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
::selection { background: rgba(201, 138, 60, 0.28); }
.theme-dark ::selection { background: rgba(230, 169, 92, 0.35); }

:focus-visible { outline: 2px solid var(--amber-deep); outline-offset: 3px; border-radius: 4px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.site { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.site > main { flex: 1 0 auto; }

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--ink); color: var(--card); padding: 10px 18px; border-radius: 999px;
  font-size: 14px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.section { padding-block: clamp(84px, 11vw, 168px); }

/* ── Type ─────────────────────────────────────────────────────────────── */

.eyebrow {
  margin: 0;
  font-size: 12px; font-weight: 500; line-height: 1.4;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--ink-muted);
}

.display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

.section-head { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: clamp(48px, 6vw, 84px); text-align: center; }
.section-head--center { align-items: center; text-align: center; }
.section-title { font-size: clamp(36px, 4.2vw, 60px); max-width: 18ch; margin-inline: auto; }

.lead {
  margin: 0;
  max-width: 34ch;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(21px, 2.1vw, 27px);
  line-height: 1.35;
  color: var(--ink-lead);
  text-wrap: pretty;
}
.lead--long { max-width: 44ch; font-size: clamp(20px, 1.9vw, 25px); }

.prose { max-width: 62ch; font-size: 17.5px; line-height: 1.8; color: var(--ink-body); }
.prose p { margin: 0 0 1.2em; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 500; }

.closing {
  margin: 1.6em 0 0 !important;
  max-width: 28ch;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.3;
  color: var(--ink);
  text-wrap: balance;
}

.signature {
  margin: 0.6em 0 0;
  font-family: var(--font-script);
  font-weight: 600;
  font-size: 36px;
  line-height: 1;
  color: var(--ink);
}
.signature span { color: var(--amber); font-family: var(--font-body); font-size: 20px; margin-right: 6px; }

/* Headings arrive a line at a time (the script sets each word's line) */
.lines .w { display: inline-block; opacity: 0.2; transform: translateY(0.3em); transition: opacity 0.7s var(--ease), transform 0.75s var(--ease); transition-delay: calc(var(--line, 0) * 90ms + 30ms); }
.lines.lines-in .w { opacity: 1; transform: none; }

/* Placeholder text Emily still needs to supply */
.slot { color: var(--ink-muted); border-bottom: 1px dashed currentColor; }

/* ── Buttons & links ──────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px;
  border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--card);
  font: 500 12px/1 var(--font-body); letter-spacing: 0.17em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; touch-action: manipulation;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn:hover { background: var(--ink-hover); border-color: var(--ink-hover); }
.btn:disabled { opacity: 0.78; cursor: progress; }
.is-sending [type="submit"]::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor;
  animation: soft-pulse 1.1s var(--ease-breath) infinite;
}
@keyframes soft-pulse { 0%, 100% { transform: scale(0.6); opacity: 0.5; } 50% { transform: scale(1.15); opacity: 1; } }
.btn--block { width: 100%; }

.text-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font: 500 12.5px/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
  background: linear-gradient(var(--amber), var(--amber)) left calc(50% + 12px) / 100% 1px no-repeat;
  transition: background-size 0.3s var(--ease);
}
.text-link:hover { background-size: 40% 1px; }

/* ── Announcement strip ───────────────────────────────────────────────── */

.announce { position: relative; z-index: 31; background: var(--rule) bottom / 100% 1px no-repeat, rgba(24, 54, 36, 0.045); }
.announce__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 18px;
  min-height: 40px; padding-block: 6px; text-align: center;
  font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-body);
}
.announce__text {
  position: relative; margin: 0; display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px;
  min-height: 32px; color: inherit; text-decoration: none; transition: color var(--dur-2);
}
.announce__text:hover { color: var(--ink); }
/* Bigger invisible tap areas, without making the strip any taller */
.announce__text::after, .announce__link::after, .site-footer__bottom a::after { content: ""; position: absolute; inset: -7px -4px; }
.announce__short { display: none; }
@media (max-width: 599px) {
  .announce__long { display: none; }
  .announce__short { display: inline; }
  .announce__inner { flex-wrap: nowrap; gap: 14px; }
}
.announce__dot { width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, var(--flow-2), var(--flow-3)); }
.announce__link {
  position: relative; display: inline-flex; align-items: center; min-height: 32px; color: var(--ink); text-decoration: none;
  background: linear-gradient(var(--amber), var(--amber)) left calc(50% + 9px) / 100% 1px no-repeat;
}

/* ── Header & menu ────────────────────────────────────────────────────── */

/* Sticks to the top: tucks away while you read down, glides back as you scroll up (see site.js) */
.site-header {
  position: sticky; top: 0; z-index: 30; view-transition-name: site-header;
  transition: transform var(--dur-3) var(--ease-out), background-color var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out);
}
.site-header.is-stuck {
  background: rgba(239, 234, 218, 0.97);
  box-shadow: 0 1px 0 rgba(24, 54, 36, 0.08), 0 18px 36px -28px rgba(24, 54, 36, 0.45);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header.is-stuck {
    background: rgba(239, 234, 218, 0.74);
    -webkit-backdrop-filter: blur(16px) saturate(1.15); backdrop-filter: blur(16px) saturate(1.15);
  }
}
.site-header.is-hidden { transform: translateY(-105%); box-shadow: none; }
main [id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.site-header__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px;
  min-height: var(--header-h); padding-block: 14px;
}
.site-header__brand { grid-column: 2; justify-self: center; }
.site-header .menu { grid-column: 3; justify-self: end; }
/* Phones: just the menu icon, so the centred logo has room */
@media (max-width: 599px) {
  .menu__button { min-width: 44px; justify-content: flex-end; }
  .menu__button [data-menu-label] {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
}

.site-header__brand { position: relative; display: flex; justify-content: center; align-items: center; min-width: 0; }
.logo { display: inline-flex; align-items: baseline; gap: 6px; color: var(--ink); text-decoration: none; white-space: nowrap; transition: transform var(--dur-3) var(--ease-out); }
.here {
  position: absolute; left: 50%; top: calc(50% + 10px); translate: -50% 0;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; pointer-events: none;
  font: 500 10.5px/1 var(--font-body); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-muted);
  opacity: 0; transform: translateY(6px);
  transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out);
}
.here::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(135deg, var(--flow-2), var(--flow-4)); }
.site-header.is-deep .logo { transform: translateY(-9px); }
.site-header.is-deep .here { opacity: 1; transform: none; }
.logo__the { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: 15px; }
.logo__name { font-family: var(--font-script); font-weight: 600; font-size: 28px; line-height: 1; }
@media (min-width: 900px) {
  .logo__the { font-size: 18px; }
  .logo__name { font-size: 34px; }
}

.menu { position: relative; }

.menu__button {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 44px; padding: 8px 2px;
  background: none; border: 0; cursor: pointer; color: var(--ink);
  font: 500 12px/1 var(--font-body); letter-spacing: 0.22em; text-transform: uppercase;
  touch-action: manipulation;
}

.menu__icon { position: relative; width: 26px; height: 12px; }
.menu__icon::before, .menu__icon::after {
  content: ""; position: absolute; right: 0; height: 1.5px; background: currentColor;
  transition: transform 0.35s var(--ease), width 0.35s var(--ease), top 0.35s var(--ease);
}
.menu__icon::before { top: 1px; width: 26px; }
.menu__icon::after { top: 9px; width: 16px; }
.menu__button[aria-expanded="true"] .menu__icon::before { top: 5px; width: 20px; transform: rotate(45deg); }
.menu__button[aria-expanded="true"] .menu__icon::after { top: 5px; width: 20px; transform: rotate(-45deg); }

.menu__panel {
  position: absolute; top: calc(100% + 8px); right: -8px;
  width: min(320px, calc(100vw - 2 * var(--gutter)));
  padding: 10px;
  background: var(--card);
  border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 30px 60px -30px rgba(24, 54, 36, 0.5);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
}
.menu__panel[data-open="true"] {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.theme-dark .menu__panel { box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.6); }

.menu__list { list-style: none; margin: 0; padding: 0; }
.menu__link {
  display: flex; flex-direction: column; gap: 3px;
  padding: 11px 14px; border-radius: 14px; text-decoration: none;
  transition: background-color 0.2s;
}
.menu__link:hover, .menu__link[aria-current="page"] { background: rgba(24, 54, 36, 0.06); }
.menu__here {
  display: inline-block; margin-left: 10px; padding: 4px 8px; border-radius: 999px; vertical-align: 1px;
  background: var(--ink); color: var(--card);
  font: 500 9px/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap;
}
.theme-dark .menu__link:hover, .theme-dark .menu__link[aria-current="page"] { background: rgba(241, 235, 221, 0.08); }
.menu__title { font-family: var(--font-display); font-size: 22px; font-weight: 400; line-height: 1.1; color: var(--ink); }
.menu__sub { font-size: 10.5px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-muted); }

/* ── Home: hero with the tree ─────────────────────────────────────────── */

.hero {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-bottom: 20px; overflow-x: clip;
}
.hero__text {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  max-width: 1000px; padding-top: clamp(14px, 3.4vw, 44px);
}
.hero__title { font-size: clamp(44px, 6.4vw, 98px); text-wrap: balance; }
.hero__text .eyebrow { text-wrap: balance; }
.hero__lead { margin-inline: auto; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 30px; margin-top: 8px; }
.hero__intro { margin: 6px auto 0; max-width: 44ch; color: var(--ink-body); text-wrap: balance; }

/* The tree, centred and edge to edge on phones (a touch wider than the screen; the hero clips it) */
.hero__art {
  position: relative; width: min(108vw, 600px); margin-top: clamp(8px, 2vw, 20px);
  aspect-ratio: 752 / 962;
}
@media (min-width: 960px) {
  .hero__art { width: min(560px, 48vw); }
}
/* A soft pool of shade where the roots meet the ground */
.hero__art::before {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -1.5%; height: 9%; pointer-events: none;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(52, 58, 34, 0.2), rgba(52, 58, 34, 0));
}
/* The birds fly in from beyond the tree, so the drawing doesn't clip at its edges */
.tree-scene { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tree-scene__tree { opacity: 0.92; animation: tree-in 1s var(--ease) both; }

.scroll-cue {
  grid-area: cue; justify-self: center;
  display: inline-flex; flex-direction: column; align-items: center; gap: 12px;
  margin-top: 18px; padding: 6px 12px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--ink-muted); text-decoration: none;
}
.scroll-cue:hover { color: var(--ink); }
.scroll-cue__line { position: relative; width: 1px; height: 48px; overflow: hidden; background: var(--line); }
.scroll-cue__line::after {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 45%;
  background: linear-gradient(180deg, transparent, var(--amber));
  transform: translateY(-100%);
}
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(240%); } }
.statement { scroll-margin-top: 24px; }

/* ── Breath lines & birds ─────────────────────────────────────────────── */

.trace {
  stroke-dasharray: 0.12 1;
  stroke-dashoffset: 0.12;
  opacity: 0;
  animation-name: trace-move, trace-fade;
  animation-timing-function: ease-in-out, ease-in-out;
  animation-iteration-count: infinite, infinite;
  animation-fill-mode: backwards, backwards;
}

.bird__body.is-flapping .bird__open { animation: flap 0.24s step-end infinite; }
.bird__body.is-flapping .bird__closed { animation: flap 0.24s step-end -0.12s infinite; }
.bird__body.is-perched .bird__open { display: none; }

@keyframes trace-move { from { stroke-dashoffset: 0.12; } to { stroke-dashoffset: -1; } }
@keyframes trace-fade { 0% { opacity: 0; } 33.33% { opacity: 0.8; } 66.67% { opacity: 0.8; } 100% { opacity: 0; } }
@keyframes flap { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 0; } }
@keyframes tree-in { from { opacity: 0.5; } to { opacity: 0.92; } }

/* ── Statement: a few words from Emily, centred ───────────────────────── */

.statement { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; }
.statement::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(34% 46% at 28% 52%, rgba(233, 201, 121, 0.14), transparent 70%),
    radial-gradient(32% 42% at 74% 44%, rgba(199, 125, 255, 0.08), transparent 70%);
}
.statement__text {
  margin: 0; max-width: 22ch;
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(31px, 3.8vw, 54px); line-height: 1.14; letter-spacing: -0.018em;
  color: var(--ink); text-wrap: balance;
}
.statement__sub {
  margin: 0; max-width: 40ch;
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: clamp(19px, 1.9vw, 25px); line-height: 1.45;
  color: var(--ink-lead); text-wrap: pretty;
}
.statement .signature { margin: 0; }

/* ── Soft colour washes (offerings, cards) ────────────────────────────── */

.wash {
  background-color: var(--linen);
  background-image:
    radial-gradient(110% 85% at 100% 0%, var(--w1), transparent 62%),
    radial-gradient(95% 80% at 0% 100%, var(--w2), transparent 66%),
    url("../images/canvas.jpg");
  background-size: auto, auto, 256px 256px;
  background-blend-mode: normal, normal, multiply;
}
.wash--body { --w1: rgba(239, 170, 108, 0.55); --w2: rgba(245, 214, 140, 0.5); }
.wash--earth { --w1: rgba(160, 186, 120, 0.5); --w2: rgba(233, 214, 142, 0.45); }
.wash--room { --w1: rgba(160, 186, 220, 0.55); --w2: rgba(200, 182, 232, 0.45); }
.wash--circle { --w1: rgba(212, 156, 220, 0.45); --w2: rgba(242, 186, 160, 0.45); }

/* ── A note from Emily, with her photo ─────────────────────────────────── */

.note { gap: 40px; }
.note .arch-wrap { width: min(80%, 340px); margin: 14px auto 0; }
.note__text { display: flex; flex-direction: column; align-items: center; gap: 24px; }

/* ── Ways to work together: sherbet cards that glow as they pass the middle of the screen ── */

.services__list { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; display: flex; flex-direction: column; gap: 14px; }
.service {
  --hue: var(--peach); --hue-soft: var(--peach-soft); --hue-deep: var(--peach-deep);
  --pop-in: 0.985; --pop-out: 1.004;
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label arrow" "title arrow" "text arrow";
  align-items: center; gap: 8px 22px;
  padding: clamp(22px, 3vw, 32px) clamp(22px, 3.6vw, 40px);
  border: 1px solid rgba(24, 54, 36, 0.1); border-radius: 26px;
  background: rgba(255, 252, 244, 0.5);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 18px 40px -34px rgba(24, 54, 36, 0.35);
  color: var(--ink); text-decoration: none; text-align: left; touch-action: manipulation;
  transition: border-color 0.9s var(--ease-out), box-shadow 0.9s var(--ease-out), transform var(--dur-3) var(--ease-out);
}
.service--mint { --hue: var(--mint); --hue-soft: var(--mint-soft); --hue-deep: var(--mint-deep); }
.service--lilac { --hue: var(--lilac); --hue-soft: var(--lilac-soft); --hue-deep: var(--lilac-deep); }
.service--rose { --hue: var(--rose); --hue-soft: var(--rose-soft); --hue-deep: var(--rose-deep); }
/* The glow: the card's own colour pooling from one corner, fading in gently */
.service::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(90% 140% at 0% 0%, var(--hue) 0%, transparent 70%),
    radial-gradient(80% 130% at 100% 100%, var(--hue) 0%, transparent 66%),
    linear-gradient(var(--hue-soft), var(--hue-soft));
  opacity: 0; transition: opacity 1.1s var(--ease-out);
}
.service.is-lit::before { opacity: 1; }
/* Lit: the card fills with its colour and gives off a soft halo of the same light */
.service.is-lit {
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 0 0 6px var(--hue-soft), 0 0 60px -4px var(--hue), 0 30px 60px -36px var(--hue-deep);
}
.service__label { grid-area: label; display: inline-flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-body); }
.service__label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--hue-deep); }
.service__title { grid-area: title; font-family: var(--font-display); font-weight: 300; font-size: clamp(32px, 3.6vw, 50px); line-height: 1.02; letter-spacing: -0.02em; }
.service__text { grid-area: text; max-width: 46ch; margin-top: 2px; font-size: 16.5px; line-height: 1.6; color: var(--ink-body); }
.service__arrow {
  grid-area: arrow; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--frame); color: var(--ink);
  transition: background-color 0.6s var(--ease-out), border-color 0.6s var(--ease-out), color 0.6s var(--ease-out), transform var(--dur-3) var(--ease-out);
}
.service__arrow::before {
  content: ""; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 8h12M9 3l5 5-5 5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 8h12M9 3l5 5-5 5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.service.is-lit .service__arrow { background: var(--hue-deep); border-color: var(--hue-deep); color: #FFFDF8; }
@media (hover: hover) and (pointer: fine) {
  .service:hover::before { opacity: 1; }
  .service:hover .service__arrow { background: var(--hue-deep); border-color: var(--hue-deep); color: #FFFDF8; transform: translateX(4px); }
}

/* ── Chapter guide: where you are in the home page story (wide screens) ── */

.chapters { display: none; }
@media (min-width: 1180px) {
  .chapters {
    position: fixed; left: 18px; top: 50%; z-index: 20;
    display: flex; flex-direction: column; gap: 6px; padding: 10px 6px;
    border-radius: 999px; background: rgba(239, 234, 218, 0.78);
    box-shadow: 0 10px 30px -20px rgba(24, 54, 36, 0.5);
    opacity: 0; visibility: hidden; transform: translate(-8px, -50%);
    transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out), visibility 0s linear var(--dur-3);
  }
  .chapters.is-shown { opacity: 1; visibility: visible; transform: translate(0, -50%); transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out); }
  @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .chapters { background: rgba(239, 234, 218, 0.62); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  }
  .chapters a { position: relative; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; text-decoration: none; }
  .chapters__dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--ink-muted); transition: transform var(--dur-2) var(--ease-out), background-color var(--dur-2), border-color var(--dur-2); }
  .chapters a[aria-current] .chapters__dot { transform: scale(1.35); border-color: transparent; background: linear-gradient(135deg, var(--flow-2), var(--flow-3)); }
  .chapters__label {
    position: absolute; left: calc(100% + 10px); top: 50%; transform: translate(-4px, -50%);
    padding: 7px 12px; border-radius: 999px; background: var(--card); box-shadow: 0 8px 24px -14px rgba(24, 54, 36, 0.5);
    font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); white-space: nowrap;
    opacity: 0; pointer-events: none; transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
  }
  .chapters a:hover .chapters__label, .chapters a:focus-visible .chapters__label { opacity: 1; transform: translate(0, -50%); }
}

@media (min-width: 900px) {
  .note .arch-wrap { width: 400px; max-width: 400px; margin: 0 auto; }
}

/* ── Arch windows: every page looks out through one ──────────────────── */
/* Rounded top, flat bottom, with a fine outer frame and a sill line */

.arch-wrap {
  --bleed: rgba(214, 178, 120, 0.4);
  position: relative; width: min(76%, 340px); margin: 14px auto 0;
  border-radius: 999px 999px 0 0;
  box-shadow: 0 40px 120px -24px var(--bleed), -50px 10px 110px -60px var(--bleed);
}
.arch-wrap:has(.arch--photo) { --bleed: rgba(104, 148, 96, 0.46); }
.arch-wrap:has(.arch--person) { --bleed: rgba(110, 150, 96, 0.42); }
.arch-wrap:has(.arch--breath) { --bleed: rgba(232, 158, 98, 0.42); }
.arch-wrap:has(.arch--dusk) { --bleed: rgba(150, 96, 140, 0.4); }
.arch-wrap:has(.arch--drawing) { --bleed: rgba(170, 160, 128, 0.42); }
.arch-wrap:has(.arch--circle) { --bleed: rgba(206, 148, 206, 0.4); }
.arch-wrap[data-active="body"] { --bleed: rgba(232, 158, 98, 0.42); }
.arch-wrap[data-active="earth"] { --bleed: rgba(104, 148, 96, 0.46); }
.arch-wrap[data-active="room"] { --bleed: rgba(136, 162, 212, 0.44); }
.arch-wrap[data-active="circle"] { --bleed: rgba(206, 148, 206, 0.4); }
.arch-wrap::before {
  content: ""; position: absolute; inset: -12px -12px 0; pointer-events: none;
  border: 1px solid var(--frame); border-bottom: 0; border-radius: 999px 999px 0 0;
}
.arch-wrap::after {
  content: ""; position: absolute; left: -30px; right: -30px; bottom: 0; height: 1px;
  background: var(--frame); pointer-events: none;
  box-shadow: 0 9px 18px -3px rgba(60, 46, 20, 0.2);
}
.arch {
  position: relative; isolation: isolate; overflow: hidden;
  margin: 0; width: 100%; aspect-ratio: 4 / 5;
  border-radius: 999px 999px 0 0;
  /* An explicit clip too: Safari ignores rounded corners on video and canvas without it */
  clip-path: inset(0 round 999px 999px 0 0);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  background: var(--paper-deep);
}
.arch > img, .arch > video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* The opening is set into the wall: shade under the top of the arch and along the sill */
.arch::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  box-shadow:
    inset 0 24px 34px -18px rgba(20, 28, 18, 0.34),
    inset 0 0 0 1px rgba(24, 54, 36, 0.12),
    inset 0 -46px 60px -54px rgba(20, 28, 18, 0.3);
}
/* A real photo of Emily: shown as it is, framed on her face */
.arch--person img { object-position: 50% 30%; }
.arch--photo img { object-position: 60% 50%; }
.arch--photo[data-living-stream] > img {
  position: absolute; top: 50%; right: 0; left: auto;
  width: 106%; height: auto; max-width: none; transform: translateY(-50%);
}
@keyframes drift { from { transform: scale(1.14) translate3d(0, -1.5%, 0); } to { transform: scale(1.03) translate3d(0, 1.5%, 0); } }

/* The living stream draws over the still photo once it's running */
.arch__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  opacity: 0; transition: opacity 1.4s ease; touch-action: manipulation; cursor: pointer;
}
.is-living > .arch__canvas { opacity: 1; }
.arch__hint {
  position: absolute; left: 0; right: 0; top: calc(100% + 14px); margin: 0; text-align: center;
  font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-muted);
  transition: opacity 0.6s ease;
}
.arch__hint.is-done { opacity: 0; }

/* 1-on-1: light moving down through the body, like a breath */

/* 1-on-1: one breath rising. The glowing point climbs as you breathe in and sinks as you breathe out */
.arch--breath .breath-art { position: absolute; left: 0; top: 4%; width: 100%; height: 92%; }
.breath-art__line { fill: none; stroke: url(#breath-rise); stroke-width: 2.4; stroke-linecap: round; }
.breath-art__glow { fill: none; stroke: url(#breath-rise); stroke-width: 9; opacity: 0.5; }

/* Connect: dusk, the first stars and a crescent moon over the hills */
.arch--dusk { background: linear-gradient(180deg, #29233F 0%, #4B3963 36%, #8E5E78 64%, #D29873 86%, #ECC287 100%); }
.arch__moon {
  position: absolute; left: 58%; top: 17%; width: 18%; aspect-ratio: 1; border-radius: 50%;
  box-shadow: inset -6px 3px 0 0 #F7E9C6; filter: drop-shadow(0 0 8px rgba(247, 233, 198, 0.55)); transform: rotate(-18deg);
}
.arch__star {
  position: absolute; left: var(--x); top: var(--y); width: 3px; height: 3px; border-radius: 50%;
  background: #FFF6E0; box-shadow: 0 0 6px 1px rgba(255, 246, 224, 0.7); opacity: 0.85;
}
@keyframes twinkle { 0%, 100% { opacity: 0.85; } 50% { opacity: 0.25; } }
.arch__ridge { position: absolute; left: -20%; right: -20%; bottom: -14%; height: 34%; border-radius: 50% 50% 0 0; background: #23322A; }
.arch__ridge--back { left: 12%; right: -40%; bottom: -6%; height: 38%; background: #4A4258; }

/* Drawings (Emily's portrait, Emily leading a session): the white paper melts into the arch */
.arch--drawing { background: var(--paper-deep); }
.arch--drawing img { object-position: 50% 30%; mix-blend-mode: multiply; }

/* The Circle: ripples spreading from one point */
.arch__ripple, .arch__drop { position: absolute; left: 50%; top: 56%; border-radius: 50%; }
.arch__ripple { width: 34%; aspect-ratio: 1; margin: -17% 0 0 -17%; border: 1px solid rgba(24, 54, 36, 0.38); opacity: 0.5; }
.arch__ripple:nth-child(2) { transform: scale(1.5); opacity: 0.32; }
.arch__ripple:nth-child(3) { transform: scale(2.1); opacity: 0.2; }
.arch__ripple:nth-child(4) { transform: scale(2.7); opacity: 0.1; }
.arch__drop { width: 12px; height: 12px; margin: -6px 0 0 -6px; background: radial-gradient(circle at 35% 30%, #FFF4E0, #D98A3C 55%, #9B5CE0); }
@keyframes ripple { 0% { transform: scale(0.2); opacity: 0; } 12% { opacity: 0.7; } 100% { transform: scale(2.9); opacity: 0; } }

@media (min-width: 900px) {
  .arch-wrap { width: 100%; max-width: 420px; margin: 0 0 0 auto; }
}

/* ── Closing invitation, over the forest floor ────────────────────────── */

.invite {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; align-items: center; min-height: clamp(600px, 94svh, 920px);
  margin-left: max(10px, env(safe-area-inset-left, 0px)); margin-right: max(10px, env(safe-area-inset-right, 0px));
  border-radius: 28px; background: var(--night); color: var(--ink);
  box-shadow: 0 2px 4px rgba(15, 30, 23, 0.2), 0 50px 90px -50px rgba(15, 30, 23, 0.75);
}
@media (min-width: 900px) {
  .invite { margin-left: 24px; margin-right: 24px; border-radius: 40px; }
}
.invite__photo { position: absolute; inset: 0; z-index: -1; }
.invite__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 44% 60%; }
@media (min-width: 900px) {
  .invite__photo img { object-position: 50% 33%; }
}
/* Shade over the photo so the words read clearly, deepest where the words sit */
.invite::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(64% 56% at 50% 46%, rgba(10, 22, 14, 0.5), transparent 78%),
    linear-gradient(180deg, rgba(10, 22, 14, 0.56) 0%, rgba(10, 22, 14, 0.36) 50%, rgba(10, 22, 14, 0.62) 100%);
}
.invite__inner {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-block: clamp(88px, 12vw, 160px);
}
.invite__text { display: flex; flex-direction: column; align-items: center; gap: clamp(20px, 2.4vw, 30px); text-shadow: 0 2px 28px rgba(5, 14, 8, 0.45); }
.invite .eyebrow { font-size: clamp(12px, 1.1vw, 14px); color: #F1EBDD; }
.invite__title { max-width: 11ch; font-size: clamp(58px, 9.4vw, 136px); line-height: 0.98; color: #FBF6EA; }
.invite__copy { margin: 0; max-width: 22ch; font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: clamp(26px, 3.2vw, 42px); line-height: 1.25; color: #F6EFDF; }
.invite__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 36px; margin-top: clamp(8px, 1.6vw, 18px); text-shadow: none; }
.invite .btn { color: var(--night); background: #F6F0E2; border-color: #F6F0E2; }
.invite .btn:hover { background: #FFFFFF; border-color: #FFFFFF; }
.btn--large { min-height: 62px; padding: 0 40px; font-size: 13.5px; }
.invite__phone { font-size: 14px; color: #FBF6EA; text-shadow: 0 1px 14px rgba(5, 14, 8, 0.7); }


.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ── The Circle sign-up ───────────────────────────────────────────────── */

.signup__box { width: 100%; padding: clamp(24px, 3.4vw, 40px); border-radius: 26px; box-shadow: var(--paper-shadow); }
.signup__form { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: left; }
.signup__form .field-row, .signup__form .form-error { width: 100%; }
.signup__note { margin: 0; font-size: 13.5px; color: var(--ink-muted); text-align: center; }

/* ── Inner pages ──────────────────────────────────────────────────────── */

.page-hero {
  position: relative;
  display: flex; flex-direction: column; gap: 22px;
  padding-block: clamp(40px, 7vw, 96px) clamp(44px, 6vw, 88px);
}
.page-hero__title { max-width: 12ch; font-size: clamp(48px, 6vw, 92px); }
.page-hero--arch { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; }
.page-hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.page-hero__text .prose { margin-top: 6px; }
@media (min-width: 900px) {
  .page-hero--arch { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 80px; align-items: center; }
}
/* Centred version: the heading and its line sit centred, with the arch window centred beneath */
.page-hero--center { justify-items: center; text-align: center; }
.page-hero--center .page-hero__text { align-items: center; }
.page-hero--center :is(.page-hero__title, .lead) { margin-inline: auto; }
@media (min-width: 900px) {
  .page-hero--arch.page-hero--center { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .page-hero--center .arch-wrap { margin: 0 auto; }
}

.page-body {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px;
  padding-bottom: clamp(72px, 10vw, 140px);
}

.aside {
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
  padding-top: 26px; border-top: 1px solid var(--line);
}
.aside:has(.event), .aside--form { padding-top: 0; border-top: 0; }
.aside--form .signup__form { align-items: flex-start; }
.aside__note { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-body); }
.aside__note a { text-decoration: none; border-bottom: 1px solid var(--line); }

@media (min-width: 960px) {
  .page-body { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 80px; }
  .page-body > .aside { grid-column: 1; grid-row: 1; position: sticky; top: 32px; align-self: start; }
  .page-body > .page-main { grid-column: 2; grid-row: 1; }
  .page-body--reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .page-body--reverse > .page-main { grid-column: 1; }
  .page-body--reverse > .aside { grid-column: 2; }
}

.page-main { min-width: 0; }

/* Meet Emily */
.story { padding-bottom: clamp(8px, 2vw, 24px); }
.story-end {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  padding-bottom: clamp(84px, 11vw, 150px);
}
.story-end .prose { margin-inline: auto; }
.story-end .closing { margin-inline: auto !important; }
.story-end__actions { margin-top: 30px; }

/* Nature groups: next group card */
.event { width: 100%; display: flex; flex-direction: column; gap: 20px; padding: clamp(24px, 3vw, 32px); border-radius: 24px; box-shadow: var(--paper-shadow); }
.event__facts { margin: 0; }
.event__facts div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(24, 54, 36, 0.14); }
.event__facts dt { font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-muted); }
.event__facts dd { margin: 0; text-align: right; font-family: var(--font-display); font-size: 19px; line-height: 1.3; }

/* Label, heading and paragraph trios (nature groups, schools) */
.page-body + .trio-section { padding-top: 0; }
.trio { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; max-width: 1120px; margin-inline: auto; }
.trio__item { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-inline: 12px; text-align: center; }
.trio__title { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.05; letter-spacing: -0.015em; }
.trio__item p:last-child { margin: 0; max-width: 32ch; font-size: 16px; line-height: 1.7; color: var(--ink-body); }
@media (min-width: 860px) {
  .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .trio__item { padding-inline: 36px; }
  .trio__item + .trio__item { background: linear-gradient(180deg, transparent, var(--line) 18%, var(--line) 82%, transparent) left / 1px 100% no-repeat; }
}

/* The Circle */
.list-title { margin: 40px 0 0; }
.checklist { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line); max-width: 62ch; }
.checklist li {
  display: flex; align-items: baseline; gap: 16px;
  padding: 15px 0; border-bottom: 1px solid var(--line);
  font-size: 16.5px; line-height: 1.55; color: var(--ink-body);
}
.checklist li::before {
  content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; transform: translateY(-2px);
  background: linear-gradient(135deg, var(--flow-2), var(--flow-4));
}

/* ── Scroll journey through the body (home page) ──────────────────────── */

.journey { --rail: 30px; --rail-gap: 18px; padding-bottom: clamp(84px, 11vw, 160px); scroll-margin-top: 24px; }
.journey__more { margin-top: clamp(40px, 5vw, 64px); padding-left: calc(var(--rail) + var(--rail-gap)); }

.journey__head {
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  padding-top: clamp(56px, 7vw, 96px); margin-bottom: clamp(56px, 7vw, 96px);
  background: var(--rule) top / 100% 1px no-repeat;
}
.journey__title { max-width: 16ch; font-size: clamp(38px, 4.4vw, 62px); }

.journey__track { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); column-gap: var(--rail-gap); }

.journey__rail { grid-column: 1; grid-row: 1; position: relative; }
/* Without the script: a plain line */
.journey__rail::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--line); }
.journey.is-enhanced .journey__rail::before { display: none; }

.journey__line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.journey__path { fill: none; stroke: var(--ink); stroke-opacity: 0.22; stroke-width: 1.2; }
.journey__progress { fill: none; stroke-width: 2.2; stroke-linecap: round; }
.journey__tip { fill: var(--ink); }
.journey__tip-glow { fill: var(--amber); opacity: 0.28; }
.journey__tip, .journey__tip-glow { transition: opacity 0.3s; }
.journey:not(.is-enhanced) .journey__line { display: none; }

.journey__steps {
  grid-column: 2; grid-row: 1;
  list-style: none; margin: 0; padding: 0 0 24px;
  display: flex; flex-direction: column; gap: clamp(96px, 16vh, 180px);
}

.journey__step { position: relative; display: flex; flex-direction: column; gap: 12px; }
.journey.is-enhanced .journey__step { opacity: 0.86; transition: opacity 0.6s var(--ease); }
.journey__step .eyebrow { color: var(--ink-body); }
.journey.is-enhanced .journey__step.is-reached { opacity: 1; }

.journey__dot {
  position: absolute; top: 8.4px; left: calc(-1 * (var(--rail-gap) + var(--rail) / 2));
  width: 13px; height: 13px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink-muted);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.journey__step.is-reached .journey__dot { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 0 6px rgba(230, 169, 92, 0.18); }

.journey__step-title { font-size: clamp(40px, 4.6vw, 62px); margin-bottom: 6px; }
.journey__lead {
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: clamp(21px, 2.1vw, 26px); line-height: 1.38; color: var(--ink-lead);
}

.journey__figure { display: none; }
.body-figure { width: 150px; height: auto; overflow: visible; }
.body-part path { fill: var(--ink); opacity: 0.22; transition: fill 0.5s var(--ease), opacity 0.5s var(--ease); }
.body-part[data-selectable] { cursor: pointer; }
.body-part[data-selectable]:hover path { opacity: 0.4; }
.body-part.is-active path {
  fill: var(--amber); opacity: 1;
  transform-box: fill-box; transform-origin: center;
  animation: part-breathe 8s ease-in-out infinite;
}
@keyframes part-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }

@media (min-width: 960px) {
  .journey { --rail: 120px; --rail-gap: 36px; }
  .journey__track { grid-template-columns: var(--rail) minmax(0, 1fr) 200px; }
  .journey__steps { max-width: 680px; }
  .journey__figure { display: block; grid-column: 3; grid-row: 1; }
  .journey__figure .body-figure { position: sticky; top: calc(50vh - 130px); width: 160px; margin-left: auto; }
}

/* 1-on-1: session details and questions */
.facts {
  margin: 0; display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  box-shadow: var(--paper-shadow);
}
.fact { display: flex; flex-direction: column; gap: 12px; padding: 28px 26px; background: var(--card) url("../images/canvas.jpg") 0 0 / 256px 256px; background-blend-mode: multiply; }
.fact dt { font-size: 11.5px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-muted); }
.fact dd { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: clamp(23px, 2.2vw, 29px); line-height: 1.2; }

.faq { padding-bottom: clamp(24px, 4vw, 56px); }
.faq__list { max-width: 860px; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 300; font-size: clamp(21px, 2.1vw, 27px); line-height: 1.25; color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: none; width: 16px; height: 16px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform 0.35s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item .prose { padding-bottom: 26px; }

.journey-end {
  display: flex; flex-direction: column; gap: 18px;
  padding-block: clamp(64px, 9vw, 120px) clamp(72px, 10vw, 140px);
}
.journey-end__title { font-size: clamp(38px, 4.4vw, 62px); }
.journey-end__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 10px; }

/* ── Connect & forms ──────────────────────────────────────────────────── */

.connect {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px;
  grid-template-areas: "intro" "form" "direct";
  padding-block: clamp(36px, 6vw, 88px) clamp(72px, 10vw, 140px);
}
.connect__intro { grid-area: intro; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.connect .contact__card { grid-area: form; }
.connect__direct {
  grid-area: direct; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 28px 36px;
  padding-top: 34px; background: var(--rule) top / 100% 1px no-repeat;
}
.connect__line { display: flex; flex-direction: column; gap: 14px; }
.arch-wrap--small { flex: none; width: 150px; margin: 14px 0 0; }
.arch-wrap--small::before { inset: -8px -8px 0; }
.arch-wrap--small::after { left: -18px; right: -18px; }
.contact__phone {
  font-family: var(--font-display); font-size: clamp(32px, 3.2vw, 44px); font-weight: 300; line-height: 1;
  color: var(--ink); text-decoration: none; font-variant-numeric: lining-nums;
}
.contact__card {
  padding: clamp(24px, 4vw, 44px);
  background: var(--card) url("../images/canvas.jpg") 0 0 / 256px 256px; background-blend-mode: multiply;
  border: 1px solid var(--line); border-radius: 26px;
  box-shadow: var(--paper-shadow);
}
@media (min-width: 960px) {
  .connect { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: "intro form" "direct form"; column-gap: 80px; row-gap: 56px; align-items: start; }
  .arch-wrap--small { width: 170px; margin: 14px 0 0; }
}

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font-size: 11.5px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px;
  font: 400 16px/1.5 var(--font-body); color: var(--ink);
  background: var(--field); border: 1px solid #CBC1A9; border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(201, 138, 60, 0.2);
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23183624' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 16px;
}
.field ::placeholder { color: #6E7D71; }
.field__optional { margin-left: 6px; font-family: var(--font-display); font-style: italic; font-size: 13.5px; letter-spacing: 0.01em; text-transform: none; }
.field__error { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 14px; line-height: 1.45; color: var(--danger); }
.field__error::before {
  content: "!"; flex: none; display: grid; place-items: center; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%;
  background: var(--danger); color: #FFF8EE; font: 600 11px/1 var(--font-body);
}
.field.is-invalid :is(input, textarea), .field.is-invalid :is(input, textarea):focus {
  border-color: #B4562A; box-shadow: 0 0 0 4px rgba(180, 86, 42, 0.14);
}
/* A small tick once a required field is filled in correctly */
.field.is-valid input {
  padding-right: 44px;
  background: var(--field) url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233F6B48' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M5 12.5l4.5 4.5L19 7.5'/%3e%3c/svg%3e") no-repeat right 15px center / 17px;
}

/* Interest chips on the Connect form */
.chips { min-width: 0; margin: 0; padding: 0; border: 0; }
.chips__legend {
  padding: 0; margin-bottom: 12px;
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-muted);
}
.chips__list { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid #CBC1A9; background: var(--field); color: var(--ink-body); font-size: 15px;
  transition: background-color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
}
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--card); }
.chip input:checked + span::before {
  content: ""; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%;
  background: linear-gradient(135deg, var(--flow-1), var(--flow-2));
}
.chip input:focus-visible + span { outline: 2px solid var(--amber-deep); outline-offset: 3px; }
.form-note { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-muted); text-align: center; }

.form-error { margin: 0; padding: 12px 14px; border-radius: 12px; background: #F6E3D2; color: #7A3A12; font-size: 15px; line-height: 1.5; }
.form-success { display: flex; flex-direction: column; gap: 14px; outline: none; }
.form-success__title { margin: 0; font-size: clamp(32px, 3.2vw, 42px); }
.check__ring, .check__mark { stroke-dasharray: 1; stroke-dashoffset: 0; }

/* What happens after you send a message */
.next-steps {
  list-style: none; margin: 8px 0 0; padding: 20px 0 0; display: flex; flex-direction: column; gap: 12px;
  background: var(--rule) top / 100% 1px no-repeat;
}
.next-steps li { display: flex; align-items: flex-start; gap: 14px; font-size: 16px; line-height: 1.55; color: var(--ink-body); }
.next-steps__n {
  flex: none; display: grid; place-items: center; width: 26px; height: 26px; margin-top: -1px; border-radius: 50%;
  border: 1px solid var(--frame); font: 500 12px/1 var(--font-body); color: var(--ink);
}

/* The Circle: ripples spread out when you join */
.form-success--circle { align-items: center; text-align: center; }
.success-ripples { position: relative; width: 64px; height: 64px; margin-bottom: 6px; }
.success-ripples span { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(24, 54, 36, 0.32); transform: scale(0.5); opacity: 0.6; }
.success-ripples span:nth-child(2) { transform: scale(0.8); opacity: 0.35; }
.success-ripples span:nth-child(3) { transform: scale(1.1); opacity: 0.18; }
.success-ripples i {
  position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFF4E0, #D98A3C 55%, #9B5CE0);
}
@keyframes ripple-once { 0% { transform: scale(0.15); opacity: 0; } 20% { opacity: 0.7; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.form-success__icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: rgba(24, 54, 36, 0.06); color: var(--amber-deep);
}

/* ── Footer ───────────────────────────────────────────────────────────── */

.site-footer {
  /* shade pools at the foot of the canvas */
  background: var(--rule) top / 100% 1px no-repeat, linear-gradient(180deg, rgba(80, 64, 32, 0), rgba(80, 64, 32, 0.07));
}
.site-footer__top {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px;
  padding-block: clamp(48px, 6vw, 84px) 36px;
}
@media (min-width: 760px) {
  .site-footer__top { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
}
.site-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.site-footer__brand p { margin: 0; max-width: 30ch; font-size: 15px; line-height: 1.6; color: var(--ink-body); }
.footer-nav, .site-footer__contact { display: flex; flex-direction: column; align-items: flex-start; }
.footer-nav .eyebrow, .site-footer__contact .eyebrow { margin-bottom: 8px; }
.footer-nav a, .site-footer__contact a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 15.5px; color: var(--ink-body); text-decoration: none; transition: color 0.2s;
}
.footer-nav a:hover, .site-footer__contact a:hover, .footer-nav a[aria-current="page"] { color: var(--ink); }
.footer-nav a[aria-current="page"]::before {
  content: ""; width: 6px; height: 6px; margin-right: 10px; border-radius: 50%;
  background: linear-gradient(135deg, var(--flow-2), var(--flow-4));
}
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  padding-block: 20px 28px;
  font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted);
}
.site-footer__bottom::before { content: ""; flex-basis: 100%; height: 1px; margin-bottom: 10px; background: var(--rule); }
.site-footer__bottom a { position: relative; display: inline-flex; align-items: center; min-height: 32px; text-decoration: none; }
.site-footer__bottom a:hover { color: var(--ink); }

/* ── Motion ───────────────────────────────────────────────────────────── */

@keyframes rise { from { opacity: 0.4; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Every page settles in with a slow fade and a slight rise; the header stays put between pages */
@keyframes page-in { from { opacity: 0.55; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Buttons: a soft squeeze, then a little overshoot, like a bubble (big cards squeeze less) */
@keyframes press-pop {
  0% { transform: scale(1); }
  28% { transform: scale(var(--pop-in, 0.93)); }
  62% { transform: scale(var(--pop-out, 1.045)); }
  84% { transform: scale(0.995); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: no-preference) {
  /* The home hero has its own staggered rise */
  .site > main > :not(.hero), .site-footer { animation: page-in 0.45s var(--ease) backwards; }
  .site-footer { animation-delay: 0.25s; }
  .rise { animation: rise 0.55s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms + 40ms); }
  .is-popping { animation: press-pop 0.5s cubic-bezier(0.3, 0.7, 0.4, 1) both; }

  /* Sections settle into place as they scroll into view (only once the script has run) */
  .can-reveal [data-reveal] { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .can-reveal [data-reveal]:not(.is-revealed) { opacity: 0.5; transform: translateY(16px); }
      
  .scroll-cue__line::after { animation: cue 2.6s cubic-bezier(0.45, 0, 0.3, 1) infinite; }
  .arch--photo:not([data-living-stream]) img { animation: drift 32s ease-in-out infinite alternate; }
  .arch__ripple { animation: ripple 8s linear infinite; }
  .arch__ripple:nth-child(2) { animation-delay: -2s; }
  .arch__ripple:nth-child(3) { animation-delay: -4s; }
  .arch__ripple:nth-child(4) { animation-delay: -6s; }
  .arch__star { animation: twinkle 4.5s ease-in-out var(--d, 0s) infinite; }
  .form-success.is-shown > * { animation: rise 0.8s var(--ease) both; }
  .form-success.is-shown > :nth-child(2) { animation-delay: 0.1s; }
  .form-success.is-shown > :nth-child(3) { animation-delay: 0.2s; }
  .form-success.is-shown > :nth-child(4) { animation-delay: 0.3s; }
  .form-success.is-shown .check__ring { animation: draw 0.9s var(--ease) 0.1s both; }
  .form-success.is-shown .check__mark { animation: draw 0.5s var(--ease) 0.75s both; }
  .form-success.is-shown .success-ripples span { animation: ripple-once 2.4s var(--ease-out) both; }
  .form-success.is-shown .success-ripples span:nth-child(2) { animation-delay: 0.3s; }
  .form-success.is-shown .success-ripples span:nth-child(3) { animation-delay: 0.6s; }

  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: 0.2s ease both page-out; }
  ::view-transition-new(root) { animation: none; }
  @keyframes page-out { to { opacity: 0; } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .trace { animation: none; opacity: 0.5; stroke-dasharray: none; }
  .tree-scene__tree, .body-part.is-active path { animation: none; }
  .bird { display: none; }
  .menu__panel, .menu__icon::before, .menu__icon::after { transition: none; }
  .site-header { transition: background-color var(--dur-3); }
  .is-sending [type="submit"]::before { animation: none; opacity: 0.8; }
}
