/* Parlor Health, next site.
   Brand from the current site (public/css/parlor.css): ivory paper, near-black
   ink, marigold accent, Pretendard for everything, the "parlor" wordmark.
   Layout after forus.com and autonomyhealth.io; imagery is collage (paper,
   ink, halftone, painted sky in circles).

   Motion rule: every section reads as a normal page first. Scroll-driven
   layouts live under html.motion, which is only set when JS runs and the
   reader has not asked for reduced motion. */

:root {
  --paper: #FDFCFA;
  --card: #F5F4F0;
  --card-2: #ECE8E0;
  --ink: #111111;
  --ink-soft: #4A4A4A;
  --muted: #6E6E6E;
  --dark: #221B16;            /* the collage's dark paper */
  --on-dark: #F4EFE7;
  --on-dark-soft: rgba(244, 239, 231, 0.74);
  --accent: #F0A418;          /* marigold */
  --accent-hover: #DC920C;
  --accent-tint: #FBE6B8;
  --ok: #2F7D4F;
  --wait: #B8790B;
  --rule: rgba(17, 17, 17, 0.14);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;   /* headings; a free stand-in for Forus's Rosart */
  --geist: "Geist", var(--text);
  /* Heading font. Swap to var(--serif) to go back to Newsreader. */
  --head: var(--geist);
  --text: "Pretendard Variable", Pretendard, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --pad: clamp(16px, 5.56vw, 80px);
  --max: 1280px;
  --inset: clamp(10px, 1.4vw, 20px);
  --r-lg: clamp(18px, 2vw, 28px);
  --r: 14px;
  --nav-h: 64px;

  --t-h1: clamp(2.2rem, 4.2vw, 4rem);
  --t-h2: clamp(2rem, 4vw, 3.75rem);
  --t-h3: clamp(1.35rem, 1.9vw, 1.75rem);
  --t-lede: clamp(1.0625rem, 1.3vw, 1.1875rem);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 24px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--text); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; }
p, figure, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.06; text-wrap: balance; }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.015em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--muted); margin-bottom: 14px; }
.sect-head { max-width: 820px; margin-bottom: clamp(32px, 4vw, 56px); }

/* Placeholders the team still has to fill: easy to spot, impossible to ship by accident. */
mark.ph { background: #FFF1C9; color: #6B4A00; border: 1px dashed #D9A21B; border-radius: 6px; padding: 0 .3em; font-weight: 500; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border: 0; border-radius: 10px;
  font-size: 15px; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--accent); color: var(--ink); position: relative; isolation: isolate; overflow: hidden; }
.btn--accent:hover { background: var(--accent-hover); }
.btn--accent::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); background-size: 160px; mix-blend-mode: multiply; opacity: .25; pointer-events: none; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2b2b2b; }

/* ---------- Logo (the current site's mark) ---------- */
.wordmark { display: inline-flex; align-items: center; font-size: 28px; line-height: 1; text-decoration: none; color: var(--ink); }
/* The logo: a halftone sphere (the same dots as the site's art) and the name in Geist. */
.wordmark { gap: .3em; }
.wordmark .mark { display: block; width: 1.05em; height: 1.05em; flex: none; }
.wordmark .mark svg { display: block; width: 100%; height: 100%; }
.wordmark .wm { font-family: "Geist", var(--text); font-weight: 600; font-size: .86em; letter-spacing: -0.045em; line-height: 1; }

/* ---------- Nav: links left, logo centred, Talk to us right ----------
   At the top it sits straight on the hero with no bar. Once the page scrolls
   it becomes a full-width bar across the top. */
.nav {
  position: fixed; z-index: 60; top: 0; left: 0; right: 0; color: var(--ink);
  transition: background-color .3s ease, box-shadow .3s ease, color .3s ease;
}
.nav.is-over-dark:not(.is-open) { color: #FBF7F0; }
/* Scrolled: no bar, just a soft frosted fade behind the top of the page that
   dissolves downward. Drawn on a pseudo-element so the blur never traps the
   phone menu panel (a fixed child) inside the header. */
.nav::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 100%; pointer-events: none;
  background: var(--nav-tint, rgba(253, 252, 250, .2));
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  /* strongest at the very top edge, almost nothing by the text's baseline */
  -webkit-mask-image: linear-gradient(#000, rgba(0, 0, 0, .35) 45%, transparent 85%); mask-image: linear-gradient(#000, rgba(0, 0, 0, .35) 45%, transparent 85%);
  opacity: 0; transition: opacity .35s ease, background-color .35s ease;
}
.nav.is-scrolled::before { opacity: 1; }
/* Over a dark section the fade is a dark veil and the text stays light. */
.nav.is-over-dark { --nav-tint: rgba(20, 15, 11, .12); }
.nav.is-open { background: var(--paper); }
.nav.is-open::before { opacity: 0; }
.nav-in {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  position: relative; height: 76px; padding: 0 var(--pad);
}
.nav-links { grid-column: 1; grid-row: 1; }
.nav-links ul { display: flex; gap: 2px; margin-left: -12px; }
.nav-link { display: inline-flex; align-items: center; height: 40px; padding: 0 12px; border-radius: 8px; font-size: 15px; text-decoration: none; }
.nav-link:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.nav-link[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
.nav .wordmark { grid-column: 2; grid-row: 1; justify-self: center; font-size: 30px; color: inherit; }
.nav-end { grid-column: 3; grid-row: 1; justify-self: end; }
/* ---------- 1. Hero ---------- */
.hero { padding: 0; }
.hero-card {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: max(640px, 100svh); border-radius: 0;
  background: var(--dark) url("/images/hero-paper.jpg") center / cover;
  color: var(--on-dark);
  display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; gap: 32px;
  padding: clamp(24px, 3vw, 48px);
}
.hero-art { position: absolute; inset: 0; z-index: -1; }
.circle { position: absolute; border-radius: 50%; overflow: hidden; isolation: isolate; will-change: transform; box-shadow: 0 0 0 1px rgba(0,0,0,.25);
  /* Safari drops border-radius clipping when a child animates; a clip-path circle always holds */
  -webkit-clip-path: circle(50% at 50% 50%); clip-path: circle(50% at 50% 50%); }
.orb { --w: clamp(300px, 37vw, 560px); position: absolute; right: 10%; top: calc(50% - var(--w) / 2 + 28px); width: var(--w); aspect-ratio: 1; will-change: transform; }
.orb-patient { inset: 0; }
/* Lit from the upper left, like the logo: a soft highlight and a shadowed lower right turn the disc into a sphere. */
.orb-patient::before {
  content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 30% 26%, rgba(255, 248, 222, .32), rgba(255, 248, 222, 0) 42%),
              radial-gradient(circle at 36% 32%, rgba(0, 0, 0, 0) 40%, rgba(12, 9, 6, .55) 100%);
}
.orb-patient { transition: transform .9s var(--ease); }
/* Hover: light breaks through where the cursor is, and the companion leans in. */
.orb-patient::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 246, 214, .62), rgba(255, 246, 214, 0) 38%);
  mix-blend-mode: soft-light; opacity: 0; transition: opacity .6s ease;
}
@media (hover: hover) {
  .orb-patient:hover::after { opacity: 1; }
  .orb-patient:hover { transform: scale(1.02); }
  }
