/* ============================================================================
   page.css: /for/chronic-conditions/  (the aging-parents format: scroll-craft v2, filmic one-shot)
   One take through one day of readings, meds and appointments in one room: first light, noon, dusk, night, and
   back to morning. The ground is a fixed layer (.cc-day) that never cuts; the
   acts are pinned frames that hand off over it.
   Rules for THIS page only. The engine (/sc/scrollcraft.css) and the brand tokens
   (/sc/brand.css) are never edited. Colours come from var(--sc-*) / var(--ch-*) so
   both themes follow html[data-theme]. page.js writes the day's light into the
   --cc-* variables on <html> and sets body[data-ink].
   ========================================================================== */

:root {
  /* THE ONE WIDTH. Apple.com: 980px content column inside a 1024px box, 22px gutters
     (16px below 833px). Every text column, phone group, header and footer row sits
     inside it. Grounds, the day layer and the leaves are decoration and run full bleed. */
  --wrapmax: 1024px;
  --gut: 22px;
  --vw: min(1vw, 10.24px);          /* 1vw, but never more than 1% of the 1024px box */
  --navh: 60px;
  --font-body: var(--sc-font-text);       /* aliases consent.js reads */
  --font-display: var(--sc-font-display);

  --cc-link: #425030;                /* sage for small text on cream and on warm grounds (>= 4.5:1) */
  --cc-leaf1: #7A8B5C;
  --cc-leaf2: #4A6741;
  --cc-vein: rgba(250, 246, 240, .30);
  --cc-glow: 255 196 120;            /* lamp light, r g b */

  /* defaults the script overwrites on <html> as the day moves */
  --cc-g0: 247 239 226;
  --cc-g1: 250 246 240;
  --cc-sx: 24; --cc-sy: 22; --cc-sr: -9; --cc-sa: .5; --cc-sc: 244 214 150;
  --cc-lo: 0; --cc-bo: .5; --cc-f1: 0; --cc-f2: 0;
}
@media (max-width: 833px) { :root { --gut: 16px; --navh: 56px; } }
html[data-theme="dark"] {
  --cc-link: #D3DFAE;
  --cc-leaf1: #6B7C4F;
  --cc-leaf2: #3E5736;
  --cc-vein: rgba(242, 237, 230, .16);
  --cc-g0: 38 35 30; --cc-g1: 28 27 24;
}

html { overflow-x: clip; scroll-padding-top: 4.5rem; }
body { overflow-x: clip; background: rgb(var(--cc-g1)); font-family: var(--sc-font-text); }
main { overflow-x: clip; position: relative; z-index: 1; }

/* the night (light theme only): the ink turns cream. Dark theme is already cream ink. */
html[data-theme="light"] body[data-ink="night"] {
  --sc-ink: #F2EDE6;
  --sc-ink-soft: #CFC7BC;
  --sc-accent: #9DAE7A;
  --sc-accent-ink: #1C1B18;
  --sc-hairline: #48433D;
  --sc-hairline-strong: #5A544C;
  --cc-link: #B8C68F;
  --cc-vein: rgba(242, 237, 230, .16);
}

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

.skip-link {
  position: fixed; left: 1rem; top: .75rem; z-index: 2000;
  background: var(--sc-accent); color: var(--sc-accent-ink);
  padding: .7rem 1.1rem; border-radius: var(--sc-r-pill); font-weight: 600; text-decoration: none;
  transform: translateY(-220%);
}
.skip-link:focus { transform: none; }

.cc-wrap { width: 100%; max-width: var(--wrapmax); margin-inline: auto; padding-inline: var(--gut); }

