/* ===== intro splash =====
     Plays on every load of the home page: the wordmark grows from small
     to near full-screen, holds, then travels - scale and position
     computed at runtime against the header's real logo - until it
     settles exactly into the header, fading out the instant it lands so
     it hands off seamlessly to the header's own (already-visible,
     unrelated) logo underneath. Kept as its own moment, separate from
     the bird - which has its own, independent arrival later, landing by
     the hero's primary button. Hidden by default: a static render - the
     canvas editor, a no-JS fallback - must show the real page, never an
     overlay with no script around to resolve it. componentDidMount only
     turns it on for a genuine live render, and skips it outright (no
     slowed-down version) for anyone who prefers reduced motion. A click,
     key press, scroll, or touch at any point jumps straight to the end. */
  .intro-splash{ display:none; }

body.intro-show .intro-splash{ position:fixed; inset:0; z-index:300; display:flex; align-items:center; justify-content:center; background:var(--c-100); }

.intro-splash .intro-logo{ width:min(560px,78vw); height:auto; opacity:0; transform:scale(.15); transition:opacity .9s var(--ease), transform .9s var(--ease); }

body.intro-show.intro-play .intro-splash .intro-logo{ opacity:1; transform:scale(1); }

body.intro-show.intro-dock .intro-splash .intro-logo{ transition:transform .78s var(--ease), opacity .22s linear .56s; opacity:0; }

.eyebrow--stack{ flex-wrap:wrap; justify-content:center; column-gap:10px; row-gap:8px; text-align:center; }

.eyebrow--stack .eb-l1, .eyebrow--stack .eb-l2{ display:inline-flex; align-items:center; gap:10px; }

@media (max-width:640px){ .eyebrow--stack .eb-l2{ flex-basis:100%; justify-content:center; } .eyebrow--stack .eb-l2 .eb-dot{ display:none; } }

/* ===== hero ===== */
  .hero{ position:relative; padding-top:clamp(72px,11vw,132px); padding-bottom:clamp(80px,10vw,140px); background:var(--c-100); overflow:hidden; }

.hero .container{ position:relative; z-index:2; }

.hero-copy{ max-width:none; margin-inline:auto; text-align:center; }

.hero-eyebrow{ justify-content:center; margin-bottom:22px; }

.hero h1{ font-size:clamp(2.6rem, 3.1vw + 1.6rem, 4.375rem); line-height:1.08; letter-spacing:-.01em; }

.hero h1 .line{ display:block; }

/* One line whenever the headline fits; when the screen gets narrower it
     breaks between the two phrases, never mid-phrase. */
  @media (min-width:641px){ .hero h1 .line{ display:inline-block; } }

.hero-support{ font-size:1.0625rem; line-height:1.7; color:var(--c-600); margin:26px auto 0; max-width:780px; text-wrap:balance; }

/* ===== intro / approach ===== */
  .approach{ padding-block:clamp(88px,11vw,144px); background:var(--c-100); }

.approach .container{ max-width:none; text-align:center; margin-inline:auto; }

.approach .eyebrow{ justify-content:center; margin-bottom:20px; }

.approach h2{ font-size:clamp(1.9rem,1.6vw + 1.4rem,2.75rem); line-height:1.18; margin-bottom:24px; }

.approach p{ font-size:1.0625rem; line-height:1.8; color:var(--c-600); max-width:1040px; margin-inline:auto; text-wrap:balance; }

/* ===== services / ways we can work together ===== */
  .help{ padding-block:clamp(88px,11vw,144px); background:var(--c-200); }

.help-head{ display:flex; flex-direction:column; align-items:center; text-align:center; max-width:640px; margin:0 auto 64px; }

.help-head .eyebrow{ margin-bottom:20px; }

.help-head h2{ font-size:clamp(1.9rem,1.6vw + 1.4rem,2.75rem); }

.help-grid{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:24px; }

.help-card{ display:flex; flex-direction:column; align-items:flex-start; gap:18px; padding:36px 30px; background:var(--c-100); border:1px solid var(--c-300); border-radius:var(--radius-lg); transition:transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease); }

.help-card:hover{ transform:translateY(-8px); box-shadow:0 28px 46px -30px rgba(37,48,40,.32); border-color:var(--c-600); }

.help-icon{ width:56px; height:56px; border-radius:50%; border:1px solid var(--c-300); display:flex; align-items:center; justify-content:center; color:var(--c-950); transition:border-color .5s var(--ease), background-color .5s var(--ease); flex:none; }

.help-card:hover .help-icon{ border-color:var(--c-950); background:var(--c-100); }

.help-icon svg{ width:24px; height:24px; }

.help-icon-img{ width:22px; height:auto; display:block; }

.help-card h3{ font-size:1.3125rem; line-height:1.25; }

.help-card p{ font-size:.9375rem; line-height:1.65; color:var(--c-600); flex-grow:1; }

.help-card .link-draw{ font-size:.8125rem; letter-spacing:.03em; color:var(--c-950); margin-top:4px; }

/* the whole card is the link: the "Learn more" link stretches over it */
  .help-card{ position:relative; }

.help-hit{ position:absolute; inset:0; z-index:1; border-radius:inherit; }

.help-card .link-draw{ z-index:2; }

.help-card:hover .link-draw::after, .help-card:focus-within .link-draw::after{ transform:scaleX(1); }

.help-card:hover .link-draw svg{ transform:translateX(3px); }

.help-card .link-draw:focus-visible{ outline:none; }

.help-card:focus-within{ outline:2px solid var(--c-600); outline-offset:3px; }

