/* Aera homepage (index.html, hu.html, de.html). Generated pages: edit
   scripts/build_home.py for copy, this file for the look. Shared subpages keep
   using styles.css. */

:root {
  color-scheme: light dark;
  --bg: #f6f4ef;
  --bg-2: #efebe2;
  --card: #ffffff;
  --ink: #17161b;
  --ink-2: #57535d;
  --ink-3: #8a8690;
  --line: rgba(23, 22, 27, 0.09);
  --green: #23966f;
  --sage: #80b49e;
  --gold: #a8741f;
  --indigo: #5e5ce6;
  --pink: #e2335f;
  --orange: #e46f22;
  --shadow: 0 1px 2px rgba(40, 30, 10, 0.05), 0 24px 60px -24px rgba(40, 30, 10, 0.28);
  --radius: 24px;
  --gutter: clamp(16px, 5vw, 48px);
  --wide: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --rounded: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* The painted valley, day. */
  --sky-a: linear-gradient(180deg, #c6d4e6 0%, #e4d9d6 48%, #f4cfae 82%, #f9e0c2 100%);
  --sky-b: linear-gradient(180deg, #9fc3e6 0%, #cadff0 46%, #efe8d8 82%, #f6f1e4 100%);
  --r1: #b8c3d1;
  --r1b: #c9d0d6;
  --r2: #a3b39b;
  --r3: #6f8c63;
  --r4: #c7b878;
  --tk: #e2d5a6;
  --fir: #3d5a3c;
  --bale: #d8b25e;
  --runner: #26252b;
  --sun: #fff1cf;
  --hero-ink: #1b1a20;
  --hero-ink-2: #3c3a44;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-2: #0b0b0d;
    --card: #121215;
    --ink: #f5f3ee;
    --ink-2: #aaa6af;
    --ink-3: #6f6b76;
    --line: rgba(255, 255, 255, 0.085);
    --green: #4ecca3;
    --gold: #e8b366;
    --pink: #ff4572;
    --orange: #ff8a3d;
    --shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 30px 70px -30px rgba(0, 0, 0, 0.9);

    /* The painted valley, night into dawn. */
    --sky-a: linear-gradient(180deg, #04050d 0%, #0a0f2c 34%, #1c1f4b 62%, #392c58 82%, #57395b 100%);
    --sky-b: linear-gradient(180deg, #121836 0%, #35386a 28%, #845777 56%, #df946b 80%, #f3c486 100%);
    --r1: #2b2649;
    --r1b: #251f3e;
    --r2: #1c1834;
    --r3: #110e20;
    --r4: #07060c;
    --tk: #1d1822;
    --fir: #000000;
    --bale: #16121c;
    --runner: #f2c27a;
    --sun: #ffd9a0;
    --hero-ink: #f7f4ee;
    --hero-ink-2: #cfc9d6;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--rounded); letter-spacing: -0.02em; line-height: 1.08; }
p { margin: 0; }
.wide { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 8px; z-index: 50; background: var(--card); padding: 8px 12px; border-radius: 10px; }

/* ---------- top bar ---------- */

.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.bar .wide { display: flex; align-items: center; gap: 20px; height: 60px; }
.bar.scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font: 700 19px/1 var(--rounded); text-decoration: none; color: var(--hero-ink); }
.bar.scrolled .brand { color: var(--ink); }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.bar nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.bar nav a { color: var(--hero-ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.bar.scrolled nav a { color: var(--ink-2); }
.bar nav a:hover { color: var(--hero-ink); }
.bar.scrolled nav a:hover { color: var(--ink); }
.bar nav .get {
  color: #fff; background: #111; padding: 8px 14px; border-radius: 999px; font-weight: 600;
}
@media (prefers-color-scheme: dark) { .bar nav .get, .bar.scrolled nav .get { background: #f5f3ee; color: #000; } }
.bar.scrolled nav .get { color: #fff; }
@media (prefers-color-scheme: dark) { .bar.scrolled nav .get { color: #000; } }
@media (max-width: 640px) { .bar nav .opt { display: none; } }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 999px;
  font: 600 17px/1 system-ui, -apple-system, sans-serif; text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-store { background: #111; color: #fff; }
.btn-store svg { width: 20px; height: 20px; fill: currentColor; margin-top: -3px; }
.btn-quiet { color: var(--hero-ink); background: color-mix(in srgb, var(--hero-ink) 9%, transparent); }
@media (prefers-color-scheme: dark) {
  .btn-store { background: #f5f3ee; color: #000; }
}

/* ---------- hero: the painted valley ---------- */

.hero {
  --p: 0.62;                        /* 0 = first light, 1 = morning. JS drives it. */
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(100svh, 700px);
  color: var(--hero-ink);
  display: grid;
  padding-top: 96px;
}
.sky { position: absolute; inset: 0; z-index: -6; }
.sky-a { background: var(--sky-a); }
.sky-b { background: var(--sky-b); opacity: var(--p); }
.layer { position: absolute; left: 0; bottom: 0; width: 100%; will-change: transform; }
.stars { z-index: -5; top: 0; height: 70%; fill: #fff; opacity: calc(1 - var(--p) * 1.4); }
@media (prefers-color-scheme: light) { .stars, .moon { display: none; } }
.moon {
  position: absolute; z-index: -5; right: 12%; top: 16%; width: 46px; height: 46px; border-radius: 50%;
  background: radial-gradient(circle at 38% 36%, #fffaf0 0%, #ece4d6 60%, #d9cfbf 100%);
  opacity: calc(0.95 - var(--p) * 1.3);
  transform: translateY(calc(var(--p) * -40px));
}
.sun {
  position: absolute; z-index: -4; left: 54%; bottom: max(30vw, 330px); width: clamp(70px, 7vw, 110px); aspect-ratio: 1;
  margin-left: calc(clamp(70px, 7vw, 110px) / -2); border-radius: 50%;
  background: radial-gradient(circle, var(--sun) 0%, var(--sun) 62%, color-mix(in srgb, var(--sun) 0%, transparent) 72%);
  transform: translateY(calc((1 - var(--p)) * 150px));
}
@media (max-width: 899px) { .sun { left: 78%; bottom: 390px; } }
.l1 { z-index: -3; height: max(43.75vw, 420px); fill: var(--r1); transform: translate3d(0, calc(var(--p) * 18px), 0); }
.l2 { z-index: -2; height: max(35vw, 330px); transform: translate3d(0, calc(var(--p) * 30px), 0); }
.l3 { z-index: -1; height: max(28.75vw, 260px); transform: translate3d(0, calc(var(--p) * 46px), 0); }
.l4 { z-index: 3; height: max(25vw, 190px); transform: translate3d(0, calc(var(--p) * 70px), 0); }
.r1 { fill: var(--r1); } .r1b { fill: var(--r1b); } .r2 { fill: var(--r2); }
.r3 { fill: var(--r3); } .r4 { fill: var(--r4); } .tk { fill: var(--tk); }
.fir { fill: var(--fir); } .bale { fill: var(--bale); }
.runner { stroke: var(--runner); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.runner circle { fill: var(--runner); stroke: none; }
.runner .pose-b { display: none; }
.runner.b .pose-a { display: none; }
.runner.b .pose-b { display: inline; }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; z-index: 4;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.hero-inner {
  position: relative; z-index: 2; width: 100%;
  display: grid; gap: 40px; align-items: start;
  grid-template-columns: 1fr;
  justify-items: center; text-align: center;
}
.hero-copy { max-width: 640px; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--hero-ink-2); margin-bottom: 14px; text-wrap: balance; }
.hero h1 { font-size: clamp(42px, 7.4vw, 84px); font-weight: 800; text-wrap: balance; }
.hero .lede { margin-top: 20px; font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--hero-ink-2); text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; justify-content: center; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 22px 0 0; padding: 0; list-style: none; justify-content: center;
  font-size: 15px; color: var(--hero-ink-2); }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.hero-phone {
  width: clamp(250px, 64vw, 300px);
  transform: translate3d(0, calc(var(--p) * -50px), 0);
  margin-bottom: -40px;
  align-self: end;
}

@media (min-width: 900px) {
  .hero { padding-top: 120px; }
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; justify-items: start; text-align: left; align-items: center; min-height: calc(max(100svh, 700px) - 120px); }
  .hero-copy { padding-bottom: 18vw; }
  .cta, .facts { justify-content: flex-start; }
  .hero-phone { justify-self: center; width: clamp(280px, 24vw, 330px); margin-bottom: 0; align-self: end; }
}

/* ---------- phone frame ---------- */

.phone {
  position: relative; border-radius: 17% / 7.8%; padding: 3.2%;
  background: linear-gradient(145deg, #2a2a2e, #0c0c0e 40%, #1b1b1f);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.14), var(--shadow), 0 40px 80px -40px rgba(0, 0, 0, 0.55);
}
.phone .screen-wrap { position: relative; border-radius: 14% / 6.5%; overflow: hidden; aspect-ratio: 1206 / 2622; background: #000; }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone::after {
  content: ""; position: absolute; top: 4.6%; left: 50%; width: 28%; height: 3.2%; transform: translateX(-50%);
  border-radius: 999px; background: #000; z-index: 2;
}

/* ---------- sections ---------- */

section { position: relative; padding: clamp(80px, 12vw, 150px) 0; }
.kicker { font-size: 15px; font-weight: 700; color: var(--green); margin-bottom: 12px; }
.h2 { font-size: clamp(34px, 5.4vw, 60px); font-weight: 800; text-wrap: balance; }
.sub { margin-top: 18px; font-size: clamp(18px, 1.8vw, 20px); color: var(--ink-2); max-width: 620px; text-wrap: pretty; }
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }

/* ---------- the morning story ---------- */

.story-head { margin-bottom: clamp(40px, 7vw, 80px); }
.story { display: grid; gap: 0; }
.step { padding: 28px 0 56px; }
.step-num { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; color: var(--ink-3); margin-bottom: 12px; }
.step-num b { color: var(--c, var(--green)); }
.step h3 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; text-wrap: balance; }
.step p { margin-top: 14px; color: var(--ink-2); font-size: 18px; max-width: 520px; text-wrap: pretty; }
.step .words { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 0; list-style: none; }
.step .words li { padding: 7px 13px; border-radius: 999px; font-size: 15px; font-weight: 600; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.step .words li:nth-child(3) { background: color-mix(in srgb, var(--green) 16%, var(--card)); color: var(--green); box-shadow: none; }
.pill { display: inline-block; margin-left: 4px; padding: 2px 9px; border-radius: 999px; font-size: 13px; font-weight: 700;
  color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, transparent); vertical-align: 3px; }
.step-shot { width: min(260px, 70vw); margin: 30px auto 0; }
.stage { display: none; }

@media (min-width: 900px) {
  .story { grid-template-columns: 1fr 1fr; column-gap: 6vw; }
  .steps { grid-column: 1; }
  .step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding: 0; opacity: 0.32; transition: opacity 0.5s var(--ease); }
  .step.on { opacity: 1; }
  html:not(.motion) .step { opacity: 1; }
  .step-shot { display: none; }
  .stage { display: block; grid-column: 2; grid-row: 1; position: sticky; top: calc(50vh - min(330px, 40vh)); height: min(660px, 80vh); align-self: start; }
  .stage .phone { height: 100%; aspect-ratio: auto; width: auto; max-width: 100%; margin: 0 auto; aspect-ratio: 1206 / 2622; }
  .stage .screen-wrap { height: 100%; }
  .stage .scr { position: absolute; inset: 0; opacity: 0; transform: scale(1.03); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease); }
  .stage .scr.on { opacity: 1; transform: none; }
  html:not(.motion) .stage .scr:first-child { opacity: 1; }
}


/* ---------- field guide ---------- */

.guide-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 900px) { .guide-grid { grid-template-columns: 0.95fr 1.05fr; gap: 6vw; } }
.fan { position: relative; height: clamp(440px, 60vw, 600px); }
.fan .phone { position: absolute; width: clamp(200px, 46%, 270px); top: 0; }
.fan .phone:first-child { left: 4%; transform: rotate(-6deg) translateY(30px); }
.fan .phone:last-child { right: 4%; transform: rotate(5deg); }
.motion .fan .phone { transition: transform 1.1s var(--ease), opacity 0.8s var(--ease); }
.motion .fan:not(.in) .phone:first-child { transform: rotate(0deg) translate(30%, 70px); opacity: 0; }
.motion .fan:not(.in) .phone:last-child { transform: rotate(0deg) translate(-30%, 40px); opacity: 0; }
.quote { margin-top: 30px; padding: 22px 24px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); max-width: 520px; }
.quote p { font-size: 18px; }
.quote span { display: block; margin-top: 8px; font-size: 14px; color: var(--ink-3); }
.link { display: inline-flex; align-items: center; gap: 6px; margin-top: 24px; font-weight: 600; color: var(--green); text-decoration: none; font-size: 17px; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- after the run (always dark) ---------- */

.after { background: #050507; color: #f5f3ee; overflow: hidden; }
.after .sub { color: #aaa6af; }
.after .kicker { color: #ff8a3d; }
.topo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.topo path { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 1.2; }
.topo .route { stroke: #ff8a3d; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0.9; }
.motion .after .topo path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.motion .after.in .topo path { stroke-dashoffset: 0; transition: stroke-dashoffset 2.4s var(--ease) calc(var(--k, 0) * 70ms); }
.motion .after.in .topo .route { transition-duration: 3.2s; transition-delay: 0.4s; }
.after .wide { position: relative; z-index: 1; }
.after-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 900px) { .after-grid { grid-template-columns: 1fr 1fr; gap: 6vw; } }
.duo { display: flex; gap: 4%; justify-content: center; align-items: flex-start; }
.duo .phone { width: 48%; max-width: 280px; }
.duo .phone:last-child { margin-top: 70px; }
.after .list { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.after .list li { padding-left: 26px; position: relative; color: #d8d4dc; font-size: 17px; }
.after .list li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: #ff8a3d; }

/* ---------- map ---------- */

.map-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 900px) { .map-grid { grid-template-columns: 1.05fr 0.95fr; gap: 6vw; } .map-grid .duo { order: -1; } }

/* ---------- also in the app ---------- */

.tiles { display: grid; gap: 14px; margin-top: 48px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.tile h3 { font-size: 21px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.tile h3 i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.tile p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }

/* ---------- privacy ---------- */

.privacy { background: var(--bg-2); }
.privacy .h2 { max-width: 760px; margin: 0 auto; }
.lock { width: 64px; height: 64px; margin: 0 auto 26px; border-radius: 20px; display: grid; place-items: center; background: var(--card); box-shadow: var(--shadow); }
.lock svg { width: 28px; height: 28px; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- free and premium ---------- */

.plans { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 860px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { background: var(--card); border-radius: 28px; padding: 30px; box-shadow: var(--shadow); }
.plan h3 { font-size: 28px; font-weight: 800; }
.plan .note { margin-top: 6px; color: var(--ink-2); font-size: 16px; }
.plan ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.plan li { position: relative; padding-left: 30px; font-size: 17px; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 16px; height: 16px; border-radius: 50%;
  background: color-mix(in srgb, var(--c) 18%, transparent); box-shadow: inset 0 0 0 5px var(--card), inset 0 0 0 16px var(--c); }
.plan.free { --c: var(--green); }
.plan.premium { --c: var(--gold); }

/* ---------- maker + closing ---------- */

.maker { max-width: 720px; margin: 0 auto; }
.closing { position: relative; overflow: hidden; padding-bottom: 0; text-align: center; }
.closing .h2 { max-width: 800px; margin: 0 auto; }
.closing .cta { justify-content: center; margin-bottom: 40px; }
.closing .btn-quiet { color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.dusk { position: relative; height: max(30vw, 240px); margin-top: 20px; }
.dusk .layer { transform: none; will-change: auto; }
.dusk .l1 { height: 100%; }
.dusk .l3 { height: 72%; }
.dusk .l4 { height: 50%; z-index: 1; }
.dusk::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--bg) 0%, transparent 45%); z-index: 2; }
.dusk #runner { display: none; }

/* ---------- footer ---------- */

footer { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 15px; color: var(--ink-2); }
.foot { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
@media (min-width: 820px) { .foot { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot-brand { grid-column: 1 / -1; }
@media (min-width: 820px) { .foot-brand { grid-column: auto; } }
.foot-brand .brand { color: var(--ink); }
.foot-brand p { margin-top: 12px; max-width: 280px; }
.foot h4 { margin: 0 0 12px; font-size: 14px; color: var(--ink); }
.foot a { display: block; color: var(--ink-2); text-decoration: none; padding: 4px 0; }
.foot a:hover { color: var(--ink); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 40px; font-size: 14px; color: var(--ink-3); }

/* ---------- entrance and reveals ---------- */
/* Everything is visible without JS. The script adds .motion only when motion
   is welcome, and only then do elements start hidden and arrive. */

.motion .hero .l1, .motion .hero .l2, .motion .hero .l3, .motion .hero .l4 { translate: 0 60px; opacity: 0; }
.motion .hero.in .l1, .motion .hero.in .l2, .motion .hero.in .l3, .motion .hero.in .l4 {
  translate: 0 0; opacity: 1; transition: translate 1.6s var(--ease), opacity 1.2s var(--ease);
}
.motion .hero.in .l2 { transition-delay: 0.08s; }
.motion .hero.in .l3 { transition-delay: 0.16s; }
.motion .hero.in .l4 { transition-delay: 0.24s; }
.motion .hero .rise { opacity: 0; translate: 0 22px; }
.motion .hero.in .rise { opacity: 1; translate: 0 0; transition: opacity 0.9s var(--ease) var(--d, 0s), translate 1.1s var(--ease) var(--d, 0s); }
.motion .hero .hero-phone .phone { opacity: 0; translate: 0 120px; }
.motion .hero.in .hero-phone .phone { opacity: 1; translate: 0 0; transition: opacity 1s var(--ease) 0.45s, translate 1.5s var(--ease) 0.45s; }

.motion .reveal { opacity: 0; translate: 0 34px; }
.motion .reveal.in { opacity: 1; translate: 0 0; transition: opacity 0.9s var(--ease) var(--d, 0s), translate 1.1s var(--ease) var(--d, 0s); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------- phone-width hero: the valley and the phone share the first screen ---------- */
@media (max-width: 899px) {
  .hero { padding-top: 84px; min-height: 0; }
  .hero-inner { gap: 26px; }
  .eyebrow, .hero .btn-quiet { display: none; }
  .hero h1 { font-size: clamp(38px, 10.6vw, 56px); }
  .hero .lede { font-size: 17px; margin-top: 16px; }
  .cta { margin-top: 22px; }
  .facts { margin-top: 16px; font-size: 14px; }
  .hero-phone { width: min(62vw, 260px); margin-bottom: calc(min(62vw, 260px) * -0.95); }
  .l1 { height: max(43.75vw, 380px); }
  .l2 { height: max(35vw, 300px); }
  .l3 { height: max(28.75vw, 230px); }
  .l4 { height: max(25vw, 130px); }
  .moon { top: 70px; right: 7%; width: 30px; height: 30px; }
  .sun { bottom: 300px; }
}

.dusk { background: linear-gradient(180deg, var(--bg) 0%, var(--dusk, #3b2b4c) 100%); }
:root { --dusk: #f2d6b3; }
@media (prefers-color-scheme: dark) { :root { --dusk: #3a2747; } }

/* ---------- wide hero: one screen, the phone stands in the valley ---------- */
@media (min-width: 900px) {
  .hero { height: max(100svh, 720px); min-height: 0; }
  .hero-inner { min-height: 0; height: 100%; align-items: stretch; }
  .hero-copy { align-self: center; padding-bottom: 9vw; }
  .hero-phone { align-self: end; width: clamp(250px, 21vw, 300px); margin-bottom: calc(clamp(250px, 21vw, 300px) * -0.62); }
}

/* ---------- hero tuning after the first look ---------- */
.btn { white-space: nowrap; }
@media (max-width: 359px) { .btn { font-size: 16px; padding: 0 16px; } }
@media (max-width: 899px) {
  .moon { top: auto; bottom: 330px; right: 5%; width: 28px; height: 28px; }
  .sun { left: 11%; bottom: 250px; width: 64px; margin-left: -32px; }
}
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.3fr 0.7fr; }
  .hero h1 { font-size: clamp(52px, 5.4vw, 80px); }
  .hero-copy { align-self: start; padding: 3vh 0 0; max-width: 680px; }
  .sun { left: 88%; }
  .moon { right: 6%; top: 15%; }
  .l1 { bottom: -4vw; } .l2 { bottom: -3.4vw; } .l3 { bottom: -2.8vw; } .l4 { bottom: -2vw; }
}
h1, h2, h3 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.guide-grid > *, .after-grid > *, .map-grid > *, .story > * { min-width: 0; }

/* ======================================================================
   Motion, second pass. Every effect here is transform or opacity, driven by
   one scroll loop in home.js, and none of it runs for reduced motion.
   ====================================================================== */

/* Pointer depth on wide screens: layers drift a few pixels with the cursor. */
.l1 { transform: translate3d(calc(var(--mx, 0) * -6px), calc(var(--p) * 18px), 0); }
.l2 { transform: translate3d(calc(var(--mx, 0) * -10px), calc(var(--p) * 30px), 0); }
.l3 { transform: translate3d(calc(var(--mx, 0) * -16px), calc(var(--p) * 46px), 0); }
.l4 { transform: translate3d(calc(var(--mx, 0) * -26px), calc(var(--p) * 70px), 0); }
.hero-phone { transform: translate3d(calc(var(--mx, 0) * 8px), calc(var(--p) * -50px + var(--my, 0) * 6px), 0); }
.sun { transform: translate3d(calc(var(--mx, 0) * -3px), calc((1 - var(--p)) * 150px), 0); }

/* Clouds by day: soft lenses that slide apart as the morning comes. */
.clouds { position: absolute; inset: 0; z-index: -4; pointer-events: none; }
.clouds i { position: absolute; display: block; width: 34vw; max-width: 460px; aspect-ratio: 4 / 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0)); opacity: calc(0.5 + var(--p) * 0.5); }
.clouds i:nth-child(1) { top: 16%; left: 6%; transform: translate3d(calc(var(--p) * -60px), 0, 0); }
.clouds i:nth-child(2) { top: 27%; left: 58%; width: 26vw; transform: translate3d(calc(var(--p) * 80px), 0, 0); }
.clouds i:nth-child(3) { top: 9%; left: 70%; width: 18vw; transform: translate3d(calc(var(--p) * 40px), 0, 0); opacity: calc(0.35 + var(--p) * 0.4); }
@media (prefers-color-scheme: dark) { .clouds { display: none; } }

/* Fireflies by night, like the app's own valley. They leave at dawn. */
.flies { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: calc(1 - var(--p) * 1.8); }
.flies i { position: absolute; left: var(--x); top: var(--y); width: 4px; height: 4px; border-radius: 50%; background: #ffe7a3; opacity: 0; }
.motion .flies i { animation: fly var(--t) ease-in-out var(--o) infinite; }
@keyframes fly {
  0% { opacity: 0; transform: translate3d(0, 0, 0); }
  30% { opacity: 0.9; }
  60% { opacity: 0.25; transform: translate3d(14px, -18px, 0); }
  100% { opacity: 0; transform: translate3d(-6px, -30px, 0); }
}
@media (prefers-color-scheme: light) { .flies { display: none; } }

/* Headlines arrive word by word. home.js wraps the words; without it, plain text. */
.split .w { display: inline-block; overflow: clip; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split .w > span { display: inline-block; }
.motion .split .w > span { transform: translate3d(0, 105%, 0); }
.motion .hero.in .split .w > span,
.motion .in .split .w > span,
.motion .split.in .w > span {
  transform: none; transition: transform 1s var(--ease) calc(var(--d, 0s) + var(--i) * 55ms);
}
.motion .hero .split.rise { opacity: 1; translate: none; }

/* Story: one dot per step under the phone, and a soft lift when the screen changes. */
.dots { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.dots i { width: 8px; height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 18%, transparent); transition: width 0.5s var(--ease), background 0.5s var(--ease); }
.dots i.on { width: 26px; background: var(--c); }
@media (min-width: 900px) {
  .stage { height: auto; }
  .stage .phone { height: min(620px, 74vh); }
  .stage .phone { transition: transform 0.9s var(--ease); }
  .stage.swap .phone { transform: translateY(-6px) rotate(-0.6deg); }
}

/* Paired phones drift at different speeds as you pass them. */
.duo .phone.par { transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }

/* Flyover band: the route draws as you scroll through it, with a marker at its head. */
.motion .after .topo .route { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--rp, 0)); transition: none; }
.rhead { fill: #ff8a3d; stroke: #050507; stroke-width: 3; opacity: 0; }
.motion .rhead { opacity: calc(var(--rp, 0) * 8); }

/* FAQ */
.faq-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 0.8fr 1.2fr; gap: 6vw; align-items: start; } }
.faq { display: grid; gap: 10px; min-width: 0; }
.qa { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 20px; }
.qa h3 { font-size: 19px; font-weight: 700; }
.qa p { padding: 0 22px 22px; color: var(--ink-2); font-size: 17px; }
.plus { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: color-mix(in srgb, var(--green) 14%, transparent); }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--green); transition: transform 0.35s var(--ease); }
.plus::after { transform: rotate(90deg); }
.qa[open] .plus::after { transform: rotate(0deg); }
.motion .qa[open] p { animation: qa-in 0.45s var(--ease); }
@keyframes qa-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Closing: the sun sets behind the hills and the first stars come out. */
.dusk { --dp: 1; }
.dusk-sun { position: absolute; left: 70%; bottom: 30%; width: clamp(60px, 7vw, 100px); aspect-ratio: 1; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, var(--sun) 0%, var(--sun) 62%, transparent 72%);
  box-shadow: 0 0 90px 40px color-mix(in srgb, var(--sun) 28%, transparent);
  transform: translate3d(0, calc(var(--dp) * 55%), 0); }
.dusk-stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; fill: #fff; opacity: calc((var(--dp) - 0.5) * 2); }
.dusk-stars circle { opacity: var(--s); }
@media (prefers-color-scheme: light) { .dusk-stars { display: none; } }
.dusk .l1, .dusk .l3, .dusk .l4 { z-index: 1; }

/* Buttons and cards answer the pointer. */
@media (hover: hover) {
  .btn-store:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.45); }
  .tile, .plan, .qa { transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
  .tile:hover, .plan:hover { transform: translateY(-4px); }
}

/* Phone-width hero shows its keyword line too. */
@media (max-width: 899px) { .eyebrow { display: block; font-size: 14px; margin-bottom: 10px; } }

@media (prefers-reduced-motion: reduce) {
  .flies { display: none; }
}

/* Store rating under the facts. */
.proof { margin: 12px 0 0; font-size: 14px; color: var(--hero-ink-2); display: flex; align-items: center; gap: 8px; justify-content: center; flex-wrap: wrap; }
.proof .rating-stars { color: #f2b544; letter-spacing: 1px; font-size: 15px; }
@media (min-width: 900px) { .proof { justify-content: flex-start; } }

/* Round 3 fixes from the design critique. */
@media (min-width: 900px) {
  .hero-phone { width: clamp(300px, 25vw, 380px); margin-bottom: calc(clamp(300px, 25vw, 380px) * -0.5); }
  .sun { left: 57%; }
}
.foot .brand { display: flex; }
@media (prefers-color-scheme: dark) {
  :root { --bg-2: #111114; }
  .after { background: radial-gradient(120% 80% at 85% 100%, rgba(255, 122, 40, 0.16), transparent 60%), linear-gradient(180deg, #0c1024 0%, #050507 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
}

/* Night to morning: the hero pins on wide screens while the phone turns from
   last night's sleep into this morning's call. Without JS or with reduced
   motion it is a normal hero showing the morning. */
.hero-ph .screen-wrap { position: relative; }
.hs { position: absolute; inset: 0; }
.hs picture { display: block; height: 100%; }
.hs-sleep { display: none; }
.motion .hs-sleep { display: block; opacity: calc(1 - var(--sw, 1)); }
.motion .hs-home { transform: scale(calc(1.05 - 0.05 * var(--sw, 1))); transform-origin: 50% 30%; }
.hero-phone { position: relative; }
.chip { position: absolute; z-index: 3; margin: 0; display: flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 11px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink);
  background: color-mix(in srgb, var(--card) 84%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 18px 40px -16px rgba(0,0,0,.45); border: 1px solid var(--line); }
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--indigo); box-shadow: 0 0 0 4px color-mix(in srgb, var(--indigo) 22%, transparent); }
.chip b { font-family: var(--rounded); font-weight: 800; color: var(--green); font-size: 17px; }
.chip-night { top: 20%; right: 88%; }
.chip-day { top: 38%; right: 84%; }
html:not(.motion) .chip-night { display: none; }
.motion .chip-night { opacity: calc(1 - var(--sw, 1) * 1.8); transform: translate3d(calc(var(--sw, 1) * -30px), 0, 0); }
.motion .chip-day { opacity: 0; transform: translate3d(0, 14px, 0) scale(0.86); transition: opacity .45s var(--ease), transform .6s var(--bounce); }
.motion .hero.day .chip-day { opacity: 1; transform: none; }
@media (max-width: 899px) {
  .chip { font-size: 12px; padding: 8px 12px; gap: 7px; }
  .chip b { font-size: 14px; }
  .chip-night { top: 12%; right: auto; left: -14%; }
  .chip-day { top: 26%; right: -12%; }
}
@media (max-width: 380px) { .chip-night { left: -6%; } .chip-day { right: -4%; } }
@media (min-width: 900px) {
  .motion .hero-run { height: 190svh; }
  .motion .hero-run > .hero { position: sticky; top: 0; }
}
/* Hero tuning after the first pinned render. */
.motion .hs-sleep { opacity: 1; clip-path: inset(0 0 calc(var(--sw, 1) * 100%) 0); }
.hs-edge { display: none; }
.motion .hs-edge { display: block; position: absolute; left: 0; right: 0; height: 18%; top: calc((1 - var(--sw, 1)) * 100% - 9%);
  background: radial-gradient(60% 50% at 50% 50%, color-mix(in srgb, var(--sun) 70%, transparent), transparent 70%);
  opacity: calc(min(var(--sw, 1), 1 - var(--sw, 1)) * 3); pointer-events: none; mix-blend-mode: screen; }
.chip-night { top: 41%; right: auto; left: 56%; }
.chip-day { top: 57%; right: auto; left: 50%; }
@media (max-width: 899px) {
  .chip-night { top: 40%; left: -7%; }
  .chip-day { top: 58%; left: auto; right: -7%; }
}
@media (max-width: 380px) { .chip-night { left: -3%; } .chip-day { right: -3%; } }
@media (min-width: 900px) {
  .sun { left: 93%; }
  .sun { transform: translate3d(calc(var(--mx, 0) * -3px), calc((1 - var(--p)) * 300px), 0); }
}
@media (min-width: 900px) { .chip-night { top: 53%; left: 60%; } .chip-day { top: 45%; left: 52%; } }

/* Story on phones: a swipeable row of cards instead of five stacked phones. */
@media (max-width: 899px) {
  .steps { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 24px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .steps::-webkit-scrollbar { display: none; }
  .step { flex: 0 0 min(84vw, 360px); scroll-snap-align: start; padding: 24px 20px 0; border-radius: 28px; background: var(--card);
    box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
  .step h3 { font-size: 26px; }
  .step p { font-size: 16px; }
  .step-shot { width: 78%; margin: 22px auto 0; flex: none; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent);
    max-height: 420px; overflow: hidden; }
  .step .step-shot.reveal { opacity: 1; transform: none; }
}

/* Closing: a bigger last ask. */
.closing .h2 { font-size: clamp(40px, 7vw, 76px); }
.closing .btn-store { min-height: 60px; padding: 0 30px; font-size: 19px; }
.dusk-sun { width: clamp(80px, 9vw, 130px); }

/* Flyover band: the contour map tilts like a camera flying in as the route draws. */
.motion .after .topo { transform-origin: 50% 80%; will-change: transform;
  transform: perspective(1100px) rotateX(calc(52deg - var(--rp, 0) * 30deg)) scale(calc(1.5 - var(--rp, 0) * 0.25)) translate3d(0, calc(var(--rp, 0) * -40px), 0); }
.motion .after .rhead { filter: drop-shadow(0 0 10px #ff8a3d); }
.topo .route-glow { fill: none; stroke: #ff8a3d; stroke-width: 14; stroke-linecap: round; opacity: 0.16; filter: blur(6px); }
.motion .after .topo .route-glow { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--rp, 0)); }
@media (prefers-color-scheme: light) { .after .topo path:not(.route):not(.route-glow) { stroke: rgba(255, 255, 255, 0.09); } }

/* ---------- hero art: haze, bales, firs, deer, warm light ----------
   Companion to scripts/landscape.py. The valley SVG reads these variables;
   without them the haze ramps fall back to transparent. */
:root {
  --haze: #fbf4ea;            /* atmosphere between the ridges, day */
}
@media (prefers-color-scheme: dark) {
  :root { --haze: #8d6b97; }  /* dusky rose before dawn */
}

/* Treeline a shade deeper than its hill, like the app's wood band. */
.wd { fill: color-mix(in srgb, var(--r3) 74%, var(--fir)); }

/* Round bales: rolled body in shade, end face catching the sun. */
.bale-b { fill: color-mix(in srgb, var(--bale) 80%, #5c3b0e); }
.bale-f { fill: color-mix(in srgb, var(--bale) 64%, #fff3d2); }
@media (prefers-color-scheme: dark) {
  .bale-b { fill: color-mix(in srgb, var(--bale) 88%, var(--sun)); }
  .bale-f { fill: color-mix(in srgb, var(--bale) 74%, var(--sun)); }
  .bale-r { stroke: var(--sun); stroke-opacity: 0.14; }
  .bale-sh { fill: #000; fill-opacity: 0.5; }
  .deer { fill: #1a1522; fill-opacity: 1; }
}

/* Warm light, day only: a glow band along the horizon and faint rays from the sun. */
@media (prefers-color-scheme: light) {
  .hero .sky-a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 58%;
    background:
      radial-gradient(70% 60% at 82% 100%, rgba(255, 222, 170, 0.55), rgba(255, 222, 170, 0) 70%),
      linear-gradient(to top, rgba(255, 236, 205, 0.5), rgba(255, 236, 205, 0) 80%);
    pointer-events: none;
  }
  .hero .sun::before {
    content: ""; position: absolute; left: 50%; top: 50%; width: 1100%; aspect-ratio: 1; translate: -50% -50%;
    border-radius: 50%; pointer-events: none;
    background: repeating-conic-gradient(from 8deg, rgba(255, 244, 214, 0) 0deg 7deg, rgba(255, 244, 214, 0.22) 8.5deg 10deg, rgba(255, 244, 214, 0) 11.5deg 19deg);
    -webkit-mask-image: radial-gradient(closest-side, #000 8%, rgba(0, 0, 0, 0.5) 40%, transparent 100%);
    mask-image: radial-gradient(closest-side, #000 8%, rgba(0, 0, 0, 0.5) 40%, transparent 100%);
  }
  .hero .sun { box-shadow: 0 0 120px 50px rgba(255, 236, 196, 0.45); }
}

/* The runner's far-side arm and leg sit a tone back, so the stride reads in depth. */
.runner .far { stroke: color-mix(in srgb, var(--runner) 58%, var(--r4)); }
@media (min-width: 900px) { .chip-day { top: 51%; } }

/* The Coach (the app's acorn) and its capsule. */
.coach { display: block; width: 100%; height: 100%; overflow: visible; }
.coach-body { transform-box: view-box; transform-origin: 50% 98%; }
.coach .glad { opacity: 0; transition: opacity .2s; }
.coach .eyes { transition: opacity .2s; }
.coach .eye { transform-box: fill-box; transform-origin: 50% 50%; transition: transform .18s var(--ease); }
.coach.is-glad .glad { opacity: 1; } .coach.is-glad .eyes { opacity: 0; }
.coach.is-squint .eye { transform: scaleY(.45); }
.coach.blink .eye { transform: scaleY(.1); transition-duration: .08s; }
.coach.hello .coach-body { animation: coach-hello .9s var(--ease); }
.coach.nod .coach-body { animation: coach-nod .5s var(--ease); }
@keyframes coach-hello { 0% { transform: none; } 14% { transform: scale(1.07, .92); } 38% { transform: translateY(-5%) scale(.95, 1.06); } 62% { transform: none; } 76% { transform: scale(1.08, .92); } 90% { transform: scale(.98, 1.02); } 100% { transform: none; } }
@keyframes coach-nod { 0% { transform: none; } 40% { transform: scale(1.05, .93); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .coach.hello .coach-body, .coach.nod .coach-body { animation: none; } }

/* Reviews. */
.reviews { padding-top: 0; }
.rv-grid { display: grid; gap: 16px; margin-top: clamp(32px, 5vw, 56px); }
@media (min-width: 900px) { .rv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; } }
.rv { margin: 0; padding: 26px 24px 22px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rv:first-child { background: linear-gradient(160deg, color-mix(in srgb, var(--green) 14%, var(--card)), var(--card) 60%); }
.rv-title { margin: 0; font: 750 clamp(20px, 2vw, 24px)/1.2 var(--rounded); letter-spacing: -0.01em; color: var(--ink); }
.rv-text { margin: 0; font-size: 16.5px; line-height: 1.5; color: var(--ink-2); flex: 1; text-wrap: pretty; }
.rv figcaption { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
@media (hover: hover) { .rv { transition: transform .4s var(--ease); } .rv:hover { transform: translateY(-4px) rotate(-.3deg); } }

/* Closing: the Coach waves you off. */
.closing-coach { width: 92px; height: 92px; margin: 0 auto 22px; padding: 14px; border-radius: 28px; background: #8fcb72; box-shadow: 0 18px 40px -16px rgba(60, 120, 40, .6); cursor: pointer; }
.closing-coach .coach { pointer-events: none; }
.duo .phone { transition: transform .5s var(--ease); }
.duo .phone.par { transform: translate3d(0, var(--py, 0px), 0) perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.footnote { margin-top: 18px; font-size: 14px; color: var(--ink-3); }

/* Cinematic hero: on phones the run pins too, the copy steps back and the
   phone climbs out of the valley, upright, over it; a glint crosses the glass
   as night turns to morning. */
.motion .hero-ph { transform-origin: 50% 0; transform: perspective(1000px) rotateX(calc((1 - min(var(--hr, 1) * 2, 1)) * 9deg)); }
.motion .hero-ph .screen-wrap::after {
  content: ""; position: absolute; inset: -10% -70%; z-index: 2; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .26) 50%, transparent 58%);
  transform: translate3d(calc((clamp(0, (var(--hr, 0) - .25) / .5, 1) * 2 - 1) * 60%), 0, 0);
  opacity: calc(min(clamp(0, (var(--hr, 0) - .25) / .5, 1), 1 - clamp(0, (var(--hr, 0) - .25) / .5, 1)) * 3);
}
@media (max-width: 899px) {
  .motion .hero-run { height: 210svh; }
  .motion .hero .chip { display: none; }
  .motion .hero-run > .hero { position: sticky; top: 0; height: 100svh; overflow: hidden; }
  .motion .hero.in .hero-copy { transform: translate3d(0, calc(var(--hr, 0) * -7svh), 0) scale(calc(1 - var(--hr, 0) * .06)); opacity: calc(1 - var(--hr, 0) * 3); }
  .motion .hero-ph { transform: translate3d(0, calc(min(var(--hr, 0) * 1.5, 1) * var(--rise, -50svh)), 0) perspective(1000px) rotateX(calc((1 - min(var(--hr, 0) * 1.5, 1)) * 16deg)) scale(calc(1 + min(var(--hr, 0) * 1.5, 1) * .2)); }
}