/* ------------------------------------------------------------ type kit -- */
.cc-label {
  font-family: var(--sc-font-text); font-weight: 600; font-size: .75rem; line-height: 1.5;
  letter-spacing: .16em; text-transform: uppercase; color: var(--sc-ink-soft); margin: 0;
}
.cc-label--lead { margin-bottom: 1.1rem; }
.cc-h1, .cc-h2, .cc-h3, .cc-strain, .cc-big, .cc-line {
  font-family: var(--sc-font-display); font-weight: 500; margin: 0; color: var(--sc-ink); text-wrap: balance;
}
.cc-h1 {
  font-size: clamp(2.1rem, 1.05rem + calc(4.3 * var(--vw)), 4.35rem);
  line-height: 1.04; letter-spacing: -.026em; font-weight: 600;
}
.cc-h1 em, .cc-h2 em { font-style: italic; font-weight: 500; color: var(--cc-link); }
.cc-h2 {
  font-size: clamp(1.9rem, 1.1rem + calc(3.4 * var(--vw)), 3.6rem);
  line-height: 1.06; letter-spacing: -.024em; font-weight: 600;
}
.cc-h2--s { font-size: clamp(1.6rem, 1.1rem + calc(2.1 * var(--vw)), 2.5rem); letter-spacing: -.018em; }
.cc-h2--xl { font-size: clamp(2.3rem, 1.2rem + calc(4.6 * var(--vw)), 4.6rem); letter-spacing: -.03em; line-height: 1.02; }
.cc-h3 {
  font-size: clamp(1.45rem, 1.1rem + calc(1.45 * var(--vw)), 2.2rem);
  line-height: 1.14; letter-spacing: -.016em; font-weight: 600;
}
.cc-h4 {
  font-family: var(--sc-font-display); font-weight: 600; margin: 0; color: var(--sc-ink);
  font-size: 1.2rem; line-height: 1.2; letter-spacing: -.01em;
}
.cc-lead {
  font-size: clamp(1.02rem, .95rem + .45vw, 1.28rem); line-height: 1.6; color: var(--sc-ink-soft);
  max-width: 54ch; margin: 1.1rem 0 0; text-wrap: pretty;
}
.cc-body {
  font-size: var(--sc-t-base); line-height: 1.72; color: var(--sc-ink-soft);
  max-width: 58ch; margin: 0; text-wrap: pretty;
}
.cc-big {
  font-size: clamp(1.55rem, 1rem + calc(2.55 * var(--vw)), 2.7rem);
  line-height: 1.2; letter-spacing: -.016em; max-width: 24em; text-wrap: pretty;
}
.cc-link {
  color: var(--cc-link); font-weight: 600; text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: .26em;
  transition: color 140ms var(--sc-ease-out);
}
.cc-link:hover { color: var(--sc-ink); }
.cc-link--big { font-size: 1.05rem; padding-block: .6rem; display: inline-block; }

.cc-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: .8rem 1.6rem; border-radius: var(--sc-r-md);
  background: var(--sc-accent); color: var(--sc-accent-ink);
  font-family: var(--sc-font-text); font-weight: 600; font-size: 1rem; line-height: 1.25;
  text-decoration: none; text-align: center;
  transition: transform 140ms var(--sc-ease-out), background-color 140ms var(--sc-ease-out), border-color 140ms;
}
.cc-btn:hover { background: color-mix(in oklab, var(--sc-accent) 86%, var(--sc-ink)); }
.cc-btn:active { transform: scale(.97); }
.cc-btn--ghost {
  background: transparent; color: var(--sc-ink);
  box-shadow: inset 0 0 0 1px var(--sc-hairline-strong);
}
.cc-btn--ghost:hover { background: color-mix(in oklab, var(--sc-ink) 7%, transparent); }
.cc-btn--lg { min-height: 3.6rem; padding-inline: 2.1rem; font-size: 1.08rem; }
.cc-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem 1rem; margin-top: 1.7rem; }
@media (min-width: 834px) { .cc-cta .cc-btn { white-space: nowrap; } }

/* ============================================================== chrome =====
   Banner as the live site has it. The nav is a fixed minimal bar: the wordmark,
   the one CTA, the theme switch and a menu; the seven site links live in the menu.  */
.pre-release-banner { position: relative; z-index: 72; }
.pre-release-banner a { display: inline-block; padding: .75rem .25rem; margin-block: -.75rem; min-height: 44px; box-sizing: border-box; vertical-align: middle; text-decoration: underline; text-underline-offset: .2em; }

.nav {
  position: sticky; top: 0; z-index: 70; height: var(--navh);
  background: transparent; border-bottom: 0;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
/* the bar's own ground sits on a pseudo-element: a backdrop-filter on .nav itself would
   become the containing block of the fixed menu drawer inside it */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgb(var(--cc-g0) / .8);
  -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%);
  box-shadow: 0 1px 0 var(--sc-hairline);
  opacity: 0; transition: opacity 260ms var(--sc-ease-out);
}
.nav.is-solid::before { opacity: 1; }
.nav-inner {
  height: var(--navh); padding-block: 0; gap: .5rem; justify-content: flex-start;
  max-width: var(--wrapmax); margin-inline: auto; padding-inline: var(--gut);
}
.brand { margin-right: auto; color: var(--sc-ink) !important; font-size: 1.15rem; min-height: 44px; }
.brand-tag { display: none; color: var(--sc-ink-soft); background: transparent; border: 1px solid var(--sc-hairline-strong); }
@media (min-width: 700px) { .brand-tag { display: inline-block; } }
.nav .theme-toggle { width: 44px; height: 44px; color: var(--sc-ink); flex: none; }
.nav .theme-toggle:hover { background: color-mix(in oklab, var(--sc-ink) 9%, transparent); color: var(--sc-ink); }
.nav-inner > .theme-toggle .theme-toggle-label { display: none; }
.cc-barcta {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.15rem; flex: none;
  border-radius: var(--sc-r-pill); background: var(--sc-accent); color: var(--sc-accent-ink) !important;
  font: 600 .875rem/1 var(--sc-font-text); text-decoration: none; white-space: nowrap;
  transition: transform 140ms var(--sc-ease-out), background-color 140ms;
}
.cc-barcta:hover { background: color-mix(in oklab, var(--sc-accent) 86%, var(--sc-ink)); }
.cc-barcta:active { transform: scale(.97); }
.nav .mobile-menu-toggle {
  width: 52px; height: 44px; flex: none; background: transparent; box-shadow: none;
  border: 1px solid var(--sc-hairline-strong); color: var(--sc-ink);
}
html[data-theme="dark"] .nav .mobile-menu-toggle { background: transparent; border-color: var(--sc-hairline-strong); }

