/* Written from tokens.json by tools/tokens.mjs. Change the JSON, then run the script. */
:root {
  /* Colours */
  --ground: #002D47;
  --strip: #0A3A57;
  --strip-hover: #11486A;
  --text: #FFFFFF;
  --paper: #FFFFFF;
  --ink: #002D47;
  --yellow: #FFC83D;
  --yellow-hover: #FFD466;
  --line: #164A68;
  --line-band: #1F5675;
  --line-paper: #D1D9DE;
  --frame: #04121C;
  --frame-edge: #3A5568;
  --island: #000000;
  --window-edge: rgba(255, 255, 255, .45);
  --pitch: #07080B;
  --bone: #E6E1D4;
  /* Type */
  --font: "Bricolage Grotesque", sans-serif;
  --weight-regular: 400;
  --weight-strong: 600;
  --weight-bold: 700;
  --weight-heavy: 800;
  --caps-tracking: -.005em;
  --type-headline: 800 condensed min(106px, 7.2vw)/.95 var(--font);
  --type-band: 800 condensed 90px/.95 var(--font);
  --type-main: 800 condensed clamp(50px, 5vw, 68px)/.96 var(--font);
  --type-section: 800 condensed 50px/1 var(--font);
  --type-menu: 800 condensed 34px/1 var(--font);
  --type-app: 800 34px/40px var(--font);
  --type-address: 600 32px/40px var(--font);
  --type-services: 600 clamp(24px, 2.3vw, 30px)/1.3 var(--font);
  --type-quiet: 700 28px/36px var(--font);
  --type-lead: 600 24px/32px var(--font);
  --type-reading: 400 22px/32px var(--font);
  --type-small-heading: 700 20px/28px var(--font);
  --type-row-name: 700 20px/28px var(--font);
  --type-facts: 400 20px/28px var(--font);
  --type-band-line: 400 20px/28px var(--font);
  --type-body: 400 18px/28px var(--font);
  --type-button: 700 18px/28px var(--font);
  --type-copy-link: 600 18px/28px var(--font);
  --type-strip-label: 600 18px/28px var(--font);
  --type-small: 400 16px/24px var(--font);
  --type-menu-button: 600 16px/28px var(--font);
  --type-row-address: 400 16px/28px var(--font);
  /* Space */
  --space-2: 2px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-14: 14px;
  --space-16: 16px;
  --space-18: 18px;
  --space-20: 20px;
  --space-22: 22px;
  --space-24: 24px;
  --space-26: 26px;
  --space-28: 28px;
  --space-30: 30px;
  --space-32: 32px;
  --space-36: 36px;
  --space-40: 40px;
  --space-44: 44px;
  --space-48: 48px;
  --space-56: 56px;
  --space-64: 64px;
  --space-72: 72px;
  --space-96: 96px;
  --space-104: 104px;
  --space-112: 112px;
  --space-120: 120px;
  /* Corners */
  --radius: 2px;
  --radius-button: 4px;
  --radius-icon: 22.5%;
  --radius-pill: 99px;
  /* Lines and focus */
  --shadow-hairline: 0 1px 0 var(--line);
  --shadow-frame: inset 0 0 0 1.5px var(--frame-edge);
  --shadow-window: drop-shadow(0 0 .5px var(--window-edge));
  --focus-width: 3px;
  --focus-offset: 4px;
  /* Frame */
  --max: 1312px;
  --side: 64px;
  --head: 80px;
  --gap: 96px;
  --bar: 6px;
  --inset: 32px;
  --label: 200px;
  --measure-lead: 580px;
  --measure-line: 560px;
  --measure-panel: 520px;
  --measure-reading: 34ch;
  --measure-prose: 680px;
  /* Blocks */
  --block-pagehead-top: 90px;
  --block-pagehead-bottom: 72px;
  --block-navy-top: 8px;
  --block-after-strip: 104px;
  --block-navy-bottom: 112px;
  --block-white: 120px;
  --block-rows: 72px;
  --block-band-top: 112px;
  --block-band-bottom: 104px;
  --block-games-top: 64px;
  --block-games-bottom: 104px;
  --block-foot-top: 40px;
  --block-foot-top-solo: 56px;
  --block-foot-bottom: 56px;
  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --time-hover: .2s;
  --time-draw: .25s;
  --time-surface: .3s;
  --time-device: .45s;
  --time-picture: 1.2s;
}
/* Small laptop and wide tablet. The gutter is 40 px and the two halves are 56 px apart. */
@media (max-width: 1199px) { :root {
  --type-band: 800 condensed 72px/.95 var(--font);
  --side: 40px;
  --gap: 56px;
  --block-pagehead-bottom: 56px;
} }
/* One column. The header is 64 px tall and the four menu words move into the phone menu. */
@media (max-width: 899px) { :root {
  --type-headline: 800 condensed min(96px, 11.5vw)/.95 var(--font);
  --type-app: 800 28px/34px var(--font);
  --head: 64px;
} }
/* Phone. The gutter is 16 px, the header is 60 px tall, the type steps down, the app panels stack. */
@media (max-width: 640px) { :root {
  --type-headline: 800 condensed min(64px, 15.6vw)/.95 var(--font);
  --type-band: 800 condensed 56px/.95 var(--font);
  --type-main: 800 condensed 40px/.96 var(--font);
  --type-section: 800 condensed 34px/1 var(--font);
  --type-app: 800 26px/32px var(--font);
  --type-address: 600 24px/32px var(--font);
  --type-services: 600 21px/28px var(--font);
  --type-quiet: 700 22px/30px var(--font);
  --type-lead: 600 19px/26px var(--font);
  --type-reading: 400 19px/28px var(--font);
  --type-row-name: 700 20px/26px var(--font);
  --type-facts: 400 17px/25px var(--font);
  --type-band-line: 400 17px/26px var(--font);
  --type-body: 400 17px/26px var(--font);
  --type-button: 700 18px/26px var(--font);
  --type-copy-link: 600 18px/26px var(--font);
  --type-strip-label: 600 15px/20px var(--font);
  --type-menu-button: 600 16px/26px var(--font);
  --type-row-address: 400 16px/26px var(--font);
  --side: 16px;
  --head: 60px;
  --inset: 20px;
  --block-pagehead-top: 36px;
  --block-pagehead-bottom: 40px;
  --block-navy-top: 0px;
  --block-after-strip: 72px;
  --block-navy-bottom: 72px;
  --block-white: 72px;
  --block-rows: 56px;
  --block-band-top: 72px;
  --block-band-bottom: 64px;
  --block-games-top: 48px;
  --block-games-bottom: 72px;
  --block-foot-top: 32px;
  --block-foot-bottom: 48px;
} }
/* The smallest phones. The word Menu is hidden, the address in a support row is 14 px and its arrow is gone. */
@media (max-width: 379px) { :root {
  --type-row-address: 400 14px/26px var(--font);
} }
/* Every keyframe names only where a part starts. It ends where its own CSS puts it. */
@keyframes draw { from { transform: scaleY(0); } }
@keyframes rise { from { transform: translateY(105%); } }
@keyframes lift { from { opacity: 0; transform: translateY(14px); } }
@keyframes stand { from { opacity: 0; transform: translateY(48px); } }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-stretch: 75% 100%; src: url("fonts/BricolageGrotesque-VF.woff2?v=224d74d902") format("woff2"); font-display: block; }

