/* Carriage — carriagekeyboard.com
   Paper, ink and Bricolage. One sticky 3D stage for the story; flat colour bands after it. */

@font-face {
  font-family: Bricolage;
  src: url("../media/bricolage.ttf") format("truetype");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --paper: #f3eee4;
  --ink: #1d1a1f;
  --muted: rgba(29, 26, 31, .84);
  --line: rgba(29, 26, 31, .14);
  --accent: #f2643a;
  --night: #0d0c10;
  --ground: var(--paper);
  --wrap: min(1240px, calc(100vw - 2 * var(--gutter)));
  --gutter: clamp(20px, 4.5vw, 64px);
  --radius: 28px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --press: cubic-bezier(.2, 0, .6, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.55 Bricolage, -apple-system, system-ui, sans-serif;
  font-variation-settings: "opsz" 18;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ol, figure { margin: 0; }
ol { padding: 0; list-style: none; }

.wrap { width: var(--wrap); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 100; padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--paper); text-decoration: none; transform: translateY(-160%);
}
.skip-link:focus, .skip-link:focus-visible { transform: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Type ---------- */
.display {
  font-weight: 800;
  font-size: clamp(52px, 8.2vw, 128px);
  line-height: .92;
  letter-spacing: -.048em;
  font-variation-settings: "opsz" 96;
  text-wrap: balance;
  max-width: 11ch;
}
.display--m { font-size: clamp(40px, 5.4vw, 84px); max-width: 14ch; }
.lede {
  font-size: clamp(19px, 1.55vw, 23px);
  line-height: 1.42;
  font-variation-settings: "opsz" 24;
  color: var(--muted);
  max-width: 34ch;
  margin-top: 22px;
  text-wrap: pretty;
}
.lede strong { color: var(--ink); font-weight: 700; }
.split-line { overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding: 14px 0;
  transition: color .5s var(--ease), background-color .5s var(--ease);
}
/* No backdrop blur on touch screens: on iPhone a blurred bar over the WebGL stages and the films
   is recomposited every frame and flickers. A near-opaque bar reads the same. */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border-bottom: 1px solid var(--line);
  transition: background-color .5s var(--ease), border-color .5s var(--ease);
}
html.nav-dark .nav { color: var(--paper); }
html.nav-dark .nav::before { background: color-mix(in srgb, var(--night) 92%, transparent); border-color: rgba(255, 255, 255, .08); }
@media (hover: hover) and (pointer: fine) {
  .nav::before { background: color-mix(in srgb, var(--paper) 72%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); }
  html.nav-dark .nav::before { background: color-mix(in srgb, var(--night) 62%, transparent); }
}
.nav__inner { display: flex; align-items: center; gap: 28px; }
.nav__mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: -.03em; text-decoration: none; min-height: 44px; }
.mark { display: inline-flex; align-items: flex-end; gap: 3px; height: 20px; }
.mark i { display: block; width: 5px; border-radius: 2px; background: currentColor; }
.mark i:nth-child(1) { height: 11px; } .mark i:nth-child(2) { height: 16px; } .mark i:nth-child(3) { height: 20px; }
.nav__links { display: flex; gap: 6px; margin-left: auto; }
.nav__links a {
  position: relative; padding: 10px 12px; white-space: nowrap; border-radius: 999px; text-decoration: none; font-size: 16px; min-height: 44px; display: inline-flex; align-items: center;
  transition: background-color .25s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 8px; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__soon { font-size: 14px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; opacity: .9; }
.nav__soon-short { display: none; }
html.nav-dark .nav__soon { border-color: rgba(255, 255, 255, .2); }

/* The key sounds switch: one engine for the board, the switches and the instrument */
.nav__sound {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 14px; font-weight: 650; white-space: nowrap;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .15s var(--spring);
}
.nav__sound:hover { transform: translateY(-1px); }
.nav__sound:active { transform: translateY(1px); }
.nav__sound svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav__sound-body { fill: currentColor; stroke: none; }
.nav__sound-off { display: none; }
.nav__sound[aria-pressed="false"] .nav__sound-wave { display: none; }
.nav__sound[aria-pressed="false"] .nav__sound-off { display: inline; }
.nav__sound[aria-pressed="false"] { opacity: .75; }
html.nav-dark .nav__sound { border-color: rgba(255, 255, 255, .2); }

/* ---------- Buttons: keycaps that lift and press ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn {
  --cap: var(--ink); --legend: var(--paper); --skirt: #000;
  position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px;
  border-radius: 16px; font-weight: 700; font-size: 17px; text-decoration: none; white-space: nowrap;
  background: var(--cap); color: var(--legend);
  box-shadow: 0 4px 0 var(--skirt), 0 10px 24px rgba(20, 14, 30, .16);
  transform: translateY(0);
  transition: transform .18s var(--spring), box-shadow .18s var(--spring), background-color .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--skirt), 0 16px 30px rgba(20, 14, 30, .18); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--skirt), 0 4px 10px rgba(20, 14, 30, .14); transition-timing-function: var(--press); transition-duration: .08s; }
.btn--primary { --cap: var(--accent); --legend: #1d1a1f; --skirt: #b8441f; }
.btn--secondary { --cap: transparent; --legend: currentColor; --skirt: rgba(127, 127, 127, .35); border: 1.5px solid currentColor; box-shadow: 0 4px 0 var(--skirt); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.soon { display: inline-flex; align-items: center; gap: 9px; min-height: 52px; padding: 0 20px; border-radius: 16px; font-weight: 650; font-size: 16px; color: var(--muted); border: 1.5px dashed rgba(29, 26, 31, .28); }
.soon svg { width: 17px; height: 17px; fill: currentColor; }
.hint.is-done { opacity: 0; transition: opacity .6s var(--ease); }

.chip {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid currentColor; background: transparent; cursor: pointer;
  font-weight: 650; font-size: 16px; transition: background-color .25s var(--ease), color .25s var(--ease), transform .15s var(--spring);
}
.chip:hover { transform: translateY(-2px); }
.chip:active { transform: translateY(2px); }
.chip[aria-pressed="true"] { background: currentColor; }
.chip[aria-pressed="true"] { color: var(--night); background: #ffd9a8; border-color: #ffd9a8; }

.hint { display: flex; align-items: center; gap: 8px; margin-top: 26px; font-size: 15px; color: var(--muted); }
@media (hover: none), (pointer: coarse) { .hint { display: none; } }
kbd {
  display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 7px;
  font: 700 13px/1 Bricolage, system-ui, sans-serif; background: #fbf8f2; color: var(--ink);
  box-shadow: 0 3px 0 rgba(29, 26, 31, .28), inset 0 -1px 0 rgba(29, 26, 31, .08); border: 1px solid rgba(29, 26, 31, .18);
}
.link { display: inline-block; margin-top: 28px; font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--accent); min-height: 44px; line-height: 44px; }

/* ---------- The story: sticky stage, steps scroll over it ---------- */
.story { position: relative; background: var(--ground); transition: background-color .2s linear; }
.story__stage { position: sticky; top: 0; height: 100svh; width: 100%; overflow: hidden; z-index: 0; }
.story__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s var(--ease); }
.story__still {
  position: absolute; left: 50%; top: 50%; width: min(86vw, 1100px); height: auto; transform: translate(-36%, -46%);
  border-radius: 24px; object-fit: cover; transition: opacity .8s var(--ease);
}
html.board-live .story__canvas { opacity: 1; }
html.board-live .story__still { opacity: 0; pointer-events: none; }
.story__steps { position: relative; z-index: 1; margin-top: -100svh; }
.step { min-height: 100svh; display: flex; align-items: center; padding-block: 120px 80px; }
.step__copy { pointer-events: none; }
.step__copy a, .step__copy button, .step__copy [role="group"] { pointer-events: auto; }