/* the drawer: opens under the bar at every width */
.nav-links {
  left: auto; right: max(var(--gut), calc((100vw - var(--wrapmax)) / 2 + var(--gut)));
  top: calc(var(--cc-navb, 60px) + 8px);
  width: min(344px, calc(100vw - 2 * var(--gut)));
  transform: translateY(-10px) scale(.98); transform-origin: 100% 0;
}
body.mobile-menu-open .nav-links { transform: none; }
.nav-links .theme-toggle { display: none; }
.nav-links a, .nav-links .theme-toggle { color: var(--text); }

/* footer: kept as the site has it; only its inner width follows the shared box.
   Small print is lifted one step (text-3 to text-2) so it clears 4.5:1 on its ground. */
footer { position: relative; z-index: 2; }
footer .footer-inner, footer .footer-disclaimer { color: var(--text-2); }
footer .footer-links { gap: 0 8px; }
footer .footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 6px; }
footer .footer-disclaimer { font-size: 13px; }
.nav .brand-tag { font-size: 12px; }

/* =============================================================== the day ===
   One fixed layer behind everything: the ground, the window light, the lamp and
   three drifting rings. It never cuts; page.js moves it.                      */
.cc-day {
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background: linear-gradient(180deg, rgb(var(--cc-g0)), rgb(var(--cc-g1)));
}
.cc-day__sun {
  position: absolute; left: calc(var(--cc-sx) * 1%); top: calc(var(--cc-sy) * 1%);
  width: min(96vmax, 1560px); height: min(74vmax, 1160px);
  display: grid; grid-template: 1fr 1fr / 1fr 1fr; gap: 3.6vmax;
  transform: translate3d(-50%, -50%, 0) rotate(calc(var(--cc-sr) * 1deg)) skewX(-15deg);
  opacity: var(--cc-sa); will-change: transform, opacity;
}
.cc-day__sun i { display: block; background: rgb(var(--cc-sc)); border-radius: 6px; filter: blur(22px); }
.cc-day__lamp {
  position: absolute; left: 50%; bottom: 0; width: 150vmax; height: 110vmax;
  transform: translate3d(-50%, 44%, 0);
  background: radial-gradient(closest-side, rgb(var(--cc-glow) / .46), rgb(var(--cc-glow) / .15) 52%, transparent 78%);
  opacity: var(--cc-lo);
}
.cc-ring {
  position: absolute; left: 0; bottom: -14vh; width: clamp(54px, 6vw, 96px); height: auto;
  color: var(--sc-ink-soft); opacity: calc(var(--cc-bo) * .36);
  animation: cc-rise 38s linear infinite; animation-play-state: var(--cc-rps, running);
  will-change: transform;
}
.cc-ring--1 { left: 12%; --bx: 5vw; animation-duration: 41s; }
.cc-ring--2 { left: 61%; width: clamp(44px, 5vw, 78px); --bx: -7vw; animation-duration: 33s; animation-delay: -15s; }
.cc-ring--3 { left: 83%; width: clamp(40px, 4.4vw, 68px); --bx: 3vw; animation-duration: 47s; animation-delay: -29s; }
@keyframes cc-rise {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(var(--bx, 0), -128vh, 0); }
}
.cc-day.is-still .cc-ring { animation-play-state: paused; opacity: 0; transition: opacity 1.8s var(--sc-ease-out); }
.sc-grain { opacity: .035; }
html[data-theme="dark"] .sc-grain { opacity: .05; }

/* ========================================================== pinned stages ==
   The engine makes .cc-stage sticky and 100svh. These are the shared layers.   */
.cc-stage { overflow: clip; }
/* the leaves hang past the bottom edge of these two stages and rise away with them, never cut by a hard line */
.cc-hero .cc-stage, .cc-close .cc-stage { overflow: visible; }

