/* Peakframe Median yhteiset tyylit: /, /fi/ ja /en/ käyttävät tätä. 404.html:llä on omansa. */
/* Fontit ladataan omalta palvelimelta (ei Google Fonts -kutsuja, joten kävijöiden IP-osoitteita ei siirry Googlelle). SIL OFL 1.1, ks. assets/fonts. */
@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-variable.woff2") format("woff2-variations"), url("/assets/fonts/archivo-variable.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-sans-variable.woff2") format("woff2-variations"), url("/assets/fonts/instrument-sans-variable.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
/* Layout: a stream timeline opens the page — the whole stream as a ridge line, one 9:16 frame lands on its peak (the logo, widened).
   Then a single inverted reach block, brands, streamers, contact. Monochrome like the logo; inversion is the only emphasis. */
:root {
  --bg: #111111;
  --surface: #1a1a1a;
  --line: #2b2b2a;
  --fg: #dededc;
  --fg-strong: #ffffff;
  --muted: #8f8f8c;
  --trace: #4a4a48;
  --inv-bg: #ffffff;
  --inv-fg: #111111;
  --inv-muted: #5c5c59;
  --bg-glass: rgba(17, 17, 17, 0.72);
  --glow: rgba(255, 255, 255, 0.10);
  --glow-strong: rgba(255, 255, 255, 0.30);
  --choice-bg: rgba(26, 26, 26, 0.55);
  --panel: rgba(255, 255, 255, 0.025);
  --panel-glow: rgba(255, 255, 255, 0.065);

  /* Language chooser only: the flags are the site's one exception to black and white (decided 6.10.2026).
     Caption bars sit on top of them like captions on a clip. Spark colours are "r,g,b" lists for the canvas. */
  --flag-white: #ffffff;
  --flag-fi-blue: #002f6c;
  --flag-uk-blue: #012169;
  --flag-uk-red: #c8102e;
  --caption-bg: rgba(17, 17, 17, 0.84);
  --caption-fg: #ffffff;
  --flag-rest: brightness(0.86) saturate(0.95);
  --sparks-fi: 255,255,255|82,146,235;
  --sparks-en: 255,255,255|240,72,96|92,120,230;

  /* Light layer (#fx canvas): colour of dust and light as "r, g, b", dust opacity ceiling, key-light strength, blend.
     Dark stage: light adds up. Light theme: dust turns to graphite and the key light is off. */
  --fx-rgb: 255, 255, 255;
  --fx-alpha: 0.62;
  --fx-light: 0.13;
  --fx-blend: lighter;
  --fx-litk: 1;

  --display: "Archivo", "Arial Black", Arial, sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wordmark: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;

  --radius: 10px;
  --header-h: 64px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f6f5; --surface: #ebebe9; --line: #d8d8d5; --fg: #2b2b2a; --fg-strong: #111111;
    --muted: #686865; --trace: #c2c2be; --inv-bg: #111111; --inv-fg: #ffffff; --inv-muted: #a3a3a0;
    --bg-glass: rgba(246, 246, 245, 0.76); --glow: rgba(17, 17, 17, 0.08); --glow-strong: rgba(17, 17, 17, 0.22); --choice-bg: rgba(235, 235, 233, 0.6);
    --panel: rgba(255, 255, 255, 0.72); --panel-glow: rgba(255, 255, 255, 0);
    --fx-rgb: 17, 17, 17; --fx-alpha: 0.24; --fx-light: 0; --fx-blend: source-over; --fx-litk: 0; --flag-rest: none;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f6f6f5; --surface: #ebebe9; --line: #d8d8d5; --fg: #2b2b2a; --fg-strong: #111111;
  --muted: #686865; --trace: #c2c2be; --inv-bg: #111111; --inv-fg: #ffffff; --inv-muted: #a3a3a0;
  --bg-glass: rgba(246, 246, 245, 0.76); --glow: rgba(17, 17, 17, 0.08); --glow-strong: rgba(17, 17, 17, 0.22); --choice-bg: rgba(235, 235, 233, 0.6);
  --panel: rgba(255, 255, 255, 0.72); --panel-glow: rgba(255, 255, 255, 0);
  --fx-rgb: 17, 17, 17; --fx-alpha: 0.24; --fx-light: 0; --fx-blend: source-over; --fx-litk: 0; --flag-rest: none;
  color-scheme: light;
}

