/* ==========================================================
   MindSpace — landing page styles (pastel edition)
   ========================================================== */

:root {
  /* Pastels — greens, whites and yellows */
  --mint: #dff3e4;      --mint-deep: #4f9468;
  --sage: #e4eed8;      --sage-deep: #6f8f4e;
  --pistachio: #ecf5cf; --pistachio-deep: #7f9c2e;
  --butter: #fbf3c9;    --butter-deep: #b8932a;
  --seafoam: #d9f1ea;   --seafoam-deep: #3f8f7b;
  --lemon: #fdf8dc;     --lemon-deep: #a88a1c;

  --bg: #fdfdf6;
  --bg-2: #f5f9ee;
  --surface: #ffffff;
  --line: #e6ecdc;
  --ink: #25352b;
  --ink-soft: #55665a;
  --eyebrow: #4a8a5c;

  --grad-primary: linear-gradient(120deg, #c9ebcf 0%, #e3f2b3 50%, #fae9a3 100%);
  --grad-soft: linear-gradient(120deg, var(--mint), var(--seafoam) 30%, var(--pistachio) 65%, var(--butter));

  --font-display: "Quicksand", "Nunito", "Varela Round", "Arial Rounded MT Bold", "Segoe UI", system-ui, sans-serif;
  --font-body: "Nunito", "Varela Round", "Arial Rounded MT Bold", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 20px;
  --radius-lg: 30px;
  --shadow-sm: 0 1px 2px rgba(40, 70, 50, .05), 0 6px 18px -8px rgba(40, 70, 50, .14);
  --shadow: 0 2px 6px rgba(40, 70, 50, .05), 0 22px 48px -18px rgba(40, 70, 50, .25);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}

[hidden] { display: none !important; }

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(16px, 0.35vw + 15px, 18px);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, video { display: block; max-width: 100%; }
a { color: var(--eyebrow); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; color: var(--ink); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.2vw + .6rem, 3rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
code { font-size: .92em; background: var(--pistachio); padding: .1em .45em; border-radius: 6px; }
::selection { background: var(--pistachio); }

kbd {
  display: inline-block; min-width: 2em; padding: .15em .55em;
  font: 700 .85em/1.5 var(--font-body); text-align: center; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 8px;
}

:focus-visible { outline: 3px solid var(--pistachio-deep); outline-offset: 3px; border-radius: 8px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: .6em 1em; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--eyebrow); margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad-primary);
}
.fineprint { font-size: .88rem; color: var(--ink-soft); }

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed; inset: 0 0 auto; height: 3px; z-index: 60;
  background: var(--grad-primary); transform-origin: 0 50%; transform: scaleX(0); will-change: transform;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: .6em;
  padding: .95em 1.55em;
  font: 800 1rem/1 var(--font-body); letter-spacing: .01em;
  border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; color: var(--ink);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease), background-position .6s var(--ease), background-color .3s;
  transform: translate(var(--mx, 0), var(--my, 0));
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.75) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { color: var(--ink); }
.btn--primary {
  background: var(--grad-primary); background-size: 180% 100%; background-position: 0 0;
  box-shadow: 0 12px 28px -12px rgba(140, 180, 90, .55);
}
.btn--primary:hover { background-position: 100% 0; box-shadow: 0 16px 34px -12px rgba(140, 180, 90, .75); }
.btn--ghost { background: rgba(255,255,255,.82); border-color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.85); }
.btn--light { background: var(--ink); color: #fff; }
.btn--light:hover { color: #fff; background: #34483b; }
.btn--small { padding: .65em 1.2em; font-size: .88rem; }
.btn--large { padding: 1.15em 2em; font-size: 1.1rem; }
.btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }

/* ---------- Navigation (floating pill) ---------- */
.nav { position: fixed; inset: 12px 0 auto; z-index: 50; pointer-events: none; }
.nav__inner {
  pointer-events: auto;
  width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 8px 8px 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,.86); border: 1px solid #fff;
  box-shadow: var(--shadow-sm);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), transform .5s var(--ease-out);
  animation: navIn 1s var(--ease-out) .1s both;
}
@keyframes navIn { from { opacity: 0; transform: translateY(-24px); } }
.nav.is-scrolled .nav__inner { background: rgba(255,255,255,.96); box-shadow: var(--shadow); }
.nav.is-hidden .nav__inner { transform: translateY(-140%); }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font: 600 1.2rem/1 var(--font-display); }
.brand img { transition: transform .8s var(--ease-out); }
.brand:hover img { transform: rotate(-20deg) scale(1.08); }
.nav__links { display: flex; gap: clamp(.4rem, 1.2vw, 1rem); list-style: none; margin: 0; padding: 0; }
.nav__links a {
  position: relative; display: block; padding: .45em .8em; border-radius: 999px;
  color: var(--ink-soft); text-decoration: none; font-weight: 700; font-size: .92rem;
  transition: color .3s, background-color .3s;
}
.nav__links a:hover { color: var(--ink); background: var(--bg-2); }
.nav__links a.is-active { color: var(--ink); background: var(--mint); }
@media (max-width: 860px) { .nav__links { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh; display: grid; align-items: center;
  overflow: hidden; background: var(--seafoam) url("assets/video/poster.jpg") center / cover no-repeat;
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  will-change: transform;
}
.hero__content { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; padding-block: 120px 110px; }
.hero__card {
  max-width: 680px; padding: clamp(1.6rem, 3.5vw, 2.8rem);
  border-radius: var(--radius-lg);
  background: rgba(253,253,246,.88);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 30px 80px -30px rgba(40, 70, 50, .35);
  animation: cardIn 1.2s var(--ease-out) .15s both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(40px) scale(.97); } }