/* ---- the phone: a real screenshot in a CSS bezel ---- */
.cc-phone {
  position: absolute; left: 50%; top: 0; z-index: 4;
  width: var(--pw);
  transform: translate3d(-50%, var(--ty, 0px), 0) scale(var(--ps, 1));
  transform-origin: 50% 0; will-change: transform;
}
.cc-bezel {
  position: relative; padding: calc(var(--pw) * .026);
  border-radius: calc(var(--pw) * .15);
  background: linear-gradient(150deg, #34302b, #15130f 55%, #211e19);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), inset 0 1px 0 rgba(255, 255, 255, .16), var(--sc-e3);
}
.cc-scr { position: relative; aspect-ratio: 1320 / 2868; border-radius: calc(var(--pw) * .125); overflow: hidden; background: #0d0c0a; }
.cc-scr > img, .cc-scr__a > img, .cc-scr__b > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cc-scr > .th-d, html[data-theme="dark"] .cc-scr > .th-l { display: none; }
html[data-theme="dark"] .cc-scr > .th-d { display: block; }
.cc-isl {
  position: absolute; z-index: 3; top: calc(var(--pw) * .049); left: 50%;
  width: calc(var(--pw) * .30); height: calc(var(--pw) * .088); transform: translateX(-50%);
  border-radius: 999px; background: #0a0908;
  pointer-events: none;
}
.cc-phone__shadow {
  position: absolute; left: 6%; right: 6%; bottom: -2.2%; height: 5%; z-index: -1;
  background: radial-gradient(closest-side, rgba(40, 28, 16, .42), transparent); filter: blur(7px);
}
html[data-theme="dark"] .cc-phone__shadow { background: radial-gradient(closest-side, rgba(0, 0, 0, .6), transparent); }

/* ---- foreground leaves: out of focus, the camera passes them ---- */
.cc-leaf {
  position: absolute; bottom: -3%; z-index: 6; pointer-events: none;
  width: clamp(118px, 21vw, 300px);
  transform: translate3d(0, var(--lf, 0px), 0); will-change: transform;
  filter: blur(5px); opacity: .88;
}
.cc-leaf svg { width: 100%; height: auto; overflow: visible; }
.cc-leaf--l { left: calc(-1 * clamp(14px, 2.4vw, 40px)); }
.cc-leaf--r { right: calc(-1 * clamp(14px, 2.4vw, 40px)); }
.cc-leaf--r svg { transform: scaleX(-1); }
html[data-theme="dark"] .cc-leaf { opacity: .62; }
html[data-theme="dark"] .cc-lamp { opacity: .72; }
html[data-theme="dark"] .cc-close .cc-label, html[data-theme="dark"] .cc-close .cc-lead, html[data-theme="dark"] .cc-close .cc-fine { color: var(--sc-ink); }

/* =========================================================== ACT 1 hero ===== */
.cc-hero { margin-top: calc(-1 * var(--navh)); }
.cc-hero__copy {
  position: absolute; left: 0; right: 0; top: 0; z-index: 20; text-align: center;
  padding-top: calc(var(--navh) + clamp(1.1rem, 4.2svh, 3rem)); padding-bottom: .5rem;
}
.cc-hero__copy .cc-h1 { max-width: 15.5em; margin-inline: auto; }
.cc-sub {
  font-size: clamp(1.02rem, .95rem + .5vw, 1.3rem); line-height: 1.55; color: var(--sc-ink-soft);
  max-width: 34em; margin: 1.15rem auto 0; text-wrap: balance;
}
.cc-hero .cc-phone { --hph: clamp(300px, calc(100svh - var(--navh) - 176px), 650px); --pw: min(calc(var(--hph) * .4726), 66vw); }
.cc-hero__meta { position: absolute; left: 0; right: 0; bottom: clamp(.9rem, 3svh, 2rem); z-index: 20; text-align: center; padding-inline: var(--gut); pointer-events: none; }
/* the meta (chips, fine print) holds no links; it never catches a tap meant for the buttons above it on a short screen */
.cc-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.6rem; }
.cc-chips li { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 500; color: var(--sc-ink); }
.cc-chips svg { width: 1.15rem; height: 1.15rem; color: var(--cc-link); flex: none; }
.cc-fine { margin: .55rem auto 0; font-size: .86rem; line-height: 1.5; color: var(--sc-ink-soft); max-width: 44em; text-wrap: balance; }

/* =========================================================== ACT 2 lede ===== */
.cc-lede { position: relative; padding-block: clamp(3.5rem, 12svh, 8rem) clamp(4rem, 11svh, 8rem); }
.cc-lede__in > * + * { margin-top: 1.7rem; }
.cc-lede .cc-body { font-size: clamp(1.02rem, .95rem + .4vw, 1.2rem); }
.cc-body--aside { padding-top: .2rem; }

/* ============================================================ ACT 3 hours === */
.cc-beat { position: absolute; inset: 0; display: grid; align-content: center; padding-top: var(--navh); pointer-events: none; }
.cc-beat > .cc-wrap { pointer-events: none; }
.cc-beat--intro { text-align: left; }
.cc-beat--intro .cc-h2 { max-width: 12em; }
.cc-beat--intro .cc-lead { max-width: 38ch; font-size: clamp(1.1rem, 1rem + .6vw, 1.45rem); color: var(--sc-ink); }
.cc-scene { max-width: 38rem; display: grid; gap: 1.1rem; }
.cc-beat--b .cc-scene { margin-left: auto; }
.cc-beat--c .cc-scene { margin-inline: auto; text-align: center; justify-items: center; max-width: 40rem; }
.cc-strain {
  font-size: clamp(1.55rem, 1rem + calc(2.7 * var(--vw)), 2.85rem);
  line-height: 1.16; letter-spacing: -.018em; text-wrap: pretty;
}
.cc-fix { margin: .2rem 0 0; font-size: clamp(1rem, .95rem + .45vw, 1.22rem); line-height: 1.55; color: var(--sc-ink-soft); max-width: 32em; text-wrap: pretty; }
.cc-fix strong { color: var(--cc-link); font-weight: 600; }
.cc-scene .cc-label { color: var(--cc-link); }

/* ============================================================== ACT 4 peak == */
.cc-peak { --navs: calc(var(--navh) + 14px); }
.cc-peak__words {
  position: absolute; left: 0; right: 0; top: 0; z-index: 20; height: calc(var(--navs) + clamp(8.5rem, 29svh, 15rem));
  display: grid; align-items: end; padding-bottom: .6rem; text-align: center; pointer-events: none;
}
.cc-peak__words .cc-wrap { position: relative; height: 100%; }
.cc-line { position: absolute; left: var(--gut); right: var(--gut); bottom: 0; margin: 0; }
.cc-line--title { font-size: clamp(2rem, 1.1rem + calc(3.6 * var(--vw)), 3.8rem); }
.cc-line--say {
  font-size: clamp(1.3rem, .9rem + calc(1.9 * var(--vw)), 2.25rem); line-height: 1.24; letter-spacing: -.012em;
  max-width: 21em; margin-inline: auto; text-wrap: pretty; font-weight: 500;
}
.cc-line--long { font-size: clamp(1.15rem, .85rem + calc(1.5 * var(--vw)), 1.85rem); max-width: 26em; }
.cc-line--end { font-size: clamp(1.2rem, .9rem + calc(1.5 * var(--vw)), 1.9rem); }
.cc-peak .cc-phone {
  --hph: clamp(260px, calc(100svh - var(--navs) - clamp(8.5rem, 29svh, 15rem) - 40px), 640px);
  --pw: min(calc(var(--hph) * .4726), 62vw);
}
.cc-phone__halo {
  position: absolute; left: 50%; top: 50%; z-index: -1; width: calc(var(--pw) * 3.4); height: calc(var(--pw) * 3.4);
  transform: translate(-50%, -50%); pointer-events: none; opacity: var(--halo, 0);
  background: radial-gradient(closest-side, rgb(var(--cc-glow) / .5), rgb(var(--cc-glow) / .17) 46%, transparent 74%);
}
.cc-peak .cc-scr img { opacity: var(--lit, 0); filter: brightness(calc(.4 + .6 * var(--lit, 0))); }
/* the lit phone's light is the blurred halo element behind it (no zero-offset box-shadow glow) */
.cc-peak .cc-bezel { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), inset 0 1px 0 rgba(255, 255, 255, .2), var(--sc-e3); }
/* far windows: other people, other rooms, awake with the same page. The light is a blurred
   radial-gradient layer (::before) behind the pane (::after), not a box-shadow. */
