/* /calm. The one page where motion is slow and soft: things rise and settle without bounce,
   and the only thing that keeps moving is a breath, at the app's own pace. */

.calm-landing.sky {
  padding: clamp(124px, 11vw, 154px) 0 clamp(44px, 6vw, 80px);
  background-position: center top;
}
.calm-landing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  align-items: end;
  gap: clamp(24px, 5vw, 64px);
}
.calm-landing-copy { margin-bottom: 36px; }
.calm-landing-copy h1 {
  font-size: clamp(3.1rem, 5.5vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.calm-landing-copy .lede { max-width: 30ch; margin: 14px 0 0; }
.breath-demo-compact { min-width: 0; gap: 9px; }
.breath-demo-compact .calm-stage .device-mock.tablet {
  width: 100%;
  max-width: none;
  aspect-ratio: 4 / 3;
}
.breath-demo-compact .calm-screen { width: 100%; }
.breath-demo-compact .calm-top,
.breath-demo-compact .breath-choices,
.breath-demo-compact .breath-cue { display: none; }
.breath-demo-compact .breath-controls { justify-self: end; }
.breath-demo-compact .calm-sound { min-height: 44px; font-size: .88rem; }
.breath-demo-compact[data-state="idle"] .calm-phase {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 7px 15px;
  border: 1px solid #d6fbeb8f;
  border-radius: 999px;
  background: #10251ee6;
  font-size: 1rem;
  font-weight: 800;
  color: #f5fff9;
}
.calm-choices .journey-gallery a img,
.calm-support .journey-gallery a img { aspect-ratio: 16 / 9; }
.calm-choices .journey-gallery a > div,
.calm-support .journey-gallery a > div { padding: 12px 15px; }
.calm-adult { margin-top: 22px; }
@media (max-width: 820px) {
  .calm-landing.sky { padding-top: 118px; }
  .calm-landing-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .calm-landing-copy { margin-bottom: 0; }
  .calm-landing-copy h1 { max-width: 16ch; font-size: clamp(2.45rem, 7vw, 3.65rem); }
  .calm-landing-copy .lede { max-width: 34ch; margin-top: 8px; }
  .breath-demo-compact { width: min(100%, 34rem); justify-self: center; }
  .breath-demo-compact .calm-stage .device-mock.tablet { aspect-ratio: 16 / 10; }
}
@media (701px <= width <= 820px) {
  .calm-landing.sky { background-position: calc(50% - 110px) top; }
}
@media (max-width: 500px) {
  .calm-landing.sky { padding-top: 108px; }
  .calm-choices .journey-gallery a,
  .calm-support .journey-gallery a {
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-rows: auto;
    min-height: 68px;
    align-items: center;
  }
  .calm-choices .journey-gallery a img,
  .calm-support .journey-gallery a img {
    height: 100%;
    aspect-ratio: 4 / 3;
  }
  .calm-choices .journey-gallery strong,
  .calm-support .journey-gallery strong { font-size: 1rem; }
}

/* ── Hero: the breath itself. Words rise, then the tablet settles in under them. ── */
.calm-hero .solo { gap: 0; padding-bottom: 0; }
.calm-words { margin: 0 auto; }
.calm-words > span { display: inline-block; animation: calm-word 1100ms cubic-bezier(.22, 1, .36, 1) calc(150ms + var(--i) * 120ms) both; }
.calm-words .gold { color: var(--gold); }
@keyframes calm-word { from { opacity: 0; transform: translateY(.7em) scale(.94); } }
.calm-rise { animation: calm-rise 1000ms cubic-bezier(.22, 1, .36, 1) var(--d, 0ms) both; }
@keyframes calm-rise { from { opacity: 0; transform: translateY(22px); } }
.calm-hero .lede { max-width: 34rem; }
.calm-hero .breath-demo { width: 100%; max-width: 1000px; margin-top: clamp(24px, 4vw, 40px); animation: calm-rise-stage 1500ms cubic-bezier(.22, 1, .36, 1) 700ms both; }
@keyframes calm-rise-stage { from { opacity: 0; transform: translateY(40px) scale(.95); } }

.calm-head { max-width: 40rem; margin: 0 auto 28px; text-align: center; }
.calm-head p { margin-top: 8px; color: var(--muted); font-size: 1.08rem; }
.breath-demo { display: grid; justify-items: center; gap: 18px; }
.calm-stage { width: 100%; }
/* site.css gives every .tablet a 2° tilt; this one sits straight. */
/* Sized to the first screen, so the breaths and the sound switch show under it on a laptop too. */
.calm-stage .device-mock.tablet { max-width: clamp(420px, calc((100svh - 400px) * 4 / 3), 660px); margin: 0 auto; transform: none; }

/* The screen is the app's dark breathing room, pinned so dark mode can't wash it out. */
.calm-screen { --ring: min(46cqh, 56cqw); container-type: size; background: #020709; color: #eefcff; font-family: "Open Sans", Inter, ui-sans-serif, system-ui, sans-serif; }
.calm-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.calm-bg.on { opacity: 1; }
/* The app's veil and vignette over the place. */
.calm-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 46%, transparent 0%, transparent 42%, #0000005c 74%, #000000d1 100%), linear-gradient(180deg, #0105079e 0%, #01080a4d 30%, #0106076b 62%, #010405e6 100%); }
.calm-top { position: absolute; z-index: 2; inset: 6cqh 0 auto; text-align: center; text-shadow: 0 2px 12px #000a; }
.calm-title { margin: 0; color: #fff; font-weight: 650; font-size: max(15px, 5cqh); line-height: 1.2; }
.calm-length { margin: .3em 0 0; color: #ffffffb8; font-weight: 600; font-size: max(11px, 2.8cqh); }

.calm-ring-box { position: absolute; z-index: 1; left: 50%; top: 47%; width: var(--ring); aspect-ratio: 1; translate: -50% -50%; }
.calm-glow, .calm-ring { position: absolute; inset: 0; transform: scale(.72); will-change: transform; }
.calm-glow { opacity: .22; }
.calm-glow i { position: absolute; inset: -18%; border-radius: 50%; background: radial-gradient(circle, #a5ebf657 0%, #a5ebf624 45%, transparent 70%); }
.calm-ring > span { position: absolute; inset: 0; border-radius: 50%; border: max(6px, 2.2cqh) solid var(--c); box-shadow: 0 0 26px color-mix(in srgb, var(--c) 55%, transparent), inset 0 0 20px color-mix(in srgb, var(--c) 45%, transparent); opacity: 0; transition: opacity 900ms ease; }
.calm-ring > span::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border-top: 1px solid #ffffff80; }
.calm-ring > span.on { opacity: .82; }
.calm-ring [data-phase="rest"], .calm-ring [data-phase="hold_out"] { --c: #7cc8b9; }
.calm-ring [data-phase="inhale"] { --c: #99f4df; }
.calm-ring [data-phase="inhale_top"] { --c: #b5fbe9; }
.calm-ring [data-phase="hold_in"] { --c: #f1d68c; }
.calm-ring [data-phase="exhale"] { --c: #8bd8f0; }
.calm-ring [data-phase="complete"] { --c: #f1d68c; }

/* Tiny sits in the ring and breathes along; the poses share registration, so the happy one swaps in place. */
.calm-friend { position: absolute; will-change: transform; }
.calm-friend img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.calm-friend .pose-happy { position: absolute; inset: 0; opacity: 0; }
.breath-demo[data-state="complete"] .pose-idle { opacity: 0; }
.breath-demo[data-state="complete"] .pose-happy { opacity: 1; animation: calm-friend-hop 700ms cubic-bezier(.34, 1.56, .64, 1) 400ms both; transform-origin: 50% 92%; }
@keyframes calm-friend-hop { 0% { transform: none; } 18% { transform: scale(1.06, .92); } 50% { transform: translateY(-14%) scale(.96, 1.06); } 78% { transform: scale(1.05, .94); } 100% { transform: none; } }
.calm-mouth { position: absolute; width: 0; height: 0; }
.calm-puff { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #ffffffbf; box-shadow: 0 0 12px #ffffff8c; }
@keyframes calm-puff-left { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 25% { opacity: .85; } 100% { opacity: 0; transform: translate(-58px, -26px) scale(1.5); } }

/* In Lil' Phil the friend sits in the ring, so the word and the count sit just below it. */
.calm-say, .calm-finish { position: absolute; z-index: 2; left: 0; right: 0; top: calc(47% + var(--ring) * .56 + 6px); text-align: center; padding: 0 16px; }
.calm-phase { margin: 0; font-weight: 500; font-size: max(18px, 5.8cqh); line-height: 1; color: #eefcffe6; text-shadow: 0 2px 14px #010809b3; }
.calm-phase.changed { animation: calm-phase 600ms cubic-bezier(.23, 1, .32, 1) both; }
@keyframes calm-phase { from { opacity: 0; transform: translateY(4px); } }
.calm-count { height: 1.5em; margin: .4em 0 0; color: #cfeee98c; font-size: max(15px, 4cqh); line-height: 1.5; font-variant-numeric: tabular-nums; }
.calm-finish { margin: 0; color: #eefcffeb; font-weight: 500; font-size: max(17px, 5.4cqh); line-height: 1.25; text-shadow: 0 2px 14px #010809b3; opacity: 0; transform: translateY(8px); transition: opacity .7s ease .5s, transform .7s cubic-bezier(.22, 1, .36, 1) .5s; pointer-events: none; }
.breath-demo[data-state="complete"] .calm-say { opacity: 0; }
/* As in the app, the round dots step away at the finish: nothing to count. */
.calm-dots { transition: opacity .8s ease; }
.breath-demo[data-state="complete"] .calm-dots { opacity: 0; }
.breath-demo[data-state="complete"] .calm-finish { opacity: 1; transform: none; }
.calm-dots { position: absolute; z-index: 2; left: 0; right: 0; bottom: 6%; display: flex; justify-content: center; gap: max(5px, 1.3cqh); margin: 0; padding: 0; list-style: none; }
.calm-dots li { width: max(6px, 1.5cqh); aspect-ratio: 1; border-radius: 50%; border: 1px solid #ffffff66; background: #ffffff14; transition: background-color .6s, border-color .6s, transform .6s; }
.calm-dots li.now { border-color: #e9fff9; transform: scale(1.15); }
.calm-dots li.done { border-color: #e9fff9; background: #c0fff0; box-shadow: 0 0 10px #c0fff0b3; }

/* The whole screen is the button, as in the app: tap to begin, tap again to pause. */
.calm-tap { position: absolute; z-index: 3; inset: 0; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.calm-tap:focus-visible { outline: 3px solid var(--gold); outline-offset: -6px; border-radius: 23px; }

/* Under the tablet, on the night sky: the five breaths and the sound switch. */
.breath-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.breath-choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.breath-choice, .calm-sound { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 14px 6px 10px; border-radius: 16px; border: 1px solid #ffffff2e; background: #ffffff12; color: var(--night-ink); font: inherit; font-weight: 800; font-size: .98rem; white-space: nowrap; cursor: pointer; transition: transform .2s cubic-bezier(.22, 1, .36, 1), background-color .3s, border-color .3s; touch-action: manipulation; }
.breath-choice:hover, .calm-sound:hover { background: #ffffff1f; }
.breath-choice:active, .calm-sound:active { transform: scale(.97); }
.breath-choice .short { display: none; }
.breath-shape { width: 40px; height: 16px; flex: none; }
.breath-shape path { fill: none; stroke: #ffffffa6; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.breath-choice[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.breath-choice[aria-pressed="true"] .breath-shape path { stroke: var(--on-gold); }
/* A speaker with a slash while quiet, and two soft waves once the sound is on. */
.calm-sound i { position: relative; width: 22px; height: 18px; flex: none; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7h4l5-4v14l-5-4H3z' fill='black'/%3E%3Cpath d='M16 7l5 6M21 7l-5 6'/%3E%3C/svg%3E"); }
.calm-sound[aria-pressed="true"] { border-color: #99f4df8c; background: #99f4df1f; }
.calm-sound[aria-pressed="true"] i { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7h4l5-4v14l-5-4H3z' fill='black'/%3E%3Cpath d='M16 7.5a4 4 0 0 1 0 5M18.5 5a7.5 7.5 0 0 1 0 10'/%3E%3C/svg%3E"); }
.breath-cue { max-width: 36rem; margin: 0; text-align: center; color: var(--night-muted); }
.breath-cue b { color: var(--night-ink); }

/* site.css drops the top padding of a section that follows another; every band here keeps its own. */
#guided, #questions { padding-top: clamp(56px, 8vw, 104px); }

/* ── Guided meditations from Steady Space: a night band, each tablet showing its place ── */
.calm-guided .calm-head p { color: var(--night-muted); }
.calm-guided .kicker { color: var(--gold); }
.calm-guided .mock-stage { background: radial-gradient(120% 90% at 50% 0%, #ffffff1f 0%, #ffffff00 70%), #ffffff0f; }
.calm-guided figcaption { color: var(--night-ink); }
.calm-guided .carousel-controls button { background: #ffffff1c; color: var(--night-ink); }
.calm-guided .carousel-dots button { background: transparent; }
.calm-guided .carousel-dots span { background: #ffffff59; }
.calm-guided .carousel-dots [aria-current] span { background: var(--gold); }
.calm-guided .device-mock.tablet { transform: none; }
.calm-guided .device-screen { container-type: size; background: #020709; color: #fff; }
.steady-place { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.calm-guided .device-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(#01080900 40%, #010809b3 100%); }
.steady-player { position: absolute; z-index: 1; left: 6cqw; right: 6cqw; bottom: 7cqh; }
.steady-title { margin: 0; font-weight: 800; font-size: max(17px, 8cqh); line-height: 1.1; text-shadow: 0 2px 14px #000a; }
.steady-meta { margin: .4em 0 0; color: #ffffffc7; font-weight: 600; font-size: max(12px, 3.6cqh); }
.steady-play { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 3.2cqh; padding: 8px 18px 8px 10px; border-radius: 999px; border: 1px solid #ffffff4d; background: #ffffff26; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; font: inherit; font-weight: 800; font-size: max(13px, 3.8cqh); cursor: pointer; touch-action: manipulation; transition: background-color .3s, transform .2s cubic-bezier(.22, 1, .36, 1); }
.steady-play:hover { background: #ffffff3d; }
.steady-play:active { transform: scale(.97); }
.steady-play i { position: relative; width: 28px; height: 28px; border-radius: 50%; background: #fff; flex: none; }
.steady-play i::before { content: ""; position: absolute; left: 11px; top: 8px; border-style: solid; border-width: 6px 0 6px 9px; border-color: transparent transparent transparent #161b3e; }
.steady-play[aria-pressed="true"] i::before { left: 9px; top: 9px; width: 3px; height: 10px; border: 0; background: #161b3e; box-shadow: 6px 0 0 #161b3e; }
.steady-play[aria-pressed="true"] i { animation: calm-listening 3.6s ease-in-out infinite; }
@keyframes calm-listening { 50% { transform: scale(1.12); box-shadow: 0 0 0 6px #ffffff2e; } }

/* ── Anchor: the app's night forest, numbered points, and lines that draw in gold ── */
.anchor-demo { display: grid; justify-items: center; gap: 14px; }
.anchor-stage { width: 100%; max-width: 820px; padding: 36px 28px; }
.anchor-stage .device-mock.tablet { max-width: 620px; transform: none; }
.anchor-screen { background: #020709; color: #fff; }
.anchor-place { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.anchor-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: rgba(2, 8, 8, .52); }
.anchor-field { position: absolute; z-index: 2; inset: 0 0 22% 0; touch-action: none; user-select: none; -webkit-user-select: none; cursor: pointer; }
.anchor-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.anchor-dot { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; background: none; translate: -50% -50%; cursor: pointer; font: inherit; -webkit-tap-highlight-color: transparent; }
.anchor-dot span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid #ffffff59; background: #050c0c94; color: #ffffffd1; font-weight: 800; font-size: 14px; line-height: 1; transition: transform .3s cubic-bezier(.22, 1, .36, 1); }
.anchor-dot.is-next { z-index: 2; }
.anchor-dot.is-next span { width: 44px; height: 44px; border-color: #fff0becc; background: #eed69a; color: #182018; font-size: 16px; box-shadow: 0 0 24px #eed69a7a; }
.anchor-dot.is-done span { width: 12px; height: 12px; border-color: transparent; background: #ffffff40; font-size: 0; }
.anchor-dot.redirect::after { content: ""; position: absolute; width: 60px; height: 60px; border-radius: 50%; border: 1px solid #ecfbf8; animation: anchor-redirect 700ms ease-out both; pointer-events: none; }
@keyframes anchor-redirect { from { opacity: .9; } to { opacity: 0; } }
.anchor-dot:focus-visible { outline: 0; }
.anchor-dot:focus-visible span { outline: 2px solid #ecfbf8; outline-offset: 3px; }
.anchor-status, .anchor-done { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 22%; display: grid; align-content: center; justify-items: center; gap: 2px; text-align: center; padding: 0 12px; }
.anchor-title { margin: 0; color: #ffffff8c; font-weight: 700; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.anchor-prompt { margin: 0; color: #fff; font-weight: 650; font-size: 18px; line-height: 1.2; }
.anchor-hint { margin: 0; color: #ffffff99; font-size: 12px; }
.anchor-done { opacity: 0; pointer-events: none; transition: opacity .5s ease .5s; }
.anchor-complete { margin: 0; font-weight: 650; font-size: 18px; }
.anchor-again { min-height: 40px; margin-top: 6px; padding: 6px 18px; border-radius: 999px; border: 1px solid #ffffff4d; background: #ffffff26; color: #fff; font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; }
.anchor-demo[data-state="settled"] .anchor-status { opacity: 0; transition: opacity .3s ease; }
.anchor-demo[data-state="settled"] .anchor-done { opacity: 1; pointer-events: auto; }
/* Once the last point lands, the numbers step back and the finished drawing glows. */
.anchor-demo[data-state="settled"] .anchor-dot { opacity: 0; pointer-events: none; transition: opacity 420ms cubic-bezier(.23, 1, .32, 1) 260ms; }
.anchor-demo[data-state="settled"] .anchor-lines { animation: anchor-glow 1800ms cubic-bezier(.23, 1, .32, 1) 200ms both; }
@keyframes anchor-glow { 0% { filter: drop-shadow(0 0 0 transparent); } 35% { filter: drop-shadow(0 0 12px #eed69a); } 100% { filter: drop-shadow(0 0 5px #eed69a); } }
.anchor-count { margin: 0; color: var(--muted); font-size: .98rem; }
.anchor-count b { color: var(--ink); }

/* ── Make your own: one phone walks through the composer and its four making steps ── */
.calm-make .calm-head p { color: var(--night-muted); }
.calm-make .kicker { color: var(--gold); }
.maker-demo { display: grid; justify-items: center; }
.maker-stage { width: 100%; max-width: 520px; padding: 36px 24px 32px; background: radial-gradient(120% 90% at 50% 0%, #ffffff1f 0%, #ffffff00 70%), #ffffff0f; }
.maker-screen { background: #0b1213; color: #f4f7f6; }
.maker-view { position: absolute; inset: 50px 0 0; padding: 18px 16px 20px; display: flex; flex-direction: column; opacity: 0; transition: opacity .9s ease; }
.maker-demo[data-step="write"] .maker-write, .maker-demo[data-step="making"] .maker-making, .maker-demo[data-step="ready"] .maker-ready { opacity: 1; }
.maker-heading { margin: 4px 0 0; font-weight: 750; font-size: 21px; }
.maker-label { margin: 18px 0 0; color: #f4f7f6b3; font-size: 13.5px; line-height: 1.4; }
.maker-box { position: relative; min-height: 236px; margin-top: 10px; padding: 12px 14px; border-radius: 16px; border: 1px solid #ffffff2e; background: #ffffff0d; font-size: 14.5px; line-height: 1.5; white-space: pre-line; }
.maker-caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 1px; vertical-align: text-bottom; background: #eed69a; animation: maker-caret 1.1s steps(1) infinite; }
@keyframes maker-caret { 50% { opacity: 0; } }
.maker-create { align-self: flex-end; margin-top: 14px; padding: 10px 22px; border-radius: 999px; background: #f1d68c; color: #1b1a14; font-weight: 800; font-size: 15px; transition: transform .25s cubic-bezier(.22, 1, .36, 1); }
.maker-demo.pressing .maker-create { transform: scale(.94); }
.maker-note { margin: auto 0 0; color: #f4f7f680; font-size: 12px; line-height: 1.4; }
.maker-steps { display: grid; gap: 18px; margin: 18px 0 0; padding: 0; list-style: none; }
.maker-steps li { position: relative; display: grid; gap: 2px; padding-left: 30px; opacity: .38; transition: opacity .6s ease; }
.maker-steps li::before { content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #f4f7f666; }
.maker-steps li.now, .maker-steps li.done { opacity: 1; }
.maker-steps li.now::before { border-color: #99f4df; box-shadow: 0 0 14px #62dbc580; animation: maker-pulse 1.8s ease-in-out infinite; }
.maker-steps li.done::before { border-color: #99f4df; background: #99f4df; }
@keyframes maker-pulse { 50% { transform: scale(1.18); } }
.maker-steps b { font-size: 15px; }
.maker-steps span { color: #f4f7f699; font-size: 13px; line-height: 1.4; }
.maker-ready { inset: 0; padding: 0; }
.maker-ready img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.maker-ready::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#01080900 45%, #010809c7 100%); }
.maker-ready-text { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 34px; }
.maker-ready-title { margin: 0; font-weight: 800; font-size: 24px; line-height: 1.15; text-shadow: 0 2px 14px #000a; }
.maker-ready-meta { margin: 6px 0 0; color: #ffffffc7; font-weight: 600; font-size: 13px; }

#hands, #make { padding-top: clamp(56px, 8vw, 104px); }

/* Below the fold, kit.js reveals things once as they arrive. Here they rise and settle slowly,
   without the kit's spring, and the tablet grows in like a breath. */
.reveal.is-in { animation: calm-reveal 1100ms cubic-bezier(.22, 1, .36, 1) calc(var(--ri, 0) * 140ms) both; }
@keyframes calm-reveal { from { opacity: 0; transform: translateY(36px); } }
.calm-stage.reveal.is-in { animation-name: calm-reveal-stage; animation-duration: 1500ms; }
@keyframes calm-reveal-stage { from { opacity: 0; transform: translateY(40px) scale(.94); } }
/* Carousel slides rise like everything else here, without the kit's tilt and settle. */
.screen-slide.reveal.is-in .device-mock { animation: none; }

/* The middle stays short: tighter bands, smaller resets, and on wide screens Anchor and making a
   reset sit beside their words, one on each side. */
#guided, #hands, #make { padding: clamp(48px, 6vw, 80px) 0; }
.calm-guided .screen-carousel { --slide-width: min(420px, 84vw); }
.calm-guided .mock-stage { padding: 18px; }
.calm-guided .calm-head { max-width: 52rem; margin-bottom: 20px; }
.maker-stage .device-mock.phone { width: 224px; }
.anchor-stage { max-width: 600px; padding: 24px; }
.anchor-stage .device-mock.tablet { max-width: 520px; }
@media (min-width: 900px) {
  .make-row, .hands-row { display: grid; align-items: center; gap: 56px; max-width: 1040px; }
  .hands-row { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .make-row { grid-template-columns: auto minmax(0, 1fr); }
  .make-row .maker-demo { order: -1; }
  .make-row .calm-head, .hands-row .calm-head { margin: 0; text-align: left; }
  .make-row .maker-stage { width: 330px; padding: 20px; }
  .hands-row .anchor-stage { padding: 20px; }
}
@media (max-width: 600px) {
  .calm-stage, .anchor-stage { padding: 0; }
  .anchor-stage { padding: 28px 12px 16px; }
  /* A tablet held upright, so the ring, its words and Anchor's points stay big on a phone. */
  .calm-stage .device-mock.tablet, .anchor-stage .device-mock.tablet { aspect-ratio: 3 / 4; max-width: 360px; }
  .calm-stage .device-mock.tablet .device-screen, .anchor-stage .device-mock.tablet .device-screen { border-radius: 17px; }
  .maker-stage { padding: 18px 12px; }
  .maker-stage .device-mock.phone { width: 208px; }
  #guided, #hands, #make { padding: 44px 0; }
  /* Anchor's points need room, not height: a square screen keeps them big without a tall frame. */
  .anchor-stage .device-mock.tablet { aspect-ratio: 1; }
  .anchor-stage { padding: 16px 12px; }
  .calm-head { margin-bottom: 20px; }
  /* As in the app on a phone: five even buttons, the breath's shape over its one-word name. */
  .breath-controls { width: 100%; max-width: 360px; }
  .breath-choices { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); width: 100%; gap: 6px; }
  .breath-choice { flex-direction: column; justify-content: center; gap: 5px; min-height: 58px; padding: 8px 2px; font-size: .82rem; }
  .breath-choice .long { display: none; }
  .breath-choice .short { display: inline; }
  .breath-shape { width: 30px; height: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .calm-words > span, .calm-rise, .calm-hero .breath-demo, .calm-phase.changed, .breath-demo[data-state="complete"] .pose-happy, .steady-play i, .anchor-lines, .anchor-dot.redirect::after, .maker-caret, .maker-steps li.now::before { animation: none !important; }
  .anchor-demo[data-state="settled"] .anchor-lines { filter: drop-shadow(0 0 5px #eed69a); }
  .maker-view, .anchor-dot, .calm-finish { transition: none; }
  .calm-bg, .calm-ring > span { transition-duration: .2s; }
}