.hero__card > * { animation: rise .9s var(--ease-out) both; }
.hero__card > :nth-child(1) { animation-delay: .35s; }
.hero__card > :nth-child(2) { animation: none; }
.hero__card > :nth-child(3) { animation-delay: 1.05s; }
.hero__card > :nth-child(4) { animation-delay: 1.2s; }
.hero__card > :nth-child(5) { animation-delay: 1.35s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

.hero h1 { font-size: clamp(2.5rem, 5vw + .5rem, 4.6rem); font-weight: 600; line-height: 1.08; letter-spacing: -0.015em; margin-bottom: .4em; }
.hero h1 .word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.hero h1 .word > span { display: inline-block; animation: wordUp 1s var(--ease-out) both; animation-delay: calc(.45s + var(--i) * 70ms); }
@keyframes wordUp { from { transform: translateY(110%) rotate(4deg); opacity: 0; } }
.hero h1 em { font-style: normal; font-weight: 700; }
.hero h1 em,
.hero h1 em .word > span {
  background: linear-gradient(100deg, #3f8f68, #7f9c2e 55%, #b8932a); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
.hero h1 em:has(.word) { background: none; }
.hero__lede { font-size: clamp(1.05rem, .5vw + .95rem, 1.22rem); color: var(--ink-soft); }
.hero__lede em { font-family: var(--font-display); font-style: normal; font-weight: 700; color: var(--eyebrow); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 1.1rem; }
.hero__meta { font-size: .9rem; color: var(--ink-soft); margin: 0; }

.hero__pause {
  position: absolute; right: var(--gutter); bottom: 28px;
  display: inline-flex; align-items: center; gap: .45em;
  padding: .55em 1em; border-radius: 999px;
  font: 700 .8rem/1 var(--font-body); color: var(--ink);
  background: rgba(255,255,255,.9); border: 1px solid #fff;
  cursor: pointer; box-shadow: var(--shadow-sm);
  animation: rise 1s var(--ease-out) 1.6s both;
}
.hero__pause:hover { background: #fff; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; translate: -50% 0;
  width: 28px; height: 44px; border-radius: 16px;
  background: rgba(255,255,255,.85); border: 2px solid #fff;
  animation: rise 1s var(--ease-out) 1.8s both;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--eyebrow);
  animation: scrollhint 2.4s var(--ease) infinite;
}
@keyframes scrollhint { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 640px) {
  .hero { align-items: end; }
  .hero__content { padding-block: 100px 76px; }
  .hero__scroll { display: none; }
  .hero__pause { bottom: 18px; }
}

/* ---------- Guided breathing exercise ---------- */
.breathe {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: clamp(80px, 11vw, 140px);
  background:
    radial-gradient(60% 70% at 18% 40%, rgba(255,255,255,.75), transparent 70%),
    linear-gradient(160deg, var(--mint) 0%, var(--seafoam) 45%, var(--pistachio) 75%, var(--butter) 100%);
}
.breathe__inner {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  grid-template-areas: "stage head" "stage controls";
  column-gap: clamp(2rem, 6vw, 6rem); row-gap: 1.6rem; align-items: center;
}
.breathe__head { grid-area: head; align-self: end; }
.breathe__head h2 { font-size: clamp(2.2rem, 3.6vw + .6rem, 3.4rem); font-weight: 600; }
.breathe__head p:last-child { color: var(--ink-soft); font-size: 1.08rem; margin: 0; }
.breathe__stage { grid-area: stage; display: grid; place-items: center; }
.breathe__controls { grid-area: controls; align-self: start; }

/* the breathing circle */
.breather {
  --size: min(470px, 82vw);
  --dur: 4s;
  position: relative; width: var(--size); height: var(--size);
  display: grid; place-items: center;
}
.breather__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.breather__track { fill: none; stroke: rgba(255,255,255,.75); stroke-width: 3; }
.breather__progress {
  fill: none; stroke: var(--mint-deep); stroke-width: 4; stroke-linecap: round;
  stroke-dasharray: 590.62; stroke-dashoffset: 590.62; opacity: 0; transition: opacity .4s;
}
.breather[data-state="running"] .breather__progress,
.breather[data-state="paused"] .breather__progress { opacity: 1; }
.breather[data-phase="hold"] .breather__progress, .breather[data-phase="rest"] .breather__progress { stroke: var(--butter-deep); }
.breather[data-phase="out"] .breather__progress { stroke: var(--seafoam-deep); }

.breather__halo, .breather__orb { position: absolute; border-radius: 50%; will-change: transform; transform: scale(.62); }
.breather__halo {
  inset: 2%;
  background: radial-gradient(circle, rgba(255,255,255,.9) 0%, rgba(255,255,255,.35) 45%, transparent 70%);
}
.breather__orb {
  inset: 12%;
  background:
    radial-gradient(circle at 34% 28%, #fff 0%, rgba(255,255,255,.0) 42%),
    radial-gradient(circle at 50% 55%, #f7fbe9 0%, #dcefcf 45%, #a9dcb8 100%);
  box-shadow: 0 30px 70px -28px rgba(40, 90, 55, .55), inset 0 -18px 40px rgba(79,148,104,.18), inset 0 0 0 2px rgba(255,255,255,.8);
}
.breather[data-state="idle"] .breather__orb,
.breather[data-state="idle"] .breather__halo,
.breather[data-state="done"] .breather__orb,
.breather[data-state="done"] .breather__halo { animation: idleBreath 10s ease-in-out infinite; }
@keyframes idleBreath { 0%, 100% { transform: scale(.62); } 50% { transform: scale(.8); } }
.breather[data-state="running"] .breather__orb,
.breather[data-state="running"] .breather__halo { transition: transform var(--dur) cubic-bezier(.45, 0, .55, 1); }
.breather[data-state="running"] .breather__halo { transition-duration: calc(var(--dur) * 1.08); }

.breather__label { position: relative; z-index: 2; text-align: center; pointer-events: none; }
.breather__phase {
  margin: 0; font: 600 clamp(1.6rem, 2.4vw + .8rem, 2.3rem)/1.15 var(--font-display); color: var(--ink);
  transition: opacity .35s var(--ease), transform .5s var(--ease-out);
}
.breather__phase.is-swap { opacity: 0; transform: translateY(8px); }
.breather[data-state="idle"] .breather__phase { font-size: clamp(1.2rem, 1.2vw + .8rem, 1.5rem); color: var(--ink-soft); }
.breather__count { margin: .2em 0 0; font: 700 1.1rem/1 var(--font-body); color: var(--ink-soft); min-height: 1em; font-variant-numeric: tabular-nums; }

/* controls */
.seg { display: flex; flex-wrap: wrap; gap: .4rem; border: 0; margin: 0 0 .9rem; padding: 0; }
.seg__legend { width: 100%; padding: 0; margin-bottom: .45rem; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--eyebrow); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span {
  display: inline-flex; flex-direction: column; gap: .15em; padding: .6em 1em; border-radius: 16px;
  background: rgba(255,255,255,.55); border: 1.5px solid rgba(255,255,255,.95);
  font-weight: 800; font-size: .95rem; color: var(--ink); line-height: 1.15;
  transition: background-color .3s, box-shadow .3s, transform .4s var(--ease-out);
}
.seg small { font-weight: 600; font-size: .78rem; color: var(--ink-soft); }
.seg label:hover span { transform: translateY(-2px); }
.seg input:checked + span { background: #fff; border-color: var(--mint-deep); box-shadow: var(--shadow-sm); }
.seg input:focus-visible + span { outline: 3px solid var(--mint-deep); outline-offset: 2px; }
.seg--small span { padding: .5em .9em; font-size: .9rem; }
.seg[disabled] { opacity: .55; }
.seg[disabled] label { cursor: not-allowed; }

.breathe__buttons { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.4rem 0 1.1rem; }
.breathe__meter { height: 6px; border-radius: 6px; background: rgba(255,255,255,.7); overflow: hidden; }
.breathe__meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--mint-deep), var(--pistachio-deep), var(--butter-deep)); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1s linear; }
.breathe__stats { margin: .6rem 0 .8rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.breathe__note { margin: 0; max-width: 440px; }

@media (max-width: 900px) {
  .breathe__inner { grid-template-columns: 1fr; grid-template-areas: "head" "stage" "controls"; text-align: left; }
  .breather { --size: min(380px, 86vw); }
}

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(76px, 10vw, 130px); }
.section__head { max-width: 680px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section__head p:last-child { color: var(--ink-soft); font-size: 1.08rem; }

/* Drifting pastel blobs behind some sections */
.blobs { position: relative; isolation: isolate; overflow: hidden; }
.blobs::before, .blobs::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
  width: clamp(320px, 44vw, 640px); aspect-ratio: 1;
  animation: drift 24s ease-in-out infinite alternate; will-change: transform;
}
.blobs::before { background: radial-gradient(circle, var(--b1, var(--pistachio)) 0%, transparent 68%); top: -16%; right: -12%; }
.blobs::after { background: radial-gradient(circle, var(--b2, var(--butter)) 0%, transparent 68%); bottom: -22%; left: -14%; animation-delay: -12s; animation-duration: 28s; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-6%, 8%, 0); }
  100% { transform: translate3d(8%, -4%, 0); }
}

