/* Litwell landing page.
   The page is the launch film, unrolled: the same three worlds (dusk navy, sand paper, photography),
   the same type (Playfair Display + DM Sans, the app's own faces), the film's slanted cuts between
   sections, UI shown as tilted sheets with lifted cards, and the film's coral last scene as the form. */

@font-face { font-family: "Playfair Display"; src: url("fonts/playfair-display.woff") format("woff"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans.woff") format("woff"); font-weight: 100 1000; font-display: swap; }

:root {
  --ink: #0a1020;
  --navy-900: #0e1528;
  --navy-800: #141d37;
  --navy-700: #1e2a4b;
  --sand: #f1e8d9;
  --cream: #f7efe3;
  --paper: #fdf9f2;
  --coral: #f05143;
  --coral-ink: #b3301f;              /* coral that passes AA as small text on sand */
  --slate: #4a5570;                  /* body text on sand */
  --mist: rgba(247, 239, 227, .76);  /* body text on dusk */

  --display: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --text: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 4.5vw, 56px);
  --pad: clamp(64px, 8vw, 112px);
  --slant: clamp(26px, 4.4vw, 68px);
  --ease: cubic-bezier(.65, 0, .35, 1);

  --grain-dark: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .11 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --grain-light: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--sand); color: var(--navy-900); font: 400 1.0625rem/1.6 var(--text); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; overflow-x: clip; }
[hidden] { display: none !important; }
img, video { max-width: 100%; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--cream); color: var(--navy-900); font-weight: 600; }
.skip:focus { top: 12px; }

h2 { font: 600 clamp(2.05rem, 3.7vw, 3.3rem)/1.08 var(--display); letter-spacing: -.012em; text-wrap: balance; }
h3 { font: 600 clamp(1.3rem, 1.7vw, 1.55rem)/1.2 var(--display); letter-spacing: -.005em; text-wrap: balance; }

