:root {
  color-scheme: light;
  --screen: 100vh;
  --microphone-blue: #03a9f4;
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  background: #51a7e3;
}
@supports (height: 100svh) {
  :root { --screen: 100svh; }
}
* { box-sizing: border-box; }
html[data-cloud-motion="on"] { scroll-behavior: smooth; }
body { margin: 0; color: #fff; }
.skyscape {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: #59b0e8;
}
.plane { position: absolute; inset: 0; pointer-events: none; will-change: transform; }
.cloud, .gull { display: block; position: absolute; height: auto; max-width: none; }
.sky {
  bottom: calc(-.24 * var(--screen));
  background: linear-gradient(160deg, #43a9e5b3 0%, #72c4ec9e 40%, #b1e2ee63 85%),
              url("assets/azure-sky.webp") center top / 100% 100% no-repeat;
}
.distant-clouds { z-index: 1; }
.high-cloud {
  width: 45vw; top: calc(.013 * var(--screen)); left: 4vw;
  filter: saturate(.76); opacity: .94;
}
.east-cloud {
  width: 28vw; top: calc(.45 * var(--screen)); right: -1.5vw;
  transform: scaleX(-1); filter: saturate(.68); opacity: .79;
}
.western-horizon {
  width: 123%; top: calc(1.02 * var(--screen)); left: -9%;
  transform: scaleX(-1); filter: saturate(.72); opacity: .86;
}
.cloud-wall { z-index: 2; }
.tower { width: min(58.4vw, 1.09 * var(--screen)); right: -13vw; top: calc(.13 * var(--screen)); }
.west-shelf { width: 59vw; left: -22vw; top: calc(.57 * var(--screen)); }
.flock { z-index: 3; }
.gull { width: var(--w); top: calc(var(--y) * var(--screen)); left: var(--x); transform: rotate(var(--tilt)); }
.west-glider     { --x: 12%; --y: .275; --w: clamp(53px, 5.8vw, 104px); --tilt: -12deg; }
.west-companion  { --x: 19%; --y: .241; --w: clamp(28px, 3.05vw, 59px); --tilt: -16deg; }
.west-distant    { --x: 23%; --y: .218; --w: clamp(14px, 1.45vw, 31px); --tilt: -5deg; }
.east-glider     { --x: 76%; --y: .25;  --w: clamp(34px, 3.5vw, 65px); --tilt: 8deg; }
.east-companion  { --x: 82%; --y: .228; --w: clamp(19px, 1.95vw, 36px); --tilt: 12deg; }
.lower-glider    { --x: 64%; --y: .77;  --w: clamp(37px, 4.6vw, 75px); --tilt: 8deg; }
.lower-companion { --x: 70%; --y: .744; --w: clamp(21px, 2.3vw, 43px); --tilt: 1deg; }
.foreground { z-index: 4; }
.sea {
  top: calc(.69 * var(--screen)); width: max(115vw, 2.80 * var(--screen));
  left: -10vw; filter: saturate(.84);
}
.hero {
  position: relative; z-index: 5;
  height: var(--screen); min-height: 290px;
  display: grid; place-items: center;
}
.brand {
  display: grid; justify-items: center;
  gap: clamp(15px, 2.8vh, 34px);
  margin-bottom: calc(.05 * var(--screen));
}
.mark-stage {
  width: clamp(78px, 7.1vw, 112px); aspect-ratio: 1;
  display: grid; place-items: center;
  border: 1px solid rgb(255 255 255 / .75); border-radius: 25%;
  background: linear-gradient(150deg, rgb(255 255 255 / .83), rgb(247 253 255 / .43));
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 1px #fff, inset 0 -1px 2px #e7f6ffb0, 0 5px 16px #12548223;
}
.mark { display: block; width: 78%; height: auto; }
h1 {
  margin: -.095em 0 -.19em;
  padding: .095em .14em .19em;
  color: rgb(255 249 237 / .96); white-space: nowrap;
  font: 400 clamp(47px, 5.95vw, 112px)/1.03 Georgia, "Times New Roman", serif;
  letter-spacing: -.065em;
  /* Use the native glyph fill. Its ink includes both y tails and the italic o overhang. */
  text-shadow: none;
}
h1 i { font-weight: inherit; }
.sky-controls {
  position: absolute; top: max(22px, 3.2vh, env(safe-area-inset-top));
  right: max(24px, 3.4vw, env(safe-area-inset-right));
}
.descend {
  display: flex; align-items: center; justify-content: center;
  min-height: 44px; border-radius: 99px;
  border: 1px solid #f1f9ff85; color: #fff;
  background: #12579750;
}
.download-group {
  display: grid; justify-items: center;
  gap: clamp(13px, 1.9vh, 20px); margin-top: clamp(3px, .8vh, 9px);
}
.tagline {
  margin: 0; color: white; font-size: clamp(15px, 1.2vw, 19px);
  font-weight: 500; letter-spacing: .09em; line-height: 1.5;
}
.release {
  position: relative;
  --lit-shadow: inset 0 2px 3px #fff, 0 0 12px var(--microphone-blue), 0 0 30px rgb(3 169 244 / .52);
  --label-shadow: 0 1px 1px rgb(0 61 103 / .4);
}
.release summary {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 176px; min-height: 52px; padding: 0 30px;
  cursor: pointer; touch-action: manipulation; list-style: none; border: 0; border-radius: 999px;
  background: #FF9F32; color: #fff;
  font-size: 16px; font-weight: 600; line-height: 1.2;
  box-shadow: none;
  transition: transform 450ms ease, box-shadow 450ms ease, background-color 450ms ease,
              color 450ms ease, text-shadow 450ms ease, translate 180ms ease-out;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .release summary { translate: var(--magnet-x, 0px) var(--magnet-y, 0px); }
}

.release summary::-webkit-details-marker { display: none; }
.release svg, .descend svg {
  fill: none; stroke: currentColor; stroke-width: 1.45;
  stroke-linecap: round; stroke-linejoin: round;
}
.release svg { width: 18px; height: 18px; stroke-width: 1.8; transition: transform 450ms ease; }
.release summary:focus-visible {
  outline: 2px solid #154d74; outline-offset: 4px;
}
.release summary:is(:focus-visible, :active, .pressed) {
  background-color: var(--microphone-blue); color: #fff;
  text-shadow: var(--label-shadow); box-shadow: var(--lit-shadow);
}
@media (hover: hover) and (pointer: fine) {
  .release summary:hover {
    background-color: var(--microphone-blue); color: #fff;
    transform: translateY(-2px);
    text-shadow: var(--label-shadow); box-shadow: var(--lit-shadow);
  }
  .release summary:hover svg { transform: scale(1.1); }
}
.release summary:focus-visible { transform: translateY(-2px); }
.release summary:focus-visible svg { transform: scale(1.1); }
.release summary:is(:active, .pressed) { transform: translateY(1px) scale(.98); transition-duration: 90ms; }
.release summary:is(:active, .pressed) svg { transform: scale(.96); transition-duration: 90ms; }
.descend:hover { background: #185991cf; }
.descend:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.release-note {
  position: absolute; z-index: 1; top: calc(100% + 10px); left: 50%;
  width: min(270px, 85vw); transform: translateX(-50%);
  padding: 14px 18px; background: #f7fbff; color: #173e62;
  border-radius: 12px; box-shadow: 0 8px 28px #154e7c35;
  font-size: 13px; line-height: 1.65;
}
.release-note p { margin: 3px 0 0; }
.release-android {
  box-sizing: border-box; position: fixed; inset: 0; margin: auto;
  width: min(240px, calc(100vw - 40px)); max-height: calc(100dvh - 24px);
  padding: 24px 22px 14px; overflow: auto; overscroll-behavior: contain;
  border: 0; border-radius: 22px; background: #fff; color: #173e62;
  text-align: center; box-shadow: 0 14px 42px rgb(0 15 30 / .24);
}
.release-android[hidden] { display: none; }
.release-android::backdrop { background: rgb(4 14 29 / .62); }
@media (prefers-reduced-motion: no-preference) {
  .release-android[open] { animation: release-android-enter 240ms cubic-bezier(.2,.75,.3,1) both; }
  .release-android[open]::backdrop { animation: release-android-dim 200ms ease-out both; }
}
@keyframes release-android-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes release-android-dim {
  from { opacity: 0; }
  to { opacity: 1; }
}
.release-android form { margin: 0; }
.release-android-close {
  position: absolute; top: 0; right: 0; width: 44px; height: 44px;
  display: grid; place-items: center; border: 0; border-radius: 50%;
  background: transparent; color: #48637a; cursor: pointer;
}
.release-android-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.release-android-close:focus-visible, .release-android-link:focus-visible { outline: 2px solid #154d74; outline-offset: -4px; }
.release-qr { display: block; width: min(164px, 52dvh, 100%); height: auto; margin: 0 auto; }
.release-android-link {
  display: inline-flex; min-height: 44px; padding: 0 12px; align-items: center; justify-content: center;
  border-radius: 6px; color: inherit; font-weight: 600; text-decoration: none;
}
.release-android-link:hover { text-decoration: underline; }
.descend {
  position: absolute; left: 50%; bottom: max(21px, 3.9vh, env(safe-area-inset-bottom));
  width: 44px; height: 44px; transform: translateX(-50%); color: white;
}
.descend svg { width: 17px; height: 21px; }
.hero.past-start .descend { visibility: hidden; }
#open-sky { height: calc(.80 * var(--screen)); }

@media (max-aspect-ratio: 4/5) {
  .sky { background-size: auto, 164% 100%; background-position: center, 45% top; }
  .high-cloud { width: 103vw; left: -1vw; top: calc(.032 * var(--screen)); }
  /* Keep the painted far bank, but clear the right tip of the mark on phones. */
  .east-cloud { width: 49vw; right: -19vw; top: calc(.202 * var(--screen)); }
  .tower { width: max(112vw, .68 * var(--screen)); right: calc(-.27 * var(--screen) - 5vw); top: calc(.30 * var(--screen)); }
  .west-shelf { width: 113vw; left: -66vw; top: calc(.64 * var(--screen)); }
  .western-horizon { top: calc(1.06 * var(--screen)); width: 235%; left: -75%; }
  .sea { top: calc(.765 * var(--screen)); width: calc(2.65 * var(--screen)); left: calc(-.26 * var(--screen)); }
  .brand { margin-bottom: calc(.07 * var(--screen)); gap: clamp(16px, 2.5vh, 26px); }
  .mark-stage { width: clamp(70px, 18.5vw, 92px); }
  .release summary { min-width: 156px; min-height: 48px; }
  h1 { font-size: clamp(39px, 11.9vw, 76px); }
  .west-glider    { --x: 8%; --y: .245; --w: 11vw; }
  .west-companion { --x: 20%; --y: .224; --w: 6.5vw; }
  .west-distant   { --x: 29%; --y: .212; --w: 3.6vw; }
  .east-glider    { --x: 73%; --y: .31; --w: 8.8vw; }
  .east-companion { --x: 84%; --y: .296; --w: 5vw; }
  .lower-glider   { --x: 35%; --y: .72; --w: 11vw; }
  .lower-companion{ --x: 49%; --y: .704; --w: 5.8vw; }
  .sky-controls { top: max(14px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); }
}
@media (max-height: 450px) and (min-aspect-ratio: 5/4) {
  .brand { gap: 9px; }.mark-stage { width: 56px; } h1 { font-size: 42px; }
  .download-group { gap: 7px; margin-top: 1px; }.release summary { min-height: 44px; }
  .release-note { top: auto; bottom: 0; left: calc(100% + 12px); transform: none; width: min(246px, calc(50vw - 108px)); }
  .sky-controls { top: 8px; }.descend { bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-cloud-motion="on"] { scroll-behavior: auto; }
  .release summary, .release summary svg { transition: none; }
  .release summary:is(:hover, :focus-visible, :active, .pressed),
  .release summary:is(:hover, :focus-visible, :active, .pressed) svg { transform: none; }
}

/* The near banks cover the distant wisps rather than sharing one painted plate. */
.canopy-field { z-index:2; }
.canopy-bank { width:54vw; left:-12vw; top:calc(-.043 * var(--screen)); }
.cloud-wall { z-index:3; }
.flock { z-index:4; }
.shelf-field { z-index:5; }
.foreground { z-index:6; }
.hero { z-index:7; }
/* One gentle breeze per plane, independent of the scroll-driven parent transform. */
@media (prefers-reduced-motion:no-preference) {
  html[data-cloud-motion="on"] :is(.high-cloud,.east-cloud,.canopy-bank,.tower,.west-shelf,.sea) {
    animation: cloud-wind var(--period,16s) cubic-bezier(.35,.12,.65,.88) var(--phase,-3s) infinite alternate;
  }
  .high-cloud { --travel:clamp(32px,5vw,85px); --period:18s; --phase:-5s; }
  .east-cloud { --travel:clamp(-74px,-4.2vw,-29px); --period:16s; --phase:-7s; }
  .canopy-bank { --travel:clamp(48px,6.9vw,106px); --lift:.78vh; --period:12s; --phase:-2.8s; }
  .tower { --travel:clamp(-87px,-5.8vw,-34px); --lift:.48vh; --period:16s; --phase:-4.7s; }
  .west-shelf { --travel:clamp(43px,6.3vw,102px); --lift:-.40vh; --period:12.8s; --phase:-7.4s; }
  .sea { --travel:clamp(-84px,-5.35vw,-34px); --lift:.32vh; --period:18s; --phase:-4s; }

  @keyframes cloud-wind { from{translate:0 0} to{translate:var(--travel) var(--lift,0px)} }
}
@media (max-aspect-ratio:4/5) {
  .canopy-bank {width:min(106vw, .65 * var(--screen));left:-29vw;top:calc(-.025 * var(--screen));}
}
.sky-controls{display:flex;align-items:flex-start;gap:7px;z-index:1;}
/* From Uiverse.io by namecho */
.motion-switch {
  display:inline-flex; align-items:center; justify-content:center; gap:7px;
  min-height:44px; padding:0 4px; border:0; border-radius:99px;
  cursor:pointer; touch-action:manipulation; background:none; color:#051422;
  font:500 12px/1 "Segoe UI","Microsoft YaHei",sans-serif; letter-spacing:.045em;
}
.motion-switch[hidden] { display:none; }
.motion-switch:focus-visible { outline:2px solid #153b59; outline-offset:2px; box-shadow:0 0 0 2px white; }
.motion-indicator {
  --button-width:3.5em;
  --button-height:2em;
  --toggle-diameter:1.5em;
  --button-toggle-offset:calc((var(--button-height) - var(--toggle-diameter)) / 2);
  --toggle-shadow-offset:10px;
  --toggle-wider:3em;
  position:relative; display:block; width:var(--button-width); height:var(--button-height);
  border-radius:calc(var(--button-height) / 2); background:#cccccc;
  /* Keep the existing aria-hidden state text, but paint the track and thumb instead. */
  font-size:16px; white-space:nowrap; text-indent:100%; overflow:hidden;
}
.motion-indicator::before {
  content:""; position:absolute; top:var(--button-toggle-offset); left:var(--button-toggle-offset);
  width:var(--toggle-diameter); height:var(--toggle-diameter);
  border-radius:calc(var(--toggle-diameter) / 2); background:white;
  box-shadow:var(--toggle-shadow-offset) 0 calc(var(--toggle-shadow-offset) * 4) rgba(0, 0, 0, 0.1);
}
.motion-switch[aria-checked="true"] .motion-indicator { background:#4296f4; }
.motion-switch[aria-checked="true"] .motion-indicator::before {
  transform:translateX(calc(var(--button-width) - var(--toggle-diameter) - 2 * var(--button-toggle-offset)));
  box-shadow:calc(var(--toggle-shadow-offset) * -1) 0 calc(var(--toggle-shadow-offset) * 4) rgba(0, 0, 0, 0.1);
}
@media (prefers-reduced-motion:no-preference) {
  .motion-indicator { transition:background-color .3s ease-in-out; }
  .motion-indicator::before { transition:transform .3s ease-in-out, width .3s ease-in-out, box-shadow .3s ease-in-out; }
  .motion-switch:active .motion-indicator::before { width:var(--toggle-wider); }
  .motion-switch[aria-checked="true"]:active .motion-indicator::before {
    transform:translateX(calc(var(--button-width) - var(--toggle-wider) - 2 * var(--button-toggle-offset)));
  }
}
@media (forced-colors:active) {
  .motion-indicator { forced-color-adjust:none; background:ButtonFace; outline:1px solid ButtonText; outline-offset:-1px; }
  .motion-indicator::before { background:ButtonText; }
  .motion-switch[aria-checked="true"] .motion-indicator { background:Highlight; }
  .motion-switch[aria-checked="true"] .motion-indicator::before { background:HighlightText; }
}
html[data-cloud-motion="off"]{scroll-behavior:auto;}
html[data-cloud-motion="off"] .plane{transform:none!important;will-change:auto;}

@media (forced-colors:active){h1{color:CanvasText;}}

/* Handheld art keeps the original painted tower and its aspect ratio. */
@media (pointer: coarse) and (max-width: 600px) and (max-aspect-ratio: 4/5) {
  .home-sky .tower { width: max(103vw, .62 * var(--screen)); right: calc(-.278 * var(--screen) - 5vw); }
}