.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split--reverse .split__media { order: -1; }
.split__text > p { color: var(--ink-soft); }
.split__media { margin: 0; }
.media-frame {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  background: var(--bg-2);
}
.media-frame::after { /* soft pastel sheen */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.28), transparent 40%);
}
.media-frame img { width: 100%; height: auto; transform: scale(1.1); will-change: transform; }
.split__media figcaption { margin-top: .8rem; font-size: .85rem; color: var(--ink-soft); }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

.ticks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .7rem; }
.ticks li { position: relative; padding-left: 2rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%234f8a60' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* ---------- Scroll-driven showcase: giant double circle ---------- */
.showcase {
  position: relative;
  height: calc(100vh + (var(--stops, 5) - 1) * 55vh);
  background: var(--bg);
}
.showcase__pin {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate;
  --orb: min(88vh, 54vw);
}
.showcase__pin > .container { height: 100%; display: flex; align-items: center; justify-content: flex-end; }

/* pinned background tint: stacked layers cross-fade (compositor-only) */
.showcase__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.tint-layer {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--t) 14%, var(--t) 86%, var(--bg) 100%);
}

/* colour layers used by both circles: new colour fades in on top of the old one */
.tint-layer, .orb__fill { opacity: 0; transition: opacity .9s var(--ease); will-change: opacity; }
.tint-layer.is-prev, .orb__fill.is-prev { opacity: 1; z-index: 1; transition: none; }
.tint-layer.is-active, .orb__fill.is-active { opacity: 1; z-index: 2; }

