@font-face {
  font-family: "Onest";
  src: url("assets/fonts/onest-cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #05070d;
  --ink: #f7f3ea;
  --soft: #d7d5d0;
  --dim: #a7abb0;
  --gold: #e9c36c;
  --leaf: #1c392e;
  --blue: #7ea9d9;
  --edge: clamp(18px, 4vw, 64px);
  --top: max(18px, env(safe-area-inset-top));
  --bottom: max(18px, env(safe-area-inset-bottom));
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-cinematic: cubic-bezier(.45, 0, .15, 1);
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--night);
  color: var(--ink);
}

body {
  position: fixed;
  inset: 0;
  min-width: 320px;
  font-family: "Onest", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

button, a { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.show {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100svh;
  min-height: 580px;
  overflow: hidden;
  background: var(--night);
}

.cosmos {
  position: absolute;
  inset: -3%;
  z-index: 0;
  width: 106%;
  height: 106%;
  object-fit: cover;
  filter: brightness(.7) saturate(.88) contrast(1.05);
  transform: scale(1.02);
  transition: transform 2.4s var(--ease-cinematic), filter 1.4s ease;
}

.show.is-open .cosmos:not(.cosmos--echo) { transform: scale(1.07); filter: brightness(.77) saturate(.98) contrast(1.03); }
.show.scene-site .cosmos:not(.cosmos--echo) { transform: scale(1.09) translateX(-1.5%); }
.show.scene-app .cosmos:not(.cosmos--echo) { transform: scale(1.1) translateX(1%); }
.show.scene-bot .cosmos:not(.cosmos--echo) { transform: scale(1.12) translateY(-1%); }
.show.scene-route .cosmos:not(.cosmos--echo) { transform: scale(1.13) translateX(-1%); }
.show.scene-launch .cosmos:not(.cosmos--echo) { transform: scale(1.18); filter: brightness(.92) saturate(1.08) contrast(1.04); }

.cosmos--echo {
  z-index: 1;
  opacity: .2;
  mix-blend-mode: screen;
  object-position: 66% 42%;
  animation: cosmic-shimmer 10s var(--ease-cinematic) infinite alternate;
}

@keyframes cosmic-shimmer {
  0% { opacity: .12; filter: brightness(.82) saturate(.9) hue-rotate(-8deg); transform: scale(1.08) translate3d(-1%, 0, 0); }
  52% { opacity: .28; filter: brightness(1.04) saturate(1.18) hue-rotate(7deg); }
  100% { opacity: .16; filter: brightness(.9) saturate(1.06) hue-rotate(16deg); transform: scale(1.16) translate3d(2%, -1.5%, 0); }
}

.star-dust, .front-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.star-dust { z-index: 1; }
.front-fx { z-index: 9; }

.tulle {
  position: absolute;
  inset: 0;
  z-index: 8;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  opacity: .92;
  filter: brightness(.72) saturate(.75);
  transform: scale(1.02);
  transform-origin: 50% 0;
  transition: opacity 1.2s ease, transform 1.8s var(--ease-out), filter 1.2s ease;
}

.show.is-open .tulle { opacity: .72; transform: scale(1.06); filter: brightness(.84) saturate(.82); }
.show.scene-launch .tulle { opacity: .24; transform: scale(1.18); }

.garden {
  position: absolute;
  left: 0;
  bottom: -4%;
  z-index: 9;
  width: 100%;
  height: auto;
  max-height: 92%;
  pointer-events: none;
  filter: brightness(.72) saturate(.78) drop-shadow(0 -24px 42px rgba(0, 0, 0, .58)); /* taste-skill-ignore -- theatrical foreground depth requested */
  transform: scale(1.16) translateY(6%);
  transform-origin: 50% 100%;
  transition: transform 1.5s var(--ease-out), filter 1.3s ease, opacity 1s ease;
}

.show.is-open .garden { transform: scale(1) translateY(0); filter: brightness(.92) saturate(.92) drop-shadow(0 -24px 42px rgba(0, 0, 0, .58)); } /* taste-skill-ignore -- theatrical foreground depth requested */
.show.scene-launch .garden { transform: scale(1.12) translateY(14%); opacity: .84; filter: brightness(1.04) saturate(1.08) drop-shadow(0 -20px 38px rgba(0, 0, 0, .42)); } /* taste-skill-ignore -- theatrical foreground depth requested */

.topbar {
  position: absolute;
  top: var(--top);
  left: var(--edge);
  right: var(--edge);
  z-index: 14;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.stage, .progress, .topbar { transition: opacity 700ms ease; }
.show.is-prelude .stage, .show.is-prelude .progress, .show.is-prelude .topbar { opacity: 0; visibility: hidden; pointer-events: none; }

.brand {
  min-height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.brand span { display: block; font-size: 17px; font-weight: 720; letter-spacing: -.035em; }
.brand small { display: block; margin-top: 1px; color: var(--dim); font-size: 13px; font-weight: 520; letter-spacing: .02em; }

.quiet-button {
  min-width: 96px;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid rgba(247, 243, 234, .34);
  border-radius: 999px;
  background: rgba(5, 7, 13, .34);
  color: var(--soft);
  font-size: 13px;
  font-weight: 620;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.quiet-button:hover { background: var(--ink); color: var(--night); border-color: var(--ink); }
.quiet-button:active { transform: scale(.97); }

.stage { position: absolute; inset: 0; z-index: 10; }
.scene { position: absolute; inset: 0; display: grid; place-items: center; padding: calc(var(--top) + 60px) var(--edge) calc(var(--bottom) + 64px); }

.scene-copy {
  position: relative;
  z-index: 6;
  width: min(880px, 72vw);
  margin-top: -5vh;
  text-align: center;
}

.scene-word {
  display: none;
}

h1, h2 {
  margin: 0;
  font-weight: 560;
  line-height: .94;
  letter-spacing: -.066em;
  text-wrap: balance;
}

h1 { font-size: clamp(56px, 7.3vw, 112px); }
h2 { font-size: clamp(50px, 6.8vw, 102px); }
h1 em, h2 em { color: var(--gold); font-style: normal; font-weight: 620; }

.scene-text {
  max-width: 650px;
  margin: 28px auto 0;
  color: var(--ink);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.55;
  text-wrap: pretty;
}

.prelude {
  position: absolute;
  inset: 0;
  z-index: 30;
  overflow: hidden;
  background: #172017;
  transition: visibility 0s linear 1.35s;
}

.collage-panel {
  position: absolute;
  inset: -2%;
  background: url("assets/showreel/botanical-collage-v3.webp?v=4") center / cover no-repeat;
  filter: saturate(.88) contrast(1.02) brightness(.72);
  transition: transform 1.45s var(--ease-cinematic), filter 900ms ease;
  will-change: transform;
  animation: collage-settle 1.1s var(--ease-out) both;
}

@keyframes collage-settle { from { opacity: .72; transform: scale(1.035); } to { opacity: 1; transform: scale(1); } }

.collage-panel--left { clip-path: polygon(0 0, 51% 0, 51% 100%, 0 100%); }
.collage-panel--right { clip-path: polygon(49% 0, 100% 0, 100% 100%, 49% 100%); }

.prelude::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 4, .34);
  pointer-events: none;
  transition: opacity 700ms ease;
}

.prelude-copy {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 24px;
  text-align: center;
  transition: opacity 520ms ease, transform 850ms var(--ease-out), filter 520ms ease;
}

.prelude-mark {
  margin: 0;
  color: var(--ink);
  font-size: clamp(86px, 16vw, 240px);
  font-weight: 820;
  line-height: .73;
  letter-spacing: -.085em;
}

.prelude-mark span { display: block; animation: prelude-line-in 760ms var(--ease-out) both; }
.prelude-mark span + span { animation-delay: 80ms; }
@keyframes prelude-line-in { from { opacity: 0; filter: blur(8px); transform: translateY(28px); } to { opacity: 1; filter: blur(0); transform: translateY(0); } }

.prelude-note {
  max-width: 36ch;
  margin: 36px 0 0;
  color: var(--ink);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.45;
  animation: prelude-detail-in 620ms 180ms var(--ease-out) both;
}

.prelude-button {
  min-width: min(360px, calc(100vw - 40px));
  min-height: 62px;
  margin-top: 30px;
  padding: 15px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: var(--night);
  font-size: 17px;
  font-weight: 750;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease;
  animation: prelude-detail-in 620ms 260ms var(--ease-out) both;
}

@keyframes prelude-detail-in { from { opacity: 0; filter: blur(6px); transform: translateY(20px); } to { opacity: 1; filter: blur(0); transform: translateY(0); } }

.prelude-button:hover { background: var(--ink); }
.prelude-button:active { transform: scale(.97); }

.show.is-opening .collage-panel--left { transform: translate3d(-56%, 0, 0) rotate(-1.5deg) scale(1.03); filter: saturate(.96) brightness(.86); }
.show.is-opening .collage-panel--right { transform: translate3d(56%, 0, 0) rotate(1.5deg) scale(1.03); filter: saturate(.96) brightness(.86); }
.show.is-opening .prelude-copy { opacity: 0; filter: blur(8px); transform: translateY(-46px) scale(.96); }
.show.is-opening .prelude::after { opacity: 0; }
.show.is-revealed .prelude { visibility: hidden; pointer-events: none; transition: none; }

.scene-copy.is-leaving { animation: copy-leave 420ms cubic-bezier(.55, 0, 1, .45) both; }
.scene-copy.is-entering { animation: copy-enter 620ms var(--ease-out) both; }
@keyframes copy-leave { to { opacity: 0; filter: blur(7px); transform: translateY(-28px) scale(.98); } }
@keyframes copy-enter { from { opacity: 0; filter: blur(7px); transform: translateY(32px) scale(.98); } to { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); } }

.scene-actions {
  position: absolute;
  z-index: 13;
  left: 50%;
  bottom: calc(var(--bottom) + 20px);
  display: grid;
  justify-items: center;
  gap: 9px;
  width: min(440px, calc(100% - 36px));
  transform: translateX(-50%);
}

.main-button {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 62px;
  padding: 15px 26px;
  border: 0;
  border-radius: 18px;
  background: var(--ink);
  color: var(--night);
  font-weight: 720;
  font-size: 17px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, background-color 160ms ease, color 160ms ease;
}

.main-button:hover { background: var(--gold); }
.main-button:active { transform: scale(.97); }
.main-button.is-working { color: transparent; pointer-events: none; }
.main-button.is-working::after { content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid rgba(5, 7, 13, .28); border-top-color: var(--night); border-radius: 50%; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.tap-note { margin: 0; color: var(--soft); font-size: 13px; }

.progress {
  position: absolute;
  z-index: 14;
  left: 50%;
  top: calc(var(--top) + 17px);
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

.progress-dot {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.progress-dot::before { content: ""; display: block; width: 7px; height: 7px; margin: auto; border-radius: 50%; background: rgba(247, 243, 234, .32); transition: transform 180ms ease, background-color 180ms ease; }
.progress-dot.is-done::before { background: var(--gold); }
.progress-dot.is-current::before { background: var(--ink); transform: scale(1.45); }

.artifact { position: absolute; z-index: 4; inset: 0; pointer-events: none; }
.artifact > div { position: absolute; opacity: 0; transition: opacity 500ms ease, transform 900ms var(--ease-out); }

.artifact__site {
  top: 20%;
  right: 11%;
  width: min(28vw, 390px);
  height: min(36vw, 500px);
  padding: 30px;
  border-radius: 26px;
  background: rgba(9, 14, 24, .72);
  transform: translate(50px, 30px) rotate(7deg);
}
.scene-site .artifact__site { opacity: .84; transform: translate(0, 0) rotate(4deg); }
.site-line, .site-block { display: block; background: var(--ink); }
.site-line { width: 58%; height: 10px; margin-bottom: 13px; opacity: .65; }
.site-line--wide { width: 88%; height: 25px; opacity: 1; }
.site-block { width: 100%; height: 58%; margin-top: 50px; background: url("assets/showreel/cosmic-garden-v2.webp") 55% 60% / 190% auto; }

.artifact__app {
  top: 23%;
  left: 10%;
  width: min(28vw, 400px);
  height: 46vh;
  transform: translate(-50px, 20px) rotate(-5deg);
}
.scene-app .artifact__app { opacity: .9; transform: translate(0, 0) rotate(-3deg); }
.artifact__app span { position: absolute; display: block; width: 58%; aspect-ratio: 1; border-radius: 46% 54% 55% 45%; background: rgba(232, 195, 108, .7); }
.artifact__app span:nth-child(1) { left: 2%; top: 20%; }
.artifact__app span:nth-child(2) { right: 0; top: 3%; background: rgba(126, 169, 217, .58); transform: rotate(36deg); }
.artifact__app span:nth-child(3) { left: 28%; bottom: 0; width: 66%; background: rgba(38, 89, 66, .72); transform: rotate(-24deg); }

.artifact__bot { top: 18%; right: 8%; width: min(34vw, 470px); height: 50vh; transform: translateX(40px); }
.scene-bot .artifact__bot { opacity: .92; transform: translateX(0); }
.artifact__bot::before, .artifact__bot::after { content: ""; position: absolute; left: 18%; right: 18%; top: 50%; height: 2px; background: rgba(247, 243, 234, .44); transform: rotate(29deg); }
.artifact__bot::after { transform: rotate(-31deg); }
.artifact__bot span { position: absolute; width: 74px; height: 74px; border-radius: 50%; background: rgba(247, 243, 234, .9); }
.artifact__bot span:nth-child(1) { left: 6%; top: 12%; }
.artifact__bot span:nth-child(2) { right: 6%; top: 20%; background: var(--gold); }
.artifact__bot span:nth-child(3) { left: 25%; bottom: 8%; background: var(--blue); }
.artifact__bot span:nth-child(4) { right: 18%; bottom: 2%; background: #6f8f76; }

.artifact__route { top: 25%; left: 7%; right: 7%; height: 30vh; transform: translateY(25px); }
.scene-route .artifact__route { opacity: .95; transform: translateY(0); }
.artifact__route::before { content: ""; position: absolute; left: 8%; right: 8%; top: 50%; height: 4px; background: rgba(247, 243, 234, .55); }
.artifact__route span { position: absolute; top: calc(50% - 20px); width: 42px; height: 42px; border-radius: 50%; background: var(--ink); }
.artifact__route span:nth-child(1) { left: 7%; }
.artifact__route span:nth-child(2) { left: 36%; background: var(--blue); }
.artifact__route span:nth-child(3) { left: 64%; background: #6f8f76; }
.artifact__route span:nth-child(4) { right: 7%; background: var(--gold); }

.rocket-stage {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: -72vh;
  width: min(37vw, 470px);
  height: 78vh;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%);
  transition: bottom 1.5s var(--ease-out), opacity 800ms ease, transform 4s var(--ease-cinematic);
}

.rocket { position: absolute; z-index: 2; left: 50%; bottom: 0; width: 100%; height: 100%; object-fit: contain; transform: translateX(-50%); filter: drop-shadow(0 34px 52px rgba(0, 0, 0, .72)); } /* taste-skill-ignore -- animated hero object needs stage depth */
.rocket-halo { position: absolute; z-index: 1; left: 50%; bottom: 3%; width: 46%; aspect-ratio: 1; border-radius: 50%; background: rgba(233, 195, 108, .34); filter: blur(42px); transform: translateX(-50%); }
.rocket-flame { position: absolute; z-index: 0; left: 50%; bottom: -10%; display: flex; gap: 9px; transform: translateX(-50%); opacity: 0; }
.rocket-flame i { display: block; width: 25px; height: 160px; border-radius: 50% 50% 70% 70%; background: rgba(247, 243, 234, .9); filter: blur(5px); transform-origin: 50% 0; animation: flame 110ms steps(2) infinite alternate; }
.rocket-flame i:nth-child(2) { height: 198px; background: rgba(233, 195, 108, .95); }
@keyframes flame { to { transform: scaleY(.76) translateX(2px); } }

.show.scene-launch .rocket-stage { bottom: 7vh; opacity: 1; }
.show.is-launching .rocket-stage { bottom: 7vh; opacity: 1; transform: translateX(-50%) translateY(-130vh) scale(.68); }
.show.is-launching .rocket-flame { opacity: 1; }
.show.is-launching .rocket { animation: rocket-vibration 100ms steps(2) 32; }
@keyframes rocket-vibration { to { transform: translateX(calc(-50% + 2px)) rotate(.3deg); } }

.flash { position: absolute; inset: 0; z-index: 12; background: var(--ink); opacity: 0; pointer-events: none; }
.show.is-blooming .flash { animation: bloom-flash 900ms steps(1) both; }
@keyframes bloom-flash { 0%, 100% { opacity: 0; } 15% { opacity: .42; } 24% { opacity: 0; } 34% { opacity: .18; background: var(--gold); } }

.burst-rings {
  position: absolute;
  z-index: 11;
  left: 50%;
  top: 27%;
  width: 10px;
  height: 10px;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.burst-rings i {
  position: absolute;
  inset: 0;
  display: block;
  border: 3px solid rgba(233, 195, 108, .9);
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 36px rgba(233, 195, 108, .8); /* taste-skill-ignore -- transient launch effect */
}

.burst-rings i:nth-child(2) { border-color: rgba(126, 169, 217, .9); animation-delay: 160ms !important; }
.burst-rings i:nth-child(3) { border-color: rgba(183, 164, 215, .9); animation-delay: 320ms !important; }
.show.is-blooming .burst-rings i { animation: burst-ring 1.15s var(--ease-out) both; }
@keyframes burst-ring { 0% { opacity: .95; transform: translate(-50%, -50%) scale(.05); } 75% { opacity: .34; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(62); } }

.finale {
  position: absolute;
  inset: 0;
  z-index: 13;
  display: grid;
  place-items: center;
  padding: calc(var(--top) + 52px) var(--edge) calc(var(--bottom) + 22px);
  background: rgba(3, 5, 9, .44);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  backdrop-filter: blur(5px);
  transition: opacity 700ms ease, visibility 0s linear 700ms;
}

.show.is-finished .finale { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.show.is-finished .stage, .show.is-finished .progress { opacity: 0; pointer-events: none; }
.show.is-finished .topbar > .quiet-button { opacity: 0; pointer-events: none; }
.show.is-finished .tulle { opacity: .64; transform: scale(1.09); }
.show.is-finished .garden { transform: scale(1.04) translateY(8%); opacity: .92; }

.finale-copy { width: min(850px, 78vw); text-align: center; }
.finale-copy > p:first-child { margin: 0 0 24px; color: var(--gold); font-size: 14px; font-weight: 630; letter-spacing: .04em; }
.finale-copy > p:nth-of-type(2) { max-width: 610px; margin: 26px auto 0; color: var(--soft); font-size: 18px; }
.finale-actions { display: grid; justify-items: center; gap: 14px; width: min(410px, 100%); margin: 36px auto 0; }
.quiet-button--light { border-color: rgba(247, 243, 234, .44); color: var(--ink); }

.rotate-note { display: none; }

@media (max-width: 820px) {
  .show { min-height: 620px; }
  .cosmos { inset: 0; width: 100%; height: 100%; object-position: 50% 50%; }
  .tulle { opacity: .8; object-fit: fill; }
  .show.is-open .tulle { opacity: .64; transform: scale(1.03); }
  .garden { left: 50%; bottom: -1%; width: 165%; max-width: none; max-height: none; transform: translateX(-50%) scale(1.16) translateY(8%); }
  .show.is-open .garden { transform: translateX(-50%) scale(1) translateY(0); }
  .show.scene-launch .garden { transform: translateX(-50%) scale(1.08) translateY(16%); }
  .show.is-finished .garden { transform: translateX(-50%) scale(1.04) translateY(11%); }
  .topbar { left: 16px; right: 16px; }
  .brand small { font-size: 13px; }
  .progress { top: auto; bottom: calc(var(--bottom) + 84px); gap: 6px; }
  .progress-dot { width: 18px; height: 18px; }
  .quiet-button { min-width: 86px; padding-inline: 12px; }
  .scene { padding: calc(var(--top) + 74px) 16px calc(var(--bottom) + 130px); align-items: start; }
  .scene-copy { width: 100%; margin-top: 8vh; padding-inline: 4px; }
  h1 { font-size: clamp(46px, 13vw, 62px); }
  h2 { font-size: clamp(42px, 12.2vw, 58px); }
  .scene-text { max-width: 32ch; margin-top: 20px; font-size: 16px; line-height: 1.47; }
  .scene-actions { bottom: calc(var(--bottom) + 8px); width: calc(100% - 32px); }
  .main-button { min-height: 58px; border-radius: 16px; }
  .tap-note { display: none; }
  .artifact__site { top: 55%; right: -9%; width: 54vw; height: 30vh; padding: 18px; opacity: .42; }
  .site-line--wide { height: 14px; }
  .site-line { height: 6px; margin-bottom: 8px; }
  .site-block { margin-top: 26px; }
  .artifact__app { top: 56%; left: -5%; width: 65vw; height: 26vh; opacity: .42; }
  .artifact__bot { top: 55%; right: -12%; width: 74vw; height: 27vh; opacity: .42; }
  .artifact__bot span { width: 52px; height: 52px; }
  .artifact__route { top: 59%; left: -4%; right: -4%; height: 16vh; opacity: .42; }
  .artifact__route span { top: calc(50% - 15px); width: 31px; height: 31px; }
  .rocket-stage { width: 74vw; height: 62vh; bottom: -63vh; }
  .show.scene-launch .rocket-stage { bottom: 4vh; opacity: .76; }
  .show.is-launching .rocket-stage { bottom: 4vh; transform: translateX(-50%) translateY(-126vh) scale(.56); }
  .finale { padding: calc(var(--top) + 66px) 16px calc(var(--bottom) + 30px); align-items: start; }
  .finale-copy { width: 100%; margin-top: 8vh; }
  .finale-copy > p:first-child { max-width: 30ch; margin: 0 auto 19px; font-size: 13px; }
  .finale-copy > p:nth-of-type(2) { max-width: 30ch; margin-top: 20px; font-size: 16px; line-height: 1.48; }
  .finale-actions { position: absolute; left: 16px; right: 16px; bottom: calc(var(--bottom) + 8px); width: auto; margin: 0; }
  .prelude-mark { font-size: clamp(82px, 28vw, 116px); }
  .prelude-note { max-width: 28ch; margin-top: 28px; }
  .prelude-button { min-height: 58px; margin-top: 25px; }
}

@media (max-height: 700px) and (max-width: 820px) {
  .scene-copy { margin-top: 2vh; }
  h1 { font-size: clamp(40px, 11.8vw, 54px); }
  .scene-text { margin-top: 14px; font-size: 14px; }
  .garden { width: 148%; }
  .progress { bottom: calc(var(--bottom) + 72px); }
  .main-button { min-height: 54px; }
  .finale-copy { margin-top: 1vh; }
  .finale-copy > p:nth-of-type(2) { font-size: 14px; }
}

@media (orientation: landscape) and (max-height: 520px) and (pointer: coarse) {
  .rotate-note { position: fixed; inset: 0; z-index: 99; display: grid; place-items: center; padding: 28px; background: var(--night); color: var(--ink); font-size: 6vw; font-weight: 650; line-height: 1.05; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .star-dust, .front-fx { display: none; }
}
