/* Aiken: the page. Every colour is a variable; [data-theme="dark"] on <html> is the one switch. */

@font-face {
  font-family: "Sofia Sans XC";
  font-style: normal; font-weight: 1 1000; font-display: swap;
  src: url(/fonts/sofia-sans-extra-condensed-latin-wght-normal.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: "Sofia Sans XC";
  font-style: normal; font-weight: 1 1000; font-display: swap;
  src: url(/fonts/sofia-sans-extra-condensed-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Geist Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/geist-mono-latin-400-normal.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: "Geist Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/geist-mono-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Geist Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/fonts/geist-mono-latin-500-normal.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: "Geist Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/fonts/geist-mono-latin-ext-500-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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;
}


/* ---------- tokens: black is the design; [data-theme="light"] is the one switch to white ---------- */
:root {
  /* one hue family (blue, about 222°) and white. No cyan, no green. */
  --bg: #020308;              /* black, a breath of blue */
  --bg-2: #050a1c;            /* plates: the cards, the code box, the payment form's frame */
  --ink: #f3f6ff;
  --ink-2: #a4b2d6;
  --ink-3: #5f6b8c;
  --line: rgb(164 184 255 / 0.12);
  --line-2: rgb(164 184 255 / 0.24);
  --blue: #0053fd;            /* the one strong blue */
  --blue-hover: #1f68ff;
  --blue-2: #3d78ff;          /* the same blue, lighter: lines, hovers */
  --accent: #8fb0ff;          /* blue as text on black */
  --on-blue: #ffffff;
  --light: #c9d8ff;           /* white with blue in it: the frame's travelling light, the glints */
  --frame: #0053fd;
  --stage: #000;
  --stage-edge: rgb(164 184 255 / 0.16);
  --stage-shadow: 0 44px 90px -36px #000;
  --plate: #050a1c;
  --mark: rgb(143 176 255 / 0.5);
  --on-stage: #f3f6ff;
  --on-stage-2: rgb(243 246 255 / 0.6);
  --panel: rgb(4 6 16 / 0.86);
  --focus: #8fb0ff;
  --grain-o: .5;              /* the engraving's grain over the page */
  /* the ribbons' two inks, the fallen angel's: navy and white */
  --dot-1: #1b3796; --dot-2: #dbe4ff;
  --edge-1: rgb(226 234 255 / 0.62); --edge-2: rgb(164 184 255 / 0.22);   /* the video's lit edge, top and sides */
  --lamp: rgb(170 190 255 / 0.21);
  --lamp-s3: rgb(170 190 255 / 0.3);
  --edge-s3: rgb(240 244 255 / 0.85);

  --display: "Sofia Sans XC", "Arial Narrow", sans-serif-condensed, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* one spacing scale, used everywhere */
  --s0: 4.04px; --s1: 8.08px; --s2: 13.13px; --s3: 22.22px; --s4: 36.36px; --s5: 58.58px; --s6: 92.92px; --s7: 149.48px;   /* +1%, Round 8 */
  --fw: 4.5px;                                /* frame width */
  --gutter: max(var(--s3), min(6.57vw, 101px));
  --peek: 52px;                               /* how much of a locked section shows */
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #eef6fe;
  --bg-2: #050a1c;
  --ink: #08123a;
  --ink-2: #3d4d7c;
  --ink-3: #7684a9;
  --line: rgb(8 18 58 / 0.12);
  --line-2: rgb(8 18 58 / 0.24);
  --blue-hover: #0046d6;
  --accent: #0053fd;
  --stage-edge: rgb(5 11 36 / 0.9);
  --stage-shadow: 0 34px 70px -38px rgb(5 11 36 / 0.6);
  --mark: rgb(0 83 253 / 0.6);
  --focus: #0053fd;
  --grain-o: 0;
  --dot-1: #0b2a8e; --dot-2: #0053fd;
  --edge-1: rgb(5 11 36 / 0.9); --edge-2: rgb(5 11 36 / 0.5); --lamp: rgb(0 40 190 / 0.1); --lamp-s3: rgb(0 40 190 / 0.1); --edge-s3: var(--edge-1);
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.45 var(--display);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
p { margin: 0; }

/* ---------- the scrollbar, on every page: thin and dark with a blue handle ---------- */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: #05070f; }
::-webkit-scrollbar-thumb { background: var(--blue); border: 2px solid #05070f; border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue-2); }
@supports not selector(::-webkit-scrollbar) { html { scrollbar-width: thin; scrollbar-color: var(--blue) #05070f; } }

/* ---------- the window frame: one light travels round it, with no seam at any corner ----------
   The ring is a static mask; under it a square of conic light turns. Turning is a transform, so the GPU does it alone. */
.frame {
  position: fixed; inset: 0; z-index: 50; pointer-events: none; overflow: hidden; padding: var(--fw);
  background: var(--frame);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.frame::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 150vmax; height: 150vmax; margin: -75vmax 0 0 -75vmax;
  background: conic-gradient(var(--frame) 0deg 292deg, var(--blue-2) 318deg, var(--light) 336deg, #fff 342deg, var(--light) 348deg, var(--frame) 360deg);
  animation: travel 18s linear infinite; will-change: transform;
}
@keyframes travel { to { transform: rotate(360deg); } }
@keyframes arc { from { transform: translate(-66%, -10%); } to { transform: translate(0%, -50%); } }
/* the engraving's grain, carried over the whole page: plain alpha, no blending (blending a fixed layer costs every frame) */
.grain {
  position: fixed; inset: 0; z-index: 49; pointer-events: none;
  background: url(/img/grain.png) 0 0 / 192px 192px; opacity: calc(var(--grain-o) * .07);
}

/* ---------- sections, and the lock: a locked section shows only its top edge ---------- */
.sec {
  position: relative;
  min-height: calc(100svh - var(--peek));
  padding: 0 calc(var(--fw) + var(--gutter));
}
.sec.s3 { min-height: 100svh; }
.sec.locked { min-height: 0; height: var(--peek); overflow: clip; }
.sec.locked .head { opacity: .5; }
.sec.locked > :not(.head) { visibility: hidden; }
.sec.locked ~ .sec { display: none; }

/* the row at the top of sections 2 and 3: number, hairline, name (after Hermes's "#1 CONNECT" labels) */
.head {
  height: var(--peek);
  display: flex; align-items: center; gap: var(--s2);
  font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
  transition: opacity .6s var(--ease);
}
.head i { flex: 1; height: 1px; background: var(--line-2); }
.head .num { color: var(--accent); }

/* ---------- section 1: the first screen ---------- */
.s1 {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  padding-top: calc(var(--fw) + clamp(var(--s3), 4svh, var(--s4)));
  padding-bottom: clamp(var(--s3), 3.4svh, var(--s4));
  height: calc(100svh - var(--peek)); min-height: 480px;
}
.brand {
  justify-self: center;
  display: inline-flex; align-items: center; gap: var(--s2);
  text-decoration: none; color: var(--ink);
  font: 330 30px/1 var(--display); letter-spacing: 0.01em;
}
.brand img { width: 30px; height: 30px; display: block; border-radius: 7px; }
.head .brand.mini { font-size: 20px; gap: var(--s1); color: var(--ink); text-transform: none; letter-spacing: .01em; }
.head .brand.mini img { width: 20px; height: 20px; border-radius: 5px; }
.head .brand.mini:hover span { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.line {
  margin: clamp(var(--s3), 4.2svh, var(--s5)) auto 0;
  max-width: 23em;
  text-align: center;
  font: 300 clamp(30px, min(3.5vw, 5.6svh), 54px)/1.04 var(--display);
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.stage-wrap { animation: rise-c 1s var(--ease) .1s both; transition: scale 1.2s cubic-bezier(.4, 0, .2, 1); }
/* playing: the player has come towards the viewer, the lamp is brighter, the shadow deeper */
.stage-wrap.lit { scale: 1.014; }   /* keep equal to LIFT in aiken.js: the dots move with these edges */
.stage-wrap.lit::before { opacity: 1; }
.stage-wrap .stage { transition: box-shadow 1.2s cubic-bezier(.4, 0, .2, 1); }
.stage-wrap.lit .stage { box-shadow: 0 60px 110px -40px #000, 0 30px 60px -30px #000; }
@keyframes rise-c { from { opacity: 0; margin-top: 14px; } }
.band {
  position: relative; container-type: size;
  margin: clamp(var(--s3), 3.9svh, var(--s4)) calc(-1 * (var(--fw) + var(--gutter)));
  --pad: var(--s2);
}
.band .rib {   /* reaches past the band so the lamp's dots can fall on the page; the ribbons themselves stop inside it */
  position: absolute; left: 0; top: -70px; width: 100%; height: calc(100% + 140px); display: block; pointer-events: none;
  animation: fade 2.4s var(--ease) .3s both;
}
.stage-wrap {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: min(1240px, 100cqw - 2 * (var(--fw) + var(--gutter)), (100cqh - 2 * var(--pad)) * 16 / 9);
  padding: 1px; border-radius: 3px;   /* the lit edge: the light behind catches the top of the player */
  background: linear-gradient(172deg, var(--edge-1), var(--edge-2) 26%, var(--edge-2) 74%, rgb(164 184 255 / .07));
}
.stage-wrap::before {   /* the lamp: one soft light behind the player, a little above its middle */
  content: ""; position: absolute; z-index: -1; inset: -11% -7% -9%; pointer-events: none; opacity: .7; transition: opacity 1.2s cubic-bezier(.4, 0, .2, 1);
  background: radial-gradient(49% 46% at 50% 47%, var(--lamp) 58%, transparent 100%);
}
.base {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s3);
}
.corner { font: 400 11px/1.5 var(--mono); letter-spacing: .03em; color: var(--ink-3); display: flex; gap: var(--s1); flex-wrap: wrap; }
.corner.r { justify-content: flex-end; }
.corner a, .foot a { text-decoration: none; border-bottom: 1px solid var(--line-2); }
.corner a:hover, .foot a:hover { color: var(--ink); border-color: currentColor; }
.dot { opacity: .5; }
.foot .pair { display: inline-flex; gap: var(--s2); white-space: nowrap; }

/* ---------- the stage (video) ---------- */
.stage-wrap .stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--stage);
  border-radius: 2px;
  box-shadow: var(--stage-shadow);
  overflow: hidden;
  color: var(--on-stage);
  isolation: isolate;
}
.stage video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: contain; background: var(--stage); }
.stage .shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgb(2 6 26 / .75), rgb(2 6 26 / 0) 32%);
  opacity: 0; transition: opacity .35s;
}

/* big play: Hermes's white button on the dark stage */
.big-play {
  position: absolute; inset: 0; z-index: 3;
  display: grid; place-items: center; align-content: center; gap: var(--s3);
  background: rgb(2 6 26 / .28);
}
.big-play .tile {
  width: clamp(60px, 7cqw, 88px); aspect-ratio: 1;
  display: grid; place-items: center;
  background: #fff; color: var(--blue);
  border-radius: 2px; position: relative;
  transition: transform .35s var(--ease);
}
.big-play .tile svg { width: 32%; height: 32%; margin-left: 6%; }
.big-play:hover .tile { transform: scale(1.05); }
.big-play .tile::after {
  content: ""; position: absolute; inset: -1px; border: 1px solid #fff; border-radius: 2px;
  animation: ring 3.2s var(--ease) 1.6s infinite;
}
@keyframes ring { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(1.5); } }
.big-play .meta { font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--on-stage-2); min-height: 11px; }

/* subtitles, drawn by us so they sit above our bar and work in our full screen */
.cues {
  position: absolute; left: 0; right: 0; bottom: 7%; z-index: 2; pointer-events: none;
  display: flex; justify-content: center; padding: 0 8%;
  transition: bottom .3s var(--ease);
}
.cues span {
  background: rgb(2 6 26 / .78); color: #fff;
  font: 400 clamp(15px, 2.1cqw, 26px)/1.3 var(--display); letter-spacing: .01em;
  padding: .12em .5em .18em; border-radius: 2px; text-align: center;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.stage.ui .cues { bottom: calc(7% + 44px); }

/* the control bar */
.bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  padding: 0 14px 10px;
  opacity: 0; transform: translateY(6px);
  transition: opacity .3s, transform .3s var(--ease);
  pointer-events: none;
}
.stage:not(.started) .bar { visibility: hidden; }
.stage.ui .bar, .stage.ui .shade { opacity: 1; transform: none; pointer-events: auto; }
.stage.ui .shade { pointer-events: none; }
.stage.playing:not(.ui) { cursor: none; }
.seek { position: relative; height: 22px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.seek .track { position: relative; width: 100%; height: 2px; background: rgb(255 255 255 / .18); transition: height .15s; }
.seek:hover .track, .seek.drag .track, .seek:focus-visible .track { height: 5px; }
.seek .buf, .seek .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; }
.seek .buf { background: rgb(255 255 255 / .22); }
.seek .fill { background: var(--blue); }
.seek .knob {
  position: absolute; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; background: #fff;
  border-radius: 1px; transform: scale(0); transition: transform .15s;
}
.seek:hover .knob, .seek.drag .knob, .seek:focus-visible .knob { transform: scale(1); }
.seek:focus-visible { outline-offset: 0; }
.seek .tip {
  position: absolute; bottom: 20px; translate: -50% 0; padding: 4px 6px;
  font: 500 11px/1 var(--mono); background: var(--panel); border-radius: 2px; opacity: 0; transition: opacity .15s;
  pointer-events: none; white-space: nowrap;
}
.seek:hover .tip { opacity: 1; }
.row { display: flex; align-items: center; gap: 4px; }
.row .grow { flex: 1; }
.ctl {
  height: 34px; min-width: 34px; padding: 0 8px;
  display: inline-grid; place-items: center;
  border-radius: 2px; color: var(--on-stage);
  font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  transition: background-color .15s;
}
.ctl:hover { background: rgb(255 255 255 / .1); }
.ctl.on { color: var(--accent); }
.ctl svg { width: 18px; height: 18px; display: block; }
.time { font: 400 12px/1 var(--mono); letter-spacing: .04em; color: var(--on-stage-2); padding: 0 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.time b { color: var(--on-stage); font-weight: 400; }
.vol { display: inline-flex; align-items: center; }
.vol input { width: 0; opacity: 0; transition: width .2s var(--ease), opacity .2s; accent-color: var(--blue); }
.vol:hover input, .vol:focus-within input { width: 72px; opacity: 1; margin: 0 6px 0 2px; }
.menu-wrap { position: relative; }
.menu {
  position: absolute; bottom: 42px; right: 0; min-width: 132px; padding: 6px;
  background: var(--panel); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid var(--line-2); border-radius: 3px;
  display: grid; gap: 2px;
  animation: pop .18s var(--ease);
}
.menu button {
  text-align: left; padding: 8px 10px 8px 26px; border-radius: 2px; position: relative;
  font: 400 12px/1.2 var(--mono); letter-spacing: .04em; color: var(--on-stage-2); white-space: nowrap;
}
.menu button:hover, .menu button:focus-visible { background: rgb(255 255 255 / .08); color: var(--on-stage); }
.menu button[aria-checked="true"] { color: var(--on-stage); }
.menu button[aria-checked="true"]::before {
  content: ""; position: absolute; left: 10px; top: 50%; width: 6px; height: 6px; margin-top: -3px; background: var(--blue);
}
@keyframes pop { from { opacity: 0; transform: translateY(4px); } }

/* end screen and the error line, inside the stage */
.end, .err {
  position: absolute; inset: 0; z-index: 5;
  display: grid; place-items: center; align-content: center; gap: 18px; text-align: center; padding: 24px;
  background: rgb(5 11 36 / .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: fade .5s var(--ease);
}
.err p { margin: 0; font: 400 13px/1.5 var(--mono); letter-spacing: .02em; color: var(--on-stage-2); }
.end .again { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--on-stage-2); padding: 8px; }
.end .again:hover { color: var(--on-stage); }

/* full screen: ours fills the screen and keeps our frame */
.stage:fullscreen { border-radius: 0; box-shadow: none; border: var(--fw) solid var(--frame); background: #000; }
.stage:-webkit-full-screen { border-radius: 0; box-shadow: none; border: var(--fw) solid var(--frame); background: #000; }
.stage.pseudo-fs {
  position: fixed; inset: 0; z-index: 100; width: 100vw; height: 100dvh; aspect-ratio: auto;
  border-radius: 0; border: 3px solid var(--frame); background: #000; animation: none;
}
html.pseudo-fs-lock, html.pseudo-fs-lock body { overflow: hidden; }
/* a transform or containment on an ancestor would trap position: fixed inside the video's box */
html.pseudo-fs-lock .band { container-type: normal; }
html.pseudo-fs-lock .stage-wrap { translate: none; scale: none; }


/* ---------- buttons (after Hermes: square, uppercase, a light that runs round the edge) ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 44px; padding: 10px 20px 9px;
  font: 560 17px/1 var(--display); letter-spacing: .07em; text-transform: uppercase;
  border-radius: 2px; text-decoration: none; white-space: nowrap;
  transition: background-color .25s, color .25s, box-shadow .25s, opacity .4s, transform .2s var(--ease);
}
.btn-primary { background: var(--blue); color: var(--on-blue); }
.btn-primary:hover { background: var(--blue-hover); }
.btn-light { background: #fff; color: var(--blue); }
.btn-light:hover { background: #e9f1ff; }
.btn-line { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 56px; padding: 15px 30px 14px; font-size: 21px; }
.btn .edge {
  position: absolute; inset: 0; border-radius: inherit; padding: 1.25px; pointer-events: none; overflow: hidden; opacity: 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  transition: opacity .3s;
}
.btn .edge::before {
  content: ""; position: absolute; left: 0; top: 0; width: 300%; height: 300%;
  background: linear-gradient(160deg, transparent 0 15%, #fff 20%, var(--light) 25%, transparent 35% 55%, #fff 60%, var(--light) 65%, transparent 75%);
  animation: arc 2.2s linear infinite;
}
.btn:hover .edge, .btn:focus-visible .edge, .btn.fresh .edge { opacity: 1; }
.btn-light .edge::before { background: linear-gradient(160deg, transparent 0 15%, var(--blue) 20%, var(--light) 25%, transparent 35% 55%, var(--blue) 60%, var(--light) 65%, transparent 75%); }

/* the button under the video: there from the start, shadowed out; a hairline fills as the video nears the moment */
.cta[aria-disabled="true"] {
  background: transparent; color: var(--ink-3); cursor: default;
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.cta[aria-disabled="true"] .edge { opacity: 0 !important; }
.cta::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--blue);
  transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .5s linear, opacity .4s;
}
.cta[aria-disabled="false"]::after { opacity: 0; }
.cta.fresh { animation: alive .9s var(--ease); }
@keyframes alive { 0% { transform: scale(.97); } 45% { transform: scale(1.03); } 100% { transform: none; } }

/* text links */
.link {
  font: 400 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2);
  border-bottom: 1px solid var(--line-2); padding: var(--s0) 0; text-decoration: none;
}
.link:hover { color: var(--ink); border-color: currentColor; }

/* ---------- sections 2 and 3 ---------- */
.s2, .s3 { display: grid; grid-template-rows: var(--peek) minmax(0, 1fr); }
.s3 { grid-template-rows: var(--peek) minmax(0, 1fr) auto; }
/* sections 3 and 4: dust drifting across the whole section, behind everything in it */
.sec > .dust { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; z-index: 0; }
.s3 > :not(.dust), .s4 > :not(.dust) { position: relative; z-index: 1; }
.title {
  margin: 0; outline: none;
  font: 300 clamp(44px, min(5.4vw, 9svh), 88px)/.98 var(--display); letter-spacing: -0.02em;
}

/* section 2: the figure on the left, about 60% of the width, its leg dissolving in the black under the cards */
.s2-body {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, 35vw); align-items: center;
  padding: var(--s3) 0 var(--s4);
}
.art { position: absolute; top: 0; bottom: 0; left: calc(-1 * (var(--fw) + var(--gutter))); margin: 0; z-index: 0; }
.art img { display: block; height: 100%; width: auto; max-width: none; }
.art figcaption {
  position: absolute; left: calc(var(--fw) + var(--gutter)); bottom: var(--s2);
  font: 400 10px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
}
.pick { grid-column: 2; display: flex; flex-direction: column; align-items: stretch; gap: var(--s3); position: relative; z-index: 1; }
.pick::before {   /* every word in this column sits on black */
  content: ""; position: absolute; inset: calc(clamp(44px, min(5.4vw, 9svh), 88px) + 8px) -14% -14% -9%; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--bg) 11%);
  -webkit-mask-image: linear-gradient(#000 88%, transparent); mask-image: linear-gradient(#000 88%, transparent);
}
.pick .title { margin-bottom: var(--s1); }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); width: 100%; }
.card {
  position: relative; overflow: hidden; text-align: left;
  min-height: 236px; padding: var(--s3) var(--s3) var(--s3);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: var(--s3);
  background: var(--plate); color: var(--on-stage);
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px var(--stage-edge), 0 24px 60px -30px rgb(0 0 0 / .9);
  transition: opacity .4s var(--ease), transform .4s var(--ease), box-shadow .3s;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url(/img/grain.png) 0 0 / 192px 192px;
  -webkit-mask-image: radial-gradient(120% 90% at 100% 0%, #000, transparent 70%); mask-image: radial-gradient(120% 90% at 100% 0%, #000, transparent 70%);
  opacity: .55; transition: opacity .4s;
}
.card:hover::before, .card[aria-pressed="true"]::before { opacity: .9; }
.card > span { position: relative; }
.card .label { font: 500 clamp(9.5px, .76vw, 11px)/1.3 var(--mono); letter-spacing: .08em; white-space: nowrap; text-transform: uppercase; color: var(--on-stage-2); }
.card .name { font: 300 clamp(56px, 5vw, 78px)/.9 var(--display); letter-spacing: -0.02em; margin-top: auto; }
.card .pill {
  display: inline-flex; align-items: center; min-height: 42px; padding: 11px 18px 10px; border-radius: 2px;
  background: #fff; color: var(--blue); font: 560 17px/1 var(--display); letter-spacing: .07em; text-transform: uppercase;
  transition: background-color .25s, color .25s;
}
.card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--line-2), 0 24px 60px -30px rgb(0 0 0 / .9); }
.card[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--blue), 0 0 0 1px var(--blue); }
.card[aria-pressed="true"] .pill { background: var(--blue); color: #fff; }
.cards.picked .card[aria-pressed="false"] { opacity: .45; }

/* what the page found: right under the cards, no empty band */
.result { width: 100%; display: grid; align-content: start; }
.result:empty { display: none; }
.res { display: grid; justify-items: start; gap: var(--s2); animation: rise .5s var(--ease) both; padding-top: var(--s1); }
.res .big { font: 300 clamp(32px, 2.8vw, 42px)/1 var(--display); letter-spacing: -0.01em; }
.res .big.ok { color: var(--accent); font-size: clamp(35px, 3.08vw, 46px); }   /* "Sobib." about a tenth bigger than the other headings here */
.res .big.ok + .meta { font-size: 11px; }
.res .meta { font: 500 10px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.res p { font: 400 19px/1.34 var(--display); color: var(--ink-2); max-width: 30em; text-wrap: pretty; }
.res .path { font: 400 12px/1.6 var(--mono); letter-spacing: .02em; color: var(--ink); background: var(--line); padding: var(--s1) var(--s2); border-radius: 2px; }
.res .choices { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s0); }
.pick .other {   /* a real control now, on its own dark ground so it reads over the engraving */
  align-self: flex-start; font-size: 14px; letter-spacing: .1em; padding: 11px 16px 10px; border: 0; border-radius: 2px;
  box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink);
}
.pick .other:hover { box-shadow: inset 0 0 0 1px var(--ink); }

