/* Typefaces, served from this site so no visitor data goes to a font provider */
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('./assets/fonts/dm-mono-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('./assets/fonts/dm-mono-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('./assets/fonts/dm-mono-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('./assets/fonts/dm-mono-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('./assets/fonts/dm-sans-400-600-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('./assets/fonts/dm-sans-400-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 300 500; font-display: swap; src: url('./assets/fonts/newsreader-italic-300-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 300 500; font-display: swap; src: url('./assets/fonts/newsreader-italic-300-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 300 500; font-display: swap; src: url('./assets/fonts/newsreader-300-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 300 500; font-display: swap; src: url('./assets/fonts/newsreader-300-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light;
  interpolate-size: allow-keywords;

  --paper: #faf8f3;
  --paper-deep: #f3efe6;
  --stone: #e6dfd0;
  --white: #fff;
  --ink: #17120d;
  --ink-soft: #5d564c;
  --brand: #183436;
  --ok: #2f7d55;
  --ok-soft: #e3f2e6;
  --sun: #f08a2c;
  --sun-soft: #fbe3c4;
  --film: 23 18 13;

  --font-display: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --r-control: 12px;
  --r-card: 16px;
  --r-panel: clamp(28px, 4.4vw, 64px);
  --gutter: clamp(16px, 2.4vw, 32px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --lift: 0 28px 60px -28px rgb(var(--film) / .38), 0 2px 6px -2px rgb(var(--film) / .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.5; letter-spacing: .005em; -webkit-font-smoothing: antialiased; caret-color: var(--sun); }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, figure, ol, dl, dd { margin: 0; }
ol { padding: 0; list-style: none; }
::selection { background: var(--sun-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .start :focus-visible { outline-color: var(--white); }

h1, h2, h3, .footer-tagline { font-family: var(--font-display); font-weight: 340; font-variation-settings: 'opsz' 34; text-wrap: balance; }
h1 em, h2 em, .footer-tagline em { font-style: italic; }
h2 { font-size: clamp(2.25rem, 4.3vw, 4.3rem); line-height: 1.05; letter-spacing: -.016em; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.paper-grain { position: fixed; inset: 0; z-index: 100; background: url('./assets/paper-grain.svg') repeat; opacity: .16; mix-blend-mode: multiply; pointer-events: none; }

/* Navigation: two floating groups of tiles */
.nav { position: fixed; top: 12px; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; padding: 0 var(--gutter); pointer-events: none; }
.nav-group { display: flex; gap: 2px; padding: 4px; border-radius: var(--r-card); background: rgb(227 221 207 / .46); border: 1px solid rgb(255 255 255 / .14); -webkit-backdrop-filter: blur(13px) saturate(1.25); backdrop-filter: blur(13px) saturate(1.25); pointer-events: auto; }
.nav-side { position: absolute; top: 0; right: var(--gutter); }
.nav-tile { display: inline-flex; align-items: center; height: 44px; padding: 0 14px; border-radius: var(--r-control); background: var(--white); font-size: 15px; white-space: nowrap; transition: background-color .25s var(--ease), color .25s var(--ease); }
.nav-brand { padding: 0 14px 0 12px; }
.nav-logo { width: auto; height: 24px; }
.nav-mark { display: none; }
.nav-quiet { background: rgb(255 255 255 / .62); }
.nav-cta { background: var(--ink); color: var(--white); }

/* Hero: the film fills the first screen */
.hero { position: relative; isolation: isolate; min-height: 100vh; min-height: max(100svh, 500px); display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto; justify-items: center; overflow: hidden; overflow: clip; background: #4a4136; color: var(--white); }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-media video { opacity: 0; transition: opacity .9s ease; }
.hero-media.has-video video { opacity: 1; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(ellipse 62% 46% at 50% 47%, rgb(var(--film) / .34), transparent 72%),
  linear-gradient(rgb(var(--film) / .44), rgb(var(--film) / .3) 38%, rgb(var(--film) / .58)); }
.hero-copy { align-self: center; padding: 112px var(--gutter) 28px; text-align: center; }
h1 { font-size: clamp(2.7rem, 6.7vw, 6rem); line-height: .97; letter-spacing: -.024em; text-shadow: 0 2px 34px rgb(var(--film) / .3); }
.hero-sub { margin-top: clamp(20px, 2.4vw, 30px); font-size: clamp(1rem, 1.25vw, 1.125rem); }
.hero-status { display: inline-flex; align-items: center; gap: 9px; margin-top: 10px; color: rgb(255 255 255 / .84); font-size: clamp(1rem, 1.25vw, 1.125rem); }
.hero-status svg { flex: none; }
.hero-copy > * { animation: rise 1.1s var(--ease) backwards; }
.hero-copy > :nth-child(2) { animation-delay: .12s; }
.hero-copy > :nth-child(3) { animation-delay: .2s; }
.hero .signup { margin-bottom: clamp(16px, 2.2vw, 24px); animation: rise 1.1s var(--ease) .3s backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); filter: blur(8px); } }

.motion-toggle { position: absolute; right: var(--gutter); bottom: clamp(16px, 2.2vw, 24px); width: 44px; height: 44px; padding: 0; border: 1px solid rgb(255 255 255 / .14); border-radius: var(--r-control); background: rgb(227 221 207 / .22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 0; cursor: pointer; transition: background-color .25s var(--ease); }
.motion-toggle[hidden] { display: none; }
.motion-toggle::before { content: ''; position: absolute; inset: 0; margin: auto; width: 14px; height: 14px; background: var(--white); clip-path: polygon(8% 0, 38% 0, 38% 100%, 8% 100%, 8% 0, 62% 0, 92% 0, 92% 100%, 62% 100%, 62% 0); }
.motion-toggle[aria-label^='Play']::before { clip-path: polygon(16% 0, 96% 50%, 16% 100%); }

/* Email sign-up, used over the film and over the closing photograph */
.signup { width: min(100% - 2 * var(--gutter), 372px); }
.signup-row { display: flex; align-items: center; padding: 6px; border-radius: var(--r-card); background: rgb(227 221 207 / .24); border: 1px solid rgb(255 255 255 / .16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background-color .25s var(--ease), border-color .25s var(--ease); }
.signup-row:focus-within { background: rgb(227 221 207 / .36); border-color: rgb(255 255 255 / .5); }
.signup input { flex: 1; width: 0; min-width: 0; height: 44px; padding: 0 14px; border: 0; background: none; color: var(--white); font-size: 16px; outline: none; }
.signup input::placeholder { color: rgb(255 255 255 / .86); opacity: 1; }
.signup button { flex: none; height: 44px; padding: 0 16px; border: 0; border-radius: var(--r-control); background: var(--white); color: var(--ink); font-size: 15px; cursor: pointer; transition: background-color .25s var(--ease), transform .25s var(--ease); }
.signup button:active { transform: scale(.97); }
.signup button:disabled { cursor: progress; opacity: .7; }
.signup-note { min-height: 0; margin-top: 0; color: var(--white); font-size: 14px; line-height: 1.4; text-align: center; text-wrap: balance; }
.signup-note:not(:empty) { margin-top: 10px; padding: 0 6px; }
.signup-note a { text-decoration: underline; text-underline-offset: 3px; }
.signup.is-invalid .signup-row { border-color: var(--sun); }

/* Opening statement */
.lede { display: grid; justify-items: center; gap: clamp(22px, 2.6vw, 36px); padding: clamp(112px, 14vw, 230px) var(--gutter) clamp(56px, 7vw, 110px); text-align: center; }
.lede h2 { max-width: 17.5ch; }

/* The four steps. Flows as copy + illustration; page.js upgrades it to a pinned deck. */
.journey { padding: 0 var(--gutter) clamp(40px, 8vw, 120px); }
.deck { max-width: 1420px; margin: 0 auto; display: grid; gap: clamp(56px, 9vw, 104px); }
.deck-step { display: grid; gap: 22px; }
.deck-copy { max-width: 34ch; }
.deck-num { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-bottom: 14px; border-radius: 50%; background: var(--stone); font-family: var(--font-mono); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.deck-copy h3 { font-size: clamp(1.7rem, 2.2vw, 1.9rem); line-height: 1.1; letter-spacing: -.008em; }
.deck-copy p { margin-top: 12px; color: var(--ink-soft); }
.deck-stage { display: grid; place-items: center; min-height: clamp(380px, 58vw, 600px); padding: clamp(16px, 4vw, 56px); border-radius: var(--r-panel); background: var(--stone) center / cover no-repeat; overflow: hidden; }
.deck-stage--garden { background-image: url('./assets/blur-garden.jpg'); }
.deck-stage--olive { background-image: url('./assets/blur-olive.jpg'); }
.deck-stage--linen { background-image: url('./assets/blur-linen.jpg'); }
.deck-stage--dawn { background-image: url('./assets/blur-dawn.jpg'); }

/* Product illustrations */
.ui { width: min(100%, 500px); display: grid; gap: 8px; padding: clamp(16px, 2vw, 24px); border-radius: var(--r-card); background: var(--paper); box-shadow: var(--lift); font-size: 15px; line-height: 1.35; text-align: left; }
.ui-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 16px; }
.ui-head > :first-child { flex: none; color: var(--brand); }
.ui-tag { margin-left: auto; padding: 4px 6px; border-radius: 4px; background: var(--paper-deep); color: var(--ink-soft); font-family: var(--font-mono); font-size: 10px; letter-spacing: -.01em; line-height: 1.3; }
.ui-row { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 14px; border-radius: 10px; background: var(--white); }
.ui-row svg { flex: none; color: var(--ink-soft); }
.ui-row.is-next { color: var(--ink-soft); background: rgb(255 255 255 / .55); }
.ui-meta { margin-left: auto; padding-left: 12px; color: var(--ink-soft); font-size: 13px; white-space: nowrap; }
.ui svg.ui-ok { color: var(--ok); }
.ui-spin { animation: spin 2.4s steps(8) infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ui-progress { display: grid; gap: 8px; color: var(--ink-soft); font-family: var(--font-mono); font-size: 11px; font-variant-numeric: tabular-nums; }
.ui-progress i { display: block; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--sun) var(--fill), var(--stone) 0); }
.ui-question { margin: 8px 0 6px; font-family: var(--font-display); font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-variation-settings: 'opsz' 30; line-height: 1.18; }
.ui-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 4px; }
.ui-choice { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 10px; background: var(--white); }
.ui-choice.is-picked { background: var(--ink); color: var(--white); }
.ui-choice.is-picked svg { color: var(--ok); }
.ui-rx { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 10px; background: var(--white); }
.ui-rx-mark { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--brand); color: var(--white); font-family: var(--font-display); font-size: 20px; font-style: italic; }
.ui-rx strong { display: block; font-size: 16px; font-weight: 500; }
.ui-rx div span { color: var(--ink-soft); font-size: 13px; }
.ui-pill { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 5px 9px 5px 6px; border-radius: 6px; background: var(--ok-soft); color: #1f5a3b; font-family: var(--font-mono); font-size: 11px; white-space: nowrap; }
.ui-pill svg { color: var(--ok); }
.ui-aside { padding: 10px 4px 0; color: var(--ink-soft); font-size: 14px; }
.ui-timeline { display: grid; gap: 0; }
.ui-timeline li { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 4px; }
.ui-timeline li + li::before { content: ''; position: absolute; left: 12.5px; top: -9px; width: 1.5px; height: 18px; background: var(--stone); }
.ui-timeline li.is-done + li::before { background: var(--ok); }
.ui-timeline svg { flex: none; color: var(--ink-soft); }
.ui-message { padding: 12px 14px; border-radius: 4px 14px 14px 14px; background: var(--white); }
.ui--mini { width: auto; padding: 14px 16px; gap: 4px; background: var(--paper-deep); box-shadow: 0 18px 40px -22px rgb(var(--film) / .4); font-size: 14px; }
.ui--mini .ui-head { margin-bottom: 6px; font-size: 14px; }
.ui--chip { display: flex; align-items: center; gap: 10px; white-space: nowrap; }

/* The principle, with pieces of the service arranged around it */
.principle { padding: clamp(96px, 13vw, 200px) var(--gutter) clamp(72px, 9vw, 120px); }
.principle-stage { position: relative; display: grid; gap: 40px; }
.principle-copy { position: relative; z-index: 1; justify-self: center; text-align: center; }
.principle-copy p { max-width: 46ch; margin: clamp(20px, 2.4vw, 30px) auto 0; color: var(--ink-soft); font-size: clamp(1rem, 1.2vw, 1.0625rem); text-wrap: pretty; }
.principle-floats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 560px; margin: 0 auto; }
.float { position: relative; }
.float img { width: 100%; border-radius: var(--r-card); object-fit: cover; }
.float--a img, .float--b img { aspect-ratio: 4 / 5; }
.float--a .ui--mini { display: none; }
.float--c, .float--d { grid-column: 1 / -1; }
.float--d img { aspect-ratio: 16 / 10; }
.float--d .ui--chip { position: absolute; left: 12px; bottom: 12px; }

/* Treatments: pick an area, read what a doctor reviews */
.treatments { padding: clamp(96px, 12vw, 190px) var(--gutter) 0; }
.treatments-head { display: grid; justify-items: center; gap: clamp(18px, 2.2vw, 28px); text-align: center; }
.treatments-head p { max-width: 46ch; color: var(--ink-soft); font-size: clamp(1rem, 1.2vw, 1.0625rem); text-wrap: pretty; }
.treatment-tabs { display: flex; gap: 2px; width: fit-content; max-width: 100%; margin: clamp(28px, 4vw, 52px) auto 12px; padding: 4px; border-radius: var(--r-card); background: var(--stone); }
.treatment-tabs a { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 16px; border-radius: var(--r-control); font-size: 15px; white-space: nowrap; transition: background-color .25s var(--ease); }
.treatment-tabs a[aria-selected='true'] { background: var(--white); }
.care-panel { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 88px); max-width: 1240px; margin: 0 auto; padding: clamp(24px, 4.4vw, 64px); border-radius: var(--r-panel); background: var(--paper-deep); }
.care-panel + .care-panel { margin-top: 12px; }
.care-panel[hidden] { display: none; }
.care-panel h3 { font-size: clamp(2rem, 3.4vw, 3.3rem); line-height: 1.06; letter-spacing: -.014em; }
.care-description { max-width: 40ch; margin-top: clamp(16px, 1.8vw, 22px); color: var(--ink-soft); }
.care-lead .button { margin-top: clamp(22px, 2.4vw, 30px); }
.care-conditions { align-content: start; }
.treatment-note { max-width: 62ch; margin: 22px auto 0; color: var(--ink-soft); font-size: 14px; text-align: center; text-wrap: balance; }

/* Expandable rows, shared by treatments and questions */
.rows { display: grid; gap: 6px; }
.rows details { border-radius: var(--r-card); background: var(--white); }
.rows summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 20px; border-radius: var(--r-card); font-size: 17px; line-height: 1.35; list-style: none; cursor: pointer; }
.rows summary::-webkit-details-marker { display: none; }
.rows summary svg { flex: none; color: var(--ink-soft); transition: transform .45s var(--ease); }
.rows details[open] summary svg { transform: rotate(180deg); }
.rows details p { max-width: 62ch; padding: 0 20px 22px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.55; }
.rows details p a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.rows details::details-content { block-size: 0; overflow: clip; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
.rows details[open]::details-content { block-size: auto; }

/* Questions */
.faq { padding: clamp(72px, 10vw, 160px) var(--gutter); }
.faq h2 { text-align: center; }
.faq-items { max-width: 640px; margin: clamp(36px, 5vw, 64px) auto 0; }

/* Closing invitation */
.start { padding: 0 var(--gutter); }
.start-panel { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; justify-items: center; gap: clamp(22px, 2.6vw, 34px); min-height: clamp(520px, 50vw, 860px); padding: 72px var(--gutter); border-radius: var(--r-panel); overflow: hidden; background: #6b5b47; color: var(--white); text-align: center; }
.start-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.start-panel::before { content: ''; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(ellipse 58% 44% at 50% 50%, rgb(var(--film) / .36), transparent 78%),
  linear-gradient(rgb(var(--film) / .3), rgb(var(--film) / .2) 45%, rgb(var(--film) / .38)); }
.start-panel .signup { width: min(100%, 372px); }
.start-panel h2 { text-shadow: 0 2px 30px rgb(var(--film) / .3); }

/* Clinicians: one quiet row */
.clinicians { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; gap: clamp(28px, 6vw, 110px); max-width: 1240px; margin: 0 auto; padding: clamp(80px, 10vw, 150px) var(--gutter); }
.clinicians h2 { font-size: clamp(2rem, 3.4vw, 3.3rem); }
.clinicians p { max-width: 48ch; color: var(--ink-soft); }
.clinicians .button { margin-top: 24px; }

.button { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 16px; line-height: 1.3; border-radius: var(--r-control); background: var(--ink); color: var(--white); font-size: 15px; transition: background-color .25s var(--ease), transform .25s var(--ease); }
.button:active { transform: scale(.97); }
.button svg { transition: transform .35s var(--ease); }

/* Legal pages: one readable column */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(128px, 14vw, 190px) var(--gutter) clamp(72px, 9vw, 130px); }
.legal h1 { font-size: clamp(2.5rem, 5.4vw, 4.3rem); line-height: 1.02; letter-spacing: -.02em; text-shadow: none; }
.legal-meta { margin-top: 18px; color: var(--ink-soft); font-family: var(--font-mono); font-size: 13px; letter-spacing: -.01em; }
.legal-lead { margin-top: clamp(26px, 3.6vw, 40px); font-size: clamp(1.125rem, 1.5vw, 1.25rem); line-height: 1.5; text-wrap: pretty; }
.legal-note { margin-top: clamp(26px, 3.6vw, 40px); padding: 20px 22px; border-radius: var(--r-card); background: var(--paper-deep); }
.legal h2 { margin-top: clamp(44px, 5vw, 64px); font-size: clamp(1.6rem, 2.4vw, 1.9rem); line-height: 1.15; letter-spacing: -.008em; }
.legal p, .legal li { max-width: 68ch; font-size: 17px; line-height: 1.6; }
.legal h2 + p, .legal h2 + ul, .legal p + p, .legal p + ul, .legal ul + p { margin-top: 14px; }
.legal p.legal-note, .legal p.legal-lead { margin-top: clamp(26px, 3.6vw, 40px); }
.legal ul { margin-bottom: 0; padding-left: 1.2em; }
.legal li + li { margin-top: 8px; }
.legal li::marker { color: var(--sun); }
.legal strong { font-weight: 600; }
.legal a { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.footer-links a[aria-current='page'] { text-decoration-color: var(--sun); }

/* Footer, then the name written large */
.end { background: linear-gradient(rgb(197 106 48 / .5), rgb(226 138 72 / .12) 46%, rgb(244 190 132 / .3)), #d98a52 url('./assets/blur-dawn.jpg') center 58% / cover no-repeat; }
.footer { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px clamp(32px, 6vw, 96px); padding: clamp(56px, 6vw, 84px) var(--gutter) clamp(28px, 3vw, 40px); border-radius: 0 0 var(--r-panel) var(--r-panel); background: var(--white); }
.footer-tagline { font-size: clamp(2.25rem, 4.3vw, 4.3rem); line-height: 1.05; letter-spacing: -.016em; }
.footer-lead .button { margin-top: clamp(22px, 2.6vw, 32px); }
.footer-links { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 24px 28px; align-content: start; font-size: 15px; }
.footer-links dt { color: var(--ink-soft); }
.footer-links dt { margin-bottom: 2px; }
.footer-links dd { overflow-wrap: anywhere; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1.5px; text-underline-offset: 4px; transition: text-decoration-color .25s var(--ease); }
.footer-legal { grid-column: 2; display: grid; gap: 14px; margin-top: clamp(24px, 5vw, 88px); }
.footer-legal p { max-width: 54ch; font-family: var(--font-mono); font-size: 14px; line-height: 1.45; letter-spacing: -.01em; }
.signoff { padding: clamp(40px, 7vw, 112px) var(--gutter) clamp(20px, 3vw, 44px); overflow: hidden; }
.signoff img { width: 100%; filter: drop-shadow(0 2px 30px rgb(120 58 20 / .22)); }

/* Hover feedback, only for pointers that can hover */
@media (hover: hover) {
  .nav-tile:hover { background: var(--paper-deep); }
  .nav-quiet:hover { background: var(--white); }
  .nav-cta:hover { background: var(--brand); }
  .motion-toggle:hover { background: rgb(227 221 207 / .4); }
  .signup button:hover { background: var(--sun-soft); }
  .treatment-tabs a:not([aria-selected='true']):hover { background: rgb(255 255 255 / .5); }
  .rows summary:hover svg { color: var(--ink); }
  .button:hover { background: var(--brand); }
  .button:hover svg { transform: translateX(3px); }
  .footer-links a:hover { text-decoration-color: var(--sun); }
}

/* Wide screens: scatter the principle's pieces around the statement */
@media (min-width: 1000px) {
  .principle { padding-block: 0; }
  .principle-stage { place-items: center; min-height: clamp(820px, 63vw, 1060px); }
  .principle-floats { position: absolute; inset: 0; display: block; max-width: none; pointer-events: none; }
  .float { position: absolute; }
  .float--a { left: 4.5%; top: 6%; width: clamp(160px, 15vw, 250px); }
  .float--a .ui--mini { display: grid; position: absolute; left: 72%; top: 9%; width: 236px; }
  .float--b { right: 20%; top: 4%; width: clamp(150px, 14vw, 232px); }
  .float--c { left: 26%; bottom: 5%; width: 312px; }
  .float--d { right: 4%; bottom: 9%; width: clamp(200px, 17vw, 292px); }
  .float--d .ui--chip { left: -36%; top: -24px; bottom: auto; }
}

/* Circling principle (class added by page.js when there is room and motion is welcome):
   the statement stays put while its pieces travel around it with the scroll */
.principle.is-orbiting { height: 210svh; padding-inline: 0; }
.is-orbiting .principle-stage { position: sticky; top: 0; height: 100svh; min-height: 0; padding-top: 72px; overflow: hidden; overflow: clip; --tile: min(15vw, 21svh, 250px); }
.is-orbiting .principle-floats { top: 72px; }
.is-orbiting .float { left: 50%; top: 50%; right: auto; bottom: auto; transform: translate(-50%, -50%) translate3d(calc(var(--x, 0) * 1px), calc(var(--y, 0) * 1px), 0) rotate(calc(var(--r, 0) * 1deg)) scale(var(--s, 1)); will-change: transform; }
.is-orbiting .float--a { width: calc(var(--tile) + 72px); padding: 0 72px 28px 0; }
.is-orbiting .float--a .ui--mini { left: auto; right: 0; top: auto; bottom: 0; width: 224px; }
.is-orbiting .float--b { width: calc(var(--tile) * .92); }
.is-orbiting .float--c { width: clamp(214px, 21vw, 300px); }
.is-orbiting .float--d { width: calc(var(--tile) * 1.18 + 40px); padding: 22px 0 0 40px; }
.is-orbiting .float--d .ui--chip { left: 0; top: 0; }

/* Pinned deck (class added by page.js on wide screens when motion is welcome) */
.deck.is-live { --stage-h: min(66svh, 640px); --beat: 78svh; grid-template-columns: minmax(230px, 300px) minmax(0, 1fr); gap: 0 clamp(32px, 5.4vw, 96px); align-items: start; }
.deck.is-live .deck-step { display: contents; }
.deck.is-live .deck-copy { grid-column: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-height: var(--beat); opacity: .22; transition: opacity .6s var(--ease); }
.deck.is-live .deck-copy.is-active { opacity: 1; }
.deck.is-live .deck-step:nth-child(1) .deck-copy { grid-row: 1; }
.deck.is-live .deck-step:nth-child(2) .deck-copy { grid-row: 2; }
.deck.is-live .deck-step:nth-child(3) .deck-copy { grid-row: 3; }
.deck.is-live .deck-step:nth-child(4) .deck-copy { grid-row: 4; }
.deck.is-live .deck-stage { grid-column: 2; grid-row: 1 / span 4; position: sticky; top: calc(50svh - var(--stage-h) / 2 + 24px); height: var(--stage-h); min-height: 0; margin-top: calc((var(--beat) - var(--stage-h)) / 2); transform-origin: 50% 100%; transform: translate3d(0, calc((1 - var(--p, 1)) * 42% + var(--c, 0) * 20px), 0) scale(calc(1 - var(--c, 0) * .055)); opacity: clamp(0, calc(var(--p, 1) * 2.2), 1); will-change: transform, opacity; }
.deck.is-live .deck-stage .ui { transform: translate3d(0, calc((1 - var(--p, 1)) * 36px), 0); }

@media (max-width: 1060px) {
  .nav-quiet { display: none; }
}
@media (max-width: 980px) {
  .care-panel { grid-template-columns: 1fr; }
  .clinicians { grid-template-columns: 1fr; align-items: start; }
  .footer { grid-template-columns: 1fr; }
  .footer-legal { grid-column: 1; margin-top: 8px; }
}
@media (max-width: 800px) {
  .nav-side { display: none; }
}
@media (max-width: 720px) {
  .nav-logo { display: none; }
  .nav-mark { display: block; }
  .nav-brand { padding: 0 11px; }
  .nav-tile { padding: 0 12px; }
  .treatment-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .hero-copy { padding-top: 96px; }
  .motion-toggle { bottom: calc(clamp(16px, 2.2vw, 24px) + 70px); }
  .ui-meta { display: none; }
  .ui-rx { flex-wrap: wrap; }
  .ui-pill { margin-left: 58px; }
  .start-photo { object-position: 70% center; }
}
@media (max-width: 440px) {
  .nav-extra { display: none; }
  .footer-links { grid-template-columns: 1fr; }
}
@media (max-height: 520px) {
  .hero { min-height: max(100svh, 400px); }
  .hero-copy { padding-top: 84px; padding-bottom: 16px; }
  h1 { font-size: clamp(2.2rem, 6vw, 3rem); }
  .hero-sub { margin-top: 14px; }
  .hero-status { margin-top: 4px; }
  .hero .signup { margin-bottom: 12px; }
  .motion-toggle { bottom: 12px; }
}
@media (pointer: coarse) {
  /* A full-screen blend layer is costly to scroll on phone GPUs */
  .paper-grain { mix-blend-mode: normal; opacity: .06; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