.step--hero .display { max-width: 9.5ch; }
.step--build { min-height: 460svh; align-items: flex-start; padding-top: 18svh; }
.step--build .display { position: sticky; top: 14svh; }
.beats { margin-top: 34svh; display: grid; gap: 62svh; max-width: 30ch; }
.beat h3 { font-size: clamp(28px, 2.6vw, 40px); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; font-variation-settings: "opsz" 72; }
.beat p { margin-top: 12px; font-size: clamp(18px, 1.35vw, 21px); color: var(--muted); }
.beat { opacity: .18; transition: opacity .5s var(--ease); }
.beat.is-on { opacity: 1; }

.step--finishes { min-height: 190svh; align-items: flex-start; }
.step--finishes .step__copy { position: sticky; top: 16svh; }
.swatches { display: grid; grid-template-columns: repeat(5, 44px); gap: 10px; margin-top: 30px; }
.swatch {
  position: relative; width: 44px; height: 44px; border-radius: 12px; border: 0; cursor: pointer; padding: 0;
  background: linear-gradient(135deg, var(--a) 0 50%, var(--b) 50% 100%);
  box-shadow: 0 3px 0 rgba(0, 0, 0, .25), inset 0 0 0 1px rgba(0, 0, 0, .08);
  transition: transform .18s var(--spring), box-shadow .18s var(--spring);
}
.swatch:hover { transform: translateY(-2px); }
.swatch:active { transform: translateY(3px); box-shadow: 0 0 0 rgba(0, 0, 0, .25), inset 0 0 0 1px rgba(0, 0, 0, .08); }
.swatch[aria-pressed="true"] { outline: 2.5px solid var(--ink); outline-offset: 3px; }
.finish-name { margin-top: 20px; font-weight: 800; font-size: 28px; letter-spacing: -.03em; min-height: 1.3em; }