.cc-far {
  position: absolute; z-index: 2; width: clamp(22px, 2.6vw, 38px); aspect-ratio: .74; pointer-events: none;
  opacity: 0;
}
.cc-far::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: calc(var(--fs, 1) * 8.5rem); aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgb(var(--cc-glow) / .6), rgb(var(--cc-glow) / .2) 48%, transparent 76%);
}
.cc-far::after {
  content: ""; position: absolute; inset: 0; border-radius: 4px; background-color: rgb(255 214 150 / .92);
  background-image: linear-gradient(rgb(120 70 30 / .55), rgb(120 70 30 / .55)), linear-gradient(rgb(120 70 30 / .55), rgb(120 70 30 / .55));
  background-size: 100% 2px, 2px 100%; background-position: 0 50%, 50% 0; background-repeat: no-repeat;
}
.cc-far--1 { left: 13%; top: 31%; opacity: var(--cc-f1); }
.cc-far--2 { right: 11%; top: 24%; --fs: .8; opacity: var(--cc-f2); }
.cc-far--3 { right: 24%; top: 45%; --fs: .7; width: clamp(18px, 2.1vw, 30px); opacity: var(--cc-f2); }

.cc-dawn { height: clamp(34svh, 60svh, 70svh); }

/* ============================================================ ACT 5 built === */
.cc-built { position: relative; padding-block: clamp(2.5rem, 8svh, 5rem) clamp(4rem, 12svh, 8rem); }
.cc-built__head .cc-h2 { max-width: 13em; }
.cc-feats { margin-top: clamp(3rem, 9svh, 6rem); display: grid; gap: clamp(3.4rem, 10svh, 6.5rem); }
.cc-feat { display: grid; gap: 1.05rem; max-width: 44rem; padding-top: 1.6rem; border-top: 1px solid var(--sc-hairline-strong); }
.cc-feat:nth-child(even) { margin-left: auto; }
.cc-feat .cc-label { color: var(--cc-link); }
.cc-feat .cc-h3 { max-width: 17em; }