.dot { display: inline-block; width: .135em; height: .135em; border-radius: 50%; background: var(--coral); }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 52px; padding: 0 1.6em; border: 0; border-radius: 999px; font: 650 1.0625rem/1 var(--text); letter-spacing: -.005em; text-decoration: none; cursor: pointer; transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease; }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 42px; padding: 0 1.25em; font-size: .9375rem; }
.btn--coral { background: var(--coral); color: var(--ink); box-shadow: 0 14px 26px -14px rgba(4, 8, 20, .7); }
.btn--coral:hover { background: #ff6a5b; }
.btn--navy { background: var(--navy-900); color: var(--cream); box-shadow: 0 18px 36px -18px rgba(8, 13, 28, .7); }
.btn--navy:hover { background: var(--navy-700); }
.btn--ghost { color: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(247, 239, 227, .38); }
.btn--ghost:hover { background: rgba(247, 239, 227, .1); box-shadow: inset 0 0 0 1.5px rgba(247, 239, 227, .7); }
.btn-note { font-weight: 400; opacity: .7; }
.btn[disabled] { opacity: .6; cursor: default; }

/* ---------------------------------------------------------------- nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 28px; height: 68px; padding: 0 var(--gutter); color: var(--cream); background-color: rgba(12, 18, 36, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(247, 239, 227, .08); transition: background-color .25s ease, box-shadow .25s ease; }
.nav.is-top { background-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.brand { position: relative; margin-right: auto; font: 700 1.6rem/1 var(--display); letter-spacing: -.012em; text-decoration: none; color: var(--cream); }
.brand .dot { position: absolute; top: .22em; right: -.2em; }
.nav-links { display: flex; gap: 26px; font-size: .9375rem; font-weight: 500; }
.nav-links a { text-decoration: none; opacity: .82; padding: 8px 2px; }
.nav-links a:hover { opacity: 1; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; isolation: isolate; overflow: clip; color: var(--cream); text-align: center; background: var(--navy-900); padding: clamp(112px, 15vh, 168px) 0 clamp(250px, 33vw, 470px); }
.hero-bg { position: absolute; inset: 0; z-index: -1; background:
    linear-gradient(180deg, rgba(9, 14, 28, .97) 0%, rgba(12, 19, 38, .92) 34%, rgba(14, 22, 44, .62) 58%, rgba(14, 22, 44, .12) 80%, rgba(14, 22, 44, 0) 100%),
    url("img/dunes-1200.webp") 50% 100% / cover no-repeat; }
@media (min-width: 900px) { .hero-bg { background-image:
    linear-gradient(180deg, rgba(9, 14, 28, .97) 0%, rgba(12, 19, 38, .92) 34%, rgba(14, 22, 44, .62) 58%, rgba(14, 22, 44, .12) 80%, rgba(14, 22, 44, 0) 100%),
    url("img/dunes-2400.webp"); } }
.hero h1 { font: inherit; }

/* The wordmark. Once, on load, it opens into "Litigate well." and the dot drops to become the full stop. */
.wm { display: flex; justify-content: center; font: 700 clamp(4.6rem, 16vw, 12.4rem)/1.08 var(--display); letter-spacing: -.015em; white-space: nowrap; transform: scale(var(--k, 1)); transition: transform .95s var(--ease); }
.wm-in { position: relative; display: inline-block; }
.wm .fold { display: inline-block; overflow: hidden; vertical-align: top; width: 0; padding: .1em 0 .3em; margin: -.1em 0 -.3em; transition: width .95s var(--ease); }
.wm .fold-in { display: inline-block; opacity: 0; transition: opacity .45s ease; }
.wm .dot { position: absolute; top: .33em; right: -.17em; transition: top .95s var(--ease), right .95s var(--ease); }
.wm.is-open { --k: var(--k-open, 1); }
.wm.is-open .fold { width: var(--fold-w, 3.1em); }
.wm.is-open .fold-in { opacity: 1; transition-delay: .2s; }
.wm.is-open .dot { top: .79em; right: -.15em; }

.lockup { display: flex; align-items: center; justify-content: center; gap: .7em; margin-top: clamp(4px, 1vw, 14px); font: 400 clamp(.95rem, 1.5vw, 1.3rem)/1 var(--text); letter-spacing: .04em; color: rgba(247, 239, 227, .74); }
.lockup img { display: block; height: 1.5em; width: auto; margin-top: -.12em; }
.lockup-labs { font-size: 1.4em; letter-spacing: .46em; margin-right: -.46em; color: #eaecec; }

.hero-tag { display: block; margin: clamp(30px, 4.6vw, 58px) auto 0; max-width: 21ch; font: 500 clamp(1.7rem, 3.5vw, 3rem)/1.14 var(--display); letter-spacing: -.008em; text-wrap: balance; }
.hero-lede { max-width: 56ch; margin: clamp(16px, 2vw, 24px) auto 0; font-size: clamp(1.0625rem, 1.35vw, 1.2rem); color: var(--mist); text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: clamp(26px, 3vw, 38px); }

/* ---------------------------------------------------------------- film */
.film { position: relative; z-index: 2; padding-bottom: calc(var(--pad) + var(--slant)); background-image: var(--grain-dark); }
.player { position: relative; width: min(100%, 1080px); margin: calc(-1 * clamp(190px, 26vw, 380px)) auto 0; aspect-ratio: 16 / 9; border-radius: clamp(12px, 1.6vw, 20px); overflow: hidden; background: var(--navy-900); box-shadow: 0 0 0 1px rgba(247, 239, 227, .16), 0 50px 90px -40px rgba(10, 16, 32, .8), 0 18px 36px -18px rgba(10, 16, 32, .5); }
.player.is-tall { aspect-ratio: 9 / 16; width: min(100%, calc(82svh * 9 / 16)); margin-top: calc(-1 * clamp(150px, 44vw, 210px)); }
.player video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--navy-900); }
.player-play { display: none; position: absolute; inset: 0; width: 100%; flex-direction: column; align-items: center; justify-content: flex-end; gap: 14px; padding: 0 0 clamp(20px, 4.4vw, 46px); border: 0; cursor: pointer; color: var(--cream); background: linear-gradient(180deg, rgba(10, 16, 32, 0) 45%, rgba(10, 16, 32, .72) 100%); }
.player.is-ready .player-play { display: flex; }
.player.is-playing .player-play { display: none; }
.player-disc { display: grid; place-items: center; width: clamp(64px, 8vw, 92px); aspect-ratio: 1; border-radius: 50%; background: var(--coral); color: var(--ink); box-shadow: 0 18px 34px -14px rgba(4, 8, 20, .75); transition: transform .2s ease; }
.player-disc svg { margin-left: 4px; }
.player-play:hover .player-disc { transform: scale(1.07); }
.player-play:focus-visible { outline-offset: -6px; border-radius: 18px; }
.player-label { font: 650 1.0625rem/1.3 var(--text); }
.player-label small { display: block; font-weight: 400; font-size: .875rem; opacity: .78; }