:root { color-scheme: dark; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body, body *, body *::before, body *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--ground); color: var(--text);
  font: var(--type-body); font-stretch: 100%;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--ground); }
img { display: block; max-width: 100%; height: auto; }
/* A picture only picks the file; its img is the box, as if the picture were not there. */
picture { display: contents; }
picture source { display: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: var(--focus-width) solid var(--yellow); outline-offset: var(--focus-offset); border-radius: var(--radius); }
.light :focus-visible { outline-color: var(--ink); }

.wrap {
  width: 100%; max-width: calc(var(--max) + 2 * var(--side)); margin-inline: auto;
  padding-left: max(var(--side), env(safe-area-inset-left, 0px));
  padding-right: max(var(--side), env(safe-area-inset-right, 0px));
}
section[id] { scroll-margin-top: calc(var(--head) + env(safe-area-inset-top, 0px)); }
article[id] { scroll-margin-top: calc(var(--head) + var(--space-24) + env(safe-area-inset-top, 0px)); }
section:focus, article:focus { outline: none; }
.caps { font-weight: var(--weight-heavy); font-stretch: 75%; text-transform: uppercase; letter-spacing: var(--caps-tracking); text-wrap: balance; }

/* Header */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--ground); transition: box-shadow var(--time-surface); }
.site-head.scrolled { box-shadow: var(--shadow-hairline); }
.site-head .wrap { height: var(--head); display: flex; align-items: center; gap: var(--space-36); }
.site-head .name img { height: 28px; width: auto; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: var(--space-36); }
.site-nav .menu { display: flex; gap: var(--space-36); }
.site-nav a, .contact-link { font-size: 16px; line-height: 24px; font-weight: var(--weight-strong); }
.contact-link { white-space: nowrap; }
.site-nav .menu a { position: relative; }
.site-nav .menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--time-draw) var(--ease); }
.site-nav .menu a:hover::after { transform: scaleX(1); }
.contact-link { color: var(--yellow); transition: color var(--time-hover); }
.contact-link:hover { color: var(--yellow-hover); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.menu-button { display: none; align-items: center; gap: var(--space-10); height: 40px; padding: 0 var(--space-2); font-size: 16px; font-weight: var(--weight-strong); }
.menu-button i { position: relative; width: 20px; height: 12px; }
.menu-button i::before, .menu-button i::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform var(--time-draw) var(--ease), top var(--time-draw) var(--ease); }
.menu-button i::before { top: 1px; }
.menu-button i::after { top: 9px; }
.is-open .menu-button i::before { top: 5px; transform: rotate(45deg); }
.is-open .menu-button i::after { top: 5px; transform: rotate(-45deg); }