/* =========================================================== ACT 6 inside === */
.cc-inside__head { position: absolute; left: 0; right: 0; top: 0; z-index: 20; padding-top: calc(var(--navh) + clamp(.8rem, 3svh, 2rem)); text-align: left; pointer-events: none !important; }
.cc-inside__head .cc-h2 { max-width: 13em; }
.cc-inside__head .cc-lead { max-width: 46ch; }
.cc-inside .cc-phone { --hph: clamp(270px, calc(100svh - var(--navh) - 170px), 660px); --pw: min(calc(var(--hph) * .4726), 62vw); z-index: 3; }
.cc-scr__a, .cc-scr__b { position: absolute; inset: 0; }
.cc-scr__b { opacity: 0; will-change: opacity; }
.cc-caps { position: absolute; left: 0; right: 0; bottom: clamp(.9rem, 3.4svh, 2.2rem); z-index: 20; height: 4.6rem; text-align: center; pointer-events: none; }
.cc-caps .cc-wrap { position: relative; height: 100%; }
.cc-cap { position: absolute; left: var(--gut); right: var(--gut); bottom: 0; margin: 0 auto; max-width: 36em; font-size: 1rem; line-height: 1.5; color: var(--sc-ink-soft); text-wrap: balance; }
.cc-cap b { display: block; font-family: var(--sc-font-display); font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; color: var(--sc-ink); margin-bottom: .1rem; }

/* ============================================================== ACT 7 calm === */
.cc-calm { position: relative; padding-block: clamp(2.5rem, 8svh, 5rem) clamp(4rem, 10svh, 7rem); display: block; }
.cc-calm .cc-h2 { max-width: 15em; }
.cc-priv { list-style: none; margin: clamp(2.2rem, 6svh, 3.4rem) 0 0; padding: 0; display: grid; gap: 0; max-width: 46rem; }
.cc-priv li { display: grid; grid-template-columns: 2.6rem 1fr; column-gap: 1.1rem; row-gap: .45rem; padding-block: 1.6rem; border-top: 1px solid var(--sc-hairline-strong); }
.cc-priv li:last-child { border-bottom: 1px solid var(--sc-hairline-strong); }
.cc-priv svg { grid-row: 1 / span 2; width: 2.3rem; height: 2.3rem; color: var(--cc-link); margin-top: .1rem; }
.cc-priv .cc-body { grid-column: 2; }
.cc-pricing { margin-top: clamp(4rem, 11svh, 7rem); max-width: 46rem; }
.cc-pricing p:last-child { margin-top: 1.5rem; }
.cc-faq { margin-top: clamp(4rem, 11svh, 7rem); max-width: 46rem; }
.cc-faq details { border-top: 1px solid var(--sc-hairline-strong); }
.cc-faq details:last-child { border-bottom: 1px solid var(--sc-hairline-strong); }
.cc-faq .cc-h2 { margin-bottom: 1.6rem; }
.cc-faq summary {
  list-style: none; cursor: pointer; position: relative; padding: 1.25rem 3rem 1.25rem 0; min-height: 44px;
  font-family: var(--sc-font-display); font-weight: 600; font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); line-height: 1.3; letter-spacing: -.01em; color: var(--sc-ink);
}
.cc-faq summary::-webkit-details-marker { display: none; }
.cc-faq summary::after {
  content: ""; position: absolute; right: .35rem; top: 50%; width: .72rem; height: .72rem;
  border-right: 2px solid var(--cc-link); border-bottom: 2px solid var(--cc-link);
  transform: translateY(-70%) rotate(45deg); transition: transform 220ms var(--sc-ease-out);
}
.cc-faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.cc-faq summary:hover { color: var(--cc-link); }
.cc-faq__body { padding: 0 0 1.6rem; max-width: 58ch; color: var(--sc-ink-soft); line-height: 1.72; text-wrap: pretty; }

