/* Keeply — the website
   Monochrome with a single vermilion signal, used only as small squares.
   Archivo (wide for headlines, normal width for text) and IBM Plex Mono for
   data. The product is shown as it is: a film or a picture in a plain
   rounded frame, with whose screen it is written above it.

   Nothing on the site is styled inline (its content policy allows no style
   attribute): what a script needs to move, it moves through the element's
   own style object. */

/* ---------- Fonts (self-hosted, SIL OFL) ---------- */
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-stretch: 100% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-latin-ext.woff2') format('woff2');
  font-weight: 400 800;
  font-stretch: 100% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/plexmono-400-latin.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/plexmono-500-latin.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #F4F4F1;
  --paper-2: #EAEAE5;
  --white: #FFFFFF;
  --ink: #0E0E0F;
  --ink-2: #3D3D42;
  --ink-3: #6B6B71;
  --ink-4: #9A9A9F;
  --line: #D8D8D2;
  --line-soft: #E6E6E1;
  --signal: #E8452C;
  /* On ink. */
  --on-ink: #FFFFFF;
  --on-ink-2: #B5B5BA;
  --on-ink-3: #8C8C92;
  --line-ink: #2A2A2E;

  --font: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, dl, dd, figure, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
img, video { max-width: 100%; }
button { font: inherit; color: inherit; }
code, .mono { font-family: var(--mono); }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap {
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
section[id], [id].dm-part { scroll-margin-top: calc(var(--header-h) + 8px); }

/* The icon sprite takes no room. */
.svg-sprite { position: absolute; }

/* The small vermilion square: the site's one mark of colour. */
.sq { display: inline-block; flex: none; width: 9px; height: 9px; background: var(--signal); }

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Logo lockup (mark + wordmark, one colour) ---------- */
.lockup {
  --cap: 17px;
  display: inline-flex;
  align-items: flex-start;
  gap: calc(var(--cap) * 0.5);
  color: var(--ink);
  text-decoration: none;
  line-height: 0;
}
.lockup .kp-mark { width: calc(var(--cap) * 1.39); height: calc(var(--cap) * 1.5); fill: currentColor; }
.lockup .kp-word {
  width: calc(var(--cap) * 4.63);
  height: calc(var(--cap) * 1.271);
  margin-top: calc(var(--cap) * 0.25);
  fill: currentColor;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 244, 241, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled, .site-header.is-open { border-bottom-color: var(--line); }
.header-row {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  padding: 6px 0;
  background: linear-gradient(var(--ink), var(--ink)) no-repeat 0 100% / 0 1px;
  transition: background-size .25s var(--ease), color .15s ease;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); background-size: 100% 1px; }
.site-nav a.nav-demo {
  height: 38px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  transition: background-color .15s ease;
}
.site-nav a.nav-demo:hover { background: #26262A; color: var(--white); }
.nav-toggle {
  display: none;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 6px;
  font: 600 15px/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, transform .15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: #26262A; }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: var(--white); }

.link {
  font-weight: 600;
  font-size: 15px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: var(--ink-4);
  transition: text-decoration-color .15s ease;
}
.link:hover { text-decoration-color: var(--signal); }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 100px) 0 clamp(36px, 5vw, 60px); }
.hero-title {
  /* Sized so "Blocks the workarounds," holds one line across the container. */
  font-size: clamp(40px, 5.9vw, 86px);
  font-stretch: 118%;
  font-weight: 790;
  line-height: 0.97;
  letter-spacing: -0.042em;
  max-width: 14em;
}
.hero-page .hero-title { font-size: clamp(38px, 5.3vw, 76px); }
.hero-grid {
  margin-top: clamp(32px, 5vw, 60px);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: end;
}
.lede {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 34em;
}
.hero-side p { color: var(--ink-2); max-width: 24em; margin-bottom: 26px; }
.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-lost { min-height: 56vh; }

/* The dark band under a page's opening, with its film in it. */
.stage { background: var(--ink); color: var(--on-ink); padding: clamp(14px, 2.2vw, 30px) 0 clamp(40px, 6vw, 72px); }

/* ---------- Films ---------- */
/* A clip of the walkthrough, playing silently while it is on screen. Its own
   background is the ink of the page's dark bands, so there it has no edge. */
.reel-frame, .film-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: var(--ink);
}
.reel-video, .film-video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 14px; background: var(--ink); }
.reel-bar {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity .2s ease;
}
.js .reel-bar { opacity: 1; }
.reel-btn {
  height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 6px;
  background: rgba(14, 14, 15, .78);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.reel-btn:hover { border-color: rgba(255, 255, 255, .6); }
.reel-btn.is-on { background: var(--white); color: var(--ink); border-color: var(--white); }
.reel-says { margin-top: 14px; font-size: 14.5px; color: var(--ink-3); max-width: 50em; }
.stage .reel-says, .section-ink .reel-says { color: var(--on-ink-3); }
.reel { margin-bottom: clamp(36px, 5vw, 64px); }
.stage .reel, .reel:last-child { margin-bottom: 0; }

/* The walkthrough itself, with its sound: it waits to be asked for. */
.film-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 58px;
  padding: 0 24px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-size: 16px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 24px 60px -24px rgba(14, 14, 15, .6);
  transition: background-color .15s ease;
}
.film-play:hover { background: #26262A; }
.film-length { font-family: var(--mono); font-size: 13px; font-weight: 400; color: var(--on-ink-2); }
.film.is-playing .film-play { display: none; }
/* On the film's own still (its logo, on ink) the button sits under the logo, in paper. */
.film .film-play { left: 8.1%; top: 66%; transform: none; background: var(--paper); color: var(--ink); box-shadow: none; }
.film .film-play:hover { background: var(--white); }
.film .film-length { color: var(--ink-3); }
.reel .film-play { display: none; height: 52px; padding: 0 22px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .26), 0 24px 60px -24px rgba(14, 14, 15, .6); }
.reel.is-waiting .film-play { display: inline-flex; }
.reel.is-waiting .reel-bar { opacity: 0; pointer-events: none; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 136px) 0; border-top: 1px solid var(--line); }
.section-tint { background: var(--paper-2); }
.section-ink { background: var(--ink); color: var(--on-ink); border-top-color: var(--ink); }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head h2 {
  font-size: clamp(32px, 4.4vw, 60px);
  font-stretch: 116%;
  font-weight: 770;
  line-height: 1.0;
  letter-spacing: -0.035em;
}
.section-head p { color: var(--ink-2); font-size: 18px; max-width: 30em; }
.section-ink .section-head p { color: var(--on-ink-2); }
.more { margin-top: 30px; }
.note { margin-top: 30px; color: var(--ink-2); max-width: 46em; }
.note::before { content: ''; display: inline-block; width: 9px; height: 9px; margin-right: 12px; background: var(--signal); }