/* First screen */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 var(--space-24); padding-top: var(--space-64); }
.hero-text { padding-top: var(--space-26); padding-bottom: var(--space-72); }
.headline { position: relative; margin-left: var(--inset); font-size: min(106px, 7.2vw); line-height: .95; }
.headline::before { content: ""; position: absolute; left: calc(-1 * var(--inset)); top: 0; bottom: -8px; width: var(--bar); background: var(--yellow); transform-origin: top; }
.headline .ln { display: block; white-space: nowrap; overflow: hidden; padding-bottom: .02em; margin-bottom: -.02em; }
.headline .ln > span { display: inline-block; }
.sub { margin-top: var(--space-30); max-width: var(--measure-lead); font-size: 24px; line-height: 32px; font-weight: var(--weight-strong); text-wrap: balance; }
.facts { margin-top: var(--space-8); max-width: var(--measure-line); font-size: 20px; line-height: 28px; text-wrap: pretty; }
.cta { margin-top: var(--space-28); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-16) var(--space-32); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 var(--space-30);
  background: var(--yellow); color: var(--ink); font-weight: var(--weight-bold); font-size: 18px; border-radius: var(--radius-button);
  transition: background-color var(--time-hover), transform var(--time-hover) var(--ease);
}
.btn:hover { background: var(--yellow-hover); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.link { font-weight: var(--weight-strong); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; transition: text-underline-offset var(--time-hover) var(--ease); }
.link:hover { text-underline-offset: 9px; }

.devices { position: relative; align-self: end; width: clamp(420px, 48vw, 692px); aspect-ratio: 692 / 676; margin-right: var(--space-16); }
.devices .ipad { position: absolute; right: 0; bottom: 0; width: 69.36%; }
.devices .iphone { position: absolute; left: 0; bottom: 0; width: 31.79%; }

/* Plain device frames: the screen's margin is the bezel, so it follows the device width. */
.ipad { display: flow-root; background: var(--frame); border-radius: 5.3% / 4%; box-shadow: var(--shadow-frame); }
.ipad .screen { margin: 3.4%; border-radius: 2% / 1.5%; overflow: hidden; aspect-ratio: 2064 / 2752; }
.iphone { display: flow-root; background: var(--frame); border-radius: 17% / 8.2%; box-shadow: var(--shadow-frame); }
.iphone .screen { position: relative; margin: 4.2%; border-radius: 14.1% / 6.5%; overflow: hidden; aspect-ratio: 1320 / 2868; }
/* The island, at its real size and place on the screen. */
.iphone .screen::after { content: ""; position: absolute; top: 1.46%; left: 50%; width: 28.6%; height: 3.87%; translate: -50% 0; background: var(--island); border-radius: var(--radius-pill); }
.screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
/* The window file has its own round corners, so the edge line follows its shape. */
.macwin { aspect-ratio: 880 / 1254; filter: var(--shadow-window); }
.macwin img { width: 100%; height: auto; }

.strip { background: var(--strip); }
.strip .wrap { min-height: 80px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-12) var(--space-40); padding-block: var(--space-16); }
.strip p { font-weight: var(--weight-strong); }
.strip ul { display: flex; flex-wrap: wrap; gap: var(--space-10) var(--space-30); }
.strip a { display: flex; align-items: center; gap: var(--space-12); font-weight: var(--weight-strong); white-space: nowrap; }
.strip a:hover span { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.icon { border-radius: var(--radius-icon); aspect-ratio: 1; object-fit: cover; }
.strip .icon { width: 44px; height: 44px; }

/* What we build: the page turns white */
.services { background: var(--paper); color: var(--ink); }
.services .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-32) var(--gap); padding-block: var(--block-white); }
.services h2 { font-size: clamp(50px, 5vw, 68px); line-height: .96; border-left: var(--bar) solid var(--yellow); padding-left: var(--space-26); align-self: start; }
.services ul { display: grid; gap: var(--space-12); margin-top: -4px; font-size: clamp(24px, 2.3vw, 30px); line-height: 1.3; font-weight: var(--weight-strong); }
.services li { text-wrap: balance; }
.services .note { margin-top: var(--space-32); }