/* ===================================================================
     HOME SECTIONS built from the practice's own words. Everything here
     is Home-only (About is generated from the shared blocks above and
     below, so none of this leaks across).
     =================================================================== */

  .trust-label{ font-size:.6875rem; font-weight:600; letter-spacing:.18em; text-transform:uppercase; color:var(--c-600); }

/* ---- approach: "At Amaan, we aim to create" three promises ---- */
  .promises{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin-top:clamp(48px,5vw,72px); }

.promise{ padding:8px clamp(24px,3.5vw,72px); }

.promise + .promise{ border-left:1px solid var(--c-300); }

.promise-icon{ height:52px; width:auto; margin:0 auto 26px; }

.approach .promise h3{ font-size:1.5rem; line-height:1.25; }

.approach .promise p{ margin:14px auto 0; max-width:34ch; font-size:1.0625rem; line-height:1.75; color:var(--c-600); text-wrap:pretty; }

/* ---- shared list rows (hairline rows with the diamond mark) ---- */
  .rows li{ display:flex; align-items:center; gap:16px; padding:16px 0; border-bottom:1px solid var(--c-300); font-size:1.0625rem; line-height:1.5; color:var(--c-950); }

.rows .mark-img{ width:11px; height:11px; flex:none; opacity:.4; }

/* ---- services: what I help with ---- */
  .reasons{ margin-top:clamp(56px,6vw,88px); }

.reasons h3{ text-align:center; font-size:clamp(1.375rem,.7vw + 1.15rem,1.75rem); line-height:1.3; }

.reasons-list{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); column-gap:clamp(32px,5vw,96px); margin-top:28px; }

.reasons-list li:nth-child(-n+3){ border-top:1px solid var(--c-300); }

/* ---- meet your therapist ---- */
  .meet{ padding-block:clamp(88px,11vw,144px); background:var(--c-200); }

.meet-grid{ display:grid; grid-template-columns:minmax(0,440px) minmax(0,1fr); gap:clamp(40px,7vw,128px); align-items:center; }

.meet-portrait-wrap{ position:relative; width:100%; max-width:440px; margin:0; }

.meet-portrait-wrap::before{ content:''; position:absolute; inset:20px -20px -20px 20px; border:1px solid var(--c-300); border-radius:999px 999px var(--radius-lg) var(--radius-lg); }

.meet-portrait{ position:relative; z-index:1; aspect-ratio:4/5; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:18px; background:var(--c-100); border:1px solid var(--c-300); border-radius:999px 999px var(--radius-lg) var(--radius-lg); }

.meet-portrait img{ width:34%; height:auto; opacity:.2; }

.meet-portrait span{ font-size:.6875rem; font-weight:600; letter-spacing:.2em; text-transform:uppercase; color:var(--c-600); }

.meet-copy .eyebrow{ margin-bottom:20px; }

.meet-copy h2{ font-size:clamp(1.9rem,1.6vw + 1.4rem,2.75rem); line-height:1.15; }

.meet-role{ margin-top:12px; font-size:.75rem; font-weight:600; letter-spacing:.18em; text-transform:uppercase; color:var(--c-600); }

.meet-lead{ margin-top:28px; font-size:1.0625rem; line-height:1.8; color:var(--c-600); }

.meet-lead + .meet-lead{ margin-top:14px; }

.meet-facts{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(24px,4vw,64px); margin-top:30px; padding-top:26px; border-top:1px solid var(--c-300); }

.meet-fact{ margin-top:8px; font-size:1.0625rem; line-height:1.55; color:var(--c-950); text-wrap:pretty; }


.meet-copy .rows{ margin-top:12px; }

.meet-copy .rows li:first-child{ border-top:1px solid var(--c-300); }

.meet-copy .link-draw{ margin-top:30px; font-size:.9375rem; }

/* ---- myths & truths ---- */
  .myths{ padding-block:clamp(88px,11vw,144px); background:var(--c-100); }

.myths .help-head{ max-width:860px; margin-bottom:56px; }

.myths-sub{ margin-top:16px; font-size:1.0625rem; line-height:1.7; color:var(--c-600); }

.myth-grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }

.myth-card{ position:relative; display:grid; width:100%; min-height:250px; margin:0; padding:0; text-align:left; font:inherit; color:var(--c-950); background:var(--c-200); border:1px solid var(--c-300); border-radius:var(--radius-lg); overflow:hidden; cursor:pointer; transition:box-shadow .5s var(--ease), border-color .5s var(--ease), opacity .8s var(--ease), transform .8s var(--ease); -webkit-tap-highlight-color:transparent; }

.myth-face, .myth-truth{ grid-area:1 / 1; display:flex; flex-direction:column; padding:34px 30px; }

.myth-tag{ font-size:.6875rem; font-weight:600; letter-spacing:.18em; text-transform:uppercase; color:var(--c-600); }

.myth-quote{ margin-top:18px; font-family:var(--font-display); font-style:italic; font-weight:500; font-size:1.4375rem; line-height:1.38; text-wrap:pretty; }

.myth-cue{ margin-top:auto; padding-top:26px; display:inline-flex; align-items:center; gap:10px; font-size:.75rem; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--c-600); }

.myth-cue .cue-m{ display:none; }

@media (hover:none), (max-width:700px){ .myth-cue .cue-d{ display:none; } .myth-cue .cue-m{ display:inline; } }

.myth-cue svg{ width:13px; height:13px; transition:transform .5s var(--ease); }

.myth-truth{ background:var(--c-950); color:var(--c-100); transform:translateY(101%); transition:transform .7s var(--ease); }

.myth-truth .myth-tag{ color:rgba(246,244,241,.62); }

.myth-truth p{ margin-top:18px; font-size:1.0625rem; line-height:1.7; color:rgba(246,244,241,.92); }