/* the giant circle */
.orb {
  position: absolute; top: 50%; left: calc(var(--orb) * -0.1);
  width: var(--orb); height: var(--orb); margin-top: calc(var(--orb) / -2);
  border-radius: 50%;
  box-shadow: 0 40px 90px -36px rgba(40, 70, 50, .5), 0 0 0 1px rgba(40,70,50,.06);
}
.orb__outer-fills, .orb__outer, .orb__inner-fills, .orb__inner, .orb__window { position: absolute; border-radius: 50%; }
.orb__outer-fills, .orb__outer { inset: 0; }
.orb__inner-fills, .orb__inner { inset: 8.5%; }
.orb__outer-fills, .orb__inner-fills { isolation: isolate; }
.orb__fill {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 30% 26%, rgba(255,255,255,.7), rgba(255,255,255,0) 45%), var(--f);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.75);
}
.orb__inner-fills { box-shadow: 0 18px 40px -18px rgba(40, 70, 50, .5); }
.orb__inner-fills .orb__fill { background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.45), rgba(255,255,255,0) 50%), var(--f); box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }

/* rotating overlays: transparent, so turning them never repaints */
.orb__outer, .orb__inner { will-change: transform; transform: rotate(0deg); }
.orb__outer { transition: transform 1s cubic-bezier(.65, 0, .35, 1); }
.orb__inner { transition: transform 1.15s cubic-bezier(.65, 0, .35, 1); }