/* Our apps */
.proof .wrap { padding-block: var(--block-after-strip) var(--space-24); }
.proof h2 { font-size: 50px; line-height: 1; margin-bottom: var(--space-48); }
.panel { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, var(--measure-panel)); grid-template-rows: 460px; height: 460px; overflow: hidden; background: var(--strip); margin-bottom: var(--space-16); padding: 0 var(--space-56); border-radius: var(--radius); transition: background-color var(--time-surface); }
.panel:hover { background: var(--strip-hover); }
.panel .text { align-self: center; display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 0 var(--space-26); }
.panel .icon { width: 80px; height: 80px; grid-row: span 3; }
.panel h3 { font-size: 34px; line-height: 40px; font-weight: var(--weight-heavy); }
.panel h3 a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 3px; }
.panel p { margin: var(--space-8) 0 var(--space-20); max-width: var(--measure-panel); text-wrap: pretty; }
.panel .actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-12) var(--space-28); }
.badge img { height: 44px; width: auto; transition: transform var(--time-hover) var(--ease); }
.badge:hover img { transform: translateY(-2px); }
.panel .site { font-weight: var(--weight-strong); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.panel .site:hover { text-underline-offset: 8px; }
.panel .state { font-weight: var(--weight-strong); }
.panel .device { justify-self: center; margin-top: var(--space-40); height: max-content; transition: transform var(--time-device) var(--ease); }
.panel:hover .device { transform: translateY(-10px); }
/* Mutebot's timeline sits low on its screen, so every panel is tall enough to show its phone down to the range buttons. */
.panel .iphone { width: 230px; }
/* Kiikari's window starts level with the phones and runs to the bottom edge, cut under its last list row. Its width follows from that height, and its column is made wide enough for it. */
@media (min-width: 641px) { #kiikari .macwin { height: 420px; width: auto; min-height: 0; aspect-ratio: 880 / 1160; } }
@media (min-width: 900px) and (max-width: 1199px) { #kiikari { grid-template-columns: minmax(0, 1fr) 319px; column-gap: var(--space-24); } }
@media (min-width: 641px) and (max-width: 899px) { #kiikari { grid-template-columns: minmax(0, 1fr) 291px; column-gap: var(--space-20); } #kiikari .macwin { height: 383px; } }

.games .wrap { padding-block: var(--block-games-top) var(--block-games-bottom); }
.games p { font-size: 28px; line-height: 36px; font-weight: var(--weight-bold); text-wrap: balance; }
.games a { white-space: nowrap; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 3px; transition: text-underline-offset var(--time-hover) var(--ease); }
.games a:hover { text-underline-offset: 9px; }

/* About and support */
.about-support { background: var(--ground); }
.about-support .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-64) var(--gap); padding-block: var(--block-navy-top) var(--block-navy-bottom); }
.about-support h2 { font-size: 50px; line-height: 1; margin-bottom: var(--space-28); }
.about p { font-size: 22px; line-height: 32px; max-width: var(--measure-reading); text-wrap: pretty; }
.about p + p { margin-top: var(--space-14); }
.support > p { margin-bottom: var(--space-20); }
.support ul { display: grid; gap: var(--space-8); }
.support a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: var(--space-18); padding: var(--space-14) var(--space-20); background: var(--strip); border-radius: var(--radius); transition: background-color var(--time-hover); }
.support a:hover { background: var(--strip-hover); }
.support .icon { width: 40px; height: 40px; }
.support b { font-size: 20px; font-weight: var(--weight-bold); }
.support span { font-size: 16px; overflow-wrap: anywhere; }
.support em { font-style: normal; font-weight: var(--weight-bold); transition: transform var(--time-hover) var(--ease); }
.support a:hover em { transform: translateX(4px); }

/* Contact and footer */
.contact { background: var(--strip); }
.contact .wrap { padding-block: var(--block-band-top) var(--block-band-bottom); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: var(--space-28) var(--gap); }
.contact h2 { font-size: 90px; line-height: .95; }
.mail { display: grid; gap: var(--space-18); justify-items: start; padding-bottom: var(--space-6); }
.addr { font-size: 32px; line-height: 40px; font-weight: var(--weight-strong); user-select: all; -webkit-user-select: all; overflow-wrap: anywhere; }
.mail .row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-12) var(--space-28); }
.mail .btn { height: 52px; min-width: 168px; }
footer { background: var(--strip); }
footer .row { padding-block: var(--block-foot-top) var(--block-foot-bottom); border-top: 1px solid var(--line-band); display: flex; flex-wrap: wrap; gap: var(--space-24); align-items: end; justify-content: space-between; }
footer img { height: 56px; width: auto; }
footer p { font-size: 16px; font-variant-numeric: tabular-nums; }
footer a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-underline-offset var(--time-hover) var(--ease); }
footer a:hover { text-underline-offset: 7px; }