.myth-card.is-open .myth-truth, .myth-card:focus-visible .myth-truth{ transform:translateY(0); }

.myth-card:focus-visible{ outline:2px solid var(--c-600); outline-offset:3px; }

@media (hover:hover) and (pointer:fine){
    .myth-card:hover .myth-truth{ transform:translateY(0); }
    .myth-card:hover{ border-color:var(--c-950); box-shadow:0 28px 46px -30px rgba(37,48,40,.4); }
    .myth-card:hover .myth-cue svg{ transform:rotate(90deg); }
  }

/* ---- privacy & trust: confidentiality as Amanah (dark, brand pattern) ---- */
  .amanah{ position:relative; background:var(--c-950); color:var(--c-100); padding-block:clamp(88px,11vw,144px); overflow:hidden; }

.amanah::before{ content:''; position:absolute; inset:0; background:url(../img/pattern-tile.png) center top / 640px auto repeat; opacity:.6; pointer-events:none; }

.amanah .container{ position:relative; }

.amanah-grid{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:clamp(40px,7vw,128px); align-items:start; }

.amanah .eyebrow{ margin-bottom:22px; }

.amanah h2{ color:var(--c-100); font-size:clamp(1.9rem,1.6vw + 1.4rem,2.75rem); line-height:1.2; text-wrap:balance; }

.amanah-lead{ margin-top:26px; font-size:1.0625rem; line-height:1.8; color:rgba(246,244,241,.72); max-width:56ch; }

.amanah h3{ color:var(--c-100); font-size:clamp(1.375rem,.7vw + 1.15rem,1.75rem); line-height:1.3; }

.amanah .rows{ margin-top:22px; }

.amanah .rows li{ align-items:flex-start; border-color:rgba(246,244,241,.16); color:rgba(246,244,241,.92); }

.amanah .rows li:first-child{ border-top:1px solid rgba(246,244,241,.16); }

.amanah .rows .mark-img{ margin-top:.5em; opacity:.6; }

.amanah-protect{ margin-top:clamp(48px,6vw,88px); padding-top:clamp(32px,4vw,48px); border-top:1px solid rgba(246,244,241,.16); }

.amanah-protect-label{ font-size:.6875rem; font-weight:600; letter-spacing:.18em; text-transform:uppercase; color:rgba(246,244,241,.55); text-align:center; }

.amanah-protect-grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; margin-top:22px; text-align:center; }

.amanah-protect-grid p{ font-family:var(--font-display); font-size:1.25rem; line-height:1.4; color:var(--c-100); }

.amanah-close{ margin-top:30px; text-align:center; font-family:var(--font-display); font-style:italic; font-weight:500; font-size:1.125rem; color:rgba(246,244,241,.72); }

/* ---- closing band: same brand-pattern ground as Privacy & Trust ---- */
  .cta-band{ position:relative; overflow:hidden; }

.cta-band::before{ content:''; position:absolute; inset:0; background:url(../img/pattern-tile.png) center top / 640px auto repeat; opacity:.6; pointer-events:none; }

.cta-band .container{ position:relative; }

/* ---- blog teasers ---- */
  .blog{ padding-block:clamp(88px,11vw,144px); background:var(--c-100); }

.blog-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:24px; flex-wrap:wrap; margin-bottom:48px; }

.blog-head .eyebrow{ margin-bottom:18px; }

.blog-head h2{ font-size:clamp(1.9rem,1.6vw + 1.4rem,2.75rem); line-height:1.18; }

.blog-head .link-draw{ font-size:.9375rem; }

.blog-grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }

/* ===== BLOG COVERS + CARDS (shared by the Home teaser and the Blog pages) =====
     A post's cover is generated from its title: the title in type over a
     tinted brand pattern. One of four tints is picked from the post's
     topic, so a topic always looks the same. She can upload her own image
     for any post instead; this is the default. */
  .cover{ --cv-bg:var(--c-950); --cv-fg:var(--c-100); --cv-pat:url(../img/pattern-tile.png); position:relative; isolation:isolate; display:flex; flex-direction:column; justify-content:space-between; gap:16px; aspect-ratio:16/10; padding:22px 24px; border-radius:var(--radius-md); overflow:hidden; background:var(--cv-bg); color:var(--cv-fg); }

.cover::before{ content:''; position:absolute; inset:0; z-index:-1; background:var(--cv-pat) center top / 360px auto repeat; }

.cover--mid{ --cv-bg:var(--c-900); }

.cover--sand{ --cv-bg:var(--c-200); --cv-fg:var(--c-950); --cv-pat:url(../img/pattern-tile-dark.png); box-shadow:inset 0 0 0 1px var(--c-300); }

.cover--mist{ --cv-bg:var(--c-300); --cv-fg:var(--c-950); --cv-pat:url(../img/pattern-tile-dark.png); }

.cover-mark{ width:12px; height:12px; display:block; opacity:.85; filter:brightness(0) invert(1); }

.cover--sand .cover-mark, .cover--mist .cover-mark{ filter:none; opacity:.7; }

.cover-title{ font-family:var(--font-display); font-size:clamp(1.15rem,.5vw + 1rem,1.5rem); line-height:1.25; font-weight:500; text-wrap:balance; display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden; }

.post-card{ position:relative; display:flex; flex-direction:column; gap:18px; }

.post-card .cover{ transition:transform .6s var(--ease), box-shadow .6s var(--ease); }

@media (hover:hover) and (pointer:fine){
    .post-card:hover .cover{ transform:translateY(-6px); box-shadow:0 28px 46px -28px rgba(37,48,40,.45); }
  }

.post-line{ display:flex; flex-wrap:wrap; gap:4px 10px; font-size:.75rem; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:var(--c-600); }