* { box-sizing: border-box; }
img { max-width: 100%; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Light layer: one fixed canvas behind the whole page (dust, key light, sparks from the peak). Purely decorative. */
#fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
#site { position: relative; z-index: 1; }
@media print { #fx { display: none; } }

/* Side padding never goes under the notch in landscape (viewport-fit=cover) */
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: max(clamp(16px, 4vw, 48px), env(safe-area-inset-left, 0px)) max(clamp(16px, 4vw, 48px), env(safe-area-inset-right, 0px)); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--fg-strong); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
h1, h2, h3 { margin: 0; color: var(--fg-strong); font-family: var(--display); text-wrap: balance; }
h1 {
  font-size: clamp(2.3rem, 5.6vw, 4.6rem);
  font-weight: 800;
  font-variation-settings: "wdth" 112;
  line-height: 1.02;
  letter-spacing: -0.015em;
  max-width: 22ch;
}
h2 {
  font-size: clamp(1.8rem, 4.2vw, 3.2rem);
  font-weight: 800;
  font-variation-settings: "wdth" 110;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1.3rem;
  font-weight: 700;
  font-variation-settings: "wdth" 106;
  line-height: 1.2;
}
p { margin: 0; }

/* Buttons echo the logo frame: same corner ratio, same stroke weight */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  min-height: 48px; padding: 0.7em 1.3em;
  border-radius: var(--radius);
  border: 2px solid var(--fg-strong);
  font-family: var(--body); font-size: 1rem; font-weight: 600; line-height: 1;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, box-shadow .3s;
}
.btn-solid { background: var(--fg-strong); color: var(--bg); }
.btn-line { background: transparent; color: var(--fg-strong); }
/* Hover only where there is a real pointer, so a tapped button doesn't stay inverted on phones. The frame gives off light. */
@media (hover: hover) {
  .btn-solid:hover { background: transparent; color: var(--fg-strong); box-shadow: 0 0 28px -4px var(--glow-strong); }
  .btn-line:hover { background: var(--fg-strong); color: var(--bg); box-shadow: 0 0 28px -4px var(--glow-strong); }
}
.btn svg { width: 1em; height: 1em; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
/* Frosted header: dust and light pass underneath it */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .top { background: var(--bg-glass); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
}
.top-in { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg-strong); margin-right: auto; }
.mark { width: 30px; height: 30px; flex: none; color: var(--fg-strong); }
.wm { display: flex; align-items: baseline; gap: 0.5em; font-family: var(--wordmark); line-height: 1; }
.wm b { font-weight: 700; font-size: 1.05rem; letter-spacing: 0.01em; }
.wm span { font-size: 0.72rem; letter-spacing: 0.32em; color: var(--fg); }
.nav { display: flex; gap: 24px; }
.nav a { text-decoration: none; font-size: 0.95rem; font-weight: 500; color: var(--fg); }
.nav a[aria-current] { color: var(--fg-strong); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
@media (hover: hover) { .nav a:hover { color: var(--fg-strong); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; } }
/* Language switch: links to the other language's own page (/fi/, /en/) */
.lang { display: inline-flex; border: 1.5px solid var(--line); border-radius: 8px; padding: 2px; }
.lang a {
  display: block; text-decoration: none; color: var(--muted);
  font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; line-height: 1.6;
  padding: 6px 9px; border-radius: 6px;
}
.lang a[aria-current="page"] { background: var(--fg-strong); color: var(--bg); }
@media (hover: hover) { .lang a:not([aria-current]):hover { color: var(--fg-strong); } }
.tools { display: flex; align-items: center; gap: 8px; }
/* Pause / play for the background animation (WCAG 2.2.2). Same frame as the language switch. */
.motion {
  appearance: none; display: inline-grid; place-items: center; flex: none;
  width: 38px; height: 38px; padding: 0; border: 1.5px solid var(--line); border-radius: 8px;
  background: transparent; color: var(--muted); cursor: pointer;
}
.motion svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.motion[data-state="on"] .i-play, .motion[data-state="off"] .i-pause { display: none; }
@media (hover: hover) { .motion:hover { color: var(--fg-strong); border-color: var(--muted); } }
@media (max-width: 720px) { .nav { display: none; } }
@media (max-width: 380px) { .wm span { display: none; } }

/* Hero */
/* Compact on purpose: headline, buttons and the timeline below all fit a laptop screen, so the key light's moment is seen */
.hero { display: grid; gap: 20px; padding-block: clamp(40px, 5vw, 72px) 20px; }
.hero-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-top: 4px; }
.lead { flex: 1 1 30rem; max-width: 70ch; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--fg); }