/* Rows of a name and what is said about it. */
.catch-list { border-top: 1px solid var(--ink); }
.section-ink .catch-list { border-top-color: var(--on-ink); }
.catch {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(20px, 5vw, 80px);
  padding: 30px 0 32px;
  border-bottom: 1px solid var(--line);
}
.section-ink .catch { border-bottom-color: var(--line-ink); }
.catch h3 {
  font-size: clamp(21px, 2vw, 26px);
  font-stretch: 112%;
  font-weight: 720;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.catch p { color: var(--ink-2); max-width: 36em; }
.section-ink .catch p { color: var(--on-ink-2); }
.catch-links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 16px; }
.catch-links .link { color: var(--ink); }

/* A picture of the product, with whose screen it is. */
.shot-label { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 14px; line-height: 1.3; }
.shot-label b { font-weight: 650; }
.shot-label .mono { font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.section-ink .shot-label .mono { color: var(--on-ink-3); }
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}
.section-ink .shot img { border-color: var(--line-ink); }

/* A picture beside what is said of it. */
.pair {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.pair-wide { grid-template-columns: minmax(0, 1fr); }
.pair-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pair-after { margin-top: clamp(36px, 5vw, 64px); margin-bottom: 0; }
.pair:last-child { margin-bottom: 0; }

.feature-list > div { padding: 20px 0; border-top: 1px solid var(--line); }
.feature-list > div:first-child { border-top: 1px solid var(--ink); }
.feature-list dt { font-weight: 680; font-size: 17px; margin-bottom: 6px; }
.feature-list dd { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }

/* Steps, numbered. */
.steps { counter-reset: step; border-top: 1px solid var(--ink); }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.5;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-3);
  padding-top: 3px;
}