.post-line span + span::before{ content:'\00B7'; margin-right:10px; }

.post-card h3{ font-size:1.375rem; line-height:1.3; text-wrap:balance; }

.post-card h3 a{ color:inherit; }

.post-card h3 a::after{ content:''; position:absolute; inset:0; z-index:2; }

.post-excerpt{ font-size:1rem; line-height:1.7; color:var(--c-600); }

.post-more{ display:inline-flex; align-items:center; gap:8px; margin-top:2px; font-size:.8125rem; font-weight:500; letter-spacing:.03em; color:var(--c-950); }

.post-more svg{ width:14px; height:14px; transition:transform .5s var(--ease); }

@media (hover:hover) and (pointer:fine){ .post-card:hover .post-more svg{ transform:translateX(4px); } }

/* ===== end blog covers + cards ===== */

  /* ---- instagram strip: her posts, rebuilt as live type (never her slides as images) ---- */
  .ig{ padding-block:clamp(72px,9vw,120px); background:var(--c-200); }

.ig-head{ display:flex; flex-direction:column; align-items:center; text-align:center; margin-bottom:48px; }

.ig-head .eyebrow{ margin-bottom:18px; }

.ig-head h2{ font-size:clamp(1.9rem,1.6vw + 1.4rem,2.75rem); line-height:1.2; }

.ig-grid{ display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:16px; }

.ig-tile{ position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; aspect-ratio:1; padding:clamp(34px,3vw,44px) clamp(14px,1.6vw,26px) clamp(16px,1.6vw,24px); text-align:center; border-radius:var(--radius-md); border:1px solid var(--c-300); overflow:hidden; transition:transform .5s var(--ease), box-shadow .5s var(--ease), opacity .8s var(--ease); }

.ig-tile:hover{ transform:translateY(-6px); box-shadow:0 24px 40px -28px rgba(37,48,40,.45); }

.ig-brand{ position:absolute; top:clamp(12px,1.2vw,18px); left:0; right:0; font-size:.5625rem; font-weight:600; letter-spacing:.2em; text-transform:uppercase; opacity:.7; }

.ig-text{ font-family:var(--font-display); font-weight:500; font-size:clamp(1rem,.45vw + .85rem,1.3125rem); line-height:1.3; text-wrap:balance; }

.ig-tile.t-dark{ background:var(--c-950); border-color:var(--c-950); color:var(--c-100); }


.ig-tile.t-light{ background:var(--c-100); color:var(--c-950); }

.ig-more{ display:flex; justify-content:center; margin-top:44px; }

@media (max-width:1100px){
    .myth-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  }

@media (max-width:960px){
    .promises{ grid-template-columns:1fr; max-width:520px; margin-inline:auto; margin-top:16px; }
    .promise{ padding:36px 8px; }
    .promise:first-child{ padding-top:8px; }
    .promise + .promise{ border-left:none; border-top:1px solid var(--c-300); }
    .reasons-list{ grid-template-columns:repeat(2,minmax(0,1fr)); }
    .reasons-list li:nth-child(3){ border-top:none; }
    .meet-grid{ grid-template-columns:1fr; }
    .meet-portrait-wrap{ max-width:380px; margin-inline:0; }
    .meet-facts{ grid-template-columns:1fr; gap:20px; }
    .amanah-grid{ grid-template-columns:1fr; gap:48px; }
    .blog-grid{ grid-template-columns:1fr; }
    .ig-grid{ grid-template-columns:repeat(3,minmax(0,1fr)); }
  }

@media (max-width:760px){
    .amanah-protect-grid{ grid-template-columns:1fr; gap:14px; }
  }

@media (max-width:640px){
    .meet-portrait-wrap{ margin-inline:auto; left:-10px; }
    .myth-grid{ grid-template-columns:1fr; }
    .reasons-list{ grid-template-columns:1fr; }
    .reasons-list li:nth-child(2){ border-top:none; }
    .ig-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
    /* two columns: checkerboard (green, light / light, green / green, light) so the greens never stack down one side */
    .ig-tile:nth-child(3), .ig-tile:nth-child(6){ background:var(--c-100); border-color:var(--c-300); color:var(--c-950); }
    .ig-tile:nth-child(4), .ig-tile:nth-child(5){ background:var(--c-950); border-color:var(--c-950); color:var(--c-100); }
    .ig-text{ font-size:1rem; }
  }

/* ===== closing CTA band ===== */
  .cta-band{ background:var(--c-950); padding-block:clamp(88px,11vw,140px); text-align:center; }

.cta-band .container{ max-width:none; margin-inline:auto; display:flex; flex-direction:column; align-items:center; }

.cta-band .eyebrow{ margin-bottom:22px; }

.cta-band h2{ color:var(--c-100); font-size:clamp(1.9rem,1.6vw + 1.4rem,2.625rem); line-height:1.2; text-wrap:balance; }

.cta-band h2 em{ font-style:italic; font-weight:500; }

.cta-band p em{ font-family:var(--font-display); font-style:italic; font-weight:500; color:var(--c-100); }

.cta-band p{ margin-top:20px; color:rgba(246,244,241,.68); font-size:1.0625rem; line-height:1.7; max-width:none; }

.cta-band .btn{ margin-top:38px; }