/* section 3: Aiken arriving on a computer (the payoff: its window opens), the price beside it.
   Pressing "Maksa 99 €" puts Stripe's form in the computer's place, full width, with the price as one row above it. */
.s3-body {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); align-items: center;
  gap: var(--s6); padding: var(--s4) 0;
}
.desk { position: relative; min-height: 0; }
.install { position: relative; width: min(100%, 680px); margin: 0 auto; }
/* the loop waits off screen, so it costs nothing there and starts typing as the student arrives */
.s3:not(.inview) .screen * { animation-play-state: paused; }
.install::before {   /* the same lamp behind the computer */
  content: ""; position: absolute; inset: -9% -7% -7%; pointer-events: none;
  background: radial-gradient(49% 46% at 50% 47%, var(--lamp) 58%, transparent 100%);
}
.screen {
  position: relative; aspect-ratio: 16 / 10; background: var(--stage); border-radius: 6px 6px 2px 2px;
  box-shadow: inset 0 1px 0 var(--edge-1), inset 0 0 0 1px var(--stage-edge), var(--stage-shadow); overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto;
}
.screen::before { content: ""; position: absolute; inset: 0; background: url(/img/grain.png) 0 0 / 192px 192px; opacity: .14; pointer-events: none; }
/* section 3's computer gets the video's treatment: the lit edge, a stronger lamp, and one calm lift on arrival */
.s3 .install::before {
  inset: -13% -10% -11%; opacity: .7; transition: opacity 1.2s cubic-bezier(.4, 0, .2, 1);
  background: radial-gradient(49% 46% at 50% 47%, var(--lamp-s3) 58%, transparent 100%);
}
.s3 .install { transition: scale 1.2s cubic-bezier(.4, 0, .2, 1); }
.s3 .install.lit { scale: 1.014; }   /* keep equal to LIFT in aiken.js */
.s3 .install.lit::before { opacity: 1; }
.s3 .screen { transition: box-shadow 1.2s cubic-bezier(.4, 0, .2, 1); }
.s3 .install.lit .screen { box-shadow: 0 60px 110px -40px #000, 0 30px 60px -30px #000; }
.s3 .screen::after {   /* the lit edge, as round the video: bright along the top, where the lamp catches it */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; padding: 1.5px; border-radius: inherit;
  background: linear-gradient(172deg, var(--edge-s3), rgb(164 184 255 / .34) 30%, rgb(164 184 255 / .3) 74%, rgb(164 184 255 / .12));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.base3 { height: 10px; margin: 0 -6%; background: linear-gradient(var(--line-2), transparent); border-radius: 0 0 8px 8px; box-shadow: inset 0 1px 0 var(--line-2); }
.bar3 { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.bar3 i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.bar3 .ttl { margin-left: auto; margin-right: auto; transform: translateX(-21px); font: 400 10px/1 var(--mono); letter-spacing: .1em; color: var(--ink-3); }
.term { padding: clamp(14px, 3.4cqw, 28px); font: 400 clamp(11px, 1.05vw, 14px)/1.7 var(--mono); color: var(--on-stage-2); container-type: inline-size; }
.term p { margin: 0; }
.cmd { color: var(--on-stage); white-space: nowrap; overflow: hidden; }
.ps { color: var(--accent); }
.typed { display: inline-block; vertical-align: bottom; overflow: hidden; white-space: nowrap; width: 0; animation: type 12s steps(var(--n, 38)) infinite; }
.caret { display: inline-block; width: .55em; height: 1.1em; vertical-align: -.18em; background: var(--on-stage); animation: blink 1s steps(1) infinite; }
.step { opacity: 0; }
.s-a { animation: show-a 12s infinite; margin-top: .6em !important; }
.s-b { animation: show-b 12s infinite; }
.s-c { animation: show-c 12s infinite; color: var(--accent); }
.prog { height: 2px; background: var(--line); margin: .7em 0; position: relative; overflow: hidden; opacity: 0; animation: show-a 12s infinite; }
.prog i { position: absolute; inset: 0; background: var(--blue); transform-origin: left; transform: scaleX(0); animation: fill 12s infinite; box-shadow: 0 0 10px var(--blue); }
.dock {
  justify-self: center; display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 8px 12px; position: relative; z-index: 2;
  border-radius: 10px; background: rgb(255 255 255 / .04); box-shadow: inset 0 0 0 1px var(--line);
}
.dock .slot { width: 30px; height: 30px; border-radius: 8px; background: rgb(255 255 255 / .06); }
.dock .app { width: 30px; height: 30px; border-radius: 8px; opacity: 0; animation: land 12s infinite; }
/* the payoff: Aiken's own window opens out of the dock */
.appwin {
  position: absolute; left: 50%; top: 52%; width: 50%; aspect-ratio: 4 / 3; translate: -50% -50%; z-index: 1;
  background: #070c22; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 60px -20px rgb(0 0 0 / .9);
  display: grid; grid-template-rows: auto 1fr; overflow: hidden; opacity: 0; transform-origin: 50% 140%;
  animation: open 12s var(--ease) infinite;
}
.aw-bar { display: flex; align-items: center; gap: 5px; padding: 7px 9px; border-bottom: 1px solid var(--line); }
.aw-bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.aw-bar span { margin: 0 auto; transform: translateX(-12px); font: 400 9px/1 var(--mono); letter-spacing: .1em; color: var(--ink-3); }
.aw-body { display: grid; place-items: center; align-content: center; gap: 10px; background: radial-gradient(60% 60% at 50% 45%, rgb(0 83 253 / .18), transparent); }
.aw-body img { width: 26%; height: auto; border-radius: 18%; box-shadow: 0 0 40px rgb(0 83 253 / .5); }
.aw-body span { font: 300 clamp(18px, 2.2vw, 28px)/1 var(--display); color: var(--on-stage); letter-spacing: .01em; }
@keyframes type { 0%, 3% { width: 0; } 20%, 95% { width: calc(var(--n, 38) * 1ch); } 98%, 100% { width: 0; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes show-a { 0%, 23% { opacity: 0; } 25%, 95% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes show-b { 0%, 50% { opacity: 0; } 52%, 95% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes show-c { 0%, 59% { opacity: 0; } 61%, 95% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes fill { 0%, 25% { transform: scaleX(0); } 36% { transform: scaleX(.42); } 44% { transform: scaleX(.58); } 51%, 95% { transform: scaleX(1); } 98%, 100% { transform: scaleX(0); } }
@keyframes land {
  0%, 61% { opacity: 0; transform: translateY(18px) scale(.6); }
  65% { opacity: 1; transform: translateY(-5px) scale(1.12); box-shadow: 0 0 0 0 rgb(0 83 253 / .9); }
  68% { transform: none; box-shadow: 0 0 0 10px rgb(0 83 253 / 0); }
  95% { opacity: 1; transform: none; }
  98%, 100% { opacity: 0; }
}
@keyframes open {
  0%, 68% { opacity: 0; transform: scale(.12); }
  75% { opacity: 1; transform: scale(1.02); }
  78%, 95% { opacity: 1; transform: none; }
  98%, 100% { opacity: 0; transform: scale(.96); }
}

/* the payment: a plate the colour of Stripe's form background, the form full width */
.checkout-box {
  position: relative; background: var(--bg-2); border-radius: 2px; box-shadow: inset 0 0 0 1px var(--stage-edge);
  min-height: 420px; padding: var(--s4) clamp(var(--s3), 4vw, var(--s5)); animation: rise .6s var(--ease) both;
}
.co-wait {
  position: absolute; left: 50%; top: 200px; translate: -50% -50%; margin: 0; pointer-events: none;
  font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2);
  padding-bottom: 14px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent) 0 100% / 50% 2px no-repeat;
  animation: sweep 1.4s var(--ease-io) infinite;
}
.co-err { font: 400 18px/1.4 var(--display); color: var(--ink-2); display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); align-items: baseline; margin: 0 0 var(--s3); }
.checkout:empty { display: none; }
@keyframes sweep { from { background-position: -100% 100%; } to { background-position: 200% 100%; } }
.price { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); text-align: left; }
.for { font: 500 11px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); min-height: 1.3em; margin: 0 0 calc(-1 * var(--s1)); }
.product { margin: 0; outline: none; font: 330 28px/1 var(--display); letter-spacing: .01em; color: var(--ink-2); }
.amount { font: 250 clamp(108px, min(11vw, 22svh), 188px)/.82 var(--display); letter-spacing: -0.035em; }
.once { font: 500 10px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--s2); }
.price .btn-lg { min-width: 240px; }
/* "Aiken" and the small lines round the price, about 11% more light than their ink (towards the main ink, so either theme) */
.price .product, .price .link:not(:hover):not(:active) { color: color-mix(in oklab, var(--ink-2), var(--ink) 41%); }
.price .for { color: color-mix(in oklab, var(--accent), var(--ink) 41%); }
.price .once { color: color-mix(in oklab, var(--ink-3), var(--ink) 14%); font-size: 10.5px; }   /* still the smallest line here */
.price .btn[aria-busy="true"] .lbl { opacity: .55; }
/* paying: one column; the price as a row above the full-width form */
.s3-body.paying { grid-template-columns: 1fr; gap: var(--s4); align-content: center; }
.s3-body.paying .price { order: -1; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: var(--s2) var(--s4); }
.s3-body.paying .amount { font-size: clamp(56px, 5vw, 76px); }
.s3-body.paying .once { margin: 0; }
.s3-body.paying .price .btn-lg { display: none; }
.s3-body.paying .price .link { margin-left: auto; }
.s3-body.paying .for { margin: 0; }

/* the local stand-in for Stripe's form (only when the backend answers with its local redirect) */
.standin { display: grid; gap: var(--s3); color: var(--ink); }
.standin .sinote { font: 500 10px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 0; }
.standin label, .standin .fld { display: grid; gap: var(--s1); font: 400 16px/1 var(--display); color: var(--ink-2); }
.standin input, .standin .box {
  height: 48px; padding: 0 14px; border-radius: 2px; border: 1px solid var(--line-2); background: #030612; color: var(--ink);
  font: 400 17px/1 var(--display); outline: none;
}
.standin input:focus { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.standin .row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--s2); }
.standin .box { display: flex; align-items: center; color: var(--ink-3); }
.standin .total { display: flex; justify-content: space-between; font: 400 17px/1 var(--display); color: var(--ink-2); padding-top: var(--s1); border-top: 1px solid var(--line); }
.standin .total b { font-weight: 500; color: var(--ink); }
.standin button { height: 52px; border-radius: 2px; background: var(--blue); color: #fff; font: 500 18px/1 var(--display); }
.standin .sierr { color: #ff6b81; font: 400 15px/1.3 var(--display); margin: 0; }

/* the footer on the last section */
.foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s0) var(--s3);
  font: 400 11px/1.6 var(--mono); letter-spacing: .03em; color: var(--ink-3);
  padding: var(--s3) 0 calc(var(--fw) + var(--s3));
}

/* ---------- section 4, the code: the same computer in the same place as section 3, the words beside it ---------- */
.s4 { min-height: 100svh; display: grid; grid-template-rows: var(--peek) minmax(0, 1fr) auto; }
.s4-body {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr); align-items: center;
  gap: var(--s5) var(--s6); padding: var(--s4) 0;
}
.s4 .screen { aspect-ratio: auto; grid-template-rows: auto auto; }
.s4 .term { aspect-ratio: 16 / 9; }
.s4 .screen::before { display: none; }
.s4 .screen .stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--stage); color: var(--on-stage); isolation: isolate; }
.s4 .screen .stage.pseudo-fs { position: fixed; aspect-ratio: auto; }
html.pseudo-fs-lock .s4-body { z-index: 60; }   /* above the section's other rows and the frame while it fills the page */
.s4 .switch { position: relative; justify-content: center; margin-top: var(--s3); }
.state { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); text-align: left; }
.state .title { font-size: clamp(44px, min(4.6vw, 8svh), 68px); line-height: .98; outline: none; }
.note { font: 400 20px/1.35 var(--display); color: var(--ink-2); max-width: 32em; }
.note b { font-weight: 500; color: var(--ink); }
.note a { color: var(--accent); }
.loading { width: min(320px, 70%); height: 2px; background: var(--line); overflow: hidden; position: relative; }
.loading i { position: absolute; inset: 0; width: 40%; background: var(--blue); animation: load 1.6s var(--ease) infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
/* the terms: one plain sheet */
.sheet {
  min-height: 100svh; display: flex; flex-direction: column; align-items: center;
  gap: var(--s5); padding: calc(var(--fw) + var(--s4)) calc(var(--fw) + var(--gutter)) 0; text-align: center;
}
.sheet .foot { margin-top: auto; width: 100%; }
.codes { display: grid; gap: var(--s3); width: 100%; }
.codebox {
  position: relative; overflow: hidden;
  text-align: left; background: var(--plate); color: var(--on-stage); border-radius: 2px;
  box-shadow: inset 0 1px 0 var(--edge-2), inset 0 0 0 1px var(--stage-edge); padding: var(--s3); display: grid; gap: var(--s2);
  animation: rise .6s var(--ease) both;
}
.codebox::before {   /* the cards' grain */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: url(/img/grain.png) 0 0 / 192px 192px;
  -webkit-mask-image: radial-gradient(90% 120% at 100% 0%, #000, transparent 70%); mask-image: radial-gradient(90% 120% at 100% 0%, #000, transparent 70%);
}
.codebox > * { position: relative; }
.codebox.second { opacity: .85; }
.cb-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.codebox .label { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.codebox code {
  font: 400 13.5px/1.55 var(--mono); color: #fff; overflow-wrap: anywhere; user-select: all;
  padding: var(--s2) 0; border-top: 1px solid rgb(255 255 255 / .1); border-bottom: 1px solid rgb(255 255 255 / .1);
}
.codebox .hint { font: 400 19px/1.35 var(--display); color: var(--on-stage-2); }
.copy {
  font: 560 14px/1 var(--display); letter-spacing: .08em; text-transform: uppercase;
  background: #fff; color: var(--blue); padding: 9px 14px 8px; border-radius: 2px; min-height: 34px;
}
.copy.done { background: var(--blue); color: #fff; }
.switch { display: flex; gap: var(--s3); }
.switch [aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.terms dl { margin: 0; width: min(640px, 100%); text-align: left; display: grid; grid-template-columns: 11em 1fr; gap: var(--s3) var(--s4); }
.terms dt { font: 500 11px/1.9 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.terms dd { margin: 0; font: 400 20px/1.4 var(--display); }
.terms dd a { color: var(--accent); }

/* ---------- entrance ---------- */
.brand { animation: fade .9s var(--ease) both; }
.line { animation: rise 1s var(--ease) .05s both; }
.base { animation: fade 1.2s var(--ease) .45s both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- tablet and phone ---------- */
@media (max-width: 960px), (orientation: portrait) {
  .base { grid-template-columns: 1fr 1fr; }
  .base .cta { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
  /* tablet: the angel above, the choice below */
  .s2-body { grid-template-columns: 1fr; gap: var(--s3); align-content: center; }
  .art { position: relative; inset: auto; margin: 0 calc(-1 * (var(--fw) + var(--gutter))); }
  .art img { width: 100%; height: 46svh; object-fit: cover; object-position: 20% 40%; -webkit-mask-image: linear-gradient(transparent, #000 8%, #000 80%, transparent); mask-image: linear-gradient(transparent, #000 8%, #000 80%, transparent); }
  .art figcaption { position: static; padding: var(--s1) 0 0 calc(var(--fw) + var(--gutter)); }
  .pick { grid-column: auto; }
  .pick::before { display: none; }
  .s3-body, .s4-body { grid-template-columns: 1fr; gap: var(--s4); align-content: center; }
  .price { align-items: center; text-align: center; }
  .install { width: min(100%, 560px); }
}
@media (max-width: 700px) {
  :root { --fw: 3px; --gutter: 18px; --peek: 44px; }
  .s1 { padding-top: calc(var(--fw) + var(--s3)); padding-bottom: var(--s3); min-height: 560px; }
  .brand { font-size: 24px; } .brand img { width: 24px; height: 24px; border-radius: 6px; }
  .line { font-size: clamp(28px, 8.2vw, 36px); margin-top: var(--s4); }
  .band { margin: var(--s3) calc(-1 * (var(--fw) + var(--gutter))); --pad: var(--s4); }
  .stage-wrap { width: min(100cqw, (100cqh - 2 * var(--pad)) * 16 / 9); }
  .stage-wrap .stage { border-radius: 0; box-shadow: 0 0 0 1px var(--stage-edge); }
    .base { grid-template-columns: 1fr; justify-items: center; gap: var(--s2); }
  .base .cta { width: min(100% - 24px, 360px); min-height: 52px; }
  .corner, .corner.r { justify-content: center; }
  .foot { flex-direction: column; align-items: center; } .foot .sep { display: none; }
  .vol input, .time .of { display: none; }
  .bar { padding: 0 6px 4px; }
  .s2-body { padding: 0 0 var(--s3); gap: var(--s2); align-content: center; }
  .art img { height: 38svh; object-position: 24% 40%; }
  .art figcaption { font-size: 9px; }
  .title { font-size: clamp(38px, 10.5vw, 48px); }
  .pick { gap: var(--s2); }
  .cards { gap: var(--s1); }
  .card { min-height: 0; padding: var(--s2) var(--s2) var(--s2); gap: var(--s3); }
  .card .label { font-size: 9px; letter-spacing: .06em; white-space: normal; }
  .card .name { font-size: 46px; }
  .card .pill { min-height: 40px; font-size: 15px; padding: 10px 12px 9px; }
  .pick .other { font-size: 13px; }
  .res p { font-size: 18px; }
  .s3-body { gap: var(--s3); padding: var(--s3) 0; }
  .install { width: min(89%, 560px); }   /* the laptop's base (6% wider each side) still fits the column */
  .stage-wrap::before, .install::before, .s3 .install::before { left: 0; right: 0; }
  .amount { font-size: clamp(96px, 30vw, 132px); }
  .price { gap: var(--s2); }
  .price .btn-lg { width: min(100% - 24px, 360px); }
  .checkout-box { margin: 0; padding: var(--s3) var(--s2); }   /* the payment keeps the column's margin, centred */
  .standin .row { grid-template-columns: 1fr 1fr; } .standin .row .box:first-child { grid-column: 1 / -1; }
  .sheet { gap: var(--s4); padding-top: calc(var(--fw) + var(--s3)); }
  .state { align-items: stretch; }
  .codebox code { font-size: 13px; }
  .terms dl { grid-template-columns: 1fr; gap: var(--s1); }
  .terms dd { margin-bottom: var(--s3); }
}
/* an ordinary laptop window: a little tighter, and the video gains the difference */
@media (max-height: 860px) and (min-width: 701px) {
  :root { --peek: 40px; }
  .line { margin-top: var(--s3); }
  .band { margin-top: var(--s3); margin-bottom: var(--s3); }
}
/* a short window (a laptop with its browser bars): everything tightens so the video stays big */
@media (max-height: 760px) and (min-width: 701px) {
  :root { --peek: 36px; }
  .s1 { padding-top: calc(var(--fw) + var(--s2)); padding-bottom: var(--s2); min-height: 0; }
  .brand { font-size: 24px; } .brand img { width: 24px; height: 24px; border-radius: 6px; }
  .line { margin-top: var(--s1); font-size: clamp(24px, 5svh, 34px); }
  .band { margin: var(--s2) calc(-1 * (var(--fw) + var(--gutter))); --pad: var(--s1); }
  .base .btn { min-height: 40px; }
}
/* a phone on its side: the video takes the screen, the rest follows below it, each section in two columns */
@media (max-height: 480px) and (orientation: landscape) {
  :root { --gutter: max(22px, 4vw, env(safe-area-inset-left), env(safe-area-inset-right)); }
  .s1 { height: auto; min-height: 0; grid-template-rows: auto auto auto; padding-top: var(--fw); padding-bottom: var(--s3); }
  .s1 .brand { display: none; }
  .band { order: -1; height: calc(100svh - 2 * var(--fw)); margin: 0 calc(-1 * (var(--fw) + var(--gutter))); --pad: 0px; }
  .stage-wrap { width: min(100cqw, 100cqh * 16 / 9); }
  .line { margin: var(--s3) auto; font-size: 24px; }
  .base { grid-template-columns: 1fr auto 1fr; }
  .base .cta { grid-column: auto; grid-row: auto; width: auto; }
  .corner, .corner.r { justify-content: flex-start; } .corner.r { justify-content: flex-end; }
  /* section 2: the figure beside the cards */
  .s2-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--s4); align-items: center; align-content: center; padding: 0 0 var(--s2); }
  .art { position: relative; inset: auto; margin: 0 0 0 calc(-1 * var(--gutter)); }
  .art img { width: 100%; height: auto; max-height: calc(100svh - var(--peek) - 34px); object-fit: contain; -webkit-mask-image: none; mask-image: none; }
  .art figcaption { position: static; padding: var(--s0) 0 0; font-size: 8px; text-align: center; }
  .pick { grid-column: 2; gap: var(--s2); }
  .pick .title { margin: 0; font-size: 34px; text-align: center; }
  .cards { gap: var(--s1); }
  .card { min-height: 0; padding: var(--s2); gap: var(--s1); align-items: center; justify-content: center; text-align: center; }
  .card .name { margin-top: 0; font-size: 34px; }
  .card .label { font-size: 9px; white-space: normal; }
  .card .pill { min-height: 36px; padding: 8px 12px 7px; font-size: 14px; }
  .res { justify-items: center; text-align: center; }
  .res .choices { justify-content: center; }
  .pick .other { align-self: center; }
  /* section 3 and the code page: side by side */
  .s3-body { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--s4); padding: var(--s1) 0; align-content: center; }
  .install { width: 100%; }
  .s3 .cmd { font-size: min(1em, 1.5vw); }
  .price { gap: var(--s1); align-items: center; text-align: center; }
  .amount { font-size: 72px; }
  .once { margin-bottom: var(--s0); }
  .price .btn-lg { width: min(100%, 360px); min-width: 0; min-height: 48px; padding: 10px 20px 9px; font-size: 18px; }
  .s4-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s4); padding: var(--s2) 0; align-items: start; }
  .state .title { font-size: 34px; }
  .note { font-size: 18px; }
}
@media (hover: none) { .vol input { display: none; } .card:hover { transform: none; } }
/* upright screens, tablets too: the figure without the sword, centred above the choice */
@media (orientation: portrait) {
  .art img { width: min(100%, 72svh); height: auto; margin: 0 auto; -webkit-mask-image: none; mask-image: none; }
  .art figcaption { padding: var(--s1) 0 0; text-align: center; }
  .pick .title { margin-bottom: 0; text-align: center; }
  .res { justify-items: center; text-align: center; }
  .res .choices { justify-content: center; }
  .pick .other { align-self: center; }
}
@media (orientation: portrait) and (min-aspect-ratio: 18/25) {
  .art img { -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 92%, transparent); }
}
/* a phone upright: Mac over Windows, centred; the video never less than edge to edge */
@media (max-width: 700px) and (orientation: portrait) {
  .cards { grid-template-columns: 1fr; gap: var(--s2); width: max(min(100% - 24px, 360px), 80%); margin-inline: auto; }
  .card { align-items: center; justify-content: center; gap: var(--s1); padding: var(--s2); text-align: center; }
  .card .label { white-space: nowrap; }
  .card .name { margin-top: 0; font-size: 44px; }
  .s3 .cmd { font-size: min(1em, 2.75vw); }   /* the line fits the laptop's screen, 89% of the column */
  .s1 { height: auto; min-height: calc(100svh - var(--peek)); grid-template-rows: auto auto minmax(calc(56.25vw + 4 * var(--s3)), 1fr) auto; }
  .band { --pad: var(--s3); }
}
/* phones, either way up: no frame, and the video stays inside the screen when it plays */
@media (max-width: 700px), (max-height: 480px) {
  :root { --fw: 0px; }
  .frame { display: none; }
  .stage-wrap.lit { scale: none; }
  .big-play .tile { width: 72px; }
}
/* a computer window under 1280 wide: section 2 is the tower, as below 960: the painting on top, the choice under it */
@media (hover: hover) and (min-width: 961px) and (max-width: 1279px) and (orientation: landscape) {
  .s2-body { grid-template-columns: 1fr; gap: var(--s3); align-content: center; }
  .art { position: relative; inset: auto; margin: 0 calc(-1 * (var(--fw) + var(--gutter))); }
  .art img { width: 100%; height: 46svh; object-fit: cover; object-position: 20% 40%; -webkit-mask-image: linear-gradient(transparent, #000 8%, #000 80%, transparent); mask-image: linear-gradient(transparent, #000 8%, #000 80%, transparent); }
  .art figcaption { position: static; padding: var(--s1) 0 0 calc(var(--fw) + var(--gutter)); }
  .pick { grid-column: auto; width: min(100%, 880px); justify-self: center; }
  .pick::before { display: none; }
}
/* the tower in a computer window, centred like the upright layout, the cards' contents too (as Hermes centres them) */
@media (hover: hover) and (min-width: 701px) and (max-width: 1279px) and (min-height: 481px) {
  .card { align-items: center; justify-content: center; gap: var(--s2); text-align: center; }
  .card .name { margin-top: 0; font-size: 78px; }   /* the card's words as big as in his window's card, which is no wider */
  .card .label { font-size: 11px; }
}
@media (hover: hover) and (min-width: 701px) and (max-width: 1279px) and (orientation: landscape) and (min-height: 481px) {
  .art figcaption { padding-left: 0; text-align: center; }
  .pick .title { text-align: center; }
  .res { justify-items: center; text-align: center; }
  .res .choices { justify-content: center; }
  .pick .other { align-self: center; }
}
/* the tower from about 900 to 1280: the painting sits a little to the right, its left edge fading in, and shows more of its top than its bottom */
@media (hover: hover) and (min-width: 901px) and (max-width: 1279px) and (orientation: landscape) and (min-height: 481px) {
  .art { overflow: hidden; }
  .art picture { display: block; translate: calc(8% - 18px) 0; }
  .art img { object-position: 20% 25%; -webkit-mask-image: linear-gradient(transparent, #000 8%, #000 80%, transparent), linear-gradient(90deg, transparent, #000 10%); -webkit-mask-composite: source-in;
    mask-image: linear-gradient(transparent, #000 8%, #000 80%, transparent), linear-gradient(90deg, transparent, #000 10%); mask-composite: intersect; }
}
/* the letters of "Mis arvuti teil on?" that sit on the blade get a dark halo (aiken.js sets --blade, the blade's band) */
.pick .title.on-blade { position: relative; }
.pick .title.on-blade::after {
  content: attr(data-t); position: absolute; inset: 0; z-index: -1; pointer-events: none; color: var(--bg);   /* under the white letters, so only its halo shows */
  -webkit-text-stroke: 6px var(--bg); text-shadow: 0 0 6px var(--bg), 0 0 12px var(--bg), 0 0 20px var(--bg), 0 0 30px rgb(2 3 8 / .85);
  -webkit-mask-image: var(--blade); mask-image: var(--blade); -webkit-mask-composite: source-in; mask-composite: intersect;
}
/* from his width down to 1280: the painting moves a little to the left and its right side fades away, more as it narrows */
@media (hover: hover) and (min-width: 1280px) and (max-width: 1709px) {
  .pick .title { --halo-pad: 14; --halo-soft: 24; }   /* the heading's halo a little bigger and softer, a fade rather than an edge (aiken.js reads these) */
  .pick .title.on-blade::after { text-shadow: 0 0 6px var(--bg), 0 0 12px var(--bg), 0 0 22px var(--bg), 0 0 36px var(--bg), 0 0 54px rgb(2 3 8 / .8); }
  .art { translate: calc((100vw - 1710px) * 0.12) 0; }
  .art img { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - (1710px - 100vw) * 0.6), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - (1710px - 100vw) * 0.6), transparent); }
}
/* tablets on their side: the laptop layout; the heading sits lower, so the blade clears it */
@media (hover: none) and (orientation: landscape) and (min-height: 481px) {
  .s2-body { align-items: start; }   /* the column stays put when a result opens, so it can't rise into the blade */
  .pick { padding-top: 27svh; }
  .pick::before { top: calc(27svh + clamp(44px, min(5.4vw, 9svh), 88px) + 8px); }
  .art { right: calc(-1 * (var(--fw) + var(--gutter))); bottom: auto; overflow: hidden; }   /* a taller section must not widen the page */
  .art img { height: calc(100svh - 2 * var(--peek) - var(--s3) - var(--s4)); }   /* its size from the screen, not from the column */
}
/* touch: targets of 44 px, room for the notch and home bar, a press look, and no hover looks left behind by a tap */
@media (hover: none) {
  * { -webkit-tap-highlight-color: transparent; }
  html.pseudo-fs-lock .stage-wrap { transition: none; }
  .ctl { height: 44px; min-width: 44px; padding: 0 6px; }
  .row { gap: 0; }
  .time { padding: 0 4px; }
  .seek { height: 44px; margin-bottom: -10px; }
  .seek.drag .tip { opacity: 1; }
  .stage.ui .cues { bottom: calc(7% + 76px); }
  .menu { bottom: 50px; }
  .menu button { min-height: 44px; }
  #speedMenu { grid-template-columns: repeat(3, 1fr); min-width: 0; width: max-content; }
  .copy, .link, .pick .other, .end .again, .base .btn { min-height: 44px; }
  .link { display: inline-flex; align-items: center; }
  .corner a, .foot a, .brand { position: relative; }
  .corner a::after, .foot a::after, .brand::after { content: ""; position: absolute; inset: -13px 0; }
  .foot { padding-bottom: calc(var(--fw) + var(--s3) + env(safe-area-inset-bottom)); }
  .stage.pseudo-fs .bar { padding-bottom: max(6px, env(safe-area-inset-bottom)); }
  .btn:active, .copy:active { transform: scale(.98); }
  /* no hover on touch: the alive button runs its edge light by itself now and then */
  .cta[aria-disabled="false"]:not(.fresh) .edge { animation: glint 7s ease-in-out 2s infinite; }
  @keyframes glint { 0%, 70%, 100% { opacity: 0; } 76%, 92% { opacity: 1; } }
  .card:active { transform: scale(.985); }
  .ctl:active { background: rgb(255 255 255 / .14); }
  .link:active { color: var(--ink); }
  .big-play:hover .tile { transform: none; }
  .ctl:not(:active):hover { background: none; }
  .seek:not(.drag):hover .track { height: 2px; }
  .seek:not(.drag):hover .knob { transform: scale(0); }
  .seek:not(.drag):hover .tip { opacity: 0; }
  .btn-primary:hover { background: var(--blue); }
  .btn-light:hover { background: #fff; }
  .btn-line:hover, .pick .other:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
  .btn:not(.fresh):not(:focus-visible):hover .edge { opacity: 0; }
  .link:not(:active):hover { color: var(--ink-2); border-color: var(--line-2); }
  .corner a:hover, .foot a:hover { color: inherit; border-color: var(--line-2); }
  .card:not([aria-pressed="true"]):hover { box-shadow: inset 0 0 0 1px var(--stage-edge), 0 24px 60px -30px rgb(0 0 0 / .9); }
  .card:not([aria-pressed="true"]):hover::before { opacity: .55; }
  .menu button:hover { background: none; }
  .end .again:hover { color: var(--on-stage-2); }
  /* the code page: the code first; the email carries the steps, because this line goes on a computer */
  .codebox .hint { display: none; }
}
@media (hover: none) and (orientation: portrait), (hover: none) and (max-height: 480px) { .s4-text { order: -1; } }
/* above the laptop range the whole page grows with the screen (theme.js sets --k and zoom). zoom also multiplies
   viewport units, so the few rules that aren't capped by their own clamp are divided back; ultrawide stays centred */
@media (min-width: 1729px) {
  main { max-width: 1760px; margin-inline: auto; }
  .sec { min-height: calc(100svh / var(--k, 1) - var(--peek)); }
  .sec.s3:not(.locked), .s4, .sheet { min-height: calc(100svh / var(--k, 1)); }
  .s1 { height: calc(100svh / var(--k, 1) - var(--peek)); }
  .line { margin-top: clamp(var(--s3), calc(4.2svh / var(--k, 1)), var(--s5)); }
  .s2-body { grid-template-columns: minmax(0, 1fr) minmax(400px, calc(35vw / var(--k, 1))); }
  .frame::before { width: calc(150vmax / var(--k, 1)); height: calc(150vmax / var(--k, 1)); margin: calc(-75vmax / var(--k, 1)) 0 0 calc(-75vmax / var(--k, 1)); }
}

/* ---------- reduced motion: nothing moves on its own ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .frame::before { display: none; }
  /* the install shown at its end, still */
  .typed { width: calc(var(--n, 38) * 1ch); } .step, .prog, .dock .app { opacity: 1; } .prog i { transform: none; }
}