/* one marker per stop around the rim — the active one turns to face the text */
.orb__marks { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.orb__marks li {
  position: absolute; left: 50%; top: 50%; width: 50%; height: 0;
  transform-origin: 0 0; transform: rotate(calc(var(--k) * 72deg));
}
.orb__marks li::after {
  content: ""; position: absolute; right: 2.6%; top: -9px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(40,70,50,.2);
  transition: transform .6s var(--ease-out), background-color .6s;
}
.orb__marks li.is-active::after { transform: scale(1.5); background: var(--ink); }

/* dashed ring + dot on the smaller circle so its turning is visible */
.orb__inner::before {
  content: ""; position: absolute; inset: 4.5%; border-radius: 50%;
  border: 2px dashed rgba(255,255,255,.75);
}
.orb__inner::after {
  content: ""; position: absolute; left: 50%; top: 1.6%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%;
  background: #fff;
}

/* the picture in the middle (stays upright) */
.orb__window {
  inset: 21%; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 6px rgba(255,255,255,.85), 0 20px 50px -20px rgba(40,70,50,.6);
}
.orb__window img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: opacity, transform;
  opacity: 0; transform: scale(1.25) rotate(-6deg);
  transition: opacity .8s var(--ease), transform 1.4s var(--ease-out);
}
.orb__window img.is-active { opacity: 1; transform: scale(1.02); }
.orb.is-changing .orb__window { animation: orbPulse .7s var(--ease-out); }
@keyframes orbPulse { 40% { transform: scale(.96); } }

/* text side */
.showcase__content { position: relative; width: min(100%, 500px); margin-right: max(0px, calc((100% - 1160px) / 2)); }
.showcase__head { margin-bottom: 1.6rem; }
.showcase__head h2 { margin-bottom: .2em; }
.showcase__head p { margin: 0; color: var(--ink-soft); }

.tour-steps { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.8rem; }
.tour-step {
  display: inline-flex; align-items: center; gap: .5em; padding: .45em .8em .45em .5em; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.9); background: rgba(255,255,255,.55);
  font: 800 .8rem/1 var(--font-body); color: var(--ink-soft); cursor: pointer;
  transition: background-color .4s, color .4s, transform .5s var(--ease-out), box-shadow .4s;
}
.tour-step::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 2px rgba(255,255,255,.9); }
.tour-step:hover { transform: translateY(-2px); }
.tour-step.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

.tour-slides { display: grid; }
.tour-slide { grid-area: 1 / 1; visibility: hidden; }
.tour-slide > * { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity .5s var(--ease), transform .7s var(--ease-out); }
.tour-slide.is-active { visibility: visible; }
.tour-slide.is-active > * { opacity: 1; transform: none; }
.tour-slide.is-active > :nth-child(2) { transition-delay: .07s; }
.tour-slide.is-active > :nth-child(3) { transition-delay: .14s; }
.tour-slide__kicker {
  display: inline-flex; align-items: center; gap: .5em; padding: .35em .9em; border-radius: 999px; margin: 0;
  font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(255,255,255,.8); color: var(--ink);
}
.tour-slide__kicker::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--cd); }
.tour-slide h3 { font-size: clamp(1.7rem, 2vw + .9rem, 2.4rem); font-weight: 600; margin: .55em 0 .35em; }
.tour-slide p { color: var(--ink-soft); margin: 0; font-size: 1.05rem; }
.showcase__hint { margin-top: 1.8rem; font-size: .85rem; color: var(--ink-soft); display: flex; align-items: center; gap: .5em; }
.showcase__hint svg { animation: nudge 2s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }

@media (max-width: 1100px) and (min-width: 801px) {
  .showcase__content { width: min(100%, 420px); }
  .showcase__pin { --orb: min(80vh, 52vw); }
}
@media (max-width: 800px) {
  .showcase__pin { --orb: min(104vw, 56svh); }
  .showcase__pin > .container { align-items: flex-end; justify-content: center; padding-bottom: max(24px, 4svh); }
  .orb { top: calc(var(--orb) / 2 + 70px); left: 50%; margin-left: calc(var(--orb) / -2); }
  .orb__marks li::after { width: 12px; height: 12px; top: -6px; }
  .showcase__content { width: 100%; margin: 0; }
  .showcase__head { display: none; }
  .tour-steps { margin-bottom: 1rem; gap: .35rem; }
  .tour-step { font-size: 0; gap: 0; padding: .35em; }
  .tour-step.is-active { font-size: .75rem; gap: .45em; padding: .4em .75em .4em .45em; }
  .tour-slide h3 { font-size: 1.45rem; margin: .45em 0 .25em; }
  .tour-slide p { font-size: .95rem; }
  .showcase__hint { display: none; }
}

/* How it works */
.how { background: var(--bg-2); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 3vw, 2rem); position: relative; counter-reset: step; }
.steps::before {
  content: ""; position: absolute; top: 44px; left: 16%; right: 16%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--pistachio-deep) 0 8px, transparent 8px 16px);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.6s var(--ease-out) .3s; opacity: .55;
}
.steps.is-visible::before { transform: scaleX(1); }
.step { position: relative; z-index: 1; text-align: center; padding: 0 .5rem; counter-increment: step; }
.step__icon {
  width: 88px; height: 88px; margin: 0 auto 1.2rem; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink);
  background: var(--c, var(--sage)); box-shadow: 0 0 0 10px var(--bg-2), var(--shadow-sm);
  transition: transform .6s var(--ease-out);
}
.step:nth-child(2) .step__icon { --c: var(--lemon); }
.step:nth-child(3) .step__icon { --c: var(--pistachio); }
.step:hover .step__icon { transform: translateY(-6px) rotate(-6deg); }
.step__icon svg { width: 42px; height: 42px; }
.step h3::before { content: counter(step, decimal-leading-zero) "  "; color: var(--eyebrow); font-size: .8em; }
.step p { color: var(--ink-soft); font-size: .98rem; max-width: 300px; margin-inline: auto; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 2.5rem; } .steps::before { display: none; } }