/* ===== responsive ===== */
  @media (max-width:960px){
    .primary-nav{ display:none; }
    .header-actions .btn{ display:none; }
    .nav-toggle{ display:inline-flex; }

    .mobile-nav{ position:fixed; inset:0; z-index:200; display:flex; align-items:flex-start; justify-content:center; padding:104px 20px 32px; opacity:0; visibility:hidden; transition:opacity .4s var(--ease), visibility 0s linear .4s; }
    .mobile-nav.is-open{ opacity:1; visibility:visible; transition:opacity .4s var(--ease), visibility 0s; }
    .mobile-nav-backdrop{ position:absolute; inset:0; background:rgba(37,48,40,.45); }
    .mobile-nav-panel{ position:relative; z-index:1; width:100%; max-width:420px; max-height:100%; overflow-y:auto; display:flex; flex-direction:column; background:var(--c-100); border-radius:var(--radius-lg); box-shadow:0 32px 64px -24px rgba(37,48,40,.5); padding:26px 26px 30px; transform:translateY(14px) scale(.98); transition:transform .45s var(--ease); }
    .mobile-nav.is-open .mobile-nav-panel{ transform:translateY(0) scale(1); }
    .mobile-nav-top{ display:flex; align-items:center; justify-content:space-between; margin-bottom:26px; }
    .mobile-nav-label{ margin:0; }
    .mobile-nav-close{ display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:50%; flex:none; border:1px solid var(--c-300); background:none; color:var(--c-950); cursor:pointer; transition:background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease); }
    .mobile-nav-close svg{ width:14px; height:14px; }
    .mobile-nav-close:hover{ background:var(--c-950); border-color:var(--c-950); color:var(--c-100); }
    .mobile-nav-close:active{ transform:scale(.92); }
    .mobile-nav-links{ display:flex; flex-direction:column; }
    .mobile-nav-links a{ padding:15px 2px; font-family:var(--font-body); font-size:1.3125rem; font-weight:500; color:var(--c-950); border-bottom:1px solid var(--c-300); }
    .mobile-nav-links a:first-child{ padding-top:2px; }
    .mobile-nav-links a:last-child{ border-bottom:none; }
    .mobile-nav-cta{ margin-top:26px; width:100%; }
    body.nav-open{ overflow:hidden; }

    .help-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
    .footer-top{ grid-template-columns:1fr 1fr; row-gap:40px; }
  }

@media (max-width:640px){
    .site-header .container{ height:76px; }
    .site-header .logo-img{ height:32px; }
    .mobile-nav{ padding-top:92px; }
    .help-grid{ grid-template-columns:1fr; }
    .footer-top{ grid-template-columns:1fr; }
    .footer-bottom{ flex-direction:column; align-items:flex-start; }
  }

.meet-portrait.has-photo{ padding:0; overflow:hidden; }