/* Between phone and desktop: the devices sit under the words. */
@media (max-width: 1199px) {
  .hero-text { padding-bottom: var(--space-56); }
  .devices { margin-right: 0; }
  .strip ul { gap: var(--space-10) var(--space-22); }
  .strip .wrap { column-gap: var(--space-24); }
  .services .wrap, .about-support .wrap, .contact .wrap { column-gap: var(--gap); }
  .contact h2 { font-size: 72px; }
  .panel { grid-template-columns: minmax(0, 1fr) 300px; padding: 0 var(--space-40); }
}
@media (max-width: 899px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-text { padding-bottom: var(--space-48); }
  .headline { font-size: min(96px, 11.5vw); }
  .devices { width: min(560px, 100%); justify-self: center; }
  .services .wrap, .about-support .wrap, .contact .wrap { grid-template-columns: minmax(0, 1fr); }
  .contact .wrap { align-items: start; }
  /* Narrow panels: icon and name on one row, the rest under them, so the words keep their room. */
  .panel { grid-template-columns: minmax(0, 1fr) 250px; grid-template-rows: 423px; height: 423px; padding: 0 var(--space-32); }
  .panel .text { grid-template-columns: 56px minmax(0, 1fr); gap: 0 var(--space-16); }
  .panel .icon { width: 56px; height: 56px; grid-row: span 1; }
  .panel h3 { font-size: 28px; line-height: 34px; align-self: center; }
  .panel p, .panel .actions { grid-column: 1 / -1; }
  .panel p { margin: var(--space-14) 0 var(--space-18); }
  .panel .iphone { width: 210px; }
  .menu-button { display: inline-flex; }
  .site-nav { gap: var(--space-20); }
  .site-nav .menu {
    position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; gap: 0;
    background: var(--ground); box-shadow: var(--shadow-hairline);
    padding: var(--space-8) max(var(--side), env(safe-area-inset-right, 0px)) var(--space-24) max(var(--side), env(safe-area-inset-left, 0px));
  }
  .is-open .site-nav .menu { display: flex; }
  .site-nav .menu a { font-size: 34px; line-height: 1; font-weight: var(--weight-heavy); font-stretch: 75%; text-transform: uppercase; padding: var(--space-14) 0; border-bottom: 1px solid var(--line); }
  .site-nav .menu a::after { display: none; }
  .site-nav .menu a:hover { text-decoration: underline; text-underline-offset: 6px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; line-height: 26px; }
  .site-head .name img { height: 22px; }
  .hero-grid { padding-top: var(--space-36); }
  .hero-text { padding-top: 0; padding-bottom: 0; }
  .headline { margin-left: var(--inset); font-size: min(64px, 15.6vw); }
  .headline::before { left: calc(-1 * var(--inset)); bottom: -4px; }
  .sub { margin-top: var(--space-20); font-size: 19px; line-height: 26px; }
  .facts { margin-top: var(--space-8); font-size: 17px; line-height: 25px; }
  .cta { margin-top: var(--space-24); }
  .cta .btn { flex: 1 1 100%; }
  .cta .link { margin-inline: auto; }
  .devices { width: auto; aspect-ratio: auto; height: 330px; margin-top: var(--space-36); overflow: hidden; justify-self: stretch; }
  .devices .ipad { top: 22px; bottom: auto; right: 0; width: min(280px, 74%); }
  .devices .iphone { top: 0; bottom: auto; left: 0; width: min(126px, 34%); }
  .strip .wrap { padding-block: var(--space-24); gap: var(--space-16); justify-content: flex-start; }
  .strip ul { gap: var(--space-12) var(--space-28); flex-wrap: nowrap; }
  .strip .icon { width: 52px; height: 52px; }
  .strip a { flex-direction: column; align-items: flex-start; gap: var(--space-8); font-size: 15px; line-height: 20px; }
  .services .wrap { padding-block: var(--block-white); gap: var(--space-28); }
  .services h2 { font-size: 40px; padding-left: var(--space-18); }
  .services ul { font-size: 21px; line-height: 28px; gap: var(--space-12); margin-top: 0; }
  .services .note { margin-top: var(--space-24); }
  .proof .wrap { padding-block: var(--space-72) var(--space-8); }
  .proof h2, .about-support h2 { font-size: 34px; margin-bottom: var(--space-28); }
  .panel { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; height: auto; padding: var(--space-28) var(--space-20) 0; }
  .panel .text { grid-template-columns: 56px minmax(0, 1fr); gap: 0 var(--space-16); }
  .panel .icon { width: 56px; height: 56px; grid-row: span 1; }
  .panel h3 { font-size: 26px; line-height: 32px; align-self: center; }
  .panel p, .panel .actions, .panel .state { grid-column: 1 / -1; }
  .panel p { margin: var(--space-14) 0 var(--space-18); }
  .badge img { height: 40px; }
  .panel .device { height: 200px; overflow: hidden; margin-top: var(--space-28); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
  .panel .iphone { width: 190px; border-radius: 32px 32px 0 0; }
  #mutebot .device { height: 347px; }
  .panel .macwin { width: 244px; }
  .games .wrap { padding-block: var(--block-games-top) var(--block-games-bottom); }
  .games p { font-size: 22px; line-height: 30px; }
  .about-support .wrap { padding-block: var(--block-navy-top) var(--block-navy-bottom); gap: var(--space-64); }
  .about p { font-size: 19px; line-height: 28px; }
  .support a { padding: var(--space-12) var(--space-14); gap: var(--space-14); grid-template-columns: 40px minmax(0, 1fr) auto; }
  .contact .wrap { padding-block: var(--block-band-top) var(--block-band-bottom); }
  .contact h2 { font-size: 56px; }
  footer .row { padding-block: var(--block-foot-top) var(--block-foot-bottom); }
  .addr { font-size: 24px; line-height: 32px; }
  footer img { height: 48px; }
}
@media (max-width: 379px) {
  .site-head .wrap, .site-nav { gap: var(--space-16); }
  .menu-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .support span { font-size: 14px; }
  .support em { display: none; }
}

/* One load moment: the bar draws, the words rise line by line, then the devices stand up. */
@media (prefers-reduced-motion: no-preference) {
  .headline::before { animation: draw .8s var(--ease) both; }
  .headline .ln > span { animation: rise .9s var(--ease) both; animation-delay: calc(.12s + var(--i) * .09s); }
  .sub, .facts, .cta { animation: lift .8s var(--ease) both; }
  .sub { animation-delay: .46s; }
  .facts { animation-delay: .54s; }
  .cta { animation-delay: .62s; }
  .devices .ipad { animation: stand 1s var(--ease) .3s both; }
  .devices .iphone { animation: stand 1s var(--ease) .48s both; }
  .strip li { animation: lift .7s var(--ease) both; animation-delay: calc(.8s + var(--i) * .06s); }
  .is-open .site-nav .menu { animation: drop .22s var(--ease) both; }
}

/* ===== Round 3. Everything above is the approved home page as it is. Below: the parts the inner pages add.
   One rule for each part, used the same on every page. The values are listed in design/round3/README.md. ===== */

/* Where you are: the word keeps its hover underline. */
.site-nav .menu a[aria-current="page"]::after { transform: scaleX(1); }
.contact-link[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }

/* Footer link row, right of the logo, bottoms level with it: 24 + 8 + 24 = 56. */
.foot-end { display: grid; gap: var(--space-8); justify-items: end; }
.foot-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-8) var(--space-28); }
footer .foot-nav a { position: relative; font-size: 16px; line-height: 24px; font-weight: var(--weight-strong); text-decoration: none; }
footer .foot-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--time-draw) var(--ease); }
footer .foot-nav a:hover::after { transform: scaleX(1); }
.foot-end p { line-height: 24px; }
/* After a white block or the navy ground the band change is the edge, so no hairline. */
footer.solo .row { border-top: 0; padding-top: var(--block-foot-top-solo); }
/* A page shorter than the screen still fills it, so the footer sits at the bottom. */
body.short { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
main.short { flex: 1; }

/* Page head, the same on every inner page. The bar and the words start where the home headline's do:
   the bar on the left edge, its top 90 px under the header, the words 32 px in. */
.page-head .wrap { padding-block: var(--block-pagehead-top) var(--block-pagehead-bottom); }
.page-title { position: relative; margin-left: var(--inset); font-size: clamp(50px, 5vw, 68px); line-height: .96; }
.page-title::before { content: ""; position: absolute; left: calc(-1 * var(--inset)); top: 0; bottom: 0; width: var(--bar); background: var(--yellow); transform-origin: top; }
.lead { margin-top: var(--space-24); max-width: var(--measure-lead); font-size: 24px; line-height: 32px; font-weight: var(--weight-strong); text-wrap: balance; }
.way-back { margin-top: var(--space-32); display: flex; flex-wrap: wrap; gap: var(--space-16) var(--space-32); }

/* Half split: two equal columns, so the right column starts on the same line on every page. */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-32) var(--gap); }