.chapters { width: min(100%, 1080px); margin: 26px auto 0; }
.chapters p { font-size: .9375rem; font-weight: 600; color: var(--slate); }
.chapters ol { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chapters button { display: inline-flex; align-items: baseline; gap: .6em; padding: 9px 14px; border: 0; border-radius: 999px; background: rgba(30, 42, 75, .075); color: var(--navy-900); font-size: .9375rem; font-weight: 550; cursor: pointer; transition: background-color .15s ease; }
.chapters button:hover { background: rgba(30, 42, 75, .15); }
.chapters time { font-size: .8125rem; font-weight: 400; font-variant-numeric: tabular-nums; color: #3c4660; }
.chapters button.is-on { background: var(--navy-900); color: var(--cream); }
.chapters button.is-on time { color: rgba(247, 239, 227, .7); }

/* ---------------------------------------------------------------- worlds */
.sand { position: relative; padding-block: calc(var(--pad) + var(--slant)); background-image: var(--grain-dark); }
.sand p { color: var(--slate); }

/* dusk slabs are cut on a slant, like the film's diagonal wipes */
.slab { position: relative; z-index: 3; isolation: isolate; color: var(--cream); margin-block: calc(-1 * var(--slant)); padding-block: calc(var(--pad) + var(--slant)); clip-path: polygon(0 var(--slant), 100% 0, 100% calc(100% - var(--slant)), 0 100%); background: var(--grain-light), linear-gradient(162deg, rgba(10, 16, 32, .9) 0%, rgba(16, 24, 46, .8) 50%, rgba(24, 34, 62, .66) 100%), url("img/streaks.webp") 50% 50% / cover no-repeat, #0e1528; background-color: #0e1528; }
.slab--rev { clip-path: polygon(0 0, 100% var(--slant), 100% 100%, 0 calc(100% - var(--slant))); }
.slab p { color: var(--mist); }

.label { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: .9375rem; font-weight: 650; letter-spacing: .01em; color: var(--coral-ink); }
.label::before { content: ""; width: 30px; height: 2px; background: currentColor; }
.slab .label, .slab p.label { color: #ff7a6c; }

/* ---------------------------------------------------------------- feature rows */
.row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 84px); align-items: center; }
.row--flip .row-text { order: 2; }
.row--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.row-text > p:not(.label) { margin-top: 18px; max-width: 46ch; text-wrap: pretty; }
.point { margin-top: 30px; padding-top: 26px; border-top: 1px solid rgba(30, 42, 75, .16); max-width: 46ch; }
.slab .point { border-top-color: rgba(247, 239, 227, .16); }
.point p { margin-top: 8px; text-wrap: pretty; }

/* UI as tilted sheets with lifted cards */
.stage { position: relative; aspect-ratio: var(--ar, 5 / 4); perspective: 1800px; perspective-origin: 50% 42%; }
.plane { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(7deg) rotateY(-15deg) rotateZ(1.2deg); }
.row--flip .plane { transform: rotateX(7deg) rotateY(15deg) rotateZ(-1.2deg); }
.card { display: block; height: auto; border-radius: 12px; background: #fff; box-shadow: 0 34px 60px -28px rgba(8, 13, 28, .58), 0 8px 18px -10px rgba(8, 13, 28, .32); }
.plane .card { position: absolute; left: var(--x, 0); top: var(--y, 0); width: var(--w, 60%); transform: translateZ(var(--z, 0px)); }
.sand .card { box-shadow: 0 34px 60px -28px rgba(8, 13, 28, .36), 0 8px 18px -10px rgba(8, 13, 28, .16), 0 0 0 1px rgba(8, 13, 28, .05); }
.stage--intake { --ar: 20 / 15; }
.stage--letter { --ar: 20 / 14; }
.stage--portal { --ar: 20 / 16; }

.board { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 64px); align-items: center; margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(36px, 4.5vw, 56px); border-top: 1px solid rgba(247, 239, 227, .16); }
.board-text p { margin-top: 10px; }
.board-img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 34px 60px -28px rgba(8, 13, 28, .6); }

/* contacts + cases, side by side */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); column-gap: clamp(40px, 6vw, 96px); }
.pair article { display: grid; grid-row: span 4; grid-template-rows: subgrid; }
.pair article > p:not(.label) { margin-top: 18px; max-width: 44ch; text-wrap: pretty; }
.pair .stage { margin-top: clamp(34px, 4vw, 54px); --ar: 20 / 14; }
.pair .plane { transform: rotateX(8deg) rotateY(-11deg) rotateZ(.8deg); }
.pair article:first-child .plane { transform: rotateX(8deg) rotateY(11deg) rotateZ(-.8deg); }