/* The table of plain facts. */
.spec { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 20px 0; border-bottom: 1px solid var(--line); }
.spec th { width: 30%; padding-right: 32px; font-weight: 680; font-size: 17px; }
.spec td { color: var(--ink-2); }

/* ---------- The dark band a page ends on ---------- */
.closing { background: var(--ink); color: var(--white); overflow: hidden; }
.closing-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  min-height: 440px;
  padding-top: 92px;
  padding-bottom: 92px;
}
.closing-copy h2 {
  font-size: clamp(36px, 5.2vw, 72px);
  font-stretch: 118%;
  font-weight: 780;
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.closing-copy p { margin-top: 22px; font-size: 19px; color: var(--on-ink-2); max-width: 27em; }
.closing-actions { margin-top: 32px; display: flex; gap: 24px; flex-wrap: wrap; }
.closing-mark {
  justify-self: end;
  width: min(380px, 34vw);
  height: calc(min(380px, 34vw) * 1.08);
  fill: #1B1B1E;
  margin: -40px -20px -140px 0;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-ink-3); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr);
  gap: 32px;
  padding-top: 44px;
  padding-bottom: 40px;
  border-top: 1px solid #222225;
}
.site-footer .lockup { color: var(--white); --cap: 15px; }
.footer-brand p { margin-top: 14px; font-size: 14.5px; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col h2 { font-size: 14px; font-weight: 650; color: var(--white); margin-bottom: 4px; }
.footer-col a { font-size: 14.5px; color: var(--on-ink-2); text-decoration: none; }
.footer-col a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.footer-legal { padding: 20px 0 30px; border-top: 1px solid #222225; font-size: 13.5px; }

/* ---------- The demo ---------- */
.hero-demo { padding-bottom: clamp(28px, 4vw, 48px); }
.dm { padding: 0 0 clamp(64px, 9vw, 120px); }
.dm-roles { display: flex; flex-wrap: wrap; gap: 6px 30px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); padding: 4px 0; }
.dm-role {
  position: relative;
  padding: 14px 0 14px 21px;
  font-size: 17px;
  font-weight: 650;
  color: var(--ink-3);
  text-decoration: none;
  transition: color .15s ease;
}
.dm-role::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -4px;
  background: var(--line);
  transition: background-color .15s ease;
}
.dm-role:hover { color: var(--ink); }
.dm-role[aria-current="true"] { color: var(--ink); }
.dm-role[aria-current="true"]::before { background: var(--signal); }

.dm-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(24px, 3.5vw, 48px);
  align-items: start;
  margin-top: clamp(24px, 3vw, 40px);
}
.dm-label { display: flex; align-items: center; gap: 10px; min-height: 22px; margin-bottom: 12px; font-size: 15px; line-height: 1.3; }
.dm-label b { font-weight: 650; }
.dm-label .mono { font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-2);
}
.dm-world {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  will-change: transform, opacity;
  opacity: 0;
  transition: transform .85s var(--ease), opacity .3s ease;
}
.dm-world.is-on { opacity: 1; }
.dm-world.is-set { transition: opacity .3s ease; }
.dm-pic { position: absolute; left: 0; top: 0; display: block; max-width: none; background: var(--white); }
.dm-dim { position: absolute; left: 0; top: 0; background: var(--ink); opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.dm-world.has-spot .dm-dim { opacity: .42; }
/* What a step is about, lifted off the page: the rest goes dim and it comes a little nearer. */
.dm-spot {
  position: absolute;
  padding: 0;
  border: 0;
  background: transparent;
  opacity: 0;
  transform: scale(1);
  transition: opacity .3s ease .25s, transform .45s var(--ease) .25s;
  pointer-events: none;
}
.dm-world.has-spot .dm-spot { opacity: 1; transform: scale(1.035); }
.dm-spot-pic {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 7px;
  box-shadow: 0 0 0 2px var(--white), 0 18px 46px rgba(0, 0, 0, .46);
}
.dm-spot-pic img { position: absolute; display: block; max-width: none; }
.dm-mark { position: absolute; left: -20px; top: 2px; width: 10px; height: 10px; background: var(--signal); }
.dm-spot.is-press { pointer-events: auto; cursor: pointer; }
.dm-spot.is-press:hover .dm-spot-pic, .dm-spot.is-press:focus-visible .dm-spot-pic { box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--ink), 0 18px 46px rgba(0, 0, 0, .46); }
.dm-spot:focus-visible { outline: none; }