/* ============================================================ ACT 8 close ==== */
.cc-close__copy { position: absolute; inset: 0; z-index: 20; display: grid; align-content: center; padding-top: var(--navh); }
.cc-close__copy .cc-h2 { max-width: 11em; }
.cc-close__copy .cc-lead { max-width: 46ch; font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem); color: var(--sc-ink); }
.cc-cta--close { justify-content: flex-start; margin-top: 2rem; gap: .5rem 1.6rem; }
.cc-close .cc-fine { margin: .9rem 0 0; text-align: left; max-width: 40em; color: var(--sc-ink); }
.cc-lamp {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(34rem 34rem at calc(var(--sc-mx, .62) * 100%) calc(var(--sc-my, .4) * 100%), rgb(var(--cc-glow) / .42), rgb(var(--cc-glow) / .12) 55%, transparent 72%);
}
.cc-close [data-sc-spotlight]::after, .cc-close[data-sc-spotlight]::after { display: none; }
.cc-leaf--close { z-index: 2; }
.cc-leaf--close.cc-leaf--l { bottom: -2%; left: -3vw; }
.cc-leaf--close.cc-leaf--r { bottom: -3%; right: -3vw; }

/* =========================================================== other doors === */
.cc-more { position: relative; padding-block: clamp(2.5rem, 7svh, 4.5rem) clamp(3rem, 8svh, 5rem); background: transparent; }
.cc-more__intro { margin-top: .6rem; color: var(--sc-ink); }
.cc-doors { list-style: none; margin: 1.1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem 2rem; }
.cc-doors a { display: inline-block; padding-block: .75rem; font-size: 1.02rem; }

/* ============================================================ focus states === */
:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 3px; border-radius: 6px; }
.cc-barcta:focus-visible, .cc-btn:focus-visible { outline-offset: 3px; }

/* =========================================================== phones (<=700) === */
@media (max-width: 700px) {
  /* the chips cross the foreground leaves on a phone: each rides on its own soft ground */
  .cc-chips { gap: .4rem .5rem; }
  .cc-chips li { padding: .28rem .7rem; border-radius: 999px; background: rgb(var(--cc-g1) / .86); }
  .cc-fine { padding: .2rem .5rem; border-radius: 10px; background: rgb(var(--cc-g1) / .72); }
  .cc-hero .cc-phone { --pw: min(calc(var(--hph) * .4726), 58vw); }
  .cc-hero__copy .cc-h1 { font-size: clamp(2rem, 1.3rem + 4.4vw, 2.5rem); }
  .cc-cta { flex-direction: column; align-items: stretch; margin-top: 1.3rem; }
  .cc-cta--close { align-items: flex-start; }
  .cc-cta--close .cc-btn { align-self: stretch; }
  .cc-sub { margin-top: .9rem; }
  .cc-scene { max-width: none; }
  .cc-beat--b .cc-scene { margin-left: 0; }
  .cc-beat--c .cc-scene { text-align: left; justify-items: start; }
  .cc-feat:nth-child(even) { margin-left: 0; }
  .cc-far--1 { left: 4%; top: 40%; }
  .cc-far--2 { right: 4%; top: 52%; }
  .cc-far--3 { right: 5%; top: 70%; }
  .cc-link--big { font-size: .96rem; text-wrap: balance; }
  .cc-peak .cc-phone { --pw: min(calc(var(--hph) * .4726), 56vw); }
  .cc-inside .cc-phone { --pw: min(calc(var(--hph) * .4726), 56vw); }
  .cc-priv li { grid-template-columns: 2.2rem 1fr; column-gap: .85rem; }
  .cc-priv svg { width: 2rem; height: 2rem; }
  .cc-doors { gap: 0 1.6rem; }
}
@media (max-height: 700px) and (max-width: 700px) {
  .cc-label--lead { margin-bottom: .6rem; }
  /* short phones: the phone stops above the chips and the fine print, so no line crosses the screen */
  .cc-hero .cc-phone { --hph: clamp(230px, calc(100svh - var(--navh) - 270px), 650px); }
}

/* ============================================ reduced motion: the whole page,
   finished, in a calm static layout. Nothing is pinned and nothing moves. ===== */
