@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/onest.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/onest-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* light-dark() picks by color-scheme, which the theme button pins with data-theme. */
:root {
  color-scheme: light dark;
  --bg: light-dark(#f1ece2, #141210);
  --ink: light-dark(#1d1b19, #f1ece2);
  --ink-2: light-dark(#4d463e, #ddd5c8);
  --ink-3: light-dark(#554e45, #c4bbae);
  --line: light-dark(rgba(29, 27, 25, 0.13), rgba(241, 236, 226, 0.12));
  --mica: light-dark(rgba(255, 252, 245, 0.62), rgba(44, 40, 36, 0.55));
  --mica-edge: light-dark(rgba(255, 253, 248, 0.95), rgba(241, 236, 226, 0.1));
  --accent: #fa5a1a;
  --accent-ink: #1d1b19;
  /* Orange as text: darker on cream so small type stays readable. */
  --accent-text: light-dark(#b23d0c, #ff7f45);
  --glow: rgba(250, 90, 26, 0.5);
  --shadow: light-dark(rgba(70, 50, 30, 0.3), rgba(0, 0, 0, 0.65));
  /* Windows 11's own window colors, light and dark, for the app's windows. */
  --win: light-dark(rgba(250, 248, 244, 0.94), rgba(32, 30, 28, 0.94));
  --win-card: light-dark(#fffdf9, #2e2b28);
  --win-line: light-dark(rgba(0, 0, 0, 0.08), rgba(255, 255, 255, 0.08));
  --win-ink: light-dark(#1a1a1a, #fff);
  --win-ink-2: light-dark(#5d5d5d, #c5c5c5);
  --menu: light-dark(rgba(252, 250, 246, 0.92), rgba(46, 43, 40, 0.92));
  --win-accent: light-dark(#e2501a, #ff7a3d);
  /* The knob box: the cream enclosure and orange cable of the app icon, the same in both themes. */
  --box: #f1ece2;
  --box-edge: #d6ccba;
  --box-ink: #2b2722;
  --hot: #fa5a1a;
  --mono: "Cascadia Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --sans: "Onest", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --win-font: "Segoe UI Variable Text", "Segoe UI", "Onest", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="light"] {
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
}

:lang(zh) {
  --sans: "Onest", "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
}

:lang(ja) {
  --sans: "Onest", "Yu Gothic UI", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
}

:lang(ko) {
  --sans: "Onest", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--line) transparent;
}

/* No background here: html paints it, so the bloom (z-index -1) shows above it. */
body {
  margin: 0;
  color: var(--ink);
  font: 400 1rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1,
h2,
p,
dl,
dd,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

code {
  font: 500 0.88em var(--mono);
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.sprite {
  position: absolute;
}

/* Read by screen readers, not shown. */
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* The page's wallpaper: three soft lights behind everything. Their strength is in each color's alpha,
   since light-dark() takes colors only, not an opacity. The left one, under the hero copy, stays faint in dark. */
.bloom {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bloom i {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}

.bloom i:nth-child(1) {
  top: -22vmax;
  right: -14vmax;
  width: 62vmax;
  height: 52vmax;
  background: light-dark(rgba(255, 154, 92, 0.6), rgba(250, 90, 26, 0.8));
}

.bloom i:nth-child(2) {
  top: 18vmax;
  left: -24vmax;
  width: 54vmax;
  height: 46vmax;
  background: light-dark(rgba(214, 204, 186, 0.9), rgba(142, 60, 30, 0.3));
}

.bloom i:nth-child(3) {
  top: 8vmax;
  right: 18vmax;
  width: 26vmax;
  height: 22vmax;
  background: light-dark(rgba(255, 201, 160, 0.6), rgba(255, 138, 61, 0.35));
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4.5vw, 48px);
}

/* The header: a strip of Mica, as a Windows 11 title bar is. */
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 calc(50% - 50vw);
  padding: 12px calc(50vw - 50%);
  border-bottom: 1px solid var(--line);
  background: light-dark(rgba(241, 236, 226, 0.72), rgba(20, 18, 16, 0.65));
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

/* The sibling app, for Mac visitors: a quiet chip before the download button. */
/* Header pills share one height; the chip's edge is drawn firmly enough that it reads as tall as the
   Download button beside it. */
.top .mac,
.top .top-download {
  height: 38px;
  min-height: 0;
}

.mac {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px 0 9px;
  border: 1px solid light-dark(rgba(29, 27, 25, 0.14), rgba(241, 236, 226, 0.18));
  border-radius: 999px;
  background: var(--mica);
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 1px 0 light-dark(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.06)) inset;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, background-color 0.2s, transform 0.25s var(--ease);
}

.mac:hover {
  background: light-dark(rgba(255, 252, 245, 0.95), rgba(60, 54, 48, 0.7));
  color: var(--ink);
  transform: translateY(-1px);
}

.mac img {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}

.mac svg {
  width: 12px;
  height: 12px;
  opacity: 0.6;
}

.top-dot,
.langs a[aria-current]::before {
  flex: none;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink-3);
}

.langs {
  position: relative;
  font-size: 14px;
}

.langs summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 2px;
  color: var(--ink-2);
  font-weight: 500;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.langs summary::-webkit-details-marker {
  display: none;
}

.langs summary:hover,
.langs[open] summary {
  color: var(--ink);
}

.langs summary svg {
  transition: transform 0.2s ease-out;
}

.langs[open] summary svg {
  transform: rotate(180deg);
}

.langs .code {
  display: none;
}

/* Two columns read downwards, six languages each, in a Windows 11 menu. */
.langs ul {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  right: -8px;
  display: grid;
  grid-template-rows: repeat(6, auto);
  grid-auto-flow: column;
  padding: 5px;
  border: 1px solid var(--win-line);
  border-radius: 10px;
  background: var(--menu);
  backdrop-filter: blur(30px) saturate(1.5);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
  box-shadow: 0 16px 40px -10px var(--shadow);
}

.langs a {
  position: relative;
  display: block;
  padding: 7px 18px 7px 26px;
  border-radius: 6px;
  color: var(--win-ink-2);
  text-decoration: none;
  white-space: nowrap;
}

.langs a:hover {
  background: light-dark(rgba(0, 0, 0, 0.05), rgba(255, 255, 255, 0.07));
  color: var(--win-ink);
}

.langs a[aria-current] {
  color: var(--win-ink);
  font-weight: 600;
}

/* Windows marks the picked item with an accent pill. */
.langs a[aria-current]::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 10px;
  width: 3px;
  height: 14px;
  margin-top: -7px;
  border-radius: 2px;
  background: var(--win-accent);
}

.theme {
  display: grid;
  padding: 10px 2px;
  border: 0;
  background: none;
  color: var(--ink-2);
  cursor: pointer;
}

.theme:hover {
  color: var(--ink);
}

/* Buttons: store-style pills. The download button is one bright sweep of the icon's orange with white text;
   the GitHub button is the same pill in Mica. */
.button,
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 54px;
  padding: 0 24px 0 20px;
  border-radius: 999px;
  font: 700 1rem/1.2 var(--sans);
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s, background-color 0.2s;
}

.button {
  border: 0;
  background: linear-gradient(135deg, #ff9a4d 0%, #fa5a1a 50%, #e0430f 100%);
  color: #fff;
  text-shadow: 0 1px 1px rgba(120, 30, 0, 0.35);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset, 0 10px 26px -8px var(--glow);
}

.button:hover {
  filter: brightness(1.07);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset, 0 16px 34px -10px rgba(250, 90, 26, 0.75);
  transform: translateY(-2px);
}

.button:active,
.ghost:active {
  filter: brightness(0.96);
  transform: scale(0.98);
}

.button svg,
.ghost svg {
  flex: none;
  width: 18px;
  height: 18px;
}

.ghost {
  border: 1px solid var(--mica-edge);
  background: var(--mica);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 0 light-dark(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.08)) inset, 0 10px 26px -14px var(--shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.ghost:hover {
  background: light-dark(rgba(255, 252, 245, 0.9), rgba(60, 54, 48, 0.6));
  transform: translateY(-2px);
}

/* The header's and the cookie notice's copy: smaller, so a deeper orange keeps the white text readable. */
.button.small {
  min-height: 38px;
  padding: 0 18px;
  background: linear-gradient(135deg, #f8641f 0%, #e0430f 55%, #c2410c 100%);
  font-size: 0.9rem;
  /* A tight glow, so the small pill doesn't look taller than its neighbours. */
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 4px 12px -6px var(--glow);
}

.button.small:hover {
  transform: translateY(-1px);
}

/* --- Hero ------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(40px, 7vw, 96px) 0 clamp(72px, 9vw, 120px);
}

.hero.lost {
  grid-template-columns: minmax(0, 1fr);
  min-height: 60vh;
}

h1 {
  font-size: clamp(2.75rem, 1.3rem + 4.4vw, 5.25rem);
  font-weight: 760;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

:lang(zh) h1,
:lang(ja) h1,
:lang(ko) h1 {
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.sub {
  max-width: 34ch;
  margin-top: 24px;
  color: var(--ink-2);
  font-size: clamp(1.1rem, 1rem + 0.35vw, 1.3rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.get {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 18px;
  color: var(--ink-3);
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

.meta i {
  font-style: normal;
  opacity: 0.75;
}

/* The download menu: a download button opens the release's four files, 64-bit first and highlighted. */
.dl {
  position: relative;
}

.dl[open] {
  z-index: 20;
}

.dl summary {
  list-style: none;
}

.dl summary::-webkit-details-marker {
  display: none;
}

.dl .chev {
  width: 16px;
  height: 16px;
  margin: 0 -6px 0 -2px;
  transition: rotate 0.25s var(--ease);
}

.dl[open] .chev {
  rotate: 180deg;
}

.dl-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(11rem, auto));
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--win-line);
  border-radius: 20px;
  background: var(--menu);
  color: var(--win-ink);
  text-align: left;
  box-shadow: 0 28px 56px -16px var(--shadow), 0 2px 8px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(30px) saturate(1.5);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
}

.dl-menu div {
  display: grid;
  align-content: start;
  gap: 2px;
}

.dl-menu b {
  padding: 8px 12px 6px;
  color: var(--win-ink-2);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.dl-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 12px;
  border-radius: 14px;
  color: var(--win-ink);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.dl-menu a:hover {
  background: light-dark(rgba(0, 0, 0, 0.05), rgba(255, 255, 255, 0.08));
}

.dl-menu svg {
  flex: none;
  width: 17px;
  height: 17px;
  color: var(--accent-text);
}

/* The 64-bit installer, the pick for most PCs, is lit like the button itself. */
.dl-menu div:first-child a:first-of-type {
  background: linear-gradient(135deg, #ff9a4d 0%, #fa5a1a 50%, #e0430f 100%);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset;
}

.dl-menu div:first-child a:first-of-type svg {
  color: #fff;
}

.top .dl-menu {
  right: 0;
  left: auto;
}

.close .dl-menu {
  left: 50%;
  translate: -50% 0;
}

.note {
  max-width: 54ch;
  margin-top: 22px;
  color: var(--ink-3);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* The rig: a Windows desktop on a screen, and the knob box in front of it. The screen sizes its insides
   by its own width, so the desktop scales as one picture. */
.rig {
  position: relative;
  display: grid;
  justify-items: center;
}

.screen {
  position: relative;
  container-type: inline-size;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 9px solid #121110;
  border-radius: 18px;
  background: #121110;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 50px 90px -30px var(--shadow), 0 20px 40px -24px var(--shadow);
}

.desktop {
  position: absolute;
  inset: 0;
  transform-origin: 30% 32%;
  transition: transform 0.7s var(--ease);
}

/* Windows 11's bloom wallpaper: petals of light from one point. */
.wall {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 70% at 62% 78%, light-dark(rgba(255, 250, 240, 0.9), rgba(250, 110, 40, 0.45)), transparent 70%),
    linear-gradient(165deg, light-dark(#e8dcc8, #2a1a12), light-dark(#f6f1e8, #0d0b0a) 70%);
}

.wall::before {
  content: "";
  position: absolute;
  left: 30%;
  bottom: -40%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 200deg at 50% 50%,
      transparent 0deg, #fa5a1a 30deg, #ffb27a 46deg, transparent 62deg,
      #c8441a 78deg, #f1ece2 94deg, transparent 112deg,
      #fa5a1a 128deg, #ffc9a0 142deg, transparent 160deg,
      #8e3c1e 176deg, #ff8a4c 190deg, transparent 206deg, transparent 360deg);
  filter: blur(2.4cqw);
  opacity: 0.95;
}

.dim,
.warm {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease);
}

.dim {
  background: #000;
  opacity: var(--dim, 0.1);
}

.warm {
  background: #ff9a3c;
  mix-blend-mode: multiply;
  opacity: var(--warm, 0);
}

/* The app's windows, drawn the way Windows 11 draws them. */
.win {
  border: 1px solid var(--win-line);
  border-radius: 8px;
  background: var(--win);
  color: var(--win-ink);
  font-family: var(--win-font);
  box-shadow: 0 32px 64px -18px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(30px) saturate(1.4);
  -webkit-backdrop-filter: blur(30px) saturate(1.4);
}

.bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding-left: 12px;
  font-size: 12px;
}

.bar img {
  width: 14px;
  height: 14px;
}

/* Minimise, maximise, close. */
.bar i {
  display: grid;
  place-items: center;
  width: 40px;
  height: 100%;
  opacity: 0.8;
}

.bar i:first-of-type {
  margin-left: auto;
}

.bar i::before {
  content: "";
  width: 10px;
  height: 10px;
}

.bar i:nth-of-type(1)::before {
  height: 1px;
  background: currentColor;
}

.bar i:nth-of-type(2)::before {
  border: 1px solid currentColor;
  border-radius: 2px;
}

.bar i:nth-of-type(3)::before {
  background:
    linear-gradient(45deg, transparent calc(50% - 0.5px), currentColor calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    linear-gradient(-45deg, transparent calc(50% - 0.5px), currentColor calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px));
}

.win.mini {
  position: absolute;
  top: 8%;
  left: 7%;
  width: 47%;
  border-radius: 1.3cqw;
  font-size: 1.7cqw;
}

.mini .bar {
  gap: 1.2cqw;
  height: 5.2cqw;
  padding-left: 1.8cqw;
  font-size: 1.6cqw;
}

.mini .bar img {
  width: 2.2cqw;
  height: 2.2cqw;
}

.mini .bar i {
  width: 5cqw;
}

.mini .bar i::before {
  width: 1.4cqw;
  height: 1.4cqw;
}

.mini .bar i:nth-of-type(1)::before {
  height: 1px;
}

.mini ul {
  display: grid;
  gap: 0.6cqw;
  padding: 0.6cqw 1.6cqw 1.8cqw;
}

.mini li {
  display: flex;
  align-items: center;
  gap: 1.3cqw;
  padding: 1.1cqw 1.4cqw;
  border-radius: 0.8cqw;
  background: var(--win-card);
  white-space: nowrap;
  overflow: hidden;
}

.mini li b {
  display: grid;
  place-items: center;
  flex: none;
  width: 3cqw;
  height: 3cqw;
  border-radius: 0.6cqw;
  background: var(--win-accent);
  color: #1d1b19;
  font-size: 1.5cqw;
}

.mini li svg {
  flex: none;
  width: 2.4cqw;
  height: 2.4cqw;
  color: var(--win-ink-2);
}

.mini li span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.taskbar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2cqw;
  height: 7.4cqw;
  border-top: 1px solid var(--win-line);
  background: light-dark(rgba(246, 242, 234, 0.85), rgba(30, 28, 26, 0.85));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.taskbar > span:not(.tb-tray) {
  width: 4.6cqw;
  height: 4.6cqw;
  border-radius: 1cqw;
}

.tb-start {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3cqw;
  padding: 1.1cqw;
}

.tb-start i {
  border-radius: 0.25cqw;
  background: linear-gradient(135deg, #ff8a4c, #e2501a);
}

.taskbar .tb-search {
  width: 14cqw;
  border-radius: 99px;
  background: light-dark(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.08));
}

.tb-app:nth-of-type(3) {
  background: linear-gradient(135deg, #f1ece2, #d6ccba);
}

.tb-app:nth-of-type(4) {
  background: linear-gradient(135deg, #4a4744, #1d1b19);
}

.tb-app:nth-of-type(5) {
  background: linear-gradient(135deg, #ff8a4c, #fa5a1a);
}

.tb-tray {
  position: absolute;
  right: 1.6cqw;
  display: flex;
  align-items: center;
  gap: 1.1cqw;
  color: var(--win-ink);
  font: 1.5cqw var(--win-font);
}

.tb-tray svg {
  width: 2.2cqw;
  height: 2.2cqw;
}

.tb-tray .weej {
  width: 2.6cqw;
  height: 2.6cqw;
}

/* The indicator: Windows 11's volume flyout, above the taskbar. */
.flyout {
  display: flex;
  align-items: center;
  gap: 2cqw;
  width: 34cqw;
  height: 7.6cqw;
  padding: 0 2.4cqw;
  border: 1px solid var(--win-line);
  border-radius: 1.4cqw;
  background: var(--menu);
  color: var(--win-ink);
  font: 600 2.1cqw var(--win-font);
  font-variant-numeric: tabular-nums;
  box-shadow: 0 1.6cqw 4cqw -1cqw rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(30px) saturate(1.5);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
}

.flyout svg {
  flex: none;
  width: 3cqw;
  height: 3cqw;
}

.flyout i {
  position: relative;
  flex: 1;
  height: 0.65cqw;
  border-radius: 99px;
  background: light-dark(rgba(0, 0, 0, 0.35), rgba(255, 255, 255, 0.4));
}

.flyout i::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--v, 0.5) * 100%);
  border-radius: inherit;
  background: var(--win-accent);
}

.flyout i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(var(--v, 0.5) * 100%);
  width: 2.4cqw;
  height: 2.4cqw;
  margin: -1.2cqw 0 0 -1.2cqw;
  border-radius: 50%;
  background: var(--win-accent);
  box-shadow: 0 0 0 0.55cqw light-dark(#fff, #454545);
}

.flyout span {
  min-width: 4.4cqw;
  text-align: right;
}

.flyout.live {
  position: absolute;
  left: 50%;
  bottom: 10.4cqw;
  opacity: 0;
  transform: translate(-50%, 2cqw) scale(0.96);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.flyout.live.show {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  transition-duration: 0.16s;
}

/* The knob box: the app icon's cream enclosure, its cable in orange. */
.box {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(4px, 1.4vw, 14px);
  width: 86%;
  margin-top: -12px;
  padding: 22px clamp(10px, 2.4vw, 26px) 16px;
  border: 1px solid var(--box-edge);
  border-radius: 22px;
  background: linear-gradient(180deg, #f8f4ec, var(--box));
  color: var(--box-ink);
  box-shadow:
    0 -1px 0 rgba(255, 255, 255, 0.9) inset,
    0 -5px 0 var(--box-edge) inset,
    0 30px 50px -22px rgba(0, 0, 0, 0.55),
    0 10px 18px -10px rgba(0, 0, 0, 0.35);
}

/* The USB cable, out of the right side and down. */
.box::after {
  content: "";
  position: absolute;
  top: 46%;
  right: -34px;
  width: 34px;
  height: 90px;
  border: 7px solid var(--hot);
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 26px 0 0;
  z-index: -1;
}

.led {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hot);
  box-shadow: 0 0 10px 2px rgba(255, 90, 31, 0.6);
}

.knob {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 4px;
  user-select: none;
  -webkit-user-select: none;
}

.knob input {
  position: absolute;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* The ring shows the level over 270 degrees, from bottom left round to bottom right. */
.dial {
  --size: clamp(46px, 6vw, 70px);
  position: relative;
  display: grid;
  width: var(--size);
  height: var(--size);
  padding: calc(var(--size) * 0.085);
  border-radius: 50%;
  background: conic-gradient(from 225deg, var(--hot) calc(var(--v) * 270deg), rgba(43, 39, 34, 0.14) 0 270deg, transparent 0);
  cursor: grab;
  touch-action: none;
}

.knob:active .dial {
  cursor: grabbing;
}

.dial i {
  position: relative;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #4a4744, #1d1b19 62%);
  box-shadow: 0 6px 10px -3px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(255, 255, 255, 0.18) inset;
  transform: rotate(calc(-135deg + var(--v) * 270deg));
}

.dial i::after {
  content: "";
  position: absolute;
  top: 10%;
  left: 50%;
  width: 3px;
  height: 28%;
  margin-left: -1.5px;
  border-radius: 2px;
  background: #fff;
}

.knob input:focus-visible + .dial {
  outline: 2px solid var(--box-ink);
  outline-offset: 3px;
}

.knob b {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
}

/* A long label (MUSIC APP) wraps under its knob rather than getting cut. */
.knob small {
  max-width: 100%;
  color: #6f675c;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.hint {
  margin-top: 18px;
  color: var(--ink-3);
  font-size: 0.92rem;
}

/* --- Stories ---------------------------------------------------------- */

.story {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  padding: clamp(48px, 7vw, 96px) 0;
}

.story:nth-of-type(even) .scene {
  order: 1;
}

/* Each scene sits on its own patch of bloom, like a window on a desktop. */
.scene {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 440px;
  padding: clamp(24px, 4vw, 48px);
  overflow: hidden;
  border: 1px solid var(--mica-edge);
  border-radius: 28px;
  background:
    radial-gradient(70% 60% at 80% 100%, light-dark(rgba(250, 90, 26, 0.32), rgba(250, 90, 26, 0.4)), transparent 70%),
    radial-gradient(60% 60% at 10% 0%, light-dark(rgba(214, 204, 186, 0.8), rgba(142, 60, 30, 0.45)), transparent 70%),
    var(--mica);
  box-shadow: 0 40px 80px -40px var(--shadow);
}

.story:nth-of-type(2) .scene {
  background:
    radial-gradient(70% 60% at 20% 100%, light-dark(rgba(255, 170, 110, 0.4), rgba(255, 138, 61, 0.3)), transparent 70%),
    radial-gradient(60% 70% at 90% 0%, light-dark(rgba(250, 90, 26, 0.28), rgba(250, 90, 26, 0.38)), transparent 70%),
    var(--mica);
}

.words h2,
.jobs h2,
.close h2 {
  font-size: clamp(1.9rem, 1.1rem + 2.2vw, 2.9rem);
  font-weight: 720;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.words p {
  max-width: 46ch;
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 1.08rem;
  line-height: 1.6;
  text-wrap: pretty;
}

/* Settings, with knob B's job menu open over it. */
.settings {
  position: relative;
  width: min(100%, 400px);
  /* Room for the menu, which hangs below the window. */
  margin: 0 90px 140px 0;
  padding-bottom: 14px;
  font-size: 13px;
}

.cap {
  padding: 6px 16px 8px;
  font-size: 14px;
  font-weight: 600;
}

.knobs {
  display: grid;
  gap: 3px;
  padding: 0 10px;
}

.knobs li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 12px;
  border: 1px solid var(--win-line);
  border-radius: 6px;
  background: var(--win-card);
  line-height: 1.35;
}

.knobs b {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: light-dark(rgba(0, 0, 0, 0.06), rgba(255, 255, 255, 0.08));
  font-size: 12px;
}

.knobs li.on b {
  background: var(--win-accent);
  color: #1d1b19;
}

.knobs span {
  flex: 1;
}

.knobs svg {
  width: 14px;
  height: 14px;
  color: var(--win-ink-2);
}

.menu {
  position: absolute;
  top: 74px;
  right: -110px;
  width: 230px;
  padding: 4px;
  border: 1px solid var(--win-line);
  border-radius: 8px;
  background: var(--menu);
  color: var(--win-ink);
  font-size: 12.5px;
  box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(30px) saturate(1.5);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
}

.menu li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 8px;
  border-radius: 4px;
}

.menu li svg {
  flex: none;
  width: 13px;
  height: 13px;
  visibility: hidden;
}

.menu li.ticked svg {
  visibility: visible;
}

.menu li.picked {
  background: light-dark(rgba(0, 0, 0, 0.06), rgba(255, 255, 255, 0.08));
}

.menu .group {
  padding: 8px 10px 3px 29px;
  color: var(--win-ink-2);
  font-size: 11.5px;
  font-weight: 600;
}

.menu > li:first-child {
  padding-left: 29px;
}

.menu .sep {
  height: 1px;
  margin: 4px 6px;
  padding: 0;
  background: var(--win-line);
}

.menu > li:last-child {
  padding-left: 29px;
}

/* Two screens, one knob. */
.desk {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  width: 100%;
}

.monitor {
  display: grid;
  justify-items: center;
}

/* The stand: a neck and a foot under each screen. */
.monitor::after {
  content: "";
  order: 1;
  width: 34%;
  height: 34px;
  margin-top: -1px;
  background:
    linear-gradient(#24211e, #0e0d0c) center top / 18% 26px no-repeat,
    linear-gradient(#2e2a26, #0e0d0c) center bottom / 100% 8px no-repeat;
  border-radius: 0 0 6px 6px;
}

.monitor p {
  order: 2;
  margin-top: 14px;
}

.glass {
  container-type: inline-size;
  display: grid;
  place-items: end center;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding-bottom: 9%;
  border: 6px solid #121110;
  border-radius: 12px;
  background:
    radial-gradient(70% 80% at 60% 100%, light-dark(rgba(255, 170, 110, 0.75), rgba(250, 90, 26, 0.5)), transparent 70%),
    linear-gradient(165deg, light-dark(#e8dcc8, #2a1a12), light-dark(#f6f1e8, #0d0b0a) 75%);
  box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.55);
}

.glass .flyout {
  width: 64cqw;
  height: 14cqw;
  gap: 3.6cqw;
  padding: 0 4.4cqw;
  border-radius: 2.6cqw;
  font-size: 4cqw;
}

.glass .flyout svg {
  width: 5.6cqw;
  height: 5.6cqw;
}

.glass .flyout i {
  height: 1.2cqw;
}

.glass .flyout i::after {
  width: 4.4cqw;
  height: 4.4cqw;
  margin: -2.2cqw 0 0 -2.2cqw;
  box-shadow: 0 0 0 1cqw light-dark(#fff, #454545);
}

.glass .flyout span {
  min-width: 7cqw;
}

.monitor p {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 500;
}

.monitor p b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--hot);
  color: #fff;
  font-size: 11px;
}

/* Calibration, knob B turning. */
.cal {
  width: min(100%, 400px);
  padding-bottom: 18px;
  font-size: 13.5px;
  line-height: 1.5;
}

.cal-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 22px 4px;
}

.cal-head strong {
  font-size: 22px;
  font-weight: 600;
}

.cal .dial {
  --size: 54px;
  background: conic-gradient(from 225deg, var(--win-accent) 270deg, transparent 0);
  cursor: default;
}

.cal .dial i {
  animation: turn 2.6s ease-in-out infinite alternate;
}

@keyframes turn {
  from {
    transform: rotate(-125deg);
  }

  to {
    transform: rotate(125deg);
  }
}

.cal p {
  padding: 8px 22px 0;
  color: var(--win-ink-2);
}

.progress {
  height: 4px;
  margin: 16px 22px 0;
  border-radius: 99px;
  background: light-dark(rgba(0, 0, 0, 0.12), rgba(255, 255, 255, 0.14));
}

.progress i {
  display: block;
  width: calc(var(--v) * 100%);
  height: 100%;
  border-radius: inherit;
  background: var(--win-accent);
}

.cal .left {
  color: var(--win-ink);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
  padding: 14px 22px 0;
  border-top: 1px solid var(--win-line);
}

.buttons span {
  min-width: 96px;
  padding: 6px 14px;
  border: 1px solid var(--win-line);
  border-radius: 5px;
  background: var(--win-card);
  text-align: center;
}

.buttons .primary {
  border-color: transparent;
  background: var(--win-accent);
  color: #1d1b19;
}

/* --- Jobs ------------------------------------------------------------- */

.jobs {
  padding: clamp(56px, 8vw, 110px) 0 clamp(40px, 6vw, 72px);
  text-align: center;
}

.jobs > p {
  max-width: 52ch;
  margin: 16px auto 0;
  color: var(--ink-2);
  font-size: 1.05rem;
}

.jobs ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 920px;
  margin: 40px auto 0;
}

.jobs li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 8px;
  border: 1px solid var(--mica-edge);
  border-radius: 99px;
  background: var(--mica);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-weight: 500;
  transition: transform 0.25s var(--ease), border-color 0.25s;
}

.jobs li:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.jobs li svg {
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff7a3d, #e2501a);
  color: #fff;
}

.jobs em {
  padding: 2px 8px;
  border-radius: 99px;
  background: light-dark(rgba(157, 93, 0, 0.12), rgba(255, 185, 86, 0.14));
  color: light-dark(#8a5200, #ffb956);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 600;
}

/* --- Features --------------------------------------------------------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px clamp(24px, 4vw, 56px);
  padding: clamp(40px, 6vw, 72px) 0;
}

.features li {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.features strong {
  display: block;
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.features span {
  display: block;
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.6;
}

.features b {
  color: var(--ink);
  font-weight: 600;
}

/* --- Close ------------------------------------------------------------ */

.close {
  position: relative;
  display: grid;
  justify-items: center;
  margin: clamp(32px, 6vw, 80px) 0 clamp(64px, 8vw, 110px);
  padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 64px);
  border: 1px solid var(--mica-edge);
  border-radius: 32px;
  background:
    radial-gradient(60% 80% at 50% 0%, light-dark(rgba(250, 90, 26, 0.28), rgba(250, 90, 26, 0.36)), transparent 70%),
    radial-gradient(50% 60% at 100% 100%, light-dark(rgba(214, 204, 186, 0.9), rgba(142, 60, 30, 0.4)), transparent 70%),
    var(--mica);
  text-align: center;
  box-shadow: 0 40px 80px -40px var(--shadow);
}

.close img {
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.3));
}

.close h2 {
  margin-top: 20px;
}

.close dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: 100%;
  margin-top: 36px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
}

.close dl div {
  padding: 20px 18px;
  background: light-dark(rgba(255, 252, 245, 0.6), rgba(29, 27, 25, 0.6));
}

.close dt {
  color: var(--ink-3);
  font-size: 0.85rem;
  font-weight: 600;
}

.close dd {
  margin-top: 6px;
  font-weight: 500;
  line-height: 1.4;
}

.tip {
  max-width: 62ch;
  margin-top: 26px;
  color: var(--ink-2);
  font-size: 0.92rem;
}

.close .get {
  justify-content: center;
  margin-top: 30px;
}

/* TheeJ's own icon stands in for the ghost's glyph. */
.ghost img {
  flex: none;
  width: 22px;
  height: 22px;
  margin-left: -2px;
  border-radius: 6px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding: 28px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.95rem;
}

footer a {
  color: var(--ink);
}

/* The cookie notice: Mica at the bottom, over everything but the language menu. */
.cookies {
  position: fixed;
  z-index: 25;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  max-width: 36rem;
  margin-inline: auto;
  padding: 10px 10px 10px 20px;
  border: 1px solid var(--win-line);
  border-radius: 14px;
  background: var(--menu);
  color: var(--win-ink-2);
  font-size: 0.9rem;
  line-height: 1.45;
  box-shadow: 0 20px 40px -14px var(--shadow);
  backdrop-filter: blur(30px) saturate(1.5);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
}

.cookies .button {
  flex: none;
}

/* --- Smaller screens -------------------------------------------------- */

@media (max-width: 1020px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .close dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings {
    margin-right: 0;
  }


  .menu {
    right: -8px;
  }
}

@media (max-width: 860px) {
  /* One column puts the hero copy under the top-right light, so it dims to keep the text readable. */
  .bloom i:nth-child(1) {
    background: light-dark(rgba(255, 154, 92, 0.42), rgba(250, 90, 26, 0.38));
  }

  .bloom i:nth-child(3) {
    background: light-dark(rgba(255, 201, 160, 0.4), rgba(255, 138, 61, 0.18));
  }

  .hero,
  .story {
    grid-template-columns: minmax(0, 1fr);
  }

  .story:nth-of-type(even) .scene {
    order: 0;
  }

  .hero {
    padding-top: 32px;
  }

  .rig {
    margin-top: 12px;
  }
}

@media (max-width: 560px) {
  .top {
    gap: 8px;
  }

  .langs .full {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .langs .code {
    display: inline;
  }

  .mac {
    padding: 0 9px;
  }

  .mac span,
  .mac svg {
    display: none;
  }

  .get > * {
    flex: 1 1 100%;
  }

  .get .dl summary {
    width: 100%;
  }

  .dl-menu {
    right: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .close .dl-menu {
    left: 0;
    translate: none;
  }

  .top .dl {
    position: static;
  }

  .top .dl-menu {
    right: 12px;
    left: 12px;
  }

  .box {
    width: 96%;
    margin-top: -18px;
    border-radius: 16px;
  }

  .box::after {
    display: none;
  }

  .knob small {
    font-size: 8.5px;
    letter-spacing: 0.03em;
  }

  .scene {
    min-height: 0;
    padding: 18px;
    border-radius: 20px;
  }

  /* The job menu opens under knob B instead of beside it. */
  .settings {
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .menu {
    position: static;
    width: auto;
    margin: 10px;
  }

  .desk {
    gap: 10px;
  }

  .features,
  .close dl {
    grid-template-columns: minmax(0, 1fr);
  }

  .cookies {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
  }
}

@media (max-width: 380px) {
  .top-download {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation: none !important;
  }
}