.meet-portrait.has-photo img{ position:absolute; inset:0; width:100%; height:100%; opacity:1; object-fit:cover; }

  /* =====================================================================
     HERO REDESIGN (shared by both directions)
     Dark hero. The header floats over it: transparent with a light logo
     and light links while the hero is on screen, then turns back into the
     normal cream bar (class on-dark removed by setupHeroFx on scroll).
     ===================================================================== */
  body.intro-show .intro-splash{ background:var(--c-950); }
  .site-header{ transition:background-color .6s var(--ease), box-shadow .6s var(--ease), border-radius .6s var(--ease), color .5s var(--ease); }
  .logo{ display:inline-grid; }
  .logo-img{ grid-area:1 / 1; transition:opacity .5s var(--ease); }
  .site-header .logo-img--light{ opacity:0; }
  .site-header.on-dark .logo-img--light{ opacity:1; }
  .site-header.on-dark .logo-img--dark{ opacity:0; }
  .site-header.on-dark{ background:transparent; backdrop-filter:none; -webkit-backdrop-filter:none; box-shadow:none; border-radius:0; color:var(--c-100); }
  .site-header.on-dark .btn-secondary{ color:var(--c-100); border-color:rgba(246,244,241,.5); }
  .site-header.on-dark .btn-secondary .btn-icon{ background:var(--c-100); color:var(--c-950); }
  .site-header.on-dark .header-actions .btn-secondary::before{ background:var(--c-100); }
  .site-header.on-dark .header-actions .btn-secondary:hover{ color:var(--c-950); }
  .site-header.on-dark .header-actions .btn-secondary:hover .btn-icon{ background:var(--c-950); color:var(--c-100); }
  .site-header.on-dark .nav-toggle-bars span{ background:var(--c-100); }

  .hero.hero--dk{ background:var(--c-950); color:var(--c-100); position:relative; overflow:hidden; padding:0; }
  .hero--dk .hero-eyebrow{ color:rgba(246,244,241,.66); }
  .hero--dk h1{ color:var(--c-100); }
  @media (hover:hover) and (pointer:fine){ .hero--dk h1 .word:hover{ color:var(--c-300); } }
  .hero--dk .hero-support{ color:rgba(246,244,241,.76); }

  .hx-sky{ position:absolute; inset:0; pointer-events:none; background:
      radial-gradient(70% 58% at 50% 108%, rgba(74,86,80,.62) 0%, rgba(74,86,80,0) 72%),
      radial-gradient(60% 42% at 50% -12%, rgba(42,57,49,1) 0%, rgba(37,48,40,0) 72%);
    animation:hxBreathe 11s ease-in-out infinite alternate; }
  @keyframes hxBreathe{ from{ opacity:.82; } to{ opacity:1; } }
  .hx-grain{ position:absolute; inset:0; pointer-events:none; opacity:.05; background-image:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
  .tw:nth-of-type(1){ left:9%; top:24%; --s:12px; --d:0s; }
  .tw:nth-of-type(2){ left:21%; top:56%; --s:8px; --d:1.4s; }
  .tw:nth-of-type(3){ left:15%; top:78%; --s:10px; --d:3s; }
  .tw:nth-of-type(4){ left:86%; top:20%; --s:11px; --d:.8s; }
  .tw:nth-of-type(5){ left:78%; top:74%; --s:13px; --d:3.6s; }
  .tw:nth-of-type(6){ left:67%; top:12%; --s:8px; --d:1.9s; }
  .tw{ position:absolute; width:var(--s,10px); height:var(--s,10px); opacity:.35; pointer-events:none; animation:hxTw 6s ease-in-out var(--d,0s) infinite; }
  @keyframes hxTw{ 0%,100%{ opacity:.12; transform:scale(.8); } 50%{ opacity:.75; transform:scale(1.1); } }

  /* entrance: content is visible by default; only a live page (js-anim) starts it hidden and plays it once the logo intro hands over (body.hero-go) */
  body.js-anim:not(.hero-go) .hx-rise{ opacity:0; }
  .hx-i0{ --i:0; } .hx-i2{ --i:2; } .hx-i3{ --i:3; } .hx-i4{ --i:4; } .hx-i5{ --i:5; } .hx-i6{ --i:6; } .hx-i7{ --i:7; } .hx-i8{ --i:8; } .hx-i9{ --i:9; } .hx-i10{ --i:10; } .hx-i12{ --i:12; } .hx-i14{ --i:14; }
  body.js-anim.hero-go .hx-rise{ animation:hxRise 1.25s var(--ease) calc(var(--i,0) * .085s + .35s) backwards; }
  @keyframes hxRise{ from{ opacity:0; transform:translateY(40px); } to{ opacity:1; transform:translateY(0); } }
  .hero--dk h1 .word{ display:inline-block; }
  .hero--dk .hero-copy{ position:relative; }

  /* ===== DIRECTION 1: THE ARCH ===== */
  /* --hw (page width) and --hh (hero height) are set by site.js in the page's 80% units, from
     clientWidth and innerHeight, so no browser has to convert vw or vh under zoom. The values here
     are only the first-paint guess. */
  .hero-track{ --hh:clamp(660px, calc(100vh / .8), 1180px); position:relative; margin-top:-88px; background:var(--c-950); }
  .hero.hero--arch{ position:relative; height:var(--hh); }
  body.js-anim:not(.hx-static) .hero-track{ height:calc(var(--hh) * 2.05); }
  body.js-anim:not(.hx-static) .hero.hero--arch{ position:sticky; top:0; }
  .hero--arch .container{ position:relative; z-index:3; padding-top:calc(88px + clamp(32px,7vh,92px)); }
  .hero--arch .hero-copy{ transform:translateY(calc(var(--t,0) * -60px)); opacity:calc(1 - var(--t,0)); }
  .hero--arch h1{ font-size:clamp(2.5rem, 3.6vw + 1.2rem, 4.9rem); line-height:1.07; }
  .hero--arch{ --sw:min(1100px, calc(var(--hw, 100vw) * .94), calc((var(--hh) - 460px) / .6909)); }
  .arch-rig{ position:absolute; inset:0; z-index:1; pointer-events:none;
    transform:translate3d(calc(var(--px,0) * -16px * var(--par,1)), calc(var(--py,0) * -9px * var(--par,1)), 0); }
  .arch-stage{ position:absolute; left:50%; bottom:0; width:var(--sw); aspect-ratio:1100 / 760; transform:translateX(-50%); }
  .arch-svg{ width:100%; height:100%; overflow:visible; }
  .arch-line{ fill:none; stroke:rgba(246,244,241,var(--lo,.3)); stroke-width:1.3; stroke-linecap:round; }
  .arch-line.a3{ --lo:.15; } .arch-line.a2{ --lo:.26; } .arch-line.a1{ --lo:.46; }
  body.js-anim:not(.hero-go) .arch-line{ stroke-dasharray:1; stroke-dashoffset:1; }
  body.js-anim.hero-go .arch-line{ stroke-dasharray:1; animation:hxDraw 2.8s cubic-bezier(.55,0,.15,1) var(--dl,0s) backwards; }
  .arch-line.a3{ --dl:.55s; } .arch-line.a2{ --dl:.95s; } .arch-line.a1{ --dl:1.35s; }
  @keyframes hxDraw{ from{ stroke-dashoffset:1; } to{ stroke-dashoffset:0; } }

  .door-wrap{ position:absolute; left:50%; bottom:0; width:var(--sw); height:calc(var(--sw) * .4727); transform:translateX(-50%); display:flex; justify-content:center; align-items:flex-end; }
  .door{ position:relative; flex:none; width:calc(var(--sw) * .4182); height:100%; border-radius:999px 999px 0 0; overflow:hidden;
    background:
      radial-gradient(120% 92% at 50% 100%, rgba(246,244,241,.32) 0%, rgba(246,244,241,.11) 46%, rgba(246,244,241,.03) 100%),
      rgba(74,86,80,.30); }
  .door::after{ content:''; position:absolute; inset:0; background:radial-gradient(90% 70% at 50% 100%, rgba(246,244,241,.95) 0%, rgba(246,244,241,0) 72%), var(--c-200); opacity:var(--fill,0); }
  body.js-anim:not(.hero-go) .door{ opacity:0; }
  body.js-anim.hero-go .door{ animation:hxDoor 2.6s var(--ease) 1.5s backwards; }
  @keyframes hxDoor{ from{ opacity:0; transform:translateY(70px); } to{ opacity:1; transform:translateY(0); } }
  .door-star{ position:absolute; left:50%; top:calc(var(--sw) * .062); width:calc(var(--sw) * .042); min-width:26px; height:auto; transform:translateX(-50%); opacity:calc(1 - var(--t2,0) * 1.6);
    filter:drop-shadow(0 0 18px rgba(246,244,241,.7)); animation:hxPulse 5.5s ease-in-out 4.5s infinite; }
  body.js-anim:not(.hero-go) .door-star{ opacity:0; }
  body.js-anim.hero-go .door-star{ animation:hxStarIn 1.8s var(--ease) 2.6s backwards, hxPulse 5.5s ease-in-out 4.5s infinite; }
  @keyframes hxStarIn{ from{ opacity:0; transform:translateX(-50%) scale(.3); } to{ opacity:1; transform:translateX(-50%) scale(1); } }
  @keyframes hxPulse{ 0%,100%{ scale:1; } 50%{ scale:1.16; } }
  .door-cue{ position:absolute; left:50%; bottom:22px; transform:translateX(-50%); display:flex; flex-direction:column; align-items:center; gap:10px; font-size:.6875rem; font-weight:600; letter-spacing:.2em; text-transform:uppercase; color:rgba(246,244,241,.7); opacity:calc(1 - var(--t2,0) * 2); }
  .door-cue i{ display:block; width:1px; height:34px; background:linear-gradient(to bottom, rgba(246,244,241,.7), rgba(246,244,241,0)); transform-origin:top; animation:hxCue 2.6s var(--ease) infinite; }
  @keyframes hxCue{ 0%{ transform:scaleY(0); opacity:1; } 60%{ transform:scaleY(1); opacity:1; } 100%{ transform:scaleY(1); opacity:0; } }
  body.js-anim:not(.hero-go) .door-cue{ opacity:0; }
  @media (max-width:640px){
    .hero-track{ margin-top:-76px; }
    .arch-line{ stroke-width:2.2; }
    .hero--arch .container{ padding-top:calc(76px + clamp(20px,5vh,48px)); }
    .hero--arch h1{ font-size:clamp(2.2rem, 8.4vw, 3rem); }
    .hero--arch .hero-support{ margin-top:18px; font-size:1rem; }
  }

  /* ===== Hero 1, round 2 ===== */
  body.intro-show .intro-splash .intro-logo, .intro-splash .intro-logo{ transition:opacity .5s var(--ease), transform .5s var(--ease); }
  body.intro-show.intro-dock .intro-splash .intro-logo{ transition:transform .48s var(--ease), opacity .16s linear .3s; }
  .hero--arch .hero-copy{ padding-bottom:0; }
  .hero--arch{ --sw:min(1100px, calc(var(--hw, 100vw) * .94), calc((var(--hh) - 410px) / .6909)); }
  .door::after{ z-index:1; }
  .door-star, .door-cue{ z-index:3; }
  .door-reveal{ display:none; }
  body.js-anim:not(.hx-static) .door-reveal{ display:flex; position:absolute; left:50%; bottom:0; z-index:2; width:var(--hw, 100vw); height:var(--hh); transform:translateX(-50%);
    align-items:center; justify-content:center; padding-top:88px; opacity:var(--rv,0); visibility:hidden; pointer-events:none; text-align:left; }
  body.js-anim:not(.hx-static) .door-reveal.is-seen{ visibility:visible; }
  body.js-anim:not(.hx-static) .door-reveal.is-open{ pointer-events:auto; }
  .meet--static.is-moved{ display:none; }
  .door-reveal .container{ width:100%; }
  .door-reveal .meet-grid{ grid-template-columns:minmax(0,min(430px, calc((var(--hh) - 300px) * .8))) minmax(0,1fr); }
  .door-reveal .meet-portrait-wrap{ max-width:min(430px, calc((var(--hh) - 300px) * .8)); }
  .door-reveal .meet-portrait{ background:var(--c-100); }
  /* the brand pattern, very faint, behind Meet (the same tile the sand covers use) */
  .door-reveal::before, .meet--static::before{ content:''; position:absolute; inset:0; z-index:-1; pointer-events:none; opacity:.55; background:url(../img/pattern-tile-dark.png) center top / 360px auto repeat; }
  .door-reveal .meet-copy{ transform:translateY(calc((1 - var(--rv,0)) * 36px)); }
  .door-reveal .meet-portrait-wrap{ transform:translateY(calc((1 - var(--rv,0)) * 56px)); }
  .meet--static{ position:relative; isolation:isolate; background:var(--c-200); }
  .meet--static .meet-portrait{ background:var(--c-100); }
  @media (max-width:960px){
    .door-reveal .meet-grid{ grid-template-columns:1fr; gap:clamp(14px,3vh,26px); justify-items:center; }
    .door-reveal .meet-portrait-wrap{ max-width:min(300px, calc((var(--hh) - 520px) * .8)); margin-inline:auto; left:0; }
    .door-reveal .meet-copy{ text-align:center; }
    .door-reveal .meet-copy .eyebrow{ justify-content:center; margin-bottom:12px; }
    .door-reveal .meet-lead{ margin-top:14px; font-size:1rem; line-height:1.65; }
    .door-reveal .meet-lead + .meet-lead{ margin-top:10px; }
    .door-reveal .meet-role{ margin-top:8px; }
    .door-reveal .meet-facts{ grid-template-columns:1fr 1fr; gap:14px; margin-top:18px; padding-top:16px; text-align:left; }
    .door-reveal .meet-fact{ font-size:.9375rem; }
    .door-reveal .meet-copy .link-draw{ margin-top:18px; }
  }
  @media (max-width:640px){
    body.js-anim:not(.hx-static) .hero-track{ height:calc(var(--hh) * 1.9); }
    .door-reveal{ padding-top:76px; }
    .door-reveal .container{ padding-inline:22px; }
    .door-reveal .meet-copy h2{ font-size:1.75rem; }
    .door-reveal .meet-facts{ display:none; }
  }
  @media (max-height:700px) and (min-width:961px){ .door-reveal .meet-facts{ display:none; } }

  /* ---- round 4: tighter hand-off to the next section ---- */
  body.js-anim:not(.hx-static) .hero-track ~ .approach{ padding-top:clamp(48px,5vw,80px); }

  /* ---- Hero 1, round 3: door sized purely in CSS (works the same in Safari and Chrome) ---- */
  .hero--arch .door{ isolation:isolate; }
  .hero--arch .door.is-grow{
    --dw:calc(var(--sw) * .4182 + (var(--hw, 100vw) + 6px - var(--sw) * .4182) * var(--e,0));
    --dh:calc(var(--sw) * .4727 + (var(--hh) + 6px - var(--sw) * .4727) * var(--e,0));
    width:var(--dw); height:var(--dh);
    border-radius:calc(var(--dw) / 2) calc(var(--dw) / 2) 0 0 / calc(var(--dw) / 2 * (1 - var(--e2,0))) calc(var(--dw) / 2 * (1 - var(--e2,0))) 0 0; }

  /* ---- headline lit by a moving light (same idea as the Arabic lettering in Hero 2) ---- */
  .hero--arch .lit{ display:grid; position:relative; --lr:470px; --lr2:230px; --mx:112%; --my:50%; }
  .hero--arch .lit-layer{ grid-area:1 / 1; display:block; }
  .hero--arch .lit-base{ color:rgba(246,244,241,.34); }
  .hero--arch .lit-top{ color:var(--c-100); }
  .hero--arch h1 .word:hover{ color:inherit; transform:none; }
  body.js-anim:not(.hx-static) .hero--arch .lit-top{
    -webkit-mask-image:radial-gradient(ellipse var(--lr) var(--lr2) at var(--mx) var(--my), #000 0%, rgba(0,0,0,.55) 46%, rgba(0,0,0,0) 100%);
            mask-image:radial-gradient(ellipse var(--lr) var(--lr2) at var(--mx) var(--my), #000 0%, rgba(0,0,0,.55) 46%, rgba(0,0,0,0) 100%); }
  @media (max-width:640px){ .hero--arch .lit{ --lr:240px; --lr2:150px; } .hero--arch .lit-base{ color:rgba(246,244,241,.38); } }


  /* no JavaScript: the header cannot switch back to the cream bar, so it stays in the flow */
  body:not(.js-anim) .site-header.on-dark{ position:relative; }

/* a cover that is her own photo */
.cover--photo{ padding:0; box-shadow:none; background:var(--c-200); }

.cover--photo::before{ display:none; }

.cover--photo > img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }

  /* ---- the word "you" walks into the door ----
     site.js copies the first "you" of the heading (.you-fly), hides the original while the page is
     scrolled, and writes: --sx and --sy (where the word starts, as fractions of the hero), --m (how far
     it has travelled, 0 to 1) and --yo / --vs (it melts into the cream door and is gone just as Meet
     comes up). It stays cream with a soft glow. The door's centre follows --e, the same number that grows the door.
     Everything is in the page's own units, so Safari and Chrome agree. */
  .hero--arch.is-flying .word-you{ opacity:0; }
  .you-fly{ position:absolute; left:0; top:0; z-index:4; pointer-events:none; white-space:nowrap;
    font-family:var(--font-display); font-weight:500; font-size:clamp(2.5rem, 3.6vw + 1.2rem, 4.9rem); line-height:1.07; letter-spacing:-.01em;
    --d0:calc(var(--sw) * .4727);
    --fx:calc(var(--sx, .5) * var(--hw, 100vw) * (1 - var(--m, 0)) + var(--hw, 100vw) * .5 * var(--m, 0));
    --fy:calc(var(--sy, .3) * var(--hh) * (1 - var(--m, 0)) + (var(--hh) - (var(--d0) + (var(--hh) + 6px - var(--d0)) * var(--e, 0)) / 2) * var(--m, 0));
    transform:translate(calc(var(--fx) - 50%), calc(var(--fy) - 50%)) scale(calc(1 - var(--vs, 0) * .45));
    opacity:var(--yo, 0);
    color:var(--c-100); text-shadow:0 0 16px rgba(246,244,241,.55), 0 0 44px rgba(246,244,241,.35); }
  @media (max-width:640px){ .you-fly{ font-size:clamp(2.2rem, 8.4vw, 3rem); } }

  /* phones: the heading breaks as "Therapy that meets / you / where you are", with the marked "you" a
     little larger on a line of its own, above the door it walks into. The wording is unchanged. */
  @media (max-width:640px){
    /* arches and door 25% larger than the 94%-of-the-screen they were (this rule has to come last to win) */
    .hero--arch{ --sw:min(calc(var(--hw, 100vw) * 1.175), calc((var(--hh) - 410px) / .6909)); }
    /* the heading block sits lower, so the empty space is shared above and below it */
    .hero--arch .container{ padding-top:calc(76px + var(--hh) * .165); }
    .hero--dk h1 .word.word-you{ display:block; font-size:1.2em; }
    .you-fly{ font-size:calc(clamp(2.2rem, 8.4vw, 3rem) * 1.2); }
  }

  /* ---- smoother scrolling through the door ----
     The slow ambient animations (sky, twinkles, the star's pulse, the scroll cue) rest the moment
     scrolling starts, so the browser is only drawing the door. The star pulses with a cheap scale, not an
     animated glow, and the grain is a plain faint layer rather than a blend over the whole hero. */
  .hero--arch.is-scrolled .hx-sky, .hero--arch.is-scrolled .tw,
  .hero--arch.is-scrolled .door-cue i{ animation-play-state:paused; }
  .hero--arch.is-scrolled .door-star{ animation-play-state:running, paused; }  /* the entrance finishes, the pulse rests */
  .hero--arch .hero-copy, .you-fly{ will-change:transform, opacity; }
  .door::after{ will-change:opacity; }