/* the full set of tools */
.toolset-lede { margin-top: 14px; }
.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px clamp(24px, 3vw, 44px); margin-top: clamp(28px, 3.4vw, 44px); }
.tools li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding: 16px 0; border-top: 1px solid rgba(247, 239, 227, .14); }
.tools svg { width: 44px; height: 44px; padding: 10px; border-radius: 11px; background: rgba(247, 239, 227, .08); fill: none; stroke: var(--cream); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tools h3 { font: 650 1.0625rem/1.3 var(--text); letter-spacing: 0; }
.tools p { margin-top: 2px; font-size: .9375rem; line-height: 1.45; text-wrap: balance; }
.signin { margin: 0; }
.signin-card { width: 100%; margin-bottom: 34px; transform: perspective(1500px) rotateY(-12deg) rotateX(5deg) rotateZ(.8deg); }
.signin p:not(.label) { margin-top: 10px; max-width: 40ch; }

/* how it works: a real sequence, so it is numbered */
.how { padding-bottom: var(--pad); }
.how-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.how h2 { max-width: 16ch; }
.steps { counter-reset: step; margin-top: clamp(34px, 4vw, 52px); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3.2rem 1fr; column-gap: 20px; padding: 22px 0; border-top: 1px solid rgba(30, 42, 75, .2); }
.steps li::before { content: counter(step); grid-row: span 2; font: 600 3.3rem/.9 var(--display); color: var(--coral); }
.steps p { margin-top: 6px; max-width: 40ch; }
.how-cta { margin-top: clamp(36px, 4.4vw, 56px); }

/* ---------------------------------------------------------------- the name */
.origin { position: relative; isolation: isolate; overflow: clip; color: var(--cream); background: #0c1326; padding-block: clamp(96px, 12vw, 176px); }
.origin-bg { position: absolute; inset: 0; z-index: -1; background:
    linear-gradient(90deg, rgba(10, 16, 34, .9) 0%, rgba(10, 16, 34, .66) 44%, rgba(10, 16, 34, .5) 62%, rgba(10, 16, 34, .78) 100%),
    linear-gradient(rgb(52, 70, 122), rgb(52, 70, 122)),
    url("img/team.webp") 50% 28% / cover no-repeat;
  background-blend-mode: normal, multiply, luminosity; }
.origin-inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(36px, 6vw, 96px); align-items: end; }
.entry-word { position: relative; display: inline-block; font: 700 clamp(3.6rem, 9vw, 7.4rem)/1 var(--display); letter-spacing: -.015em; }
.entry-word .dot { position: absolute; top: .3em; right: -.19em; }
.entry dl { margin-top: clamp(22px, 3vw, 38px); display: grid; gap: 14px; }
.entry dl div { display: grid; grid-template-columns: 4.2em 1fr; gap: 18px; align-items: baseline; }
.entry dt { font: 650 .9375rem/1.3 var(--text); letter-spacing: .01em; color: #ff7a6c; }
.entry dd { font: 400 clamp(1.3rem, 2.2vw, 1.9rem)/1.3 var(--text); letter-spacing: -.005em; text-wrap: balance; }
.origin-note { max-width: 40ch; padding-left: 22px; border-left: 2px solid var(--coral); color: var(--mist); font-size: 1.125rem; text-wrap: pretty; }

/* ---------------------------------------------------------------- demo request */
.demo { position: relative; background: var(--grain-dark), var(--coral); background-color: var(--coral); padding-block: var(--pad); color: var(--ink); }
.demo-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 5vw, 80px); align-items: start; }
.demo-pitch { position: sticky; top: 108px; }
.demo h2 { font-size: clamp(3.1rem, 7.6vw, 6.4rem); line-height: .98; color: #fffaf3; }
.demo-pitch p { margin-top: 22px; max-width: 30ch; font-size: 1.3rem; line-height: 1.42; font-weight: 500; color: var(--ink); }

.sheet { background: var(--paper); border-radius: 22px; padding: clamp(24px, 3.4vw, 44px); box-shadow: 0 50px 80px -44px rgba(70, 12, 4, .7), 0 12px 26px -14px rgba(70, 12, 4, .4); }
.sheet form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 22px; }
.field { display: grid; gap: 7px; align-content: start; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: .9375rem; font-weight: 600; color: var(--navy-900); }
.opt { font-weight: 400; color: #5d6780; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid rgba(30, 42, 75, .26); border-radius: 11px; background: #fff; color: var(--navy-900); font-size: 1.0625rem; line-height: 1.35; transition: border-color .15s ease, box-shadow .15s ease; }
.field textarea { resize: vertical; min-height: 96px; }
.field select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M5 7.500l5 5 5-5' fill='none' stroke='%230e1528' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; }
.field select:invalid { color: #5d6780; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(30, 42, 75, .5); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--navy-900); box-shadow: 0 0 0 4px rgba(240, 81, 67, .28); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field .err { font-size: .875rem; color: #b3261e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 6px; }
.fine { font-size: .875rem; line-height: 1.45; color: #5d6780; max-width: 34ch; text-wrap: balance; }
.form-error { padding: 12px 14px; border-radius: 11px; background: #fbe9e7; color: #8f1d15; font-size: .9375rem; font-weight: 500; }
.sent { padding: clamp(18px, 3vw, 40px) 4px; }
.sent:focus { outline: none; }
.sent h3 { font-size: clamp(2rem, 3.4vw, 2.9rem); }
.sent p { margin-top: 12px; font-size: 1.15rem; color: var(--slate); }

/* ---------------------------------------------------------------- footer */
.foot { background: var(--grain-light), #0b1122; background-color: #0b1122; color: var(--cream); padding: clamp(48px, 6vw, 80px) 0; }
.foot-inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.brand--foot { display: inline-block; margin: 0; font-size: 2.6rem; }
.lockup--foot { justify-content: flex-start; margin-top: 14px; font-size: .95rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .9375rem; }
.foot-links a { text-decoration: none; opacity: .78; padding: 6px 0; }
.foot-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* ---------------------------------------------------------------- narrower screens */
@media (max-width: 960px) {
  .row, .row--flip, .board, .pair, .how-grid, .origin-inner, .demo-inner { grid-template-columns: minmax(0, 1fr); }
  .pair { grid-template-rows: none; row-gap: 72px; }
  .pair article { display: block; grid-row: auto; }
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row--flip .row-text { order: 0; }
  .row .stage, .pair .stage { width: min(100%, 620px); margin-inline: auto; }
  .plane, .row--flip .plane, .pair .plane, .pair article:first-child .plane { transform: rotateX(6deg) rotateY(-9deg) rotateZ(.8deg); }
  .row { gap: 44px; }
  .demo-pitch { position: static; }
  .signin { max-width: 520px; }
  .origin-inner { align-items: start; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .tools { grid-template-columns: minmax(0, 1fr); }
  .sheet form { grid-template-columns: minmax(0, 1fr); }
  .chapters ol { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 10px; scrollbar-width: none; }
  .chapters ol::-webkit-scrollbar { display: none; }
  .chapters button { white-space: nowrap; }
  .entry dl div { grid-template-columns: 1fr; gap: 2px; }
  .hero-cta .btn { width: 100%; max-width: 340px; }
}

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