/* Navy block: 8 above under a page head, 104 above under a strip, 112 below. */
.navy-block .wrap { padding-block: var(--block-navy-top) var(--block-navy-bottom); }
.strip + .navy-block .wrap { padding-top: var(--block-after-strip); }
.navy-block h2 { font-size: 50px; line-height: 1; margin-bottom: var(--space-28); }
.reading p { font-size: 22px; line-height: 32px; max-width: var(--measure-reading); text-wrap: pretty; }
.reading p + p { margin-top: var(--space-14); }

/* White block: 120 above and below. Its main heading is in capitals with the bar, a row heading is quiet. */
.white { background: var(--paper); color: var(--ink); }
.white > .wrap { padding-block: var(--block-white); }
.block-title { font-size: clamp(50px, 5vw, 68px); line-height: .96; border-left: var(--bar) solid var(--yellow); padding-left: var(--space-26); align-self: start; }
.rows { display: grid; gap: var(--block-rows); }
.rows h2, .prose h2 { font-size: 28px; line-height: 36px; font-weight: var(--weight-bold); }

/* Details list: label 200 px wide, 16 px above and below, a hairline above every row and under the last. */
.dl > div { display: grid; grid-template-columns: var(--label) minmax(0, 1fr); gap: 0 var(--space-24); padding-block: var(--space-16); border-top: 1px solid var(--line); }
.dl > div:last-child { border-bottom: 1px solid var(--line); }
.white .dl > div { border-color: var(--line-paper); }
.dl dt, .dl dd { font-size: 18px; line-height: 28px; }
.dl dt { font-weight: var(--weight-bold); }
.dl dd { overflow-wrap: anywhere; }
.dl .pair { display: flex; flex-wrap: wrap; gap: 0 var(--space-28); }