.dm-count { font-family: var(--mono); font-size: 13px; color: var(--ink-3); margin-top: 34px; }
.dm-title {
  margin-top: 10px;
  font-size: clamp(24px, 2.3vw, 30px);
  font-stretch: 114%;
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.dm-text { margin-top: 14px; color: var(--ink-2); font-size: 16.5px; line-height: 1.55; min-height: 7.6em; }
.dm-actions { display: flex; align-items: center; gap: 22px; margin-top: 22px; }
.dm-actions .btn { height: 46px; }
.dm-back { border: 0; padding: 0; background: transparent; cursor: pointer; }
.dm-back[disabled] { color: var(--ink-4); text-decoration-color: transparent; cursor: default; }
.dm-list { margin-top: 30px; border-top: 1px solid var(--line); counter-reset: dm; }
.dm-list li { counter-increment: dm; border-bottom: 1px solid var(--line-soft); }
.dm-list button {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  width: 100%;
  padding: 9px 0;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink-3);
  cursor: pointer;
}
.dm-list button::before { content: counter(dm, decimal-leading-zero); font-family: var(--mono); font-size: 12px; padding-top: 1px; color: var(--ink-4); }
.dm-list button:hover { color: var(--ink); }
.dm-list button[aria-current="step"] { color: var(--ink); font-weight: 650; }
.dm-list button[aria-current="step"]::before { color: var(--signal); }

/* The demo written out, for a browser without the script. */
.dm-script { margin-top: 40px; }
.js .dm-script { display: none; }
.dm-part { padding-top: 40px; }
.dm-part h2 { font-size: clamp(28px, 3.4vw, 44px); font-stretch: 116%; font-weight: 770; letter-spacing: -0.03em; line-height: 1.05; }
.dm-says { color: var(--ink-2); margin-top: 8px; }
.dm-step { padding: 28px 0; border-top: 1px solid var(--line); margin-top: 28px; }
.dm-step h3 { font-size: 22px; font-stretch: 112%; font-weight: 720; letter-spacing: -0.02em; }
.dm-step p { color: var(--ink-2); max-width: 40em; margin-top: 8px; }
.dm-still { display: block; width: 100%; height: auto; margin-top: 18px; border: 1px solid var(--line); border-radius: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .dm-body { grid-template-columns: minmax(0, 1fr); }
  .dm-count { margin-top: 0; }
  .dm-text { min-height: 0; }
}
@media (max-width: 980px) {
  .hero-grid, .section-head, .catch, .pair, .pair-even, .closing-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { align-items: start; }
  .section-head { align-items: start; }
  .catch { gap: 10px; }
  .closing-mark { position: absolute; right: -40px; bottom: -80px; width: 260px; height: 281px; margin: 0; opacity: .9; }
  .closing-copy { position: relative; z-index: 1; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px var(--gutter) 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .site-header.is-open .site-nav { display: flex; }
  .site-nav a { padding: 14px 0; font-size: 17px; border-top: 1px solid var(--line-soft); background: none; }
  .site-nav a:first-child { border-top: 0; }
  .site-nav a.nav-demo { margin-top: 12px; height: 48px; justify-content: center; border-top: 0; }
}
@media (max-width: 720px) {
  :root { --header-h: 60px; }
  body { font-size: 16px; }
  .hero-title { letter-spacing: -0.035em; }
  .hero-title br { display: none; }
  .reel-frame, .film-frame, .reel-video, .film-video { border-radius: 10px; }
  /* On a small screen the film's buttons go under it, clear of its own words. */
  .reel-bar { right: 0; bottom: auto; top: calc(100% + 10px); }
  .js .reel-says { margin-top: 56px; }
  .reel-btn { height: 34px; }
  .stage .reel-btn, .section-ink .reel-btn { background: transparent; }
  .reel-btn { background: var(--ink); }
  .film-play { height: 50px; padding: 0 18px; font-size: 15px; }
  .film-length { display: none; }
  .spec th, .spec td { display: block; width: auto; padding: 0; border: 0; }
  .spec th { padding-top: 18px; }
  .spec td { padding: 4px 0 18px; border-bottom: 1px solid var(--line); }
  .dm-role { font-size: 16px; }
  .dm-stage { border-radius: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