html.cc-static .cc-act { height: auto !important; }
html.cc-static .cc-stage { position: relative; top: auto; height: auto; overflow: visible; display: grid; gap: clamp(2.4rem, 7svh, 4rem); padding-block: clamp(3.5rem, 10svh, 6rem); }
html.cc-static [data-sc-cue], html.cc-static .cc-hero__meta, html.cc-static .cc-hero__copy {
  opacity: 1 !important; transform: none !important; pointer-events: auto !important;
}
html.cc-static .cc-hero { margin-top: 0; }
html.cc-static .cc-hero .cc-stage { padding-top: calc(var(--navh) + 2.5rem); }
html.cc-static .cc-hero__copy, html.cc-static .cc-hero__meta, html.cc-static .cc-inside__head, html.cc-static .cc-caps,
html.cc-static .cc-beat, html.cc-static .cc-close__copy, html.cc-static .cc-peak__words { position: relative; inset: auto; height: auto; padding-top: 0; padding-bottom: 0; }
html.cc-static .cc-beat { display: block; padding: 0; }
html.cc-static .cc-phone { position: relative; left: auto; top: auto; margin-inline: auto; transform: none !important; }
html.cc-static .cc-phone--hero, html.cc-static .cc-phone--inside, html.cc-static .cc-phone--peak { --ps: 1; }
html.cc-static .cc-leaf, html.cc-static .cc-far, html.cc-static .cc-ring, html.cc-static .cc-lamp, html.cc-static .cc-isl[hidden] { display: none; }
html.cc-static .cc-line { position: relative; left: auto; right: auto; bottom: auto; margin: 0 auto 1.1rem; }
html.cc-static .cc-peak__words .cc-wrap { height: auto; }
html.cc-static .cc-peak .cc-scr img { opacity: 1 !important; filter: none !important; }
html.cc-static .cc-phone__halo { display: none; }
html.cc-static .cc-cap { position: relative; left: auto; right: auto; margin: 0 auto 1.4rem; }
html.cc-static .cc-caps .cc-wrap { height: auto; }
html.cc-static .cc-scr__b { position: relative; opacity: 1 !important; inset: auto; margin-top: 1rem; }
html.cc-static .cc-inside .cc-scr { aspect-ratio: auto; background: transparent; overflow: visible; border-radius: 0; }
html.cc-static .cc-inside .cc-scr__a, html.cc-static .cc-inside .cc-scr__b { position: relative; inset: auto; }
html.cc-static .cc-inside .cc-scr > img, html.cc-static .cc-inside .cc-scr__a > img, html.cc-static .cc-inside .cc-scr__b > img { position: relative; height: auto; aspect-ratio: 1320 / 2868; border-radius: calc(var(--pw) * .125); }
/* u2 phone glue (PLAN 2.1): inner radius for the component, and a screen-sized in-flow box per layer in free mode */
.cc-scr__a, .cc-scr__b { --ph-r: calc(var(--pw) * .125); }
html.cc-static .cc-inside .cc-scr__a, html.cc-static .cc-inside .cc-scr__b { aspect-ratio: 1320 / 2868; overflow: hidden; border-radius: calc(var(--pw) * .125); }
html.cc-static .cc-inside .cc-phone { --pw: min(300px, 70vw); }
html.cc-static .cc-inside .cc-bezel { background: transparent; box-shadow: none; padding: 0; }
html.cc-static .cc-inside .cc-isl { display: none; }
html.cc-static .cc-scene { max-width: 40rem; }
html.cc-static .cc-beat--b .cc-scene { margin-left: 0; }
html.cc-static .cc-beat--c .cc-scene { text-align: left; justify-items: start; margin-inline: 0; }
html.cc-static .cc-hero .cc-phone { --pw: min(300px, 62vw); }
html.cc-static .cc-peak .cc-phone { --pw: min(300px, 62vw); }
html.cc-static .cc-dawn { height: 0; }
html.cc-static .cc-close .cc-stage { padding-block: clamp(3rem, 8svh, 5rem); }
html.cc-static .cc-hours .cc-stage { gap: clamp(3.2rem, 9svh, 5.5rem); }
@media (prefers-reduced-motion: reduce) {
  .cc-ring { animation: none; }
  .cc-day__sun { will-change: auto; }
  .nav::before { transition: none; }
}

/* reduced motion: the split kinetic heading shows whole, at rest */
html.cc-static [data-sc-kinetic], html.cc-static [data-sc-kinetic] * { opacity: 1 !important; transform: none !important; clip-path: none !important; visibility: visible !important; }

/* narrow phones (360): the bar must fit brand, theme, Join beta and menu inside the gutters */
@media (max-width: 420px) {
  .nav-inner { gap: .2rem; }
  .brand { padding-right: .2rem; font-size: 1.05rem; gap: .4rem; }
  .nav .theme-toggle { width: 44px; } /* 44px tap target; width regained from brand and button padding */
  .cc-barcta { padding: 0 .7rem; font-size: .84rem; }
  .nav .mobile-menu-toggle { width: 44px; }
}