/* A link in running text: 1 px underline. */
.dl dd a, .prose a, .side a, .note-line a, .logo-links p a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-underline-offset var(--time-hover) var(--ease); }
.dl dd a:hover, .prose a:hover, .side a:hover, .note-line a:hover, .logo-links p a:hover { text-underline-offset: 7px; }
.keep { white-space: nowrap; }

/* Contact: the mail block sits beside the page head and starts on its top line. */
.contact-head .mail { padding-bottom: 0; align-self: start; }

.note-line { margin-top: var(--space-20); }
.contact .band-line { margin-top: var(--space-20); max-width: var(--measure-line); font-size: 20px; line-height: 28px; text-wrap: pretty; }

/* Press. */
.strip.still li { animation: none; }
.press-text .copy { margin-top: var(--space-12); margin-bottom: var(--space-32); font-size: 18px; text-align: left; }
.tiles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-24); }
.tiles > div { height: 200px; display: flex; align-items: center; justify-content: center; }
.tiles .dark { background: var(--ground); border-radius: var(--radius); }
.tiles img { width: min(256px, 100% - 32px); height: auto; }
.logo-links { margin-top: var(--space-28); display: grid; gap: var(--space-12); justify-items: start; }

/* Long text: the side at the left, the text at most 680 px wide at the right. */
.side { align-self: start; font-size: 16px; line-height: 24px; }
.side .toc { margin-top: var(--space-24); display: grid; gap: var(--space-10); }
.side .toc a { font-weight: var(--weight-strong); text-decoration: none; }
.side .toc a:hover { text-decoration: underline; }
.side .back { margin-top: var(--space-24); font-weight: var(--weight-strong); }
.side > :first-child { margin-top: 0; }
.prose { max-width: var(--measure-prose); }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: var(--space-56) 0 var(--space-12); scroll-margin-top: calc(var(--head) + var(--space-32) + env(safe-area-inset-top, 0px)); }
.prose h3 { margin: var(--space-32) 0 var(--space-8); font-size: 20px; line-height: 28px; font-weight: var(--weight-bold); }
.prose p, .prose ul, .prose table { margin-top: var(--space-14); }
.prose h2 + *, .prose h3 + * { margin-top: 0; }
.prose ul { list-style: disc; padding-left: var(--space-22); }
.prose li + li { margin-top: var(--space-6); }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 24px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: var(--space-12) var(--space-16) var(--space-12) 0; border-bottom: 1px solid var(--line-paper); }
.prose th { font-weight: var(--weight-bold); }