/* Feature cards with tilt */
.features { --b1: var(--seafoam); --b2: var(--lemon); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(1rem, 2vw, 1.5rem); perspective: 1000px; }
.card {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 1.8rem; border-radius: var(--radius);
  background: rgba(255,255,255,.9); border: 1px solid #fff;
  box-shadow: var(--shadow-sm);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(360px circle at var(--gx, 50%) var(--gy, 50%), var(--glow, var(--pistachio)), transparent 60%);
}
.card:hover { --lift: -6px; box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card__icon {
  width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 1.1rem;
  color: var(--ink); background: var(--ic, var(--sage));
  transition: transform .6s var(--ease-out);
}
.card:hover .card__icon { transform: scale(1.08) rotate(-8deg); }
.card:nth-child(6n+1) { --ic: var(--sage); --glow: var(--sage); }
.card:nth-child(6n+2) { --ic: var(--lemon); --glow: var(--lemon); }
.card:nth-child(6n+3) { --ic: var(--butter); --glow: var(--butter); }
.card:nth-child(6n+4) { --ic: var(--seafoam); --glow: var(--seafoam); }
.card:nth-child(6n+5) { --ic: var(--lemon); --glow: var(--lemon); }
.card:nth-child(6n+6) { --ic: var(--pistachio); --glow: var(--pistachio); }
.card__icon svg { width: 26px; height: 26px; }
.card p { color: var(--ink-soft); font-size: .98rem; margin: 0; }

/* Companions */
.companions { background: linear-gradient(180deg, var(--bg), var(--butter) 55%, var(--pistachio)); --b1: var(--butter); --b2: var(--pistachio); }
.people { display: grid; gap: 1rem; margin: 1.8rem 0 1.2rem; }
.person {
  display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.2rem;
  border-radius: var(--radius); background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.95);
  transition: transform .5s var(--ease-out), box-shadow .5s;
}
.person:hover { transform: translateX(6px); box-shadow: var(--shadow-sm); }
.person h3 { margin: 0 0 .15em; font-size: 1.15rem; }
.person p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.person__avatar {
  flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  font: 700 1.4rem/1 var(--font-display); color: var(--ink);
  animation: bob 5s ease-in-out infinite;
}
.person:nth-child(2) .person__avatar { animation-delay: -2.5s; }
@keyframes bob { 50% { transform: translateY(-4px); } }
.person__avatar--julien { background: radial-gradient(circle at 35% 30%, #fffdf0, var(--butter) 55%, #f0dc8f); }
.person__avatar--camille { background: radial-gradient(circle at 35% 30%, #f5fff8, var(--mint) 55%, #aedbbb); }

/* Gallery */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 17vw, 230px); gap: clamp(.6rem, 1.4vw, 1rem); }
.shot {
  position: relative; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--bg-2);
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.shot::after {
  content: "View"; position: absolute; right: 12px; bottom: 12px; padding: .35em .8em; border-radius: 999px;
  font: 800 .75rem/1.2 var(--font-body); letter-spacing: .06em; text-transform: uppercase;
  background: rgba(255,255,255,.85); color: var(--ink);
  opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .5s var(--ease-out);
}
.shot:hover img { transform: scale(1.06); }
.shot:hover::after, .shot:focus-visible::after { opacity: 1; transform: none; }
.shot--wide { grid-column: span 2; grid-row: span 2; }
.shot.reveal { opacity: 1; filter: none; transform: none; clip-path: inset(14% 14% 14% 14% round var(--radius)); transition: clip-path 1.2s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.shot.reveal.is-visible { clip-path: inset(0 0 0 0 round var(--radius)); }
@media (max-width: 760px) {
  .shots { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 36vw; }
  .shot--wide { grid-column: span 2; grid-row: span 1; }
}

/* Controls */
.controls { background: var(--bg-2); }
.keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: .8rem; margin: 0; }
.keys > div {
  display: flex; flex-direction: column; gap: .6rem; padding: 1.2rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .5s var(--ease-out), border-color .4s;
}
.keys > div:hover { transform: translateY(-4px); border-color: var(--pistachio); }
.keys > div:hover kbd { animation: press .5s var(--ease-out); }
@keyframes press { 40% { transform: translateY(2px); border-bottom-width: 1px; } }
.keys dt { display: flex; gap: .3rem; flex-wrap: wrap; }
.keys dd { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* Care */
.care { --b1: var(--sage); --b2: var(--seafoam); }
.care__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 3vw, 2.5rem); }
.care__item { position: relative; padding-top: 1.3rem; }
.care__item::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 3px;
  background: var(--grad-primary); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.2s var(--ease-out) .2s;
}
.care__item.is-visible::before { transform: scaleX(1); }
.care__item p { color: var(--ink-soft); margin: 0; }
@media (max-width: 820px) { .care__grid { grid-template-columns: 1fr; } }

.help {
  display: flex; gap: 1.2rem; align-items: flex-start;
  margin-top: clamp(2.5rem, 5vw, 4rem); padding: clamp(1.3rem, 3vw, 2rem);
  border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--butter), var(--pistachio));
}
.help h3 { margin-bottom: .35em; }
.help p { margin: 0; }
.help a { color: #6b5510; font-weight: 800; }
.help__icon { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.8); color: #a88a1c; animation: beat 2.4s ease-in-out infinite; }
.help__icon svg { width: 26px; height: 26px; }
@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 20% { transform: scale(1.1); } 35% { transform: scale(.98); } }