/* Hero heartbeat: a monitor-style trace across the upper hero. */
.pulse { position: absolute; left: 0; right: 0; top: 18%; width: 100%; height: 34%; display: block;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
@media (max-width: 900px) { .pulse { top: 96px; height: 56vw; } }
@media (max-width: 520px) { .pulse { top: 120px; height: 56vw; } .hero-card { padding-top: calc(120px + 56vw + 32px) !important; } }
/* The sky inside each circle: a printed halftone that drifts very slowly, so
   the light and dark patches move like weather. Larger than its circle so the
   edges never show; each circle on its own slow clock. Off for reduced motion. */
.sky { position: absolute; inset: -18%; background: var(--tex) center / cover; animation: sky-drift 90s ease-in-out infinite alternate; will-change: transform; }
@keyframes sky-drift {
  from { transform: translate3d(-6%, 3%, 0) rotate(-1.5deg); }
  to   { transform: translate3d(6%, -3%, 0) rotate(1.5deg); }
}
.hero-copy { max-width: 640px; padding-bottom: 6px; }
.hero h1 { font-size: var(--t-h1); color: #FBF7F0; }
.hero-sub { margin-top: 22px; max-width: 34em; font-size: var(--t-lede); line-height: 1.5; color: var(--on-dark-soft); }
@media (max-width: 900px) {
  .hero-card { grid-template-columns: 1fr; align-content: end; min-height: max(680px, 100svh); padding-top: 120px; }
  .orb { right: 9%; top: 13%; width: min(44vw, 370px); }
}
@media (max-width: 520px) {
  .hero-card { padding: 18px; gap: 20px; padding-top: 220px; }
      .orb { right: 12%; top: 104px; width: 52vw; }
  .hero-card { padding-top: calc(104px + 52vw + 32px); min-height: 100svh; padding-bottom: 40px; }
}

/* ---------- 2. Parlor handles … (Forus's turning word list) ---------- */
.handles { --line: clamp(2.6rem, 5.4vw, 5rem); padding-block: clamp(64px, 9vw, 120px); }
.handles-stage {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad);
}
.handles-lead, .handles-tail { font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.4; }
.handles-tail { justify-self: end; max-width: 15em; }
.handles-list li { font-size: clamp(1.9rem, 4.1vw, 3.9rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; height: var(--line); display: flex; align-items: center; justify-content: center; text-align: center; white-space: nowrap; }
.motion .handles { height: calc(100svh + var(--n) * 17svh); padding: 0; }
.motion .handles-stage { position: sticky; top: 0; height: 100svh; }
.motion .handles-window {
  height: calc(var(--line) * 5); overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);
          mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);
}
.motion .handles-list { padding-top: calc(var(--line) * 2); will-change: transform; }
.motion .handles-list li { transition: none; }
@media (max-width: 760px) {
  .handles-stage { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 12px; }
  .handles-tail { justify-self: center; }
  .motion .handles-stage { align-content: center; }
  .handles-list li { font-size: min(5.5vw, 2.4rem); letter-spacing: -0.035em; }
  .handles { --line: min(10vw, 3.6rem); }
  .motion .handles { height: calc(100svh + var(--n) * 14svh); }
}

/* ---------- 3. Numbered cards and panels ---------- */
.steps { padding-inline: var(--inset); padding-bottom: clamp(64px, 8vw, 120px); }
.steps-grid { display: block; }
.step + .step { margin-top: var(--inset); }
.panel { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-lg); min-height: clamp(460px, 70vh, 760px); }
.panel-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.panel-big { position: absolute; left: clamp(20px, 3vw, 44px); bottom: clamp(18px, 2.6vw, 38px); font-size: clamp(2.2rem, 5vw, 4.6rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1; max-width: 9em; }
.panel--insight .panel-big { color: #FBF7F0; }
.panel-over { position: absolute; inset: 0; display: flex; align-items: flex-start; justify-content: flex-end; padding: clamp(20px, 3vw, 44px); padding-top: calc(var(--nav-h) + 40px); }
.panel--care .panel-over { align-items: flex-start; justify-content: flex-end; padding-right: clamp(24px, 6vw, 110px); }
.panel--care .phone { width: clamp(180px, 16vw, 240px); transform: rotate(-3deg); }
.step-text { padding: 24px 6px 8px; max-width: 640px; }
.step-text h2 { font-size: var(--t-h3); line-height: 1.2; margin: 0 0 10px; }
.step-text p:last-child { color: var(--ink-soft); }
/* Numbers sit inline at the start of their heading, a step quieter than the words. */
.n { opacity: .42; font-variant-numeric: tabular-nums; }
.steps-rail { display: none; }

@media (min-width: 1000px) {
  .motion .steps-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 24vw, 360px); gap: var(--inset); }
  .motion .step-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); padding: 0; }
  .motion .panel { min-height: calc(100vh - 2 * var(--inset) - 40px); }
  .motion .steps-rail { display: block; }
  .rail-stack { position: sticky; top: calc(var(--nav-h) + 30px); height: calc(100vh - var(--nav-h) - 60px); }
  .rail-card {
    position: absolute; left: 0; right: 0; top: 0; min-height: 260px; padding: 22px 22px 26px; border-radius: var(--r);
    background: var(--card-2); box-shadow: 0 -10px 30px rgba(0, 0, 0, .06);
    transform: translateY(calc(var(--i) * 84px)); transition: transform .7s var(--ease), background-color .4s ease, opacity .4s ease;
  }
  .rail-card.is-later { transform: translateY(105vh); opacity: 0; }
  .rail-card.is-active { background: var(--accent); }
  .rail-card.is-active[data-rail="3"] { background: var(--dark); color: var(--on-dark); }
  .rail-title { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; margin: 0 0 12px; }
  .rail-body { font-size: 15.5px; line-height: 1.55; opacity: 0; transition: opacity .4s ease; }
  .rail-card.is-active .rail-body { opacity: 1; }
  .step + .step { margin-top: var(--inset); }
}
/* without the scroll layout, wide screens show each card beside its panel */
@media (min-width: 1000px) {
  html:not(.motion) .step { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: end; }
}

/* Phone frame and chat bubble */
.phone { width: 240px; border-radius: 34px; padding: 7px; background: #161210; box-shadow: 0 30px 60px rgba(0, 0, 0, .28), 0 0 0 1px rgba(255,255,255,.06) inset; }
.phone img { width: 100%; height: auto; border-radius: 28px; }
.bubble {
  max-width: 380px; padding: 18px 20px; border-radius: 18px; color: var(--ink); font-size: 17px; line-height: 1.45;
  background: rgba(253, 252, 250, .8); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .55) inset, 0 24px 60px rgba(20, 14, 8, .16);
}
.bubble-who { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }

/* ---------- 4. Services (Autonomy's list and view) ---------- */
.services { background: var(--card); padding-block: clamp(64px, 8vw, 110px); }
.services-stage { width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
.services-head { max-width: 640px; margin-bottom: 36px; }
.svc { border-top: 1px solid var(--rule); padding-block: 18px 26px; }
.svc-name { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; font-size: clamp(1.25rem, 1.8vw, 1.6rem); font-weight: 600; letter-spacing: -0.015em; }
.svc-body p { margin-top: 8px; color: var(--ink-soft); max-width: 34em; }
.svc-view { margin-top: 22px; display: flex; align-items: center; justify-content: center; padding: clamp(20px, 3vw, 40px); border-radius: var(--r-lg); background: var(--card) url("/images/textures/tex-sky-cream.jpg") center / cover; min-height: 340px; overflow: hidden; }
.svc[data-svc="1"] .svc-view { background-image: url("/images/textures/tex-brown-marigold.jpg"); }
.svc[data-svc="2"] .svc-view { background-image: url("/images/textures/tex-teal-cream.jpg"); }
.svc[data-svc="3"] .svc-view { background-image: url("/images/textures/tex-sky-cream.jpg"); }
.svc[data-svc="4"] .svc-view { background-image: url("/images/textures/tex-ink-paper.jpg"); }
.svc[data-svc="5"] .svc-view { background-image: url("/images/textures/tex-brown-marigold.jpg"); }
.svc[data-svc="6"] .svc-view { background-image: url("/images/textures/tex-teal-cream.jpg"); }
.svc[data-svc="7"] .svc-view { background-image: url("/images/textures/tex-teal-dark.jpg"); }
/* the phone stands in its panel and runs off the bottom edge, like a product shot */
.svc-view--companion { align-items: flex-start; padding-bottom: 0; }
.svc-view--companion .phone { width: min(250px, 60%); margin-bottom: -38%; }

@media (min-width: 1000px) {
  .motion .services { height: calc(100vh + var(--n) * 38vh); padding: 0; }
  .motion .services-stage { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--nav-h) + 56px); padding-bottom: 32px; }
  .motion .services-head { margin-bottom: 28px; }
  .motion .svc-list { position: relative; flex: 1; max-height: 640px; }
  .motion .svc { width: 40%; padding-block: 11px; }
  .motion .svc-name { color: var(--muted); transition: color .3s ease; }
  .motion .svc.is-active .svc-name { color: var(--ink); }
  .motion .svc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
  .motion .svc-body > p { overflow: hidden; }
  .motion .svc.is-active .svc-body { grid-template-rows: 1fr; }
  .motion .svc-view {
    position: absolute; top: 0; right: 0; bottom: 0; width: 56%; margin: 0;
    opacity: 0; transform: translateY(24px) scale(.985); transition: opacity .45s ease, transform .6s var(--ease); pointer-events: none;
  }
  .motion .svc.is-active .svc-view { opacity: 1; transform: none; pointer-events: auto; }
}