@media (min-width: 900px) {
  .long .side { position: sticky; top: calc(var(--head) + 32px + env(safe-area-inset-top, 0px)); }
  /* Beside a details list, the words at the left start level with the first row's words. */
  .rows h2 { padding-top: var(--space-10); }
  .rows .plain h2 { padding-top: 0; }
  .contact-head + .navy-block .reading { padding-top: var(--space-14); }
  .press-text .dl { margin-top: var(--space-64); }
}
@media (max-width: 1199px) {
  .page-head .wrap { padding-bottom: var(--block-pagehead-bottom); }
  .split { column-gap: var(--gap); }
  /* Long text needs the room: the side narrows to a third. */
  .long .split { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
}
@media (max-width: 899px) {
  .site-nav .menu a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
  .split, .long .split, .tiles { grid-template-columns: minmax(0, 1fr); }
  .long .side { padding-bottom: var(--space-24); border-bottom: 1px solid var(--line-paper); }
  .rows .split { gap: var(--space-16); }
}
@media (max-width: 640px) {
  /* Phone: the bar's top 36 px under the header and the words 20 px in, as the home headline. */
  .page-head .wrap { padding-block: var(--block-pagehead-top) var(--block-pagehead-bottom); }
  .page-title { margin-left: var(--inset); font-size: 40px; }
  .page-title::before { left: calc(-1 * var(--inset)); }
  .lead { font-size: 19px; line-height: 26px; }
  .navy-block .wrap { padding-block: var(--block-navy-top) var(--block-navy-bottom); }
  .strip + .navy-block .wrap { padding-top: var(--block-after-strip); }
  .navy-block .split { gap: var(--space-64); }
  .navy-block h2 { font-size: 34px; }
  .contact-head + .navy-block .split, .press-text .split { gap: var(--space-40); }
  .press-text .copy:last-of-type { margin-bottom: 0; }
  .reading p { font-size: 19px; line-height: 28px; }
  .white > .wrap { padding-block: var(--block-white); }
  .white .split { gap: var(--space-28); }
  .rows { gap: var(--block-rows); }
  .rows .split { gap: var(--space-16); }
  .rows h2, .prose h2 { font-size: 22px; line-height: 30px; }
  .block-title { font-size: 40px; padding-left: var(--space-18); }
  .dl > div { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .dl dt, .dl dd { font-size: 17px; line-height: 26px; }
  .contact-head .mail { justify-items: stretch; }
  .contact-head .mail .row { display: grid; gap: var(--space-16); }
  .contact-head .mail .link { justify-self: center; }
  .contact .band-line { font-size: 17px; line-height: 26px; }
  .tiles > div { height: 160px; }
  .prose h2 { margin-top: var(--space-44); }
  .prose p, .prose li { font-size: 17px; line-height: 26px; }
  .prose thead { display: none; }
  .prose table, .prose tbody, .prose tr, .prose td { display: block; }
  .prose tr { padding-block: var(--space-12); border-bottom: 1px solid var(--line-paper); }
  .prose td { padding: 0; border: 0; }
  .prose td + td { margin-top: var(--space-6); }
  .prose td:first-child { font-weight: var(--weight-bold); }
  .prose td + td::before { content: attr(data-label) ": "; font-weight: var(--weight-strong); }
  footer .row { flex-direction: column; align-items: flex-start; }
  .foot-end { justify-items: start; }
  .foot-nav { justify-content: flex-start; gap: var(--space-8) var(--space-20); }
}

/* Inner pages move less: only the bar beside the title draws once. */
@media (prefers-reduced-motion: no-preference) {
  .page-title::before { animation: draw .8s var(--ease) both; }
}

/* ---------- Games band (home): Eerie Studios' picture from edge to edge, with the mark, the line and the three games.
   Picked as concept 03 (games-concepts/03-night-band, D25). The section is .eerie-band here, so the other concepts,
   which use .eerie and load this file, keep their look. ---------- */
.eerie-band { padding-block: var(--block-games-top) var(--block-games-bottom); }
.night-band { position: relative; display: block; overflow: clip; height: clamp(400px, 32vw, 600px); background: var(--pitch); color: var(--bone); }
/* The picture is as wide as the screen and never under 760 px tall, and it is moved up so its sky ends about 240 px
   down the band. So the words stay on the dark sky and the pines stay in view at every width. */
.night-band .fog { --tall: max(760px, 56.25vw); position: absolute; left: 0; top: min(0px, calc(240px - .35 * var(--tall))); width: 100%; height: var(--tall); max-width: none; object-fit: cover; object-position: 50% 0; transform-origin: 50% 30%; transition: transform var(--time-picture) var(--ease); }
.night-band:hover .fog { transform: scale(1.03); }
.night-band .wrap { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-40); padding-top: var(--space-56); }
.night-band .lockup { height: 72px; width: auto; margin-left: -4px; }
.who p { margin-top: var(--space-24); font-size: 28px; line-height: 36px; font-weight: var(--weight-bold); text-wrap: balance; }
.who .go { display: inline-block; margin-top: var(--space-12); font-weight: var(--weight-strong); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; transition: text-underline-offset var(--time-hover) var(--ease); }
.night-band:hover .go { text-underline-offset: 8px; }
.shelf { display: flex; gap: var(--space-32); padding-top: var(--space-4); }
.shelf li { display: grid; gap: var(--space-12); justify-items: center; font-weight: var(--weight-strong); }
.shelf img { width: 88px; height: 88px; border-radius: var(--radius-icon); }

/* The line takes two lines here, so the sky is left at its full height. */
@media (max-width: 1199px) { .night-band .fog { top: 0; } }
@media (max-width: 899px) { .shelf { gap: var(--space-20); } .shelf img { width: 72px; height: 72px; } }
@media (max-width: 640px) {
  .eerie-band { padding-block: var(--block-games-top) var(--block-games-bottom); }
  .night-band { height: 500px; }
  .night-band .fog { height: 100%; }
  .night-band .wrap { flex-direction: column; gap: var(--space-28); padding-top: var(--space-36); }
  .night-band .lockup { height: 56px; }
  .who p { margin-top: var(--space-20); font-size: 22px; line-height: 30px; }
  .shelf { gap: var(--space-24); }
  .shelf img { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) { .night-band .fog, .who .go { transition: none; } .night-band:hover .fog { transform: none; } }

/* Ruling 1 (design system README, section 6): the row of games keeps its size, so the icons stay square from 641 to 962. */
.shelf { flex: none; }

/* Ruling 17: on a phone the strip's line is always above the apps, also from 610 to 640 where both would fit on one row. */
@media (max-width: 640px) { .strip .wrap { flex-direction: column; align-items: flex-start; } }

/* Ruling 18: wherever the footer links sit under the logo, every line starts at the left, as on a phone. 704 follows from the five links. */
@media (max-width: 704px) { .foot-end { justify-items: start; } }