.scan { margin-block: 0; padding-block: 8px 0; }
.scan-box { width: 100%; }
.scan-box svg { display: block; width: 100%; height: auto; overflow: visible; }
.scan-cap { margin-top: 14px; font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.s-trace { fill: none; stroke: var(--trace); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.s-hot { fill: none; stroke: var(--fg-strong); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
.s-frame { fill: none; stroke: var(--fg-strong); stroke-width: 4; }
.s-frame-bg { fill: var(--surface); fill-opacity: 0.8; stroke: none; }
.s-frame-lit { fill-opacity: var(--fx-litk); }
.s-lit-stop { stop-color: var(--fg-strong); }
.s-glow .s-frame, .s-glow .s-hot { stroke-width: 6; }
.s-axis { stroke: var(--line); stroke-width: 1.5; }
.s-tick { stroke: var(--muted); stroke-width: 1.5; }
.s-lbl { fill: var(--muted); font-family: var(--mono); font-size: 12px; }
.s-peak { fill: var(--fg-strong); font-family: var(--mono); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }

/* Reach block — the one inverted surface on the page */
.reach-sec { padding-block: clamp(56px, 8vw, 96px) 0; }
.reach {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: clamp(20px, 4vw, 56px);
  background: var(--inv-bg); color: var(--inv-fg);
  border-radius: var(--radius);
  padding: clamp(24px, 4.5vw, 56px);
  position: relative;
}
/* The inverted block is a lightbox: it gives off light onto the stage (in the light theme, a soft shadow) */
.reach::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 60px -12px var(--glow-strong), 0 0 200px -24px var(--glow);
}
.reach-num {
  font-family: var(--display); font-weight: 900; font-variation-settings: "wdth" 125;
  font-size: clamp(4.2rem, 15vw, 11.5rem); line-height: 0.82; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.reach-meta { display: grid; gap: 10px; min-width: 0; padding-bottom: 0.3em; }
.reach-label { font-family: var(--display); font-weight: 700; font-variation-settings: "wdth" 108; font-size: clamp(1.2rem, 2.2vw, 1.6rem); line-height: 1.2; }
.reach-sub { color: var(--inv-muted); font-size: 0.95rem; }
/* Always a 2 × 2 block, so one platform never wraps onto a row of its own */
.platforms { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, max-content); gap: 8px; }
.platforms li {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.04em; text-align: center;
  border: 1.5px solid var(--inv-fg); border-radius: 6px; padding: 4px 9px;
}
@media (max-width: 760px) { .reach { grid-template-columns: 1fr; align-items: start; } }

/* Sections */
.sec { padding-block: clamp(72px, 10vw, 128px) 0; }
.sec-head { display: grid; gap: 18px; max-width: 760px; }
.sec-head > p:not(.eyebrow) { max-width: 60ch; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split-head { display: grid; gap: 18px; justify-items: start; position: sticky; top: calc(var(--header-h) + 32px); }
.split-head > p:not(.eyebrow) { max-width: 52ch; }
.split-head .btn { margin-top: 8px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split-head { position: static; } }

/* Audience sections: each is its own lit panel with a big title, so you notice when brands turn into streamers */
.aud-sec { padding-block: clamp(48px, 7vw, 88px) 0; }
.aud {
  padding: clamp(22px, 5vw, 64px);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: radial-gradient(90% 60% at 12% 0%, var(--panel-glow), transparent 70%), var(--panel);
}
.aud-head {
  position: relative; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 24px;
  padding-bottom: clamp(18px, 3vw, 28px); margin-bottom: clamp(28px, 4.5vw, 52px);
}
/* The rule under the title is a light streak: bright where the title starts, fading into an ordinary line */
.aud-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, var(--fg-strong), var(--line) 45%); transform-origin: left; }
.aud-title {
  font-family: var(--display); font-weight: 900; font-variation-settings: "wdth" 125; text-transform: uppercase;
  font-size: clamp(1.5rem, 7vw, 4.4rem); line-height: 0.9; letter-spacing: -0.02em; color: var(--fg-strong);
}
.aud-note { font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.aud .steps { margin-top: 40px; }
/* Inside a panel the big title leads, so the pitch steps down a size */
.aud h2 { font-size: clamp(1.6rem, 3.3vw, 2.6rem); }

.offers { list-style: none; margin: 0; padding: 0; display: grid; }
.offers li { display: grid; gap: 8px; padding-block: 28px; border-top: 1px solid var(--line); }
.offers li:last-child { border-bottom: 1px solid var(--line); }
.offers p { color: var(--fg); max-width: 56ch; }

.steps {
  list-style: none; margin: 48px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  position: relative; overflow: hidden;
}
/* Top rule, plus a playhead that runs along it once when the steps come into view */
.steps::before, .steps::after { content: ""; position: absolute; top: 0; height: 1px; pointer-events: none; }
.steps::before { left: 0; right: 0; background: var(--line); }
.steps::after { left: -180px; width: 180px; background: linear-gradient(90deg, transparent, var(--fg-strong)); opacity: 0; }
.steps li { display: grid; align-content: start; gap: 10px; padding: 24px 24px 28px 0; min-width: 0; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.step-n { font-family: var(--mono); font-size: 0.8rem; font-weight: 500; color: var(--muted); letter-spacing: 0.08em; }
.steps p { color: var(--fg); font-size: 0.98rem; }
@media (max-width: 980px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 22px 0; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--line); }
}
.after-steps { margin-top: 32px; }

/* Contact */
.contact { display: grid; gap: 18px; justify-items: start; padding-bottom: clamp(72px, 10vw, 128px); }
.email {
  font-family: var(--display); font-weight: 700; font-variation-settings: "wdth" 104;
  font-size: clamp(1.45rem, 5.4vw, 3.6rem); line-height: 1.1; color: var(--fg-strong);
  overflow-wrap: anywhere; user-select: all; max-width: 100%;
  padding-block: 8px;
}
.copy-status { min-height: 1.6em; font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }

/* Footer */
.foot { border-top: 1px solid var(--line); }
.foot-in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px 64px; padding-block: 48px; align-items: start; }
.lockup { display: grid; justify-items: center; gap: 10px; color: var(--fg-strong); width: 132px; }
.lockup .mark { width: 64px; height: 64px; }
.lockup b { font-family: var(--wordmark); font-weight: 700; font-size: 1.12rem; letter-spacing: 0.01em; line-height: 1; }
.lockup span { font-family: var(--wordmark); font-size: 0.66rem; letter-spacing: 0.42em; margin-right: -0.42em; line-height: 1; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 20px 32px; }
.facts div { display: grid; gap: 4px; min-width: 0; }
.facts dt { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; color: var(--fg-strong); font-size: 0.95rem; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.copyright { grid-column: 1 / -1; font-size: 0.85rem; color: var(--muted); }
/* Mobile: the lockup stays centred like the original logo, but hugs PEAKFRAME so it lines up with the text below */
@media (max-width: 640px) { .foot-in { grid-template-columns: 1fr; } .lockup { width: max-content; } }

/* Scroll reveals (only when html.fx-on: JS running and motion allowed). JS adds .in when an element comes into view. */
.fx-on :is(.reach, .aud-head > *, .split-head > *, .sec-head > *, .contact > *, .offers > li, .after-steps, .steps > li) {
  opacity: 0; transform: translateY(18px);
  transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
}
.fx-on :is(.reach, .aud-head > *, .split-head > *, .sec-head > *, .contact > *, .offers > li, .after-steps).in,
.fx-on .steps.in > li { opacity: 1; transform: none; }
.fx-on .split-head > .btn { transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1), background-color .15s, color .15s, box-shadow .3s; }
.fx-on .aud-head::after { transform: scaleX(0); transition: transform 1.3s cubic-bezier(.3, .6, .2, 1) .1s; }
.fx-on .aud.in .aud-head::after { transform: none; }
/* Steps appear as the playhead passes them */
.fx-on .steps.in > li:nth-child(2) { transition-delay: .45s; }
.fx-on .steps.in > li:nth-child(3) { transition-delay: .9s; }
.fx-on .steps.in > li:nth-child(4) { transition-delay: 1.35s; }
.fx-on .steps.in::after { animation: playhead 1.9s cubic-bezier(.45, .05, .35, 1) both; }
@keyframes playhead { 0% { left: -180px; opacity: 1; } 88% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
/* The lightbox switches on like a panel light: one flicker, then steady */
.fx-on .reach::after { opacity: 0; }
.fx-on .reach.in::after { animation: power-on 1.5s .3s both; }
@keyframes power-on { 0% { opacity: 0; } 12% { opacity: .85; } 18% { opacity: .2; } 34% { opacity: 1; } 100% { opacity: 1; } }

/* ---------- Language chooser (/) ---------- */
/* First screen of the site: the brand, then two 9:16 frames. The key light swings onto the one you point at. */
.choose-page #site { min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; }
.choose { display: grid; justify-items: center; align-content: center; gap: 28px; padding-block: 56px 32px; }
.choose-tools { position: absolute; top: max(16px, env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); z-index: 2; }
/* The lockup is the page's h1: reset the headline type it would otherwise inherit */
.choose-brand { display: grid; justify-items: center; gap: 12px; color: var(--fg-strong); font-size: 1rem; font-weight: 400; font-variation-settings: normal; line-height: 1; letter-spacing: 0; max-width: none; }
.choose-brand .mark { width: 84px; height: 84px; }
.choose-brand b { font-family: var(--wordmark); font-weight: 700; font-size: 1.5rem; letter-spacing: 0.01em; line-height: 1; }
.choose-brand span { font-family: var(--wordmark); font-weight: 400; font-size: 0.85rem; letter-spacing: 0.42em; margin-right: -0.42em; line-height: 1; }
.choose .eyebrow { text-align: center; }
.choose .eyebrow span { display: inline-block; }   /* on narrow screens it breaks between the two languages, not inside one */
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); justify-content: center; gap: clamp(14px, 4vw, 40px); width: 100%; }
/* Each frame is a vertical screen playing its flag, with the language in a caption bar, like a clip */
.choice {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr; justify-items: start;
  aspect-ratio: 9 / 16; padding: clamp(10px, 2.6vw, 14px);
  border: 2px solid var(--line); border-radius: var(--radius); background: var(--choice-bg);
  color: var(--caption-fg); text-decoration: none;
  transition: border-color .25s, box-shadow .4s, transform .35s cubic-bezier(.2, .7, .2, 1);
  container-type: inline-size;
}
/* Flags rest slightly dimmed and light up fully when the key light lands on them */
.choice-flag { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; filter: var(--flag-rest); transition: filter .35s; }
.fl-white { fill: var(--flag-white); }
.fl-fi { fill: var(--flag-fi-blue); }
.fl-uk { fill: var(--flag-uk-blue); }
.fl-x-white { fill: none; stroke: var(--flag-white); }
.fl-x-red { fill: none; stroke: var(--flag-uk-red); }
.choice-code {
  font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; line-height: 1.4;
  background: var(--caption-bg); border-radius: 5px; padding: 3px 7px;
}
.choice-bar {
  align-self: end; justify-self: stretch;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--caption-bg); border-radius: 7px; padding: 0.55em 0.65em;
}
.choice-name {
  font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 112;
  font-size: 1.2rem; font-size: clamp(0.85rem, 11cqi, 1.7rem); line-height: 1; letter-spacing: -0.01em; white-space: nowrap; /* sized to the frame, so the name stays on one line */
}
.choice-go { font-family: var(--mono); font-size: 0.85rem; font-weight: 500; transition: transform .25s; }
@container (max-width: 130px) { .choice-go { display: none; } .choice-bar { padding-inline: 0.5em; } }
.choice:focus-visible { outline-offset: 4px; }
.choice:focus-visible, .choice.is-aimed { border-color: var(--fg-strong); box-shadow: 0 0 44px -10px var(--glow-strong); }
.choice:focus-visible .choice-flag, .choice.is-aimed .choice-flag { filter: none; }
.choice:focus-visible .choice-go, .choice.is-aimed .choice-go { transform: translateX(3px); }
.fx-on .choice.is-aimed { transform: translateY(-4px); }
@media (hover: hover) {
  .choice:hover { border-color: var(--fg-strong); box-shadow: 0 0 44px -10px var(--glow-strong); }
  .choice:hover .choice-flag { filter: none; }
  .choice:hover .choice-go { transform: translateX(3px); }
}
.choose-foot { padding-block: 0 24px; text-align: center; font-size: 0.8rem; color: var(--muted); }
/* Brand, prompt and frames rise in one after another */
.fx-on .choose > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.fx-on .choose > :nth-child(2) { animation-delay: .12s; }
.fx-on .choose > :nth-child(3) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