.step--finishes .step__copy, .step--build .display { transition: opacity .45s var(--ease); }
.story[data-step="lights"] .step--finishes .step__copy, .story[data-step="finishes"] .step--build .display { opacity: 0; }
.step--lights .step__copy { transition: opacity .45s var(--ease); }
.story[data-step="glass"] .step--lights .step__copy { opacity: 0; }
.step--lights { min-height: 160svh; align-items: flex-start; color: #f6f0e8; }
.step--lights .step__copy { position: sticky; top: 18svh; }
.step--lights .lede { color: #f6f0e8; }
.modes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

/* From the desk to the glass: the phone the 3D board lands on. site.js scrubs --show (the phone
   arriving), --kb (the real keyboard dissolving in where the board landed) and the canvas's opacity. */
.glass { position: absolute; inset: 0; pointer-events: none; visibility: hidden; }
.story[data-step="lights"] .glass, .story[data-step="glass"] .glass { visibility: visible; }
.glass__slot { position: absolute; left: 68%; top: 50%; height: min(78svh, 760px); aspect-ratio: 1206 / 2622; transform: translate(-50%, -50%); }
.glass__phone {
  --show: 0; --kb: 0;
  position: relative; width: 100%; height: 100%; padding: 2.4%; border-radius: 15% / 7%;
  box-shadow: 0 40px 90px rgba(20, 14, 30, calc(.30 * var(--show)));
  opacity: var(--show); transform: scale(calc(1.06 - .06 * var(--show)));
  will-change: transform, opacity;
}
/* The body has a window where the keys are (62.9% to 93% of its height), so the board that lands
   there is seen through the glass until the real keyboard dissolves in over it. */
.glass__phone::before {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit;
  background: linear-gradient(145deg, #2c2d33, #0b0c0f 45%, #1e1f24);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .1);
  -webkit-mask: linear-gradient(#000 0 0) 50% 90% / 95.2% 30.1% no-repeat, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) 50% 90% / 95.2% 30.1% no-repeat exclude, linear-gradient(#000 0 0);
}
.glass__phone::after { content: ""; position: absolute; z-index: 2; top: 3.4%; left: 50%; width: 29%; height: 3.6%; border-radius: 999px; background: #000; transform: translateX(-50%); }
.glass__screen {
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: cover; border-radius: 12.6% / 5.8%; background: #f7f3ea;
  /* The keys (from 63% down) stay clear while the 3D board sits there, then dissolve in. */
  -webkit-mask-image: linear-gradient(#000 0 63.2%, rgba(0, 0, 0, var(--kb)) 63.2%);
  mask-image: linear-gradient(#000 0 63.2%, rgba(0, 0, 0, var(--kb)) 63.2%);
}
.step--glass { min-height: 230svh; align-items: flex-start; }
.step--glass .step__copy { position: sticky; top: 18svh; }
.step--glass .step__copy > * { max-width: min(460px, 40vw); }
.swatches--row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; max-width: 420px; }
.swatches--row .swatch { width: 34px; height: 34px; border-radius: 10px; }
.swatches--row .swatch::before { content: ""; position: absolute; inset: -5px; }

/* ---------- Bands after the story ---------- */
.band { position: relative; padding-block: clamp(96px, 13vh, 150px); min-height: 100svh; display: flex; align-items: center; }
.band--switches { background: #dbe2df; }
.band--anywhere { background: #f2b33d; }
.band--glide { background: #8bcfdf; }
.band--duo { background: #f2895e; }
.band--craft { background: #2d46a3; color: #fff6ec; }
.band--craft .lede { color: #fff6ec; }
.band--switches .lede, .band--anywhere .lede, .band--glide .lede, .band--duo .lede, .band--haptics .lede { color: var(--ink); }
.band--anywhere .duo3__beat p, .band--duo .duo3__beat p, .band--switches .switch__line { color: var(--ink); }
.band--privacy { background: var(--paper); }
.band--close { background: var(--night); color: #f6f0e8; }
.band--close .lede { color: #f6f0e8; max-width: 40ch; }

/* Switches: dioramas you can press */
.switches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.switch {
  display: grid; gap: 6px; padding: 0 0 22px; border: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer; text-align: left;
  background: #f7f4ee; box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 18px 40px rgba(28, 40, 40, .10);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.switch:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 26px 50px rgba(28, 40, 40, .16); }
.switch__frame { display: block; overflow: hidden; aspect-ratio: 960 / 702; background: #9fb3b9; }
.switch__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.001); transition: transform .5s var(--ease); }
.switch:hover .switch__frame img { transform: scale(1.025); }
.switch__name { padding: 18px 24px 0; font-weight: 800; font-size: 30px; letter-spacing: -.035em; }
.switch__line { padding: 0 24px; color: var(--muted); font-size: 17px; line-height: 1.45; min-height: 3em; }
.switch__curve { margin: 8px 24px 0; width: calc(100% - 48px); height: 46px; overflow: visible; }
.switch__curve path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 0; }
.switch:hover .switch__curve path { animation: draw 1.1s var(--ease); }
@keyframes draw { from { stroke-dashoffset: 260; } to { stroke-dashoffset: 0; } }

/* Split layouts with devices */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(32px, 6vw, 96px); }
.split--flip .split__copy { order: 2; }
.devices { position: relative; display: grid; grid-template-columns: 1.08fr 1fr; align-items: end; gap: 22px; }
.devices .phone, .devices .duo-cover { width: 100%; }
.devices .pause, .keys-close .pause, .craft__film .pause { position: static; grid-column: 1 / -1; justify-self: start; margin-top: 4px; }
.keys-close { display: grid; gap: 16px; }
.keys-close video { width: 100%; height: auto; aspect-ratio: 960 / 716; border-radius: var(--radius); background: #e6ecdf; box-shadow: 0 24px 50px rgba(20, 50, 60, .18); }
.craft__film { display: grid; gap: 16px; background: none; overflow: visible; }
.craft__film video { border-radius: var(--radius); background: #1b2b70; }
.phone {
  position: relative; z-index: 2; width: min(300px, 70vw); aspect-ratio: 1206 / 2622; border-radius: 46px; padding: 10px;
  background: linear-gradient(145deg, #2a2b31, #0b0c0f 45%, #1d1e23); box-shadow: 0 30px 60px rgba(20, 14, 30, .30), inset 0 0 0 1.5px rgba(255, 255, 255, .1);
}
.phone::after { content: ""; position: absolute; top: 20px; left: 50%; width: 30%; height: 22px; border-radius: 999px; background: #000; transform: translateX(-50%); }
.phone__screen { width: 100%; height: 100%; border-radius: 37px; object-fit: cover; background: #111; }

.pause {
  position: relative; z-index: 3; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid currentColor;
  background: transparent; cursor: pointer; font-weight: 650; font-size: 15px; transition: transform .15s var(--spring);
}
.pause:hover { transform: translateY(-2px); }
.pause--on-media { right: 16px; bottom: 16px; color: #fff; background: rgba(0, 0, 0, .35); border-color: rgba(255, 255, 255, .5); }

/* Duo: the cover screen beside the iPhone, the film's render, and (when live) the 3D Duo folding */
.duo-cover {
  position: relative; width: min(250px, 58vw); aspect-ratio: 1398 / 2034; padding: 9px;
  border-radius: 12px 42px 42px 12px; background: linear-gradient(145deg, #c9c3d6, #8e889c 50%, #b9b3c6);
  box-shadow: 0 30px 60px rgba(20, 14, 30, .28), inset 0 0 0 1.5px rgba(255, 255, 255, .35);
}
.duo-cover__screen { width: 100%; height: 100%; object-fit: cover; border-radius: 5px 34px 34px 5px; background: #000; }
.duo-cover--beside { position: relative; }
.duo-stage { position: relative; min-height: 620px; display: flex; justify-content: center; }
.duo-render { width: min(440px, 80vw); border-radius: var(--radius); overflow: hidden; box-shadow: 0 34px 70px rgba(90, 40, 10, .30); }
.duo-render img { width: 100%; height: auto; }
.duo-cover--float { position: absolute; right: 0; bottom: -24px; width: min(200px, 44vw); }

/* Duo, live: a pinned stage where the 3D Duo folds through its layouts */
.duo3__beats { display: grid; gap: 18px; margin-top: 30px; max-width: 30ch; }
.duo3__beat h3 { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.05; letter-spacing: -.03em; font-weight: 800; }
.duo3__beat p { margin-top: 6px; color: var(--muted); font-size: 18px; }
.duo3__canvas { display: none; }
/* duo-tall (set in the head) gives the section its length before the Duo loads; duo-live swaps the still for it. */
html.duo-tall .band--duo { display: block; min-height: 380svh; padding: 0; }
html.duo-tall .duo3__sticky { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden; }
html.duo-tall .duo3__grid { position: relative; z-index: 1; }
html.duo-tall .duo3__beats { position: relative; min-height: 9.5em; }
/* site.js sets each caption's opacity from the scroll: one at a time, no transitions to lag behind.
   Until it runs, the first caption shows. */
html.duo-tall .duo3__beat { position: absolute; inset: 0 auto auto 0; opacity: 0; visibility: hidden; will-change: opacity, transform; }
html.duo-tall .duo3__beat:first-child { opacity: 1; visibility: visible; }
html.duo-tall .duo3__still { transition: opacity .6s var(--ease); }
html.duo-live .duo3__canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
html.duo-live .duo3__still { opacity: 0; visibility: hidden; }
html.duo-live .duo3__grid { pointer-events: none; }

/* Feel every key: the story on the left, the instrument (css/feel.css) on the right */
.band--haptics { background: #e9e2d6; }
.haptics { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.haptics__story { margin-top: 18px; font-size: clamp(17px, 1.25vw, 19px); line-height: 1.5; max-width: 38ch; color: var(--ink); opacity: .86; text-wrap: pretty; }
.haptics__fact { margin-top: 26px; font-size: 18px; color: var(--muted); }
.haptics__fact strong { color: var(--ink); font-size: 24px; letter-spacing: -.02em; }

/* Engine: a spec sheet on a dithered ground */
.band--engine { background-color: #121016; color: #f6f0e8;
  background-image: radial-gradient(rgba(255, 255, 255, .055) 1px, transparent 1.2px); background-size: 6px 6px; }
.band--engine .lede { color: #f6f0e8; max-width: 46ch; }
.specs { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 52px 0 0; background: rgba(255, 255, 255, .1); border-radius: var(--radius); overflow: hidden; }
.spec { position: relative; background: #16141b; padding: 26px 28px 28px; }
.spec__fig { margin: 0; display: flex; align-items: baseline; gap: 6px; font-weight: 800; font-size: clamp(44px, 4.6vw, 70px); line-height: .9; letter-spacing: -.05em; font-variant-numeric: tabular-nums; color: #ffd9a8; }
.spec__fig small { font-size: .32em; letter-spacing: -.01em; color: rgba(255, 217, 168, .8); }
.spec__text { margin: 12px 0 0; color: rgba(246, 240, 232, .72); font-size: 16.5px; line-height: 1.45; max-width: 30ch; }

/* Engine: the light, shown */
.engine-art { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 44px); margin-top: clamp(40px, 6vw, 72px); }
.engine-art__item { margin: 0; display: grid; align-content: start; gap: 10px; }
.engine-art__item h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.1; letter-spacing: -.025em; font-weight: 800; color: #f6f0e8; }
.engine-art__item p { margin: 0 0 8px; max-width: 46ch; color: rgba(246, 240, 232, .74); font-size: 16.5px; line-height: 1.5; }
.engine-art__item img { width: 100%; height: auto; border-radius: 20px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 24px 50px rgba(0, 0, 0, .35); }
@media (max-width: 900px) { .engine-art { grid-template-columns: 1fr; } }

/* Limits: what iOS allows a keyboard, said plainly */
.band--limits { background: #ebe5da; }
.band--limits .lede { color: var(--ink); max-width: 44ch; }
.limits { list-style: none; padding: 0; margin: 52px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(28px, 3.4vw, 56px); }
.limit { padding: 26px 0 30px; border-top: 1.5px solid rgba(29, 26, 31, .16); }
.limit__icon { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.limit h3 { margin-top: 16px; font-size: 21px; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
.limit p { margin: 10px 0 0; font-size: 16.5px; line-height: 1.5; color: var(--muted); max-width: 34ch; }

/* Close: the three devices */
.close__devices { width: 100%; height: auto; margin: 28px 0 6px; border-radius: var(--radius); }

/* Craft: the film and the shop */
.craft { display: grid; grid-template-columns: 1.55fr 1fr; gap: 28px; margin-top: 44px; align-items: start; }
.craft__film { position: relative; border-radius: var(--radius); overflow: hidden; background: #1b2b70; }
.craft__film video { width: 100%; height: auto; aspect-ratio: 1280 / 900; object-fit: cover; }
.craft__side { display: grid; gap: 22px; align-content: start; }
.craft__art { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.craft__side .lede { margin-top: 0; max-width: 32ch; }

/* Privacy: one statement, lit word by word */
.statement { font-weight: 800; font-size: clamp(34px, 4.6vw, 72px); line-height: 1.04; letter-spacing: -.04em; max-width: 20ch; font-variation-settings: "opsz" 96; text-wrap: balance; }
.statement .w { opacity: .2; transition: opacity .4s linear; }
.statement .w.is-lit { opacity: 1; }

/* Close: the name set as keys */
.close { text-align: left; }
.wordmark { font-weight: 800; font-size: clamp(80px, 19vw, 300px); line-height: .84; letter-spacing: -.065em; font-variation-settings: "opsz" 96; margin: 0 0 .26em; padding-top: .04em; }
.wordmark .k { display: inline-block; transition: transform .16s var(--spring), color .3s var(--ease); }
.wordmark .k:hover { transform: translateY(.06em); color: #ffd9a8; transition-timing-function: var(--press); transition-duration: .06s; }


footer.closing { display: block; padding-bottom: 36px; }
footer.closing .foot__row { margin-top: 64px; color: rgba(246, 240, 232, .72); font-size: 15px; }
.foot__row { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 14px 40px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .1); }
footer.closing a { text-underline-offset: 3px; }

/* ---------- Smaller screens ---------- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__soon { margin-left: auto; font-size: 13px; }
  .step { align-items: flex-end; padding-bottom: 9svh; }
  .step__copy { background: color-mix(in srgb, var(--ground) 93%, transparent); padding: 22px; border-radius: 24px; }
  .step--hero .step__copy { background: none; padding: 0; }
  .step--hero { align-items: flex-start; padding-top: 104px; }
  .step--build .display { position: static; }
  .beats { margin-top: 50svh; gap: 70svh; }
  .beat { background: color-mix(in srgb, var(--paper) 93%, transparent); padding: 18px 20px; border-radius: 20px; opacity: 1; }
  .step--lights .step__copy { background: rgba(13, 12, 16, .72); }
  /* On a phone the iPhone stands in the upper half and the copy rises over its foot once it has landed. */
  .glass__slot { left: 50%; top: 39%; height: min(54svh, 470px); }
  .step--glass { min-height: 210svh; padding-top: 110svh; align-items: flex-start; }
  .step--glass .step__copy { position: relative; top: auto; }
  .step--glass .step__copy > * { max-width: none; }
  .swatches--row { gap: 7px; }
  .story__still { width: 120vw; transform: translate(-50%, -8%); }
  .switches { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split--flip .split__copy { order: 0; }
  .devices { min-height: 560px; }
  .craft { grid-template-columns: 1fr; }
  .haptics { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr 1fr; }
  .spec { padding: 22px 20px 24px; }
  .devices { gap: 12px; justify-content: flex-start; }
  .devices .phone { width: 100%; border-radius: 30px; padding: 7px; }
  .devices .phone__screen { border-radius: 24px; }
  .devices .phone::after { top: 13px; height: 14px; }
  .duo-cover--beside { width: 100%; padding: 6px; }
  .duo-cover--float { right: 0; }
  .viz { position: static; margin-bottom: 14px; }
  html.duo-tall .duo3__sticky { align-items: flex-start; padding-top: 92px; }
  html.duo-tall .duo3__beats { min-height: 7.5em; }
  .craft__art { aspect-ratio: 16 / 9; }
  .craft__side { gap: 16px; }
  .label-card { justify-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .beat, .statement .w { opacity: 1; }
}

/* The figures' small diagrams */
.viz { position: absolute; top: 26px; right: 26px; display: block; width: 92px; height: 34px; }
.viz--mem { border-radius: 8px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); overflow: hidden; height: 14px; top: 34px; }
.viz--mem i { display: block; height: 100%; width: 59.7%; background: linear-gradient(90deg, #ffb36b, #ffd9a8); border-radius: 8px 0 0 8px; }
.viz--bake { width: 40px; height: 40px; top: 22px; }
.viz--bake i { display: block; width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle at 32% 30%, #fff6e8 0 8%, #f3b27a 32%, #8a4a2e 70%, #2a1712 100%); }
.viz--atlas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; width: 84px; height: 42px; top: 22px; }
.viz--atlas i { display: grid; place-items: center; font: 800 11px/1 Bricolage, system-ui, sans-serif; font-style: normal; color: #ffd9a8; background: rgba(255, 255, 255, .07); border-radius: 3px; }
.viz--frames { width: 70px; height: 44px; top: 20px; }
.viz--frames i { position: absolute; width: 46px; height: 30px; border-radius: 5px; border: 1.5px solid #ffd9a8; }
.viz--frames i:first-child { left: 0; top: 0; background: rgba(255, 217, 168, .16); }
.viz--frames i:last-child { left: 22px; top: 13px; background: #16141b; }
.viz--glow { width: 42px; height: 42px; top: 20px; display: grid; place-items: center; border-radius: 9px; background: #2a2440; box-shadow: 0 3px 0 #120f1c; }
.viz--glow i { font: 800 20px/1 Bricolage, system-ui, sans-serif; font-style: normal; color: #b9f2ff; text-shadow: 0 0 6px #4fd8ff, 0 0 14px #4fd8ff, 0 0 22px #7d6bff; }
.viz--idle { width: 110px; height: 32px; top: 26px; overflow: visible; }
.viz--idle path { fill: none; stroke: #ffd9a8; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Privacy: the statement and a card at a glance */
.band--privacy .statement { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.22; letter-spacing: -.025em; max-width: 26ch; margin-top: 26px; font-variation-settings: "opsz" 48; }
.label-card { justify-self: stretch; width: min(440px, 100%); padding: 28px 30px 18px; border-radius: var(--radius); background: #fbf8f2; color: var(--ink);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 26px 50px rgba(20, 14, 30, .12); border: 1px solid var(--line); }
.label-card__title { font-weight: 800; font-size: 22px; letter-spacing: -.02em; padding-bottom: 14px; border-bottom: 3px solid var(--ink); }
.label-card__rows { list-style: none; padding: 0; margin: 0; }
.label-card__rows li { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.label-card__rows li:last-child { border-bottom: 0; }
.label-card__rows b { font-weight: 750; text-align: right; }

/* Close: decorative name, then the heading */
.close__title { margin-top: 18px; max-width: 20ch; }
.close__devices { max-height: 46vh; object-fit: cover; }

/* The Duo's stage always spans the band */
.duo3__sticky { width: 100%; }

@media (max-width: 1100px) { .nav__links a { padding: 10px 8px; font-size: 15px; } .nav__inner { gap: 16px; } }
@media (max-width: 1240px) and (min-width: 901px) {
  .nav__sound span { display: none; }
  .nav__sound { padding: 0 12px; }
  .nav__soon-long { display: none; }
  .nav__soon-short { display: inline; }
}
@media (max-width: 900px) {
  .nav__inner { gap: 10px; }
  .nav__sound { margin-left: auto; padding: 0; width: 44px; justify-content: center; }
  .nav__sound span { display: none; }
  .nav__soon { margin-left: 0; }
  .limits { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .nav__soon-long { display: none; }
  .nav__soon-short { display: inline; }
  .limits { grid-template-columns: 1fr; margin-top: 36px; }
  .limit { padding: 22px 0 24px; display: grid; grid-template-columns: 30px 1fr; column-gap: 16px; }
  .limit__icon { grid-row: span 2; margin-top: 2px; }
  .limit h3 { margin-top: 0; font-size: 19px; }
  .limit p { margin-top: 6px; font-size: 16px; }
}
@media (max-width: 900px) {
  .viz { position: static; margin: 0 0 14px; }
  .spec__fig { font-size: 36px; }
  .devices { grid-template-columns: 1.08fr 1fr; gap: 12px; }
}
@media (max-width: 360px) { .nav__soon { display: none; } }

/* =====================================================================
   Pages (2026-12-03): a short iPhone-first landing, and Build, iPhone Duo,
   Engineering and Culture on pages of their own.
   ===================================================================== */

/* Apple's own badge artwork, unaltered (developer.apple.com marketing resources). */
.store-badge { display: inline-flex; flex: none; border-radius: 9px; transition: transform .18s var(--spring), opacity .2s var(--ease); }
.store-badge img { width: auto; height: 50px; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge:active { transform: translateY(1px); }
.store-badge--nav img { height: 40px; }
.store-badge--hero img { height: 58px; }
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__inner .store-badge--nav { margin-left: 8px; }
@media (max-width: 900px) { .nav__inner .store-badge--nav { margin-left: auto; } .nav__inner .nav__sound + .store-badge--nav { margin-left: 0; } }

/* Hero: a straight-on iPhone typing in Reminders, in front of a tilted 3D wall of Carriage's own screens and finishes.
   Apple's device artwork stays straight-on and still; only the app's screens move in 3D. */
/* Bright and airy (after Duolingo): a light ground with soft washes of sky, pink, lilac and lime, and Carriage's
   most colourful boards floating around the phone. */
.hero { position: relative; overflow: hidden; color: var(--ink);
  background:
    radial-gradient(38% 52% at 88% 12%, #bfe7ff 0%, rgba(191, 231, 255, 0) 70%),
    radial-gradient(34% 46% at 72% 98%, #ffcfe4 0%, rgba(255, 207, 228, 0) 70%),
    radial-gradient(30% 40% at 46% 4%, #e4d9ff 0%, rgba(228, 217, 255, 0) 70%),
    radial-gradient(34% 44% at 2% 96%, #dcf6b8 0%, rgba(220, 246, 184, 0) 70%),
    #f7faff; }
.hero__accent { color: var(--accent); }
.floaters { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.floater { position: absolute; height: auto; animation: float 9s ease-in-out infinite;
  filter: drop-shadow(0 26px 30px rgba(40, 50, 110, .18)); }
/* Placed in the open: under the words, beside the badge, above the headline's end and at the wall's foot. */
.floater--1 { left: 25%; bottom: 1%; width: clamp(200px, 17vw, 280px); animation-duration: 10s; }
.floater--2 { left: -4%; bottom: -9%; width: clamp(210px, 18vw, 300px); animation-duration: 11s; animation-delay: -3s; }
.floater--3 { left: 33%; top: 8%; width: clamp(130px, 11vw, 180px); animation-duration: 8s; animation-delay: -5s; }
.floater--4 { right: -1%; bottom: -6%; width: clamp(220px, 20vw, 320px); animation-duration: 12s; animation-delay: -1s; }
@keyframes float { 0%, 100% { transform: translate3d(0, 0, 0) rotate(-2deg); } 50% { transform: translate3d(0, -16px, 0) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .floater { animation: none; } }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center;
  gap: clamp(20px, 4vw, 64px); min-height: 100svh; padding-block: 96px 40px; }
.hero__copy { position: relative; z-index: 4; }
.hero__copy .display { max-width: 8.6ch; font-size: clamp(56px, 6.2vw, 108px); }
.hero__copy .lede { color: var(--ink); max-width: 30ch; }
.hero__copy .actions { align-items: center; margin-top: 36px; }
.hero__for { margin-top: 16px; font-size: 16px; font-weight: 600; opacity: .8; }

.showcase { position: relative; height: min(80svh, 780px); }
.showcase__space { position: absolute; inset: -40% -70% -40% -40%; perspective: 1900px; perspective-origin: 45% 40%; pointer-events: none; }
.screens { position: absolute; inset: 0; display: flex; gap: 30px; justify-content: center; align-items: flex-start; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 50deg)) rotateZ(var(--rz, -32deg)) translate3d(var(--wx, 6%), 0, 0);
  transition: transform 1.4s var(--ease); }
.screens__col { width: clamp(150px, 15vw, 230px); flex: none; }
.screens__col--2 { margin-top: 18%; }
.screens__col--3 { margin-top: 6%; }
/* Each column holds its cards twice and runs half its length, so the loop never shows a seam. */
.screens__run { display: flex; flex-direction: column; animation: screens-run 52s linear infinite; will-change: transform; }
.screens__col--2 .screens__run { animation-duration: 64s; animation-direction: reverse; }
.screens__col--3 .screens__run { animation-duration: 58s; }
@keyframes screens-run { to { transform: translate3d(0, -50%, 0); } }
.card { display: block; width: 100%; height: auto; margin-bottom: 30px; border-radius: 13% / 6%; background: #fff;
  box-shadow: 0 30px 50px rgba(40, 50, 110, .18), 0 2px 6px rgba(40, 50, 110, .10); }
.card--wide { border-radius: 7% / 11%; }
.card--duo { border-radius: 9% / 6%; }

.showcase__phone { position: absolute; z-index: 3; margin: 0; left: 4%; top: 50%; height: min(74svh, 700px); aspect-ratio: 636 / 1300; transform: translateY(-50%); }
.showcase__frame { position: absolute; inset: 0; width: 100%; height: 100%; }
/* The bezel's screen opening, measured from its transparency: 71, 68, 1207 x 2623 in a 1350 x 2760 frame, radius 191. */
.showcase__screen { position: absolute; left: 5.35%; top: 2.55%; width: 89.2%; height: 94.85%; border-radius: 15.7% / 7.25%; object-fit: cover; background: #f2f2f7; }
.hero__pause { position: absolute; z-index: 3; right: 0; bottom: 4%; color: var(--ink); background: rgba(255, 255, 255, .7); border-color: rgba(29, 26, 31, .25); }

@media (prefers-reduced-motion: reduce) { .screens__run { animation: none; } .screens { transition: none; } }

/* Phones and portrait iPad: the words first, then the phone standing in front of the wall, full width. */
@media (max-width: 900px), (max-aspect-ratio: 1/1) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; padding-block: 100px 0; gap: 4px; }
  .hero__copy .display { font-size: clamp(44px, 12vw, 80px); max-width: 9ch; }
  .hero__copy .lede { font-size: 18px; margin-top: 14px; max-width: 34ch; }
  .hero__copy .actions { margin-top: 22px; }
  .store-badge--hero img { height: 50px; }
  .showcase { height: clamp(480px, 132vw, 860px); margin-inline: calc(-1 * var(--gutter)); }
  .showcase__space { inset: -30% -60% -20% -60%; perspective-origin: 50% 30%;
    /* Fade the wall in just under the words, so no card ever sits behind a line of text (the phone is not masked). */
    -webkit-mask-image: linear-gradient(180deg, transparent 0, transparent 21%, #000 33%); mask-image: linear-gradient(180deg, transparent 0, transparent 21%, #000 33%); }
  .screens { --wx: 0%; }
  .screens__col { width: clamp(118px, 31vw, 220px); }
  .showcase__phone { left: 50%; top: auto; bottom: 5%; height: 84%; transform: translateX(-50%); }
  .hero__pause { right: var(--gutter); bottom: 2%; }
  .floater--1 { left: auto; right: -12%; bottom: 34%; width: clamp(150px, 38vw, 300px); }
  .floater--2 { left: -12%; bottom: 6%; width: clamp(140px, 36vw, 280px); }
  .floater--3, .floater--4 { display: none; }
}

/* Type with it anywhere: iPhone and iPhone Duo, light and dark, in other apps */
.band--anywhere.band--gallery { display: block; background: #f6f1e7; }
.band--gallery .anywhere__head { max-width: 760px; }
.band--gallery .lede { color: var(--muted); max-width: 46ch; }
/* Four devices side by side at one height (iPhone, Duo cover, iPhone, Duo in tabletop); two by two on a phone. */
.anywhere__row { display: grid; grid-template-columns: 636fr 933fr 636fr 944fr; align-items: end; gap: clamp(16px, 2.6vw, 40px);
  margin: clamp(44px, 7vh, 80px) auto 0; max-width: 1180px; }
.anywhere__device { margin: 0; }
.anywhere__device img { width: 100%; height: auto; }
@media (max-width: 700px) {
  .anywhere__row { grid-template-columns: 636fr 940fr; gap: 28px 14px; }
}

/* Nineteen finishes: a strip that slides on its own */
.band--finishes-strip { display: block; min-height: 0; background: #1b1820; color: #f6f0e8; overflow: hidden; }
.band--finishes-strip .lede { color: rgba(246, 240, 232, .82); }
.strip { margin-top: clamp(36px, 5vh, 60px); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.strip__track { display: flex; gap: 18px; width: max-content; animation: strip 70s linear infinite; }
.strip__track img { width: clamp(220px, 24vw, 340px); height: auto; border-radius: 18px; flex: none; }
.strip:hover .strip__track { animation-play-state: paused; }
@keyframes strip { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip__track { animation: none; } .strip { overflow-x: auto; } }

/* More of Carriage: one card per page */
.band--routes { display: block; min-height: 0; background: var(--paper); }
.routes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(32px, 5vh, 56px); max-width: 1080px; }
.route { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: #fff; text-decoration: none; color: var(--ink);
  box-shadow: 0 1px 0 var(--line), 0 18px 40px rgba(20, 14, 30, .08); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.route:hover { transform: translateY(-4px); box-shadow: 0 1px 0 var(--line), 0 26px 50px rgba(20, 14, 30, .14); }
.route__art { aspect-ratio: 4 / 3; overflow: hidden; background: #e9e2d6; }
.route__art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.route:hover .route__art img { transform: scale(1.04); }
.route__body { padding: 20px 22px 24px; display: grid; gap: 8px; }
.route__body h3 { font-size: 23px; line-height: 1.08; letter-spacing: -.025em; font-weight: 800; }
.route__body p { font-size: 16px; line-height: 1.45; color: var(--muted); }
.route__go { margin-top: 6px; font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; gap: 8px; }
.route__go::after { content: "→"; transition: transform .3s var(--ease); }
.route:hover .route__go::after { transform: translateX(4px); }
@media (max-width: 900px) { .routes { grid-template-columns: 1fr; max-width: 560px; } }
@media (max-width: 560px) { .routes { grid-template-columns: 1fr; } .route { flex-direction: row; } .route__art { aspect-ratio: auto; width: 38%; flex: none; } }

.band--auto { min-height: 0; }

/* A sub-page's opening */
.page-head { padding-block: clamp(130px, 20vh, 200px) clamp(40px, 7vh, 80px); }
.page-head .lede { max-width: 40ch; }

/* The footer on every page */
.page-foot { background: var(--night); color: #f6f0e8; padding-block: clamp(64px, 10vh, 110px) 40px; }
.page-foot__inner { display: grid; gap: 34px; }
.page-foot__links { display: flex; flex-wrap: wrap; gap: 6px 26px; font-size: 17px; }
.page-foot__links a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.page-foot__links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.page-foot__fine { font-size: 15px; color: rgba(246, 240, 232, .7); border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 24px; }
.page-foot__fine a { color: inherit; }
.page-foot .wordmark { margin-bottom: 0; }

/* The page menu on phones and portrait iPad */
.nav__menu { display: none; position: relative; width: 44px; height: 44px; flex: none; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.nav__menu span, .nav__menu span::before, .nav__menu span::after { position: absolute; left: 50%; width: 18px; height: 2px; margin-left: -9px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.nav__menu span { top: 50%; margin-top: -1px; }
.nav__menu span::before, .nav__menu span::after { content: ""; left: 0; margin-left: 0; }
.nav__menu span::before { top: -6px; } .nav__menu span::after { top: 6px; }
html.menu-open .nav__menu span { background: transparent; }
html.menu-open .nav__menu span::before { transform: translateY(6px) rotate(45deg); }
html.menu-open .nav__menu span::after { transform: translateY(-6px) rotate(-45deg); }
html.nav-dark .nav__menu { border-color: rgba(255, 255, 255, .2); }
@media (max-width: 900px) {
  .nav__inner { gap: 10px; }
  .nav__menu { display: inline-block; margin-left: auto; }
  .nav__inner .store-badge--nav { margin-left: 0; }
  .nav__inner .nav__sound { margin-left: auto; }
  .nav__inner .nav__sound + .nav__menu { margin-left: 0; }
  .nav__links { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; gap: 0; margin: 0;
    padding: 6px var(--gutter) 18px; color: var(--ink); background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(20, 14, 30, .12); }
  html.menu-open .nav__links { display: flex; }
  .nav__links a { font-size: 21px; font-weight: 650; padding: 14px 0; min-height: 54px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav__links a:last-child { border-bottom: 0; }
  .nav__links a::after { display: none; }
  .nav__links a[aria-current="page"] { color: var(--accent); }
}
@media (max-width: 400px) { .store-badge--nav img { height: 34px; } .nav__mark { font-size: 19px; } }

.hero.is-paused .screens__run { animation-play-state: paused; }