/* Drawn product cards: one frosted card on a quiet texture (after Autonomy). */
.mock {
  position: relative; width: min(100%, 420px); padding: clamp(18px, 2vw, 26px);
  border-radius: 20px; color: var(--ink); font-size: 15px; line-height: 1.35;
  background: rgba(253, 252, 250, .74); -webkit-backdrop-filter: blur(18px) saturate(1.1); backdrop-filter: blur(18px) saturate(1.1);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .55) inset, 0 24px 60px rgba(20, 14, 8, .16);
}
.ic { width: 22px; height: 22px; display: block; }
.mhead { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.mhead-ic { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #2F6B68; box-shadow: inset 0 0 0 1.6px currentColor; }
.mhead-ic .ic { width: 26px; height: 26px; }
.mhead-title { display: block; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.mhead-sub { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }
.mrows { position: relative; display: grid; gap: 10px; padding-left: 28px; }
.mrows::before { content: ""; position: absolute; left: 7px; top: 26px; bottom: 26px; width: 1.5px; background: rgba(47, 107, 104, .35); }
.mrow { position: relative; display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.mrow::before { content: ""; position: absolute; left: -27px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2px #2F6B68, inset 0 0 0 5px var(--paper), inset 0 0 0 7px #2F6B68; }
.mrow-ic { flex: none; color: #2F6B68; }
.mrow-txt { display: grid; gap: 3px; justify-items: start; min-width: 0; }
.mrow-label { font-size: 13px; color: var(--muted); }
.mrow-value { font-size: 16px; font-weight: 500; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 6px; font-size: 14px; font-weight: 500; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill--ok { color: #2F7D4F; background: #E3F1E8; }
.pill--warn { color: #8A5A00; background: #FBEBC7; }
.mbtn { display: block; width: fit-content; margin: 14px 0 0 auto; padding: 11px 26px; border-radius: 10px; background: #fff; font-weight: 500; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }

/* ---------- 4b. Growth ---------- */
.growth { padding-block: clamp(72px, 9vw, 130px) 0; }
.growth-lede { margin-top: 16px; font-size: var(--t-lede); color: var(--ink-soft); max-width: 34em; }
.growth-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gcard { display: flex; flex-direction: column; padding: 12px 12px 22px; border-radius: var(--r-lg); background: var(--card); }
.gcard-art { aspect-ratio: 4 / 3; border-radius: var(--r); background: var(--tex) center / cover; margin-bottom: 18px; transition: transform .6s var(--ease); }
.gcard:hover .gcard-art { transform: scale(1.015); }
.gcard h3 { padding-inline: 6px; font-size: 1.3rem; }
.gcard p { padding-inline: 6px; margin-top: 8px; color: var(--ink-soft); font-size: 15.5px; }
@media (max-width: 1000px) { .growth-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .growth-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scroll-padding-inline: var(--pad); scrollbar-width: none; }
  .growth-grid::-webkit-scrollbar { display: none; }
  .gcard { flex: 0 0 78vw; scroll-snap-align: start; }
}

/* ---------- 5. How it works: stacking cards ---------- */
.hiw { padding-block: clamp(72px, 9vw, 130px) clamp(40px, 5vw, 80px); }
.hiw-cards { display: grid; gap: 18px; }
.hiw-card {
  position: sticky; top: calc(var(--nav-h) + 40px + var(--i) * 26px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 38%); gap: clamp(20px, 4vw, 60px); align-items: center;
  min-height: clamp(300px, 46vh, 440px); padding: clamp(24px, 3.4vw, 48px); border-radius: var(--r-lg);
  background: var(--card); box-shadow: 0 -12px 40px rgba(0, 0, 0, .07), 0 0 0 1px rgba(17,17,17,.05);
}
.hiw-card:nth-child(2) { background: var(--card-2); }
.hiw-card:nth-child(3) { background: var(--accent-tint); }
.hiw-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.hiw-card h3 { font-size: clamp(1.8rem, 3.2vw, 2.9rem); letter-spacing: -0.03em; }
.hiw-card p:last-child { margin-top: 14px; max-width: 30em; color: var(--ink-soft); font-size: var(--t-lede); }
@media (max-width: 700px) {
  .panel-over { padding-top: 24px; }
  .panel--care .panel-over { justify-content: center; padding: 24px 24px 120px; }
  .panel--care .phone { width: 180px; }
  .panel-big { font-size: 2.3rem; }
}
@media (max-width: 700px) { .hiw-card { grid-template-columns: 1fr; } .hiw-card img { aspect-ratio: 16 / 9; } }

/* ---------- 7. Doors ---------- */
.doors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding-block: clamp(72px, 9vw, 120px); }
.door { display: flex; flex-direction: column; padding: 14px 14px 22px; border-radius: var(--r-lg); background: var(--card); text-decoration: none; transition: background-color .2s ease, transform .3s var(--ease); }
.door:hover { background: var(--card-2); transform: translateY(-3px); }
.door img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; border-radius: var(--r); margin-bottom: 18px; }
.door h3, .door p, .door-go { padding-inline: 6px; }
.door > div { display: flex; flex-direction: column; flex: 1; }
.door > div .door-go { margin-top: auto; }
.door p { margin: 8px 0 18px; color: var(--ink-soft); }
.door-go { margin-top: auto; font-weight: 600; font-size: 15px; }
.door-go::after { content: " \2192"; }
@media (max-width: 860px) { .doors { grid-template-columns: 1fr; } }

/* ---------- 8. FAQ ---------- */
.faq { padding-block: clamp(40px, 6vw, 90px) clamp(72px, 9vw, 120px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; }
.faq-list details { border-top: 1px solid var(--rule); }
.faq-list details:last-child { border-bottom: 1px solid var(--rule); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; padding: 22px 0; font-size: clamp(1.1rem, 1.4vw, 1.25rem); font-weight: 600; letter-spacing: -0.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 26px; font-weight: 400; line-height: 1; transition: transform .25s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 40px 24px 0; color: var(--ink-soft); }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; gap: 0; } }

/* ---------- 9. Contact ---------- */
/* Contact and footer are one dark block, edge to edge. */
.contact { color: var(--on-dark); background: var(--dark) url("/images/paper-dark-tile.jpg") 0 0 / 900px repeat; padding-block: clamp(72px, 9vw, 130px) clamp(40px, 5vw, 64px); }
.contact-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 100px); align-items: start; }
.contact h2 { color: #FBF7F0; font-size: var(--t-h2); }
.contact-alt { margin-top: 18px; font-size: 15px; color: var(--on-dark-soft); }
.contact-alt a { color: #FBF7F0; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: clamp(18px, 2.2vw, 26px); border-radius: var(--r); background: rgba(253, 252, 250, .06); box-shadow: inset 0 0 0 1px rgba(244, 239, 231, .14); transition: background-color .5s ease; }
.contact-form.is-open { background: rgba(253, 252, 250, .09); }
.field label { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 500; color: var(--on-dark-soft); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid rgba(244, 239, 231, .18); border-radius: 8px; background: rgba(253, 252, 250, .96); color: var(--ink); font-size: 16px; transition: border-color .2s ease, box-shadow .2s ease; }
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
  background: rgba(253, 252, 250, .96) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236E6E6E' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") right 14px center / 14px no-repeat;
}
.field select:has(option[value=""]:checked) { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(240, 164, 24, .28); }
.field textarea { resize: vertical; }
.field--wide { grid-column: 1 / -1; }
/* Forus-style unfold: the rest of the form grows open from nothing */
.contact-more { grid-column: 1 / -1; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease), margin .6s var(--ease); margin-top: -14px; }
.contact-more-in { min-height: 0; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-more-in > * { opacity: 0; transform: translateY(10px); transition: opacity .35s ease, transform .5s var(--ease); }
.contact-form.is-open .contact-more { grid-template-rows: 1fr; margin-top: 0; }
.contact-form.is-open .contact-more-in > * { opacity: 1; transform: none; }
.contact-form.is-open .contact-more-in > :nth-child(1) { transition-delay: .12s; }
.contact-form.is-open .contact-more-in > :nth-child(2) { transition-delay: .17s; }
.contact-form.is-open .contact-more-in > :nth-child(3) { transition-delay: .22s; }
.contact-form.is-open .contact-more-in > :nth-child(4) { transition-delay: .27s; }
.contact-more-in .field:first-child, .contact-more-in .field:nth-child(2) { padding-top: 2px; }
.contact-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-status { font-size: 15px; color: var(--on-dark-soft); }
.form-status a { color: #FBF7F0; }
@media (max-width: 860px) { .contact-in { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .contact-form, .contact-more-in { grid-template-columns: 1fr; } }

/* ---------- Footer: dark, with the mark and name huge across the bottom ---------- */
.foot { color: var(--on-dark); background: var(--dark) url("/images/paper-dark-tile.jpg") 0 0 / 900px repeat; padding-block: clamp(56px, 7vw, 96px) 28px; overflow: hidden; }
.foot--joined { padding-top: 8px; }
.foot--joined .foot-top { border-top: 1px solid rgba(244, 239, 231, .14); padding-top: clamp(40px, 5vw, 64px); }
.foot a { color: inherit; text-decoration: none; }
.foot-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-line { max-width: 20em; color: var(--on-dark-soft); }
.foot-cols { display: flex; gap: clamp(32px, 6vw, 96px); }
.foot-cols li + li { margin-top: 8px; }
.foot-cols a { color: #FBF7F0; transition: opacity .2s ease; }
.foot-cols a:hover { opacity: .7; }
/* The same logo as the header, scaled up and centred across the page. */
.foot-logo.wordmark { display: flex; justify-content: center; align-items: center; width: 100%; margin: clamp(56px, 9vw, 140px) 0 clamp(24px, 3vw, 40px); color: #FBF7F0; font-size: clamp(4.5rem, 17vw, 15rem); line-height: 1; }
.foot-logo { gap: .26em; }
/* the dotted letters: same size as the text would be (.86em of Geist, box .888 of that) */
.foot-logo .wm-dots { display: block; height: calc(.86em * .8883); flex: none; translate: 0 .07em; }
.foot-logo .wm-dots svg { display: block; height: 100%; width: auto; }
.foot-legal { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid rgba(244, 239, 231, .14); font-size: 13.5px; color: var(--on-dark-soft); }
.foot-legal p:first-child { max-width: 46em; }
.foot-legal p:last-child { display: flex; gap: 18px; }
.foot-legal a:hover { color: #FBF7F0; }

/* ---------- Inner pages ---------- */
.page-hero { padding: 0; }
.page-hero-card {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 32px;
  min-height: max(600px, 100svh); padding: clamp(24px, 4vw, 64px) var(--pad); padding-top: 130px;
  background: var(--card);
}
.page-hero-card > img { position: absolute; z-index: -1; right: 0; top: 0; width: 50%; height: 100%; object-fit: cover; }
.page-hero-card h1 { font-size: clamp(2.2rem, 4vw, 3.75rem); }
.page-hero-card .lede { margin-top: 22px; font-size: var(--t-lede); max-width: 32em; color: var(--ink-soft); }
.page-hero-cta { margin-top: 28px; }
.page-hero--dark .page-hero-card { background: var(--dark); color: var(--on-dark); }
.page-hero--dark h1 { color: #FBF7F0; }
.page-hero--dark .lede { color: var(--on-dark-soft); }
@media (max-width: 860px) {
  .page-hero-card { grid-template-columns: 1fr; padding-top: calc(68px + 62vw + 28px); min-height: 0; padding-bottom: 40px; }
  .page-hero-card > img { width: 100%; height: calc(68px + 62vw); }
  .page-patients .page-hero-card > img { object-position: 50% 0; }
}

.band { padding-block: clamp(64px, 8vw, 120px); }
.band--card { background: var(--card); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); }
.split .lede { font-size: var(--t-lede); color: var(--ink-soft); }
.split .lede + .lede { margin-top: 16px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.rows { display: grid; gap: clamp(20px, 3vw, 36px); }
.row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 60px); align-items: center; padding: clamp(20px, 3vw, 36px); border-radius: var(--r-lg); background: var(--card); }
.row h3 { margin-bottom: 12px; }
.row p { color: var(--ink-soft); }
.row-view { display: flex; justify-content: center; align-items: center; padding: clamp(20px, 3vw, 40px); border-radius: var(--r); min-height: 360px; background: var(--card) center / cover; overflow: hidden; }
.row-view--phone { align-items: flex-start; padding-bottom: 0; }
.row-view--phone .phone { width: min(240px, 60%); margin-bottom: -40%; }
@media (max-width: 860px) { .row { grid-template-columns: 1fr; } }

.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.col { padding: clamp(20px, 2.6vw, 32px); border-radius: var(--r-lg); background: var(--card); }
.col h3 { margin-bottom: 12px; }
.col p { color: var(--ink-soft); }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }

.statement { font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; max-width: 26em; text-wrap: balance; }
.statement-sub { margin-top: 18px; font-size: var(--t-lede); color: var(--ink-soft); max-width: 40em; }

.list-check li { position: relative; padding: 14px 0 14px 34px; border-top: 1px solid var(--rule); font-size: var(--t-lede); }
.list-check li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }
.list-check--no li::before { background: none; box-shadow: inset 0 0 0 2px var(--ink); }

.emergency { display: flex; gap: 20px; align-items: flex-start; padding: clamp(22px, 3vw, 36px); border-radius: var(--r-lg); background: #fff; box-shadow: inset 0 0 0 2px #B4552E; }
.emergency b { display: block; font-size: clamp(1.3rem, 2vw, 1.7rem); letter-spacing: -0.015em; line-height: 1.25; }
.emergency div > span { display: block; margin-top: 6px; color: var(--ink-soft); }
.emergency-mark { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #B4552E; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 22px; }

/* Patients page: older readers, a step larger */
.page-patients { font-size: 19px; }
.page-patients .list-check li { font-size: 1.2rem; }

.prose { max-width: 720px; padding-block: calc(var(--nav-h) + 80px) 100px; }
.prose h1 { font-size: var(--t-h2); margin-bottom: 24px; }

/* ---------- Headings in the serif ---------- */
h1, h2, h3, .panel-big, .rail-title, .statement, .handles-list li, .svc-name, .faq-list summary {
  font-family: var(--head); font-weight: 400; letter-spacing: -0.012em;
}
h1, .panel-big { letter-spacing: -0.02em; line-height: 1.02; }
.handles-list li { letter-spacing: -0.015em; }
/* Geist sets wider and darker than the serif: a touch more weight, tighter tracking, a step smaller. */
:root:not([data-head="serif"]) :is(h1, h2, h3, .panel-big, .rail-title, .statement, .handles-list li, .svc-name, .faq-list summary) { font-weight: 500; letter-spacing: -0.035em; }
:root:not([data-head="serif"]) :is(h1, .panel-big) { letter-spacing: -0.045em; line-height: 1.04; font-size-adjust: none; }
:root:not([data-head="serif"]) h1 { font-size: calc(var(--t-h1) * .9); }
:root:not([data-head="serif"]) .page-hero-card h1 { font-size: clamp(2rem, 3.6vw, 3.4rem); }
:root:not([data-head="serif"]) h2 { font-size: calc(var(--t-h2) * .9); }
:root:not([data-head="serif"]) .faq-list summary, :root:not([data-head="serif"]) .svc-name { letter-spacing: -0.02em; }
.faq-list summary { font-size: clamp(1.2rem, 1.6vw, 1.4rem); }

/* Reduced motion: nothing slides */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Phones and tablets: each section gets its own shape ----------
   1. numbered cards swipe sideways   2. services open one at a time
   3. how it works is a plain timeline   4. the doors are compact rows */
@media (max-width: 999px) {
  /* 1. swipe row */
  .steps { padding-inline: 0; padding-bottom: clamp(56px, 10vw, 96px); }
  .steps-panels {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    padding: 4px var(--pad) 8px; scroll-padding-inline: var(--pad); scrollbar-width: none;
  }
  .steps-panels::-webkit-scrollbar { display: none; }
  .step { flex: 0 0 min(82vw, 420px); scroll-snap-align: start; display: flex; flex-direction: column; background: var(--card); border-radius: var(--r-lg); overflow: hidden; }
  .step + .step { margin-top: 0; }
  .panel { min-height: 0; aspect-ratio: 1; border-radius: 0; }
  .panel-big { display: none; }
  .panel-over { align-items: center; justify-content: center; padding: 20px; }
  .bubble { font-size: 15.5px; padding: 14px 16px; }
  .panel--care .panel-over { align-items: flex-start; padding: 26px 20px 0; }
  .panel--care .phone { width: min(58%, 220px); transform: none; }
  .step-text { padding: 20px 20px 24px; border: 0; max-width: none; }
  .step-text h2 { font-size: 1.35rem; }
  .step-text p:last-child { font-size: 15.5px; }

  /* 2. services accordion */
  .svc { padding-block: 0; }
  .svc-name { position: relative; padding: 20px 36px 20px 0; }
  .svc-name::after { content: ""; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .3s var(--ease); }
  .svc.is-active .svc-name::after { transform: translateY(4px) rotate(-135deg); }
  .svc-body, .svc-view { display: none; }
  .svc.is-active .svc-body { display: block; }
  .svc.is-active .svc-view { display: flex; margin: 16px 0 24px; }
  .svc-body p { margin-top: 0; }
}
@media (max-width: 700px) {
  /* 3. timeline, no pictures */
  .hiw-cards { gap: 0; position: relative; padding-left: 26px; }
  .hiw-cards::before { content: ""; position: absolute; left: 5px; top: 14px; bottom: 14px; width: 1.5px; background: var(--rule); }
  .hiw-card { position: relative; top: auto; display: block; min-height: 0; padding: 0 0 34px; background: none !important; box-shadow: none; border-radius: 0; }
  .hiw-card::before { content: ""; position: absolute; left: -26px; top: 10px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--paper); }
  .hiw-card img { display: none; }
  .hiw-card h3 { font-size: 1.6rem; }
  .hiw-card p:last-child { margin-top: 8px; font-size: 16px; }
}

/* ---------- Buttons and menu, after Valkai ----------
   Talk to us: the label and a separate arrow block, square-ish corners.
   Menu: spaced capitals and a plus that turns into a cross, split by a rule. */
.cta { display: inline-flex; gap: 3px; height: 44px; text-decoration: none; cursor: pointer; border: 0; padding: 0; background: none; font: inherit; color: var(--ink); }
.cta-label, .cta-arrow { display: inline-flex; align-items: center; background: var(--accent); border-radius: 4px; transition: background-color .2s ease; }
.cta-label { padding: 0 18px; font-size: 15px; font-weight: 500; }
.cta-arrow { width: 44px; justify-content: center; }
.cta-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.cta:hover .cta-label, .cta:hover .cta-arrow { background: var(--accent-hover); }
.cta:hover .cta-arrow svg { transform: translateX(3px); }
.cta--dark { color: #fff; }
.cta--dark .cta-label, .cta--dark .cta-arrow { background: var(--ink); }
.cta--dark:hover .cta-label, .cta--dark:hover .cta-arrow { background: #2b2b2b; }
/* Hover, after Valkai: a deeper shade wipes up from the bottom while the label
   rolls up and a fresh copy rolls in under it. */
.cta-label, .cta-arrow { position: relative; overflow: hidden; isolation: isolate; }
.cta-label::before, .cta-arrow::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--wipe, #D98A06); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .45s var(--ease); }
.cta:hover .cta-label::before, .cta:hover .cta-arrow::before, .cta:focus-visible .cta-label::before, .cta:focus-visible .cta-arrow::before { transform: scaleY(1); }
.cta-arrow::before { transition-delay: .04s; }
.cta:hover .cta-label, .cta:hover .cta-arrow { background: var(--accent); }
.roll { position: relative; display: inline-block; transition: transform .45s var(--ease); }
.roll::after { content: attr(data-text); position: absolute; left: 0; top: 100%; padding-top: .7em; white-space: nowrap; }
.cta-label .roll { padding-bottom: 0; }
.roll--icon { display: grid; gap: 14px; height: 16px; }
.roll--icon svg { transition: none; }
.cta:hover .roll, .cta:focus-visible .roll { transform: translateY(calc(-100% - .7em)); }
.cta:hover .roll--icon, .cta:focus-visible .roll--icon { transform: translateY(-30px); }
.cta:hover .cta-arrow svg { transform: none; }
.cta--dark { --wipe: #3a3027; }
.cta--dark:hover .cta-label, .cta--dark:hover .cta-arrow { background: var(--ink); }
.cta--light { color: var(--ink); }
.cta--light .cta-label, .cta--light .cta-arrow { background: var(--accent); }

.nav-menu {
  display: none; align-items: stretch; height: 42px; padding: 0; border: 0; border-radius: 4px; cursor: pointer;
  background: color-mix(in srgb, currentColor 9%, transparent); color: inherit;
}
.nav-menu-label { display: inline-flex; align-items: center; padding: 0 14px 0 16px; font-size: 15px; font-weight: 500; }
.nav-menu-ic { position: relative; width: 42px; border-left: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.nav-menu-ic::before, .nav-menu-ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 1.5px; margin: -.75px 0 0 -6.5px; background: currentColor; transition: transform .3s var(--ease); }
.nav-menu-ic::after { transform: rotate(90deg); }
.nav.is-open .nav-menu-ic::before { transform: rotate(45deg); }
.nav.is-open .nav-menu-ic::after { transform: rotate(135deg); }
.nav-panel-cta { display: none; }

@media (max-width: 860px) {
  .nav-in { grid-template-columns: 1fr auto; height: 68px; }
  .nav .wordmark { grid-column: 1; justify-self: start; font-size: 27px; }
  .nav-end { display: none; }
  .nav-menu { display: inline-flex; grid-column: 2; grid-row: 1; }
  .nav-links {
    display: none; position: fixed; top: 68px; left: 0; right: 0; bottom: 0; overflow-y: auto;
    flex-direction: column; justify-content: space-between; padding: 28px var(--pad) 32px;
    background: var(--paper); color: var(--ink); border-top: 1px solid var(--rule);
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-links ul { flex-direction: column; gap: 0; margin: 0; }
  .nav-links li { border-bottom: 1px solid var(--rule); }
  .nav-link { display: flex; justify-content: flex-start; height: auto; padding: 18px 0; border-radius: 0; font-family: var(--head); font-size: clamp(2rem, 9vw, 2.6rem); letter-spacing: -0.03em; }
  .nav-link:hover { background: none; }
  .nav-link[aria-current="page"] { text-decoration: none; color: var(--marigold-deep, #B8790B); }
  .nav-panel-cta { display: flex; justify-content: flex-start; padding-top: 32px; }
  html.menu-open { overflow: hidden; }
  /* a blurred bar would trap the fixed panel inside itself */
  .nav.is-open { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--paper); }
}

/* ---------- Numbered panels on desktop: one title, as a caption on the art ----------
   No big panel titles and no pinned cards on the right. The numbered heading and
   text sit bottom-left on a frosted card; message bubbles sit top-right. Each
   panel pins as you scroll and the next slides up over it. */
@media (min-width: 1000px) {
  .steps { padding: 0 var(--inset) clamp(72px, 8vw, 120px); }
  .motion .steps-grid, .steps-grid { display: block; }
  .steps-rail, .motion .steps-rail { display: none !important; }
  .step, html:not(.motion) .step { position: relative; display: block; }
  .step + .step { margin-top: var(--inset); }
  .motion .step { position: sticky; top: calc(var(--nav-h) + 12px); }
  .panel, .motion .panel { min-height: 0; height: calc(100vh - var(--nav-h) - 36px); max-height: 820px; }
  .panel-big { display: none; }
  .panel-over { align-items: flex-start; justify-content: flex-end; padding: clamp(28px, 3vw, 48px); }
  .panel--care .panel-over { align-items: center; justify-content: flex-end; padding-right: clamp(48px, 8vw, 140px); }
  .panel--care .phone { width: clamp(210px, 17vw, 260px); transform: rotate(-3deg); }
  .motion .step-text, .step-text {
    position: absolute !important; left: clamp(28px, 3vw, 48px); bottom: clamp(28px, 3vw, 48px);
    width: min(440px, 40%); height: auto; overflow: visible; clip: auto; max-width: none;
    padding: 24px 26px 26px; border-radius: 18px;
    background: rgba(253, 252, 250, .8); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .5) inset, 0 18px 50px rgba(20, 14, 8, .14);
  }
  .step-text h2 { font-size: clamp(1.4rem, 1.8vw, 1.7rem); margin-bottom: 10px; }
  .step-text p:last-child { font-size: 16px; color: var(--ink-soft); }
  .step:has(.panel--insight) .step-text { background: rgba(34, 27, 22, .55); color: #FBF7F0; box-shadow: 0 0 0 1px rgba(244, 239, 231, .12) inset, 0 18px 50px rgba(0, 0, 0, .25); }
  .step:has(.panel--insight) .step-text p:last-child { color: var(--on-dark-soft); }
}

/* ---------- Doors: compact rows at every size (thumbnail, title, line, arrow) ---------- */
.doors { gap: 0 48px; padding-block: clamp(32px, 5vw, 72px) clamp(56px, 7vw, 100px); }
.door { flex-direction: row; align-items: center; gap: 20px; padding: 20px 0; border-radius: 0; background: none; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); position: relative; }
.door:hover { background: none; transform: none; }
.door img { width: 96px; flex: none; aspect-ratio: 1; margin: 0; border-radius: 12px; transition: transform .5s var(--ease); }
.door:hover img { transform: scale(1.04); }
.door h3, .door p { padding-inline: 0; }
.door h3 { font-size: 1.3rem; }
.door p { margin: 4px 40px 0 0; font-size: 15px; }
.door > div { min-width: 0; }
.door-go { display: none; }
.door::after { content: "\2192"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 20px; transition: transform .3s var(--ease); }
.door:hover::after { transform: translate(4px, -50%); }
@media (max-width: 700px) {
  .doors { gap: 0; }
  .door + .door { border-top: 0; }
  .door img { width: 76px; }
  .door h3 { font-size: 1.2rem; }
  .door p { margin-right: 28px; font-size: 14.5px; }
}

/* Services on desktop: list and picture both fit the screen, with room below. */
@media (min-width: 1000px) {
  .motion .services-stage { justify-content: center; padding-top: calc(var(--nav-h) + 24px); padding-bottom: 40px; }
  .motion .services-head { margin-bottom: 22px; }
  .motion .services-head h2 { font-size: clamp(2rem, 3.2vw, 3rem); }
  .motion .svc-list { flex: none; height: min(600px, calc(100vh - var(--nav-h) - 200px)); max-height: none; }
  .motion .svc { padding-block: 9px; }
  .motion .svc-name { font-size: clamp(1.1rem, 1.45vw, 1.35rem); }
  .motion .svc-body p { font-size: 15.5px; }
  .motion .svc-view { top: 0; bottom: 0; height: auto; }
}

/* ---------- Section headings centred (the hero headings stay left) ---------- */
.sect-head, .services-head { margin-inline: auto; text-align: center; max-width: 860px; }
.growth-lede { margin-inline: auto; }
.motion .services-head { margin-inline: auto; }
/* FAQ: heading on top, questions below in one centred column */
.faq { grid-template-columns: 1fr; gap: 0; }
.faq > .sect-head { margin-bottom: clamp(28px, 3vw, 44px); }
.faq-list { width: 100%; max-width: 820px; margin-inline: auto; }
/* Contact: heading and email line centred, form centred below */
.contact-in { grid-template-columns: 1fr; justify-items: center; gap: clamp(28px, 3vw, 40px); }
.contact-copy { text-align: center; }
.contact-form { width: 100%; max-width: 640px; }
/* Inner pages: split blocks stack, centred */
.split { grid-template-columns: 1fr; max-width: 820px; margin-inline: auto; text-align: center; gap: 20px; }
.split .lede { margin-inline: auto; }
.statement, .statement-sub { margin-inline: auto; text-align: center; }
.band > .wrap > .statement, .band.wrap > .statement { max-width: 28em; }
.list-check { text-align: left; max-width: 560px; margin-inline: auto; }

/* ---------- One spacing system ----------
   --sect-y: the gap between any two sections.  --head-gap: heading to its content.
   Paper sections only pad their top; a section that sits right before a coloured
   block (services, contact) also pads its bottom, so every gap is exactly one --sect-y. */
:root { --sect-y: clamp(80px, 8vw, 128px); --head-gap: clamp(32px, 3.2vw, 48px); }
.sect-head, .services-head, .motion .services-head { margin-bottom: var(--head-gap); }
.sect-head h2 + p, .growth-lede { margin-top: 16px; }
.steps { padding-bottom: var(--sect-y) !important; }
.services { padding-block: var(--sect-y); }
.growth { padding-block: var(--sect-y) 0; }
.doors { padding-block: var(--sect-y) 0 !important; }
.faq { padding-block: var(--sect-y) !important; }
.contact { padding-block: var(--sect-y) clamp(48px, 5vw, 72px); }
.contact-in { gap: var(--head-gap); }
.band { padding-block: calc(var(--sect-y) / 2); }
.band:first-of-type, .page-hero + .band { padding-top: var(--sect-y); }
.band--card { padding-block: var(--sect-y); margin-block: calc(var(--sect-y) / 2); }
@media (min-width: 1000px) {
  .motion .services { padding: 0; }
  .motion .services-stage { padding-top: calc(var(--nav-h) + 16px); padding-bottom: 32px; }
}
/* Services on desktop: heading sits one --sect-y below the grey edge, like every other section */
@media (min-width: 1000px) {
  .motion .services-stage { justify-content: flex-start; padding-top: var(--sect-y); padding-bottom: 32px; }
  .motion .svc-list { height: min(600px, calc(100vh - var(--sect-y) - 160px)); }
}

/* ---------- Entrances ----------
   Headlines rise word by word from behind a mask; everything else eases up as
   it scrolls into view. Only under .motion, so no-JS and reduced-motion readers
   see the finished page. */
.motion .split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.motion .split-words .wi { display: inline-block; transform: translateY(105%); transition: transform 1.1s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--i) * 70ms + 150ms); }
.motion .split-words.in .wi { transform: none; }
.motion .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s ease, transform 1.1s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--d, 0ms); }
.motion .reveal.in { opacity: 1; transform: none; }
.motion .reveal-fade { opacity: 0; transition: opacity 1.2s ease; transition-delay: var(--d, 0ms); }
.motion .reveal-fade.in { opacity: 1; }

/* Shorter scroll sections: the animation still reads, skimmers get through faster. */
.motion .handles { height: calc(100svh + var(--n) * 7svh); }
@media (min-width: 1000px) { .motion .services { height: calc(100vh + var(--n) * 17vh); } }

/* Numbered panels: captions centred */
.step-text { text-align: center; }
.step-text p:last-child { margin-inline: auto; }
@media (min-width: 1000px) {
  .motion .step-text, .step-text { left: 0 !important; right: 0; margin-inline: auto; width: min(560px, 46%); }
}
/* Wide panels crop the art: keep the top of each picture, let the plain paper under the caption go */
@media (min-width: 1000px) { .panel-bg { object-position: 50% 12%; } }

/* Talk to us: printed on the blue halftone, as one strip across label and arrow */
.cta:not(.cta--dark) .cta-label, .cta:not(.cta--dark) .cta-arrow {
  background: #8FAFC8 url("/images/textures/tex-sky-cream.jpg") 0 45% / 300px auto;
  color: #10202E; box-shadow: inset 0 0 0 1px rgba(16, 32, 46, .12);
}
.cta:not(.cta--dark) .cta-arrow { background-position: -150px 45%; }
.cta:not(.cta--dark) .cta-label { font-weight: 600; }
.cta:not(.cta--dark):hover .cta-label, .cta:not(.cta--dark):hover .cta-arrow { background-color: #8FAFC8; }
.cta:not(.cta--dark) { --wipe: rgba(30, 64, 96, .38); }

/* Services list (desktop): hovering a name invites the click */
@media (min-width: 1000px) and (hover: hover) {
  .motion .svc-name { position: relative; transition: color .3s ease, transform .4s cubic-bezier(.16, 1, .3, 1); }
  .motion .svc-name::after {
    content: "\2192"; position: absolute; right: 0; top: 50%; font-size: .9em; color: var(--ink);
    opacity: 0; transform: translate(-12px, -50%); transition: opacity .3s ease, transform .4s cubic-bezier(.16, 1, .3, 1);
  }
  .motion .svc-name::before {
    content: ""; position: absolute; left: 0; top: -17px; height: 2px; width: 100%; background: var(--ink);
    transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.16, 1, .3, 1);
  }
  .motion .svc:not(.is-active):hover .svc-name { color: var(--ink); transform: translateX(8px); }
  .motion .svc:not(.is-active):hover .svc-name::after { opacity: 1; transform: translate(0, -50%); }
  .motion .svc:not(.is-active):hover .svc-name::before { transform: translateX(-8px) scaleX(1); }
}

/* "Parlor handles": rotates on its own now, so no tall scroll section */
.motion .handles { height: auto; padding-block: var(--sect-y); }
.motion .handles-stage { position: static; height: auto; }
.motion .handles-list { padding-top: 0; }
.motion .handles-list li { transition: opacity .5s ease; }
@media (min-width: 1000px) and (max-height: 820px) {
  .motion .svc { padding-block: 6px; }
  .motion .services-stage { padding-top: calc(var(--sect-y) * .7); }
  .motion .services-head { margin-bottom: 24px; }
}

/* services that are still on the way */
.soon { display: inline-block; vertical-align: middle; margin-left: 10px; padding: 3px 10px; border-radius: 999px; background: var(--card-2); color: var(--muted); font-family: var(--text); font-size: 13px; font-weight: 500; letter-spacing: 0; }
.svc--soon:first-of-type, .svc:not(.svc--soon) + .svc--soon { border-top: 2px solid var(--ink); }

/* Patient companion as a text conversation */
.chatphone { width: min(300px, 74%); height: 520px; display: flex; flex-direction: column; overflow: hidden; border-radius: 40px 40px 0 0; border: 9px solid #161210; border-bottom: 0; background: #FBFAF7; box-shadow: 0 30px 60px rgba(0, 0, 0, .25); font-family: -apple-system, "SF Pro Text", var(--text); }
.svc-view--companion { align-items: flex-end; }
.cp-top { display: grid; justify-items: center; gap: 2px; padding: 22px 0 12px; border-bottom: 1px solid #ECE8E0; background: rgba(251, 250, 247, .95); }
.cp-avatar { width: 38px; height: 38px; border-radius: 50%; background: #111 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='32' r='14' fill='%23FBF7F0'/%3E%3C/svg%3E") center / cover; }
.cp-name { font-size: 13px; font-weight: 600; color: #111; }
.cp-sub { font-size: 11px; color: #8A8580; }
.cp-thread { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 14px 12px; overflow: hidden; }
.cp-time { align-self: center; font-size: 11px; color: #8A8580; margin-bottom: 4px; }
.cp-b { max-width: 80%; padding: 8px 12px; border-radius: 18px; font-size: 13.5px; line-height: 1.35; }
.cp-me { align-self: flex-end; background: #2F6B68; color: #fff; border-bottom-right-radius: 6px; }
.cp-them { align-self: flex-start; background: #ECE8E0; color: #111; border-bottom-left-radius: 6px; }
.cp-src { align-self: flex-start; margin: -2px 0 4px 4px; font-size: 11px; color: #2F6B68; font-weight: 500; }
.cp-input { margin: 8px 12px 14px; padding: 9px 14px; border-radius: 999px; border: 1px solid #DED8CC; font-size: 13px; color: #A8A29A; }
@media (max-width: 999px) { .chatphone { width: min(300px, 86%); height: 470px; } }

/* Patient companion: the real app's pieces, floating on the texture */
.svc-view--companion { align-items: center; padding-bottom: clamp(20px, 3vw, 40px); }
.cmp { width: min(100%, 430px); display: flex; flex-direction: column; gap: 12px; }
.cmp > * { box-shadow: 0 0 0 1px rgba(255, 255, 255, .5) inset, 0 18px 44px rgba(20, 14, 8, .16); }
.cmp-q { align-self: flex-end; max-width: 84%; padding: 12px 18px; border-radius: 22px 22px 6px 22px; background: #2F6B68; color: #fff; font-size: 16px; line-height: 1.35; }
.cmp-a { padding: 18px 20px; border-radius: 22px 22px 22px 6px; background: rgba(253, 252, 250, .88); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.cmp-who { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.cmp-dot { width: 10px; height: 10px; border-radius: 50%; background: #111; box-shadow: 4px -3px 0 -2px #2F7D4F; }
.cmp-text { font-size: 15.5px; line-height: 1.5; color: var(--ink); }
.cmp-video { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 18px; background: #fff; }
.cmp-thumb { position: relative; flex: none; width: 92px; height: 64px; border-radius: 12px; background: #F2EFE8; display: grid; place-items: center; }
.cmp-play { width: 30px; height: 30px; border-radius: 50%; background: #8A8580; position: relative; }
.cmp-play::after { content: ""; position: absolute; left: 12px; top: 9px; border-left: 9px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.cmp-len { position: absolute; right: 6px; bottom: 5px; padding: 1px 6px; border-radius: 6px; background: rgba(60, 56, 52, .75); color: #fff; font-size: 10.5px; }
.cmp-vk { display: block; font-size: 12.5px; color: var(--muted); }
.cmp-vt { display: block; font-size: 15px; font-weight: 600; margin-top: 2px; }
.cmp-next { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 14.5px; font-weight: 500; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.cmp-next::before { content: ""; width: 10px; height: 5px; border-left: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg) translateY(-2px); transition: border-color .2s ease; }
.cmp-next.is-on { background: #E3F1E8; color: var(--ok); }
.cmp-next.is-on::before { border-color: currentColor; }
@media (hover: hover) {
  .cmp-next:hover { background: #E3F1E8; color: var(--ok); }
  .cmp-next:hover::before { border-color: currentColor; }
}
.cmp-next { -webkit-tap-highlight-color: transparent; }
@media (max-width: 999px) { .cmp-text { font-size: 14.5px; } }
.cmp-mark { width: 16px; height: 16px; color: #111; display: inline-block; }
.cmp-mark svg { width: 100%; height: 100%; display: block; }
.cmp-who { color: var(--ink); font-weight: 600; font-family: "Geist", var(--text); letter-spacing: -0.02em; font-size: 14px; }

/* Companion conversation plays out: question, thinking, answer, video, next steps */
.cmp-typing { display: none; }
.motion .cmp.is-armed > * { opacity: 0; transform: translateY(8px) scale(.99); transition: opacity .45s ease, transform .55s cubic-bezier(.16, 1, .3, 1); }
.motion .cmp.is-armed .cmp-q { transform-origin: right bottom; }
.motion .cmp.is-armed .cmp-a, .motion .cmp.is-armed .cmp-video, .motion .cmp.is-armed .cmp-next { transform-origin: left top; }
.motion .cmp.s1 .cmp-q, .motion .cmp.s3 .cmp-a, .motion .cmp.s4 .cmp-video, .motion .cmp.s5 .cmp-next { opacity: 1; transform: none; }
.motion .cmp.is-armed .cmp-next { transition: opacity .45s ease, transform .55s cubic-bezier(.16, 1, .3, 1), background-color .2s ease, color .2s ease; }
.motion .cmp.is-armed .cmp-typing { display: inline-flex; position: absolute; left: 0; top: var(--typing-top, 60px); }
.motion .cmp.s2 .cmp-typing { opacity: 1; transform: none; }
.motion .cmp.s3 .cmp-typing { opacity: 0; transform: none; transition: opacity .2s ease; }
.cmp { position: relative; }
.cmp-typing { align-self: flex-start; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 22px 22px 22px 6px; background: rgba(253, 252, 250, .88); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); font-size: 13.5px; color: var(--muted); }
.cmp-dots { display: inline-flex; gap: 4px; }
.cmp-dots i { width: 6px; height: 6px; border-radius: 50%; background: #8A8580; animation: cmp-dot 1.1s ease-in-out infinite; }
.cmp-dots i:nth-child(2) { animation-delay: .15s; }
.cmp-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes cmp-dot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
/* hover line sits exactly on the row's divider */
@media (min-width: 1000px) {
  .motion .svc { --pt: 9px; padding-block: var(--pt); }
  .motion .svc-name::before { top: calc(-1 * var(--pt) - 1.5px); }
}
@media (min-width: 1000px) and (max-height: 820px) { .motion .svc { --pt: 6px; } }

/* Header on scroll, after Valkai: a deeper frosted band that fades out downward,
   tinted to whatever is underneath so the logo and links always read. */
.nav::before {
  height: 150%;
  background: linear-gradient(var(--nav-tint-top, rgba(253, 252, 250, .82)), var(--nav-tint-mid, rgba(253, 252, 250, .55)) 55%, rgba(253, 252, 250, 0));
  -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1);
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent);
}
.nav.is-over-dark { --nav-tint-top: rgba(18, 14, 10, .72); --nav-tint-mid: rgba(18, 14, 10, .42); }

/* Panel 1 now matches the others: message card top-right, art behind */
.panel--care .panel-over { align-items: flex-start !important; justify-content: flex-end !important; padding: clamp(28px, 3vw, 48px) !important; }
@media (max-width: 999px) { .panel--care .panel-over { align-items: center !important; justify-content: center !important; padding: 20px !important; } }

/* The companion's orb, copied from the app (urology-companion/src/styles.css) */
.wel { --orb-1: #4d7aa6; --orb-2: #6f93b8; --orb-3: #dde4e4; width: min(100%, 520px); padding: 32px 22px 18px; border-radius: 22px; text-align: center;
  background: rgba(238, 238, 236, .9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 0 0 1px rgba(255,255,255,.5) inset, 0 24px 60px rgba(20,14,8,.16); }
.corb { position: relative; display: inline-block; flex: none; border-radius: 50%; overflow: hidden; isolation: isolate;
  background: radial-gradient(circle at 30% 28%, #eef0ec, var(--orb-3) 30%, var(--orb-2) 62%, var(--orb-1)); box-shadow: inset 0 0 0 .5px rgb(255 255 255 / .4); }
.corb-big { width: 104px; height: 104px; box-shadow: 0 12px 40px color-mix(in srgb, var(--orb-1) 30%, transparent); animation: corb-glow-big 2.8s ease-in-out infinite; }
.corb-clip { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; -webkit-mask-image: radial-gradient(circle, #000 70.7%, transparent 71%); mask-image: radial-gradient(circle, #000 70.7%, transparent 71%); }
.corb-layer { position: absolute; inset: -20%; border-radius: 50%; filter: blur(6px); opacity: .85; }
.corb-a { background: radial-gradient(circle at 30% 35%, var(--orb-2), transparent 55%); animation: orb-drift 9s ease-in-out infinite; }
.corb-b { background: radial-gradient(circle at 70% 60%, var(--orb-1), transparent 55%); animation: orb-drift 11s ease-in-out infinite reverse; }
.corb-c { background: radial-gradient(circle at 50% 80%, var(--orb-3), transparent 50%); animation: orb-spin 14s linear infinite; }
.corb-gloss { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 30% 24%, rgb(240 242 238 / .7), transparent 38%); }
.corb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' 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 1.4 -0.3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 60px 60px; }
@keyframes corb-glow-big { 0%, 100% { box-shadow: 0 12px 40px color-mix(in srgb, var(--orb-1) 30%, transparent); } 50% { box-shadow: 0 12px 56px 10px color-mix(in srgb, var(--orb-1) 55%, transparent); } }
.wel-tap { margin-top: 8px; font-size: 13px; color: var(--muted); }
.wel-hi { margin: 14px auto 18px; max-width: 16em; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; color: #2B1809; }
.wel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; text-align: left; }
.wel-grid p { padding: 12px 14px; border-radius: 14px; background: #fff; font-size: 13.5px; line-height: 1.35; color: #2B1809; }
.wel-grid span { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
.wel-note { margin-top: 12px; font-size: 12px; color: var(--muted); }
.row-view--welcome { padding: clamp(18px, 3vw, 36px); }
@media (prefers-reduced-motion: reduce) { .corb-layer, .corb-big { animation: none !important; } }
@keyframes orb-drift { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(8%, -6%) scale(1.08); } 66% { transform: translate(-6%, 7%) scale(.96); } }
@keyframes orb-spin { to { transform: rotate(360deg); } }
.wel .corb { display: block; margin: 0 auto; }
@media (max-width: 999px) { .corb-big { width: 84px; height: 84px; } .wel-hi { font-size: 19px; } }
.row .wel .wel-hi, .row .wel .wel-grid p { color: #2B1809; }
.row .wel .wel-tap, .row .wel .wel-note, .row .wel .wel-grid span { color: var(--muted); }

/* Link out to the live companion */
.beta { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 999px; font-family: var(--text); font-size: 11px; font-weight: 600; letter-spacing: .02em; vertical-align: 2px;
  background: #E3F1E8; color: #2F7D4F; }
.nav.is-over-dark:not(.is-open) .beta { background: rgba(227, 241, 232, .18); color: #CFE9D8; }
.try-link { display: inline-flex; align-items: center; margin-top: 12px; font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }
.try-link::after { content: "\2197"; margin-left: 6px; font-weight: 400; }
.try-link:hover { color: #2F6B68; }
@media (min-width: 1000px) { .motion .svc-body .try-link { margin-left: 0; } }
.try-link { width: fit-content; justify-self: start; align-self: start; }

/* Phones: the swipe row. Cards off to the side were waiting for a reveal that
   never fired (they're not in view vertically), so the next card never peeked. */
.steps-dots { display: none; }
@media (max-width: 999px) {
  .motion .steps .step.reveal { opacity: 1; transform: none; }
  .step { flex-basis: 84vw; }
  .steps-panels { scroll-padding-inline: var(--pad); }
  .steps-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
  .steps-dots span { width: 8px; height: 8px; border-radius: 999px; background: #D6CFC3; transition: width .3s ease, background-color .3s ease; }
  .steps-dots span.on { width: 22px; background: var(--ink); }
}
