/* ============================================================
   BRAND SETTINGS: change colours and fonts here.
   The paper-cut scene itself is coloured in js/scene.js (KEYS and the layer colours).
   ============================================================ */
:root {
  --ink: #1e2d29;          /* main text */
  --muted: #4a5b55;        /* secondary text */
  --paper: #f7f1e4;        /* panels */
  --paper-2: #efe5d0;      /* cards inside panels */
  --paper-3: #fffaf0;      /* form fields */
  --line: #d6c9ae;
  --rose: #a9482f;         /* buttons, accents (white text on it passes AA) */
  --rose-deep: #86361f;
  --teal: #2d554d;         /* dark panels, links */
  --teal-deep: #213f39;
  --sage: #cfe0d3;
  --focus: #1d4a9c;
  --display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/fraunces-latin-opsz-normal.woff2) format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 100 900; font-display: swap; src: url(../fonts/fraunces-latin-wght-italic.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/inter-latin-wght-normal.woff2) format('woff2'); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; background: #d9d2c3; color: var(--ink);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--teal); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--rose-deep); }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--display); font-weight: 420; margin: 0; letter-spacing: -0.015em; text-wrap: balance; }
em { font-style: italic; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible { outline-color: #ffe9b0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 6px; transition: top .2s; }
.skip:focus { top: 12px; }

/* ---------- the diorama stage ---------- */
.stage {
  position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 0; overflow: hidden;
  background: #cdd9e3 url(../poster-scene.webp) center bottom / cover no-repeat;
}
/* Canvases added by js/scene.js: the sky (clouds and colour grade included), then the paper layers. */
.stage .layer { position: absolute; opacity: 0; transition: opacity 1.4s ease; pointer-events: none; }
.scene-live .stage .layer { opacity: 1; }
.stage canvas.layer { left: 0; top: 0; width: 100%; height: 100%; display: block; }

main, .foot, .top { position: relative; z-index: 2; }

/* ---------- header ---------- */
.top { position: fixed; z-index: 30; left: 0; right: 0; top: 0; transition: background .5s ease, box-shadow .5s ease; }
.top.solid { background: rgba(247, 241, 228, .97); box-shadow: 0 6px 22px -12px rgba(20, 30, 40, .45); }
.top-in { max-width: 1240px; margin: 0 auto; padding: 14px clamp(16px, 4vw, 32px); display: flex; align-items: center; gap: 24px; }
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.35rem; font-weight: 500; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand em { font-weight: 400; color: var(--muted); }
.brand:hover { color: var(--ink); }
.nav { display: none; margin-left: auto; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; transition: background .3s; }
.nav a:hover { background: rgba(247, 241, 228, .8); color: var(--ink); }
.nav a[aria-current="true"] { background: var(--paper); box-shadow: 0 1px 0 rgba(0, 0, 0, .12); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: var(--paper); color: var(--ink); box-shadow: 0 2px 0 rgba(0, 0, 0, .12); }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: 54px; width: min(280px, calc(100vw - 32px)); background: var(--paper); border-radius: 8px; padding: 10px; box-shadow: 0 18px 40px -12px rgba(20, 30, 40, .5); display: grid; }
.menu-panel a { padding: 12px 14px; border-radius: 6px; text-decoration: none; color: var(--ink); font-weight: 500; }
.menu-panel a:hover { background: var(--paper-2); }
@media (min-width: 1000px) {
  .nav { display: flex; }
  .menu { display: none; }
  .top-actions { margin-left: 0; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; min-height: 50px; padding: 12px 24px;
  background: var(--rose); color: #fff; border: 0; border-radius: 10px; font: 600 1rem/1.2 var(--body); text-decoration: none; cursor: pointer;
  box-shadow: 0 3px 0 var(--rose-deep), 0 14px 22px -12px rgba(60, 20, 10, .55);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
}
.btn:hover { color: #fff; background: #b8523a; transform: translateY(-2px); box-shadow: 0 5px 0 var(--rose-deep), 0 20px 26px -12px rgba(60, 20, 10, .55); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--rose-deep); }
.btn-small { min-height: 44px; padding: 8px 18px; font-size: .95rem; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-light { background: var(--paper); color: var(--teal-deep); box-shadow: 0 3px 0 #b9ac92, 0 14px 22px -12px rgba(0, 0, 0, .6); }
.btn-light:hover { background: #fff; color: var(--teal-deep); box-shadow: 0 5px 0 #b9ac92, 0 20px 26px -12px rgba(0, 0, 0, .6); }

/* ---------- layout ---------- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.wrap-in { max-width: 1080px; margin: 0 auto; }
.wrap-in.narrow { max-width: 820px; }

/* Paper panels. The outer element carries a shadow driven by the scene's light (--lx, --ly, --la);
   the inner element is the deckle-cut sheet (clip-path is added by js/app.js). */
.sheet {
  position: relative; max-width: 1240px; margin: clamp(56px, 13vh, 150px) auto;
  width: calc(100% - clamp(24px, 6vw, 64px));
  filter: drop-shadow(var(--lx, 6px) var(--ly, 10px) 16px rgba(18, 26, 36, var(--la, .26)));
}
.sheet-in {
  position: relative; background-color: var(--paper); border-radius: 6px;
  padding: clamp(32px, 6vw, 80px) clamp(22px, 5.5vw, 72px);
  background-image: url(../assets/paper.webp);
}
.sheet.dark .sheet-in {
  background-color: var(--teal-deep); color: #f3ecda;
  background-image: url(../assets/paper-dark.webp);
}
.sheet.dark a { color: #ffe9b0; }
.sheet.dark .eyebrow { color: #f0c9a4; }
.sheet.dark .sub, .sheet.dark .fine { color: #d9d3c0; }
.breathe-copy .fine { margin-top: 18px; }

.eyebrow { font: 600 .8rem/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--rose-deep); margin: 0 0 18px; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.08; max-width: 18ch; }
.narrow h2 { max-width: 22ch; }
h3 { font-size: 1.35rem; line-height: 1.2; }
.sub { font-size: 1.15rem; color: var(--muted); max-width: 58ch; margin: 20px 0 0; }
.note { margin: 32px 0 0; font-size: .95rem; color: var(--muted); max-width: 70ch; }
.fine { font-size: .9rem; color: var(--muted); }

/* ---------- hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; padding: clamp(92px, 15vh, 150px) 0 clamp(32px, 6vh, 64px); display: flex; }
.hero .wrap { width: 100%; }
.hero-sheet { margin: 0; width: 100%; max-width: 660px; }
.hero-card { padding: clamp(26px, 4.4vw, 52px); }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: 1.02; font-weight: 400; letter-spacing: -0.025em; margin-bottom: 22px; max-width: 13ch; }
.hero h1 em { color: var(--rose-deep); font-weight: 380; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 52ch; margin-bottom: 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { list-style: none; margin: 28px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .88rem; color: var(--muted); }
.facts li { position: relative; padding-left: 16px; }
.facts li::before { content: ''; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--rose); }
@media (max-width: 560px) {
  .facts, .more { display: none; }
  .hero { padding-top: 84px; }
  .hero-card { padding: 22px 20px 20px; }
  .hero h1 { font-size: 2.35rem; margin-bottom: 14px; }
  .hero .eyebrow { margin-bottom: 12px; }
  .lead { margin-bottom: 20px; font-size: 1.02rem; line-height: 1.55; }
  .actions { gap: 10px; }
  .actions .btn { width: 100%; min-height: 48px; }
  .brand { font-size: 1.2rem; gap: 8px; }
  .btn-small { padding: 8px 12px; font-size: .86rem; }
  .top-in { gap: 10px; padding-top: 10px; padding-bottom: 10px; }
}

/* ---------- cards ---------- */
.cards { list-style: none; margin: 44px 0 0; padding: 0; display: grid; gap: 16px; }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.card { background: var(--paper-2); border-radius: 6px; padding: 26px 24px 24px; border: 1px solid rgba(160, 140, 100, .22); transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .4s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 24px -16px rgba(40, 30, 10, .45); background: #f3e9d4; }
.card h3 { margin: 14px 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: 1rem; }
.ico { width: 34px; height: 34px; color: var(--teal); }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 28px 32px; counter-reset: s; position: relative; }
.steps li { position: relative; padding-top: 70px; }
.steps li::before { content: ''; position: absolute; left: 56px; right: -32px; top: 25px; height: 0; border-top: 2px dashed #c4b48f; }
.steps li:last-child::before { display: none; }
.step-n { position: absolute; left: 0; top: 0; width: 52px; height: 52px; display: grid; place-items: center; font: 400 1.7rem/1 var(--display); color: #fff; background: var(--teal); border-radius: 50% 50% 50% 8px; box-shadow: 3px 4px 0 rgba(30, 45, 41, .18); }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 700px) { .steps li::before { display: none; } .steps li { padding-top: 0; padding-left: 74px; } }

/* ---------- therapists ---------- */
.people { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.person { background: var(--paper-2); border-radius: 6px; padding: 28px 26px; border: 1px solid rgba(160, 140, 100, .22); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.person:hover { transform: translateY(-3px); box-shadow: 0 16px 24px -16px rgba(40, 30, 10, .45); }
.portrait { width: 124px; height: auto; display: block; margin-bottom: 20px; filter: drop-shadow(3px 4px 0 rgba(30, 45, 41, .16)); }
.person h3 { font-size: 1.55rem; }
.role { color: var(--rose-deep); font-weight: 600; font-size: .92rem; margin: 4px 0 14px; }
.person p { color: var(--muted); }
.meta { font-size: .9rem; border-top: 1px solid var(--line); padding-top: 12px; margin: 16px 0 0; }

/* ---------- approaches ---------- */
.approach-list { margin: 44px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 0 56px; }
.approach-list > div { padding: 24px 0; border-top: 1px solid var(--line); }
.approach-list dt { font: 420 1.45rem/1.2 var(--display); margin-bottom: 10px; }
.approach-list dd { margin: 0; color: var(--muted); max-width: 52ch; }

/* ---------- fees ---------- */
.fees-grid { margin-top: 44px; display: grid; gap: 36px 56px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .fees-grid { grid-template-columns: 1.05fr 1fr; align-items: start; } }
.price-list { margin: 0; }
.price-list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.price-list > div:first-child { border-top: 1px solid var(--line); }
.price-list dt { font: 420 1.3rem/1.25 var(--display); }
.price-list dt span { display: block; font: 400 .92rem/1.5 var(--body); color: var(--muted); margin-top: 2px; }
.price-list dd { margin: 0; font: 380 2.1rem/1 var(--display); color: var(--rose-deep); white-space: nowrap; }
.fee-notes { display: grid; gap: 14px; }
.note-card { background: var(--paper-2); border-radius: 6px; padding: 22px 24px; border: 1px solid rgba(160, 140, 100, .22); }
.note-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.note-card p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- breathing ---------- */
.breathe { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .breathe { grid-template-columns: 1fr 1fr; gap: 64px; } }
.breathe-widget { display: grid; justify-items: center; gap: 18px; }
.orb { position: relative; width: min(340px, 78vw); aspect-ratio: 1; display: grid; place-items: center; --b: 0; --b2: 0; --b3: 0; }
.ring { position: absolute; inset: 0; border-radius: 50%; will-change: transform; }
.ring.r3 { background: #3e6f64; transform: scale(calc(.52 + .48 * var(--b3))); box-shadow: 4px 8px 0 rgba(0, 0, 0, .22); }
.ring.r2 { background: #7fae9e; transform: scale(calc(.42 + .38 * var(--b2))); box-shadow: 3px 6px 0 rgba(0, 0, 0, .2); }
.ring.r1 { background: #e6dcc0; transform: scale(calc(.32 + .26 * var(--b))); box-shadow: 3px 5px 0 rgba(0, 0, 0, .2); }
.orb-text { position: relative; display: grid; text-align: center; color: var(--teal-deep); line-height: 1.25; }
.orb-text strong { font: 420 1.5rem/1.1 var(--display); }
.orb-text span { font-size: .88rem; font-weight: 500; }
.bar { width: min(260px, 70vw); height: 6px; border-radius: 3px; background: rgba(243, 236, 218, .22); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: #ffe9b0; border-radius: 3px; }
.breathe-widget .btn { min-width: 160px; }
.breathe-widget .fine { margin: 0; min-height: 1.5em; }

/* ---------- questions ---------- */
.acc { margin-top: 40px; border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item h3 { font-size: inherit; letter-spacing: 0; }
.acc-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; text-align: left; background: none; border: 0; padding: 22px 4px; cursor: pointer; font: 420 1.3rem/1.3 var(--display); color: var(--ink); transition: color .3s, padding .4s var(--ease); }
.acc-btn:hover { color: var(--rose-deep); }
.plus { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); transition: background .3s, transform .5s var(--ease); }
.plus::before, .plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: var(--ink); transition: transform .5s var(--ease); }
.plus::after { transform: rotate(90deg); }
.acc-btn[aria-expanded="true"] .plus { background: var(--sage); }
.acc-btn[aria-expanded="true"] .plus::after { transform: rotate(0deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .55s var(--ease), visibility 0s .55s; }
.acc-panel > div { overflow: hidden; }
.acc-panel p { margin: 0 0 24px; padding: 0 4px; max-width: 62ch; color: var(--muted); }
.acc-item.open .acc-panel { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .55s var(--ease), visibility 0s; }

/* ---------- contact ---------- */
.contact { display: grid; gap: 44px; }
@media (min-width: 940px) { .contact { grid-template-columns: .9fr 1.1fr; gap: 72px; } }
address { font-style: normal; margin-top: 32px; color: var(--muted); }
address strong { color: var(--ink); }
.hours { font-size: .95rem; }
.form { display: grid; gap: 20px; background: var(--paper-2); padding: clamp(22px, 3.4vw, 36px); border-radius: 6px; border: 1px solid rgba(160, 140, 100, .25); }
.field { display: grid; gap: 7px; margin: 0; padding: 0; border: 0; min-width: 0; }
label, legend { font-weight: 600; font-size: .95rem; padding: 0; }
.opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: 400 1rem/1.4 var(--body); color: var(--ink); background: var(--paper-3);
  border: 1.5px solid #b9aa86; border-radius: 8px; padding: 13px 14px; min-height: 50px; transition: border-color .3s, box-shadow .3s;
}
textarea { resize: vertical; min-height: 110px; }
input:hover, select:hover, textarea:hover { border-color: var(--teal); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
input[aria-invalid="true"] { border-color: #a52a1c; background: #fff4f0; }
.err { color: #9c2517; font-size: .9rem; font-weight: 500; margin: 0; }
.hint { color: var(--muted); font-size: .88rem; margin: 0; }
.seg { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg legend { grid-column: 1 / -1; margin-bottom: 4px; }
.seg label { position: relative; font-weight: 500; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 50px; padding: 8px; text-align: center; background: var(--paper-3); border: 1.5px solid #b9aa86; border-radius: 8px; font-size: .95rem; transition: background .3s, border-color .3s, color .3s; }
.seg input:checked + span { background: var(--teal); color: #fff; border-color: var(--teal); }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.check label { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-weight: 400; color: var(--muted); }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--teal); }
.form .btn { justify-self: start; }
.form-status { margin: 0; min-height: 1.4em; font-weight: 500; color: var(--teal-deep); }
.form-status.done { background: #dcebdd; border-radius: 6px; padding: 14px 16px; }

/* ---------- footer ---------- */
.foot { padding-bottom: 28px; }
.foot-sheet { margin-top: clamp(40px, 8vh, 90px); margin-bottom: 0; }
.foot .sheet-in { padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(28px, 4vw, 48px); }
.crisis { font: 420 clamp(1.15rem, 2.2vw, 1.5rem)/1.4 var(--display); padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid rgba(243, 236, 218, .22); }
.crisis strong { font-weight: 560; color: #ffe9b0; }
.foot-grid { display: grid; gap: 28px 48px; grid-template-columns: 1fr; font-size: .95rem; color: #d9d3c0; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1fr auto 1.2fr; } }
.foot-brand { font: 450 1.4rem/1.2 var(--display); color: #f3ecda; margin-bottom: 8px; }
.foot-brand em { color: #d9d3c0; }
.foot-grid nav { display: grid; gap: 6px; align-content: start; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; color: #fff; }
.foot-grid .small { font-size: .85rem; margin: 0; }

/* ---------- reveal ---------- */
.js .sheet.reveal { opacity: 0; transform: translateY(26px); }
.js .sheet.reveal.in { opacity: 1; transform: none; transition: opacity 1.1s ease, transform 1.2s var(--ease); }
.js .hero-sheet { animation: rise 1.4s var(--ease) both .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- reduced motion: still picture, no scroll-linked or timed movement ---------- */
.reduced .stage .layer { display: none; }
.reduced html, html.reduced { scroll-behavior: auto; }
.reduced .sheet.reveal, .reduced .hero-sheet { animation: none; opacity: 1 !important; transform: none !important; transition: none !important; }
.reduced .card, .reduced .person, .reduced .btn, .reduced .acc-panel, .reduced .plus, .reduced .plus::before, .reduced .plus::after { transition: none; }
.reduced .card:hover, .reduced .person:hover, .reduced .btn:hover { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage .layer { display: none; }
  .js .sheet.reveal, .js .hero-sheet { animation: none; opacity: 1; transform: none; transition: none; }
  .card, .person, .btn, .acc-panel, .plus, .plus::before, .plus::after { transition: none; }
}