/* Download */
.download { position: relative; isolation: isolate; overflow: hidden; }
.download__bg {
  position: absolute; inset: -10% 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(252,250,247,.94) 0%, rgba(252,250,247,.8) 48%, rgba(252,250,247,.25) 100%),
    url("assets/img/lake.webp") center / cover no-repeat;
  will-change: transform;
}
.download h2 { font-weight: 600; font-size: clamp(2.2rem, 4vw + .6rem, 3.6rem); }
.download__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.download__lede { color: var(--ink-soft); font-size: 1.1rem; margin-bottom: 2rem; }
.download__meta { margin-top: 1rem; font-size: .9rem; color: var(--ink-soft); min-height: 1.4em; }
.reqs {
  background: rgba(255,255,255,.9); border: 1px solid #fff; border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow);
}
.reqs ul { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.reqs li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; text-align: right; }
.reqs li span { color: var(--eyebrow); font-weight: 800; text-align: left; }
.reqs .fineprint { margin: 0; }
@media (max-width: 880px) { .download__inner { grid-template-columns: 1fr; } }

/* Footer */
.footer { background: linear-gradient(120deg, var(--mint), var(--butter)); padding-block: 2.5rem; font-size: .92rem; color: var(--ink-soft); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 2rem; }
.footer p { margin: 0; }
.footer__small { flex-basis: 100%; font-size: .82rem; opacity: .85; }

/* ---------- Dialogs ---------- */
.modal {
  width: min(100% - 32px, 1100px); max-height: calc(100vh - 32px);
  padding: 0; border: 0; border-radius: var(--radius); background: #000; overflow: visible;
}
.modal::backdrop { background: rgba(40, 70, 50, .55); }
.modal[open] { animation: pop .5s var(--ease-out); }
.modal[open]::backdrop { animation: fade .4s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.95); } }
@keyframes fade { from { opacity: 0; } }
.modal__video, .modal--image img { width: 100%; max-height: calc(100vh - 32px); border-radius: var(--radius); object-fit: contain; background: #000; }
.modal__close {
  position: absolute; top: -14px; right: -14px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  font: 400 1.6rem/1 var(--font-body); color: var(--ink); background: #fff;
  cursor: pointer; box-shadow: var(--shadow); transition: transform .4s var(--ease-out);
}
.modal__close:hover { transform: rotate(90deg); }
@media (max-width: 640px) { .modal__close { top: 8px; right: 8px; } }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0; transform: translate3d(0, 28px, 0);
  transition: opacity .9s var(--ease), transform 1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal.is-visible { opacity: 1; transform: none; }
.card.reveal.is-visible { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px)); transition: opacity .9s var(--ease), transform .5s var(--ease-out), box-shadow .5s; transition-delay: 0s; }
.no-js .reveal { opacity: 1; transform: none; filter: none; clip-path: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal, .shot.reveal { opacity: 1; transform: none; filter: none; clip-path: none; }
  /* the exercise is started by the visitor and the growth is the guide, so keep it — just slow and gentle */
  .breather[data-state="running"] .breather__orb, .breather[data-state="running"] .breather__halo { transition-duration: var(--dur) !important; }
  .hero__video, .hero__card, .media-frame img, .download__bg { transform: none; }
  .hero__card { opacity: 1; }
}

/* ---------- Performance helpers ---------- */
.is-offscreen, .is-offscreen *, .is-offscreen::before, .is-offscreen::after { animation-play-state: paused !important; }
.how, .features, .companions, .gallery, .controls, .care {
  content-visibility: auto; contain-intrinsic-size: auto 900px;
}

/* ---------- Typography: rounded, calm voice everywhere ---------- */
.eyebrow, .btn, .nav__links a, .tour-step, .tour-slide__kicker, .seg__legend, .seg span,
.breather__count, .breathe__stats, .reqs li span, .shot::after, .hero__pause, .skip-link {
  font-family: var(--font-display);
}
.eyebrow { font-weight: 700; letter-spacing: .18em; }
.btn { font-weight: 700; letter-spacing: .01em; }
.nav__links a { font-weight: 600; }
.brand { font-weight: 700; letter-spacing: -.01em; }
.hero h1 { font-weight: 600; letter-spacing: -0.02em; }
.hero h1 em { font-weight: 700; }
.breather__phase { font-weight: 500; letter-spacing: -.01em; }
.section__head p:last-child, .split__text > p, .hero__lede { line-height: 1.7; }
