/* untitledproduct.com, v2 design ("UP. 2026-27" in Figma).
 *
 * Measurements are the Figma frames': the desktop frame is 1440 wide with an
 * 848px content column, the mobile frame is 402 wide with 16px gutters. Below
 * 900px the page takes the mobile layout; below 600px the pixel-art renders
 * switch to the mobile exports, which are cropped differently.
 *
 * The dithered images are Figma's own renders at 1x. They are drawn with
 * image-rendering: pixelated so every dither cell stays a hard square at any
 * device pixel ratio, instead of being smoothed into a blur.
 */

@font-face {
  font-family: "Pretendard";
  src: url("/fonts/PretendardVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* The display serif. These files carry 68 glyphs: letters, figures, space,
 * comma, full stop and both apostrophes. Anything else on the page (- ? + &
 * ® : ;) is drawn by the next font in the stack, Tinos.
 *
 * The .woff2 files are the .otf originals with one change: their hhea
 * ascent and descent are set to the font's typo values. The font flags typo
 * metrics as the ones to use, Figma uses them, but macOS browsers read hhea,
 * which sat every line of this face 0.13em lower than the design. */
@font-face {
  font-family: "Office Times Round";
  src: url("/fonts/OfficeTimesRound-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Office Times Sharp";
  src: url("/fonts/OfficeTimesSharp-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Fills in the characters Office Times does not have. Tinos is
 * metric-compatible with Times New Roman, so those few glyphs look the same
 * on every platform rather than like whatever serif each system ships. */
@font-face {
  font-family: "Tinos";
  src: url("/fonts/Tinos-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1b1b1b;
  --ink-2: #1e1e1e;
  --muted: #717171;
  --quiet: #9e9e9e;
  --chip: #f2f2f2;
  --card: #f3f3f3;
  --panel: #252525;
  --panel-text: #f4f4f4;
  --accent: #ff6700;
  --rule: #f3f3f3;

  --serif: "Office Times Round", "Tinos", "Times New Roman", Times, serif;
  --serif-sharp: "Office Times Sharp", "Office Times Round", "Tinos", "Times New Roman", Times, serif;
  --sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  /* The Windows XP furniture is Tahoma in the design. It ships with Windows
   * and macOS; elsewhere it falls back to a close system sans. */
  --system: Tahoma, Verdana, "Segoe UI", sans-serif;

  --column: 848px;
  --gutter: 16px;
  --section-gap: 150px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* The scrollbar's room is kept while a dialog holds the page still
 * (overflow: hidden), so a screen with a standing scrollbar does not
 * reflow the whole page as one opens and closes. */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 20px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
canvas {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.pixelated {
  image-rendering: pixelated;
}

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

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ---------------------------------------------------------------- buttons */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 94px;
  height: 34px;
  padding: 8px 12px;
  border: 0.6px solid transparent;
  border-radius: 2px;
  font-size: 14px;
  line-height: normal;
  white-space: nowrap;
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s, filter 0.2s;
}

.btn--dark {
  background: linear-gradient(90deg, #1b1b1b 0%, #383838 52.91%, #1b1b1b 100%);
  color: #fff;
}

.btn--dark:hover {
  filter: brightness(1.25);
}

.btn--light {
  background: var(--chip);
  color: var(--ink);
}

.btn--light:hover {
  background: #e8e8e8;
}

/* ---------------------------------------------------------------- tags */

/* The black labels with a pixel or two stepping off them. The label is the
 * element; the squares are its pseudo-elements, placed per variant. */
.tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 8px 1px;
  background: #000;
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag::before,
.tag::after {
  position: absolute;
  width: 19px;
  height: 19px;
  background: #000;
}

/* One square off the top-right corner. */
.tag--corner {
  margin-top: 19px;
}

.tag--corner::before {
  content: "";
  left: 100%;
  bottom: 100%;
}

/* One square on the top-left, like a cap. */
.tag--cap {
  margin-top: 19px;
}

.tag--cap::before {
  content: "";
  left: 0;
  bottom: 100%;
}

/* Two squares below: one under the start, one just past the end. */
.tag--legs {
  margin-bottom: 19px;
}

.tag--legs::before,
.tag--legs::after {
  content: "";
  top: 100%;
}

.tag--legs::before {
  left: 0;
}

.tag--legs::after {
  left: 100%;
}

/* Two squares below, both outside the label. */
.tag--arch {
  margin-bottom: 19px;
}

.tag--arch::before,
.tag--arch::after {
  content: "";
  top: 100%;
}

.tag--arch::before {
  right: 100%;
}

.tag--arch::after {
  left: 100%;
}

/* ---------------------------------------------------------------- nav */

/* A floating bar that opens into a panel. The panel is one shape behind the
 * bar, clipped to the bar's own outline while closed; opening, the clip lets
 * go and the bar seems to pour down and out into the panel, 4px proud of it
 * on every side as in the design. The drawer is always laid out at full
 * height, so the shape has somewhere to grow to; while closed it is hidden,
 * inert, and lets clicks through to the page. */
.nav {
  position: fixed;
  top: 28px;
  left: 50%;
  z-index: 50;
  width: 424px;
  max-width: calc(100% - 24px);
  padding: 4px;
  transform: translateX(-50%);
  pointer-events: none;
}

.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 3px;
  background: var(--panel);
  /* Closed: the bar, 36px tall, 4px in from the top and sides. */
  clip-path: inset(4px 4px calc(100% - 40px) 4px round 2px);
  transition: clip-path 0.38s cubic-bezier(0.4, 0, 0.2, 1) 0.06s;
}

.nav.is-open::before {
  clip-path: inset(0 0 0 0 round 3px);
  transition: clip-path 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav.is-open,
.nav__bar {
  pointer-events: auto;
}

.nav__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  padding: 12px 13px 12px 12px;
  border-radius: 2px;
  background: var(--ink);
}

.nav__brand img {
  width: 123px;
  height: auto;
}

.nav__toggle {
  position: relative;
  width: 23px;
  height: 23px;
  margin: -7px 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.nav__toggle-line {
  position: absolute;
  left: 0;
  width: 23px;
  height: 1.15px;
  background: #fff;
  transition: transform 0.35s var(--ease-out);
}

.nav__toggle-line:nth-of-type(2) {
  top: 6.9px;
}

.nav__toggle-line:nth-of-type(3) {
  top: 16.1px;
}

/* Open, the two lines meet in the middle and read as a single dash. */
.nav.is-open .nav__toggle-line:nth-of-type(2) {
  transform: translateY(4.6px);
}

.nav.is-open .nav__toggle-line:nth-of-type(3) {
  transform: translateY(-4.6px);
}

.nav__drawer {
  position: relative;
  visibility: hidden;
  transition: visibility 0s 0.44s;
}

.nav.is-open .nav__drawer {
  visibility: visible;
  transition: none;
}

.nav__drawer-inner {
  padding: 0 20px;
}

/* The contents follow the shape down, one after another, and leave first. */
.nav__links li,
.nav__rule,
.nav__cta,
.nav__email {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.16s, transform 0.16s;
}

.nav.is-open :is(.nav__links li, .nav__rule, .nav__cta, .nav__email) {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s var(--ease-soft), transform 0.5s var(--ease-out);
  transition-delay: calc(0.12s + var(--i, 0) * 0.045s);
}

.nav__links li:nth-child(2) {
  --i: 1;
}

.nav__rule {
  --i: 2;
}

.nav__cta {
  --i: 3;
}

.nav__email {
  --i: 4;
}

.nav__links {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 25px 0 0;
  list-style: none;
  color: var(--panel-text);
  letter-spacing: -0.2px;
}

.nav__links a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nav__rule {
  margin: 16px 0;
  border: 0;
  border-top: 1px solid rgba(243, 243, 243, 0.2);
}

.nav__cta {
  margin: 0;
  color: #fff;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 24px;
  letter-spacing: -0.04em;
}

.nav__email {
  display: inline-block;
  margin: 4px 0 21px;
  color: var(--accent);
  font-size: 20px;
  font-weight: 300;
  line-height: 32px;
  letter-spacing: -0.03em;
}

/* ---------------------------------------------------------------- hero */

.hero {
  padding-top: 133px;
}

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(508px, 100% - 2 * var(--gutter));
  margin: 0 auto;
  text-align: center;
}

.hero__title {
  width: min(539px, 100vw - 2 * var(--gutter));
  margin: 0;
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 400;
  line-height: 44px;
  letter-spacing: -0.06em;
}

.hero__sub {
  margin: 8px 0 0;
  color: var(--muted);
  letter-spacing: -0.01em;
}

.hero__actions {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.hero__visual {
  position: relative;
  width: min(var(--column), 100% - 2 * var(--gutter));
  aspect-ratio: 848 / 400;
  margin: 49px auto 0;
  overflow: hidden;
  background: #f1d6e8;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* site.js draws the hero live, one canvas pixel per 2px dot, sized in px. */
.hero__live {
  position: absolute;
  left: 0;
  top: 0;
  image-rendering: pixelated;
}

/* While it does, it starts from white, and the export underneath stays out
 * of sight so it cannot show before the first frame. */
.hero__visual.is-live {
  background: #fff;
}

.hero__visual.is-live .hero__bg {
  visibility: hidden;
}

.hero__wordmark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__wordmark--narrow {
  display: none;
}

/* How far below its resting place the wordmark starts: past the lowest point
 * of the hill line, so the first frame shows none of it. */
.hero__wordmark--wide {
  --rise: 110px;
}

.hero__wordmark--narrow {
  --rise: 64px;
}

.desk-icon {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 130px;
}

.hero__folder {
  left: calc(3 / 848 * 100%);
  top: calc(36 / 400 * 100%);
}

.desk-icon__art {
  position: relative;
  width: 48px;
  height: 48px;
}

.desk-icon__img {
  width: 48px;
  height: 48px;
  image-rendering: pixelated;
}

.desk-icon__shortcut {
  position: absolute;
  left: -7px;
  top: 32px;
  width: 13px;
  height: 14px;
  image-rendering: pixelated;
}

.desk-icon__label {
  margin-top: 12px;
  color: #fff;
  font-size: 17px;
  line-height: 15px;
  text-shadow: 0.5px 1.25px 0 #000;
}

/* ---------------------------------------------------------------- stats */

.stats-section {
  width: min(var(--column), 100% - 2 * var(--gutter));
  margin: var(--section-gap) auto 0;
}

.stats {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.stat {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat__bar {
  width: auto;
  height: 54px;
}

/* site.js wraps each bar with its shimmer canvas, laid over it. */
.stat__frame {
  position: relative;
  flex: none;
}

.stat__frame > .stat__shimmer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.stat__text {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.stat__num {
  flex: none;
  color: var(--ink-2);
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.2;
  white-space: nowrap;
}

.stat__desc {
  color: var(--muted);
  font-weight: 300;
  line-height: 18px;
}

.stat--3 .stat__desc {
  max-width: 230px;
}

/* Filled in order once the block is on screen: each bar wipes in from the
 * left, then its numbers arrive as it lands, then the next bar starts. The
 * transitions belong to the playing state only, so hiding is instant: with
 * the delays on the hidden state too, a block already on screen when the
 * script ran kept its later numbers showing while their bars refilled. */
.js .stats .stat__bar {
  clip-path: inset(0 100% 0 0);
}

.js .stats .stat__text {
  opacity: 0;
  transform: translateX(-10px);
}

.js .stats.is-playing .stat__bar {
  clip-path: inset(0);
  transition: clip-path 0.75s cubic-bezier(0.65, 0, 0.35, 1);
}

.js .stats.is-playing .stat__text {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s var(--ease-soft), transform 0.6s var(--ease-soft);
}

.stats.is-playing .stat--1 .stat__text { transition-delay: 0.65s; }
.stats.is-playing .stat--2 .stat__bar { transition-delay: 0.75s; }
.stats.is-playing .stat--2 .stat__text { transition-delay: 1.4s; }
.stats.is-playing .stat--3 .stat__bar { transition-delay: 1.5s; }
.stats.is-playing .stat--3 .stat__text { transition-delay: 2.15s; }

/* ---------------------------------------------------------------- manifesto */

.manifesto-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(822px, 100% - 2 * var(--gutter));
  margin: var(--section-gap) auto 0;
  text-align: center;
}

/* Dark words are a gradient, as in the design: #1b1b1b at the top of the
 * paragraph fading to #818181 at the bottom. Without script it is painted
 * once, clipped to the text; site.js gives each word its own colour. */
/* 822px, not the text box's 806: in the design the pills run past the text
 * box, and 822 is the width the paragraph actually covers. */
.manifesto {
  max-width: 822px;
  margin: 16px 0 0;
  background: linear-gradient(to bottom, #1b1b1b, #818181);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--serif);
  font-size: 40px;
  line-height: 70px;
  letter-spacing: -0.04em;
}

/* A word never breaks at its own hyphen: "full-fledged" and "0-to-1" stay
 * whole on one line. */
.manifesto .word {
  color: var(--quiet);
  white-space: nowrap;
  transition: color 0.45s;
}

.manifesto .word.is-on {
  color: var(--ink);
}

/* With site.js the gradient is per word (see initManifesto). */
.js .manifesto {
  background: none;
}

/* A pill's measures are variables, so the not-yet-reached state below can
 * work out where its text sits. */
.pill {
  --pad-l: 4px;
  --pad-r: 24px;
  --icon: 60px;
  --gap: 12px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: var(--gap);
  height: 68px;
  padding: 4px var(--pad-r) 4px var(--pad-l);
  border-radius: 44px;
  vertical-align: middle;
  line-height: 60px;
}

/* The grey capsule is its own layer, so it can come in on its own. */
.pill::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--chip);
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.1);
}

/* The design draws these two tighter on the right than the others. */
.pill--dev {
  --pad-r: 16px;
}

.pill--anim {
  --pad-l: 8px;
  --pad-r: 12px;
  --icon: 0px;
  --gap: 0px;
}

.pill--brand {
  --icon: 61px;
}

.pill__icon {
  position: relative;
  flex: none;
  width: var(--icon);
  height: var(--icon);
  overflow: hidden;
  border-radius: 50%;
}

.pill__dither,
.pill__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.pill__dither {
  visibility: hidden;
}

.pill__icon.is-live .pill__dither {
  visibility: visible;
}

.pill__icon.is-live .pill__fallback {
  visibility: hidden;
}

.pill__glyph {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 53%;
  height: 53%;
  transform: translate(-50%, -50%);
  overflow: visible;
}

.pill__text {
  background: linear-gradient(to bottom, #1b1b1b, #818181);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--serif-sharp);
  font-size: 40px;
  letter-spacing: -0.04em;
  transition: color 0.45s;
}

.js .pill__text {
  color: var(--quiet);
}

.js .pill.is-on .pill__text {
  color: transparent;
}

/* Until the reading reaches it, a pill is a plain grey word: no capsule, no
 * icon, its text in the middle of the room the pill keeps for itself (so no
 * line ever reflows). Reached, the capsule swells in, the icon pops into
 * its place and the word slides over to make room for it. */
.js .pill::before {
  transition: opacity 0.3s, transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.js .pill .pill__icon {
  transition: opacity 0.2s 0.1s, transform 0.6s cubic-bezier(0.34, 1.7, 0.64, 1) 0.1s;
}

.js .pill .pill__text {
  display: inline-block;
  transition: color 0.45s, transform 0.6s var(--ease-out);
}

.js .pill:not(.is-on)::before {
  opacity: 0;
  transform: scale(0.85, 0.7);
}

.js .pill:not(.is-on) .pill__icon {
  opacity: 0;
  transform: scale(0) rotate(-40deg);
  transition: opacity 0.15s, transform 0.3s;
}

.js .pill:not(.is-on) .pill__text {
  transform: translateX(calc((var(--pad-l) + var(--icon) + var(--gap) - var(--pad-r)) / -2));
}

/* "animations" animates: as its pill forms, a wave of hops runs through
 * its letters from the "a", each with a squash and stretch; the wave comes
 * back now and then while it is on screen, and again under the pointer. The
 * letters never leave the line. site.js splits the word into letters and gives them the
 * gradient's colour at that line (--ink). */
.pill--anim .pill__text {
  background: none;
}

.pill__letter {
  display: inline-block;
  color: var(--quiet);
  transform-origin: 50% 85%;
  transition: color 0.45s;
}

.pill--anim.is-on .pill__letter {
  color: var(--ink);
}

@media (prefers-reduced-motion: no-preference) {
  .pill--anim.is-on .pill__letter {
    animation: letter-hop-once 0.7s ease-in-out calc(0.2s + var(--i) * 0.045s) both;
  }

  /* After the first wave (site.js marks it settled) it waits for the next. */
  .pill--anim.is-on.is-settled .pill__letter {
    animation: none;
  }

  .pill--anim.is-on.is-settled.is-moving .pill__letter {
    animation: letter-hop 5s ease-in-out calc(4s + var(--i) * 0.06s) infinite;
  }

  .pill--anim.is-on.is-settled.is-hopping .pill__letter {
    animation: letter-hop-once 0.7s ease-in-out calc(var(--i) * 0.045s) both;
  }
}

@keyframes letter-hop {
  0%, 16%, 100% { transform: none; }
  3% { transform: scale(1.12, 0.84); }
  8% { transform: translateY(-0.32em) scale(0.9, 1.14); }
  12% { transform: translateY(0) scale(1.14, 0.86); }
  14% { transform: scale(0.97, 1.03); }
}

@keyframes letter-hop-once {
  0%, 100% { transform: none; }
  18% { transform: scale(1.12, 0.84); }
  48% { transform: translateY(-0.32em) scale(0.9, 1.14); }
  74% { transform: translateY(0) scale(1.14, 0.86); }
  88% { transform: scale(0.97, 1.03); }
}

/* The pills' own small motions. The tablet tips over and back, the scatter
 * plot's points land one after another; the gradients behind the icons are
 * turned in the canvas, where they are dithered again every frame. */
.pill.is-moving .pill__glyph--device {
  animation: device-tilt 4.2s var(--ease-soft) infinite;
}

.pill.is-moving .pill__glyph--chart .dot {
  transform-box: fill-box;
  transform-origin: center;
  animation: dot-land 3.6s var(--ease-out) infinite;
}

.pill.is-moving .dot--2 { animation-delay: 0.18s; }
.pill.is-moving .dot--3 { animation-delay: 0.36s; }
.pill.is-moving .dot--4 { animation-delay: 0.54s; }
.pill.is-moving .dot--5 { animation-delay: 0.72s; }

@keyframes device-tilt {
  0%, 55%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
  65% { transform: translate(-50%, -50%) rotate(-14deg); }
  78% { transform: translate(-50%, -50%) rotate(6deg); }
  88% { transform: translate(-50%, -50%) rotate(0deg); }
}

@keyframes dot-land {
  0%, 8% { transform: scale(0); }
  22% { transform: scale(2.2); }
  34%, 82% { transform: scale(1); }
  100% { transform: scale(0); }
}

.manifesto__crt {
  position: relative;
  width: 181px;
  height: 185px;
  margin-top: -43px;
}

/* ---------------------------------------------------------------- works */

.works {
  width: min(var(--column), 100% - 2 * var(--gutter));
  margin: 198px auto 0;
  scroll-margin-top: 90px;
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-head__title {
  margin: 20px 0 0;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 56px;
  letter-spacing: -0.04em;
}

.section-head__sub {
  margin: 8px 0 0;
  color: var(--muted);
  letter-spacing: -0.01em;
}

.section-head--team .section-head__title {
  margin-top: 26px;
}

.projects {
  display: grid;
  gap: 40px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.project {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 514px;
  column-gap: 28px;
  height: 397px;
  padding: 15px 22px 15px 24px;
  background: var(--card);
  isolation: isolate;
}

/* The dotted ground is Figma's dither of #f3f3f3, an 8px repeat. It lives on
 * a pseudo-element so pixelated scaling applies to it and not to the card's
 * screenshot. */
.project::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("/images/v2/card-pattern.png") 0 0 / 16px 16px;
  image-rendering: pixelated;
}

.project__text {
  align-self: end;
  max-width: 261px;
  padding-bottom: 9px;
}

.project__title {
  margin: 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 44px;
  letter-spacing: -0.06em;
  white-space: nowrap;
}

.project__desc {
  margin: 8px 0 0;
  color: var(--muted);
  letter-spacing: -0.01em;
}

.project__media {
  overflow: hidden;
  background: #fff;
}

.project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.8s var(--ease-out);
}

/* A card with a page behind it is clickable all over. */
.project__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* Hovered, its title underlines from the left, the screenshot leans in and
 * a "View project" tag follows the pointer (site.js moves it; without the
 * script it waits over the screenshot). */
.project__link {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.5s var(--ease-out);
}

.project:has(.project__link):hover .project__link,
.project__link:focus-visible {
  background-size: 100% 1px;
}

.project:has(.project__link):hover .project__media img {
  transform: scale(1.03);
}

.project__cue {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 8px 1px;
  background: #000;
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  translate: 560px 180px;
  scale: 0.6;
  opacity: 0;
  transform-origin: 0 0;
  transition: opacity 0.2s, scale 0.35s var(--ease-out);
}

/* One square off its top-right corner, as on the section tags. */
.project__cue::after {
  content: "";
  position: absolute;
  left: 100%;
  bottom: 100%;
  width: 9px;
  height: 9px;
  background: #000;
}

.project:has(.project__link):hover .project__cue,
.project:has(.project__link:focus-visible) .project__cue {
  opacity: 1;
  scale: 1;
}

/* A card whose page is still being made: the same tag says "Coming soon",
 * with no link and no lean-in, so it doesn't promise a click. */
.project--soon:hover .project__cue {
  opacity: 1;
  scale: 1;
}

/* ---------------------------------------------------------------- team */

.team {
  margin-top: var(--section-gap);
}

/* A Windows desktop: the wallpaper, a column of icons, and one Paint window
 * per person. The windows are positioned by site.js, which also makes them
 * draggable and brings a clicked one to the front. */
.desktop {
  position: relative;
  width: min(854px, 100% - 2 * var(--gutter));
  height: 400px;
  margin: 36px auto 0;
  overflow: hidden;
  background: #b9cfe9;
  --win-w: 231px;
  --win-h: 338px;
}

.desktop__wallpaper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.desktop__icons {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 1;
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.xp-icon {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: none;
  cursor: pointer;
}

span.xp-icon {
  cursor: default;
}

.xp-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

a.xp-icon:hover,
button.xp-icon:hover {
  background: rgba(49, 106, 197, 0.35);
}

.desktop__windows {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.paint-window {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--win-w);
  height: var(--win-h);
  transform: translate3d(var(--x, 0px), var(--y, 0px), 0);
  transform-origin: 0 0;
  /* On touch the window body still scrolls the page; only the title bar
   * (the handle site.js adds) drags. A mouse can drag from anywhere. */
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}

.paint-window.is-dragging {
  cursor: grabbing;
}

.paint-window__handle {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 3;
  height: 20px;
  touch-action: none;
}

/* The window's chrome: the dithered Paint frame, then the design's warm
 * lighten wash over it. The canvas sits on top of both. */
.paint-window::before,
.paint-window::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.paint-window::before {
  background: url("/images/v2/paint-window.png") 0 0 / 100% 100% no-repeat;
  image-rendering: pixelated;
}

.paint-window::after {
  right: 1px;
  border-radius: 7.86px 7.86px 0 0;
  background: rgba(255, 76, 0, 0.31);
  mix-blend-mode: lighten;
}

.paint-window__canvas {
  position: absolute;
  left: 56px;
  top: 43px;
  z-index: 1;
  width: 154px;
  height: 211px;
  overflow: hidden;
  background: #ece9d8;
}

.paint-window__canvas img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* The name and the tooltip under the cursor, shown for the window in front. */
.paint-window__label {
  position: absolute;
  left: 204px;
  top: 114px;
  z-index: 2;
  margin: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}

.paint-window.is-front .paint-window__label {
  opacity: 1;
}

.desktop.is-intro .paint-window__label {
  opacity: 0;
}

.paint-window__name {
  position: absolute;
  left: 54px;
  top: 0;
  height: 19px;
  padding: 0 8px 1px;
  background: #000;
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.paint-window__role {
  position: absolute;
  left: 0;
  top: 22px;
  height: 21px;
  padding: 3px 4px 0;
  border: 1px solid #7f9db9;
  background: #fff;
  color: #000;
  font-family: var(--system);
  font-size: 11px;
  line-height: normal;
  white-space: nowrap;
}

.desktop__cursor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 20;
  width: 48px;
  height: 48px;
  pointer-events: none;
  transform: translate3d(var(--cx, 0px), var(--cy, 0px), 0);
  transition: opacity 0.2s;
}

.desktop__cursor.is-moving {
  transition: transform 0.75s var(--ease-soft), opacity 0.2s;
}

/* With a real pointer on the desktop, the drawn one steps aside. */
.desktop.is-pointer-inside .desktop__cursor {
  opacity: 0;
}

/* ---------------------------------------------------------------- cta */

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(var(--column), 100% - 2 * var(--gutter));
  margin: var(--section-gap) auto 0;
  text-align: center;
}

.cta__crt {
  width: 289px;
  height: 248px;
  margin-bottom: -19px;
}

.cta__title {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 400;
  line-height: 69px;
  letter-spacing: -0.04em;
}

/* ---------------------------------------------------------------- footer */

.footer {
  width: min(857px, 100% - 2 * var(--gutter));
  margin: 80px auto 0;
  padding-bottom: 94px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.2px;
}

.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 20px;
}

.footer__links {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__rule {
  margin: 24px 0;
  border: 0;
  border-top: 1px solid var(--rule);
}

.footer__brand {
  display: flex;
  justify-content: center;
}

.footer__brand:hover {
  text-decoration: none;
}

.footer__brand img {
  width: 137px;
  height: auto;
}

/* ---------------------------------------------------------------- contact */

/* The contact form, in a native <dialog>: showModal() makes the page behind
 * it inert, traps focus and closes on Escape. A white sheet with the page's
 * own parts: a corner tag, the serif title, grey fields, chips for the
 * services and the dark button. Below 600px it is a sheet from the bottom. */
html.has-dialog {
  overflow: hidden;
}

.contact {
  width: min(560px, 100% - 2 * var(--gutter));
  max-width: none;
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.06);
  overscroll-behavior: contain;
}

.contact::backdrop {
  background: rgba(27, 27, 27, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.contact__panel {
  position: relative;
  padding: 24px 32px 32px;
}

.contact__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: var(--chip);
  cursor: pointer;
  transition: background-color 0.2s;
}

.contact__close:hover {
  background: #e8e8e8;
}

/* A cross from the menu's own hairlines. */
.contact__close::before,
.contact__close::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 15.5px;
  width: 14px;
  height: 1.15px;
  background: var(--ink);
  transform: rotate(45deg);
}

.contact__close::after {
  transform: rotate(-45deg);
}

.contact__title {
  margin: 16px 0 0;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 36px;
  letter-spacing: -0.06em;
}

.contact__title:focus {
  outline: none;
}

.contact__sub {
  max-width: 400px;
  margin: 8px 0 0;
  color: var(--muted);
  letter-spacing: -0.01em;
}

.contact__form {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

.contact__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field__label {
  padding: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.01em;
}

.field__hint {
  color: var(--quiet);
  font-weight: 400;
}

.field__input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: var(--chip);
  color: var(--ink);
  font: inherit;
  /* 16px stops iOS zooming in on focus. */
  font-size: 16px;
  transition: border-color 0.2s, background-color 0.2s;
}

.field__input::placeholder {
  color: var(--quiet);
}

.field__input:hover {
  background: #ececec;
}

.field__input:focus {
  border-color: var(--ink);
  background: #fff;
  outline: none;
}

.was-sent .field__input:invalid {
  border-color: var(--accent);
}

.services {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.services .field__label {
  margin-bottom: 8px;
}

.services__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.chip__input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.chip__text {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  border: 0.6px solid transparent;
  border-radius: 2px;
  background: var(--chip);
  font-size: 13px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}

.chip:hover .chip__text {
  background: #e8e8e8;
}

.chip__input:checked + .chip__text {
  background: linear-gradient(90deg, #1b1b1b 0%, #383838 52.91%, #1b1b1b 100%);
  color: #fff;
}

.chip__input:focus-visible + .chip__text {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.contact__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact__check:empty {
  display: none;
}

.contact__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.contact__error {
  flex: 1;
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  line-height: 18px;
}

.contact__error a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact__send:disabled {
  cursor: progress;
  filter: brightness(1.25);
}

.contact__done {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0 8px;
  text-align: center;
}

.contact__done[hidden] {
  display: none;
}

.contact__done-art {
  width: 107px;
  height: auto;
}

.contact__done .contact__sub {
  margin-bottom: 24px;
}

@media (prefers-reduced-motion: no-preference) {
  .contact[open] {
    animation: contact-in 0.45s var(--ease-out);
  }

  .contact[open]::backdrop {
    animation: fade-in 0.3s ease-out;
  }

  .contact.is-closing {
    animation: contact-out 0.2s ease-in forwards;
  }

  .contact.is-closing::backdrop {
    animation: fade-out 0.2s ease-in forwards;
  }
}

@keyframes contact-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
}

@keyframes contact-out {
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
}

@keyframes fade-out {
  to {
    opacity: 0;
  }
}

@media (max-width: 599px) {
  .contact {
    width: 100%;
    max-height: calc(100dvh - 24px);
    margin: auto 0 0;
    border-radius: 6px 6px 0 0;
  }

  .contact__panel {
    padding: 20px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  }

  .contact__title {
    font-size: 28px;
    line-height: 32px;
  }

  .contact__row {
    grid-template-columns: 1fr;
  }

  .contact__actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .contact__send {
    width: 100%;
    height: 40px;
  }

  @media (prefers-reduced-motion: no-preference) {
    .contact[open] {
      animation-name: sheet-in;
    }

    .contact.is-closing {
      animation-name: sheet-out;
    }
  }
}

@keyframes sheet-in {
  from {
    transform: translateY(100%);
  }
}

@keyframes sheet-out {
  to {
    transform: translateY(100%);
  }
}

/* ---------------------------------------------------------------- case study */

/* The project pages (pages/case-study/). A narrow intro, as in the design:
 * the client's logo, the title, a lede and two facts; then the work, one
 * screen per dotted panel (each panel is a single image, the dots baked in);
 * then the way out. */
.case-intro {
  width: min(416px, 100% - 2 * var(--gutter));
  margin: 0 auto;
  padding-top: 149px;
}

.case-intro__logo {
  display: block;
  width: auto;
  height: 28px;
}

.case-intro__logo--tall {
  height: 48px;
}

/* A square brand mark (Qatalog, Hotpepper) instead of a wordmark. */
.case-intro__logo--mark {
  height: 40px;
}

.case-intro__place {
  margin: 25px 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 32px;
  letter-spacing: -0.04em;
}

.case-intro__title {
  margin: 25px 0 0;
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 400;
  line-height: 44px;
  letter-spacing: -0.06em;
}

.case-intro__place + .case-intro__title {
  margin-top: 8px;
}

.case-intro__lede {
  margin: 25px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 32px;
  letter-spacing: -0.04em;
}

.case-intro__lede strong,
.case-outro__text strong {
  color: var(--ink);
  font-weight: inherit;
}

.case-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin: 38px 0 0;
}

.case-fact {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 136px;
  padding: 16px;
  background: var(--card);
}

.case-fact dd {
  margin: 0;
  color: var(--ink-2);
  font-family: var(--serif);
  font-size: 20px;
  line-height: normal;
}

.case-fact dt {
  order: 1;
  color: var(--muted);
  font-weight: 300;
  line-height: 18px;
}

.case-shots {
  display: grid;
  gap: 40px;
  width: min(1064px, 100% - 2 * var(--gutter));
  margin: 170px auto 0;
  padding: 0;
  list-style: none;
}

.case-shots img {
  width: 100%;
  height: auto;
}

.case-outro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: min(571px, 100% - 2 * var(--gutter));
  margin: 100px auto 0;
  text-align: center;
}

.case-outro--short {
  margin-top: 48px;
}

.case-outro__text {
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 32px;
  letter-spacing: -0.04em;
}

.case-outro__actions {
  display: flex;
  gap: 8px;
}

/* ---------------------------------------------------------------- case study, rebuilt */

/* The rebuilt project pages, The Land of Legends first. The intro above
 * keeps its narrow column and gains a line for the place and more facts;
 * under it the client's photo develops out of white like the homepage hero
 * (site.js, initHero: it is one of the .hero__visual blocks). Then the
 * numbers as stat bars. The stepped sections after them are in
 * case-kit.css. */
.case-hero {
  margin-top: 64px;
  background: var(--card);
}

/* The numbers: the homepage's stat bars, six of them, quicker one after
 * another. Each figure runs up from zero as its line comes in (site.js,
 * countUp). */
.case-numbers .stat--1 { --i: 0; }
.case-numbers .stat--2 { --i: 1; }
.case-numbers .stat--3 { --i: 2; }
.case-numbers .stat--4 { --i: 3; }
.case-numbers .stat--5 { --i: 4; }
.case-numbers .stat--6 { --i: 5; }

.js .case-numbers .stats.is-playing .stat__bar {
  transition-duration: 0.6s;
  transition-delay: calc(var(--i) * 0.3s);
}

.js .case-numbers .stats.is-playing .stat__text {
  transition-delay: calc(var(--i) * 0.3s + 0.45s);
}

/* Each description is two lines, broken where the copy breaks them. */
.case-numbers .stat .stat__desc {
  max-width: none;
}

.case-numbers .stat__line {
  display: block;
}

[data-count] {
  position: relative;
}

.count__held {
  color: transparent;
}

.count__run {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
}

/* ---------------------------------------------------------------- motion */

/* Above the fold the entrance is pure CSS, so it does not wait for script. */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes wordmark-rise {
  from {
    transform: translateY(var(--rise));
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .hero__title,
  .hero__sub,
  .hero__actions {
    animation: rise-in 0.9s var(--ease-soft) both;
  }

  .hero__sub {
    animation-delay: 0.08s;
  }

  .hero__actions {
    animation-delay: 0.16s;
  }

  .hero__visual {
    animation: fade-in 0.9s 0.25s both;
  }

  .hero__folder {
    animation: rise-in 0.7s var(--ease-soft) 0.9s both;
  }

  /* With the live hero, the folder waits until the picture has developed. */
  .hero__visual.is-live .hero__folder {
    opacity: 0;
    animation: none;
  }

  .hero__visual.is-live.is-developed .hero__folder {
    opacity: 1;
    animation: rise-in 0.7s var(--ease-soft) both;
  }

  .hero__rise {
    animation: wordmark-rise 1.8s var(--ease-out) 0.75s both;
  }

  /* Below the fold, site.js adds .is-in as each block scrolls into view. */
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease-soft), transform 0.9s var(--ease-soft);
  }

  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .post-card__media img,
  .js .stats .stat__bar,
  .js .stats .stat__text,
  .manifesto .word,
  .pill__text,
  .pill::before,
  .pill__icon,
  .project__cue,
  .project__link,
  .nav::before,
  .nav__drawer,
  .nav :is(.nav__links li, .nav__rule, .nav__cta, .nav__email) {
    transition: none !important;
  }
}

/* No pointer to follow on touch screens. */
@media (hover: none) {
  .project__cue {
    display: none;
  }
}

/* ---------------------------------------------------------------- consent */

/* The cookie choice (js/site.js, initConsent): a small dark card in the
 * corner, like the menu. It does not cover the page or hold the focus; the
 * site works the same with it open. */
.consent {
  position: fixed;
  z-index: 40;
  left: 16px;
  bottom: 16px;
  width: min(340px, 100% - 32px);
  padding: 16px;
  border-radius: 3px;
  background: var(--panel);
  color: var(--panel-text);
  font-size: 13px;
  line-height: 19px;
  letter-spacing: -0.01em;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}

.consent__text {
  margin: 0;
}

.consent__text a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.consent__actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.consent .btn {
  flex: 1;
  cursor: pointer;
}

/* As easy to say no as yes: the same size, one filled and one outlined. */
.consent__no {
  border-color: rgba(243, 243, 243, 0.4);
  background: none;
  color: var(--panel-text);
  box-shadow: none;
}

.consent__no:hover {
  border-color: #fff;
  color: #fff;
}

@media (prefers-reduced-motion: no-preference) {
  .consent {
    animation: consent-in 0.5s var(--ease-out) 0.6s backwards;
  }
}

@keyframes consent-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* A button that reads as a link, inside a line of text. */
.text-button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.text-button:hover {
  color: var(--ink);
}

/* ---------------------------------------------------------------- text pages */

/* The pages that are mostly words: Terms & Policy, the blog and its posts,
 * the contact page and the 404. They share a title, a small meta line, a lede
 * and .prose, the column of running text. */
.page-title {
  margin: 25px 0 0;
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 400;
  line-height: 44px;
  letter-spacing: -0.06em;
}

.page-meta {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.2px;
}

.page-lede {
  margin: 25px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 32px;
  letter-spacing: -0.04em;
}

.prose {
  color: var(--muted);
  font-size: 15px;
  line-height: 24px;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}

.prose > :first-child {
  margin-top: 0;
}

.prose h2,
.prose h3 {
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
}

.prose h2 {
  margin: 56px 0 0;
  font-size: 28px;
  line-height: 32px;
  letter-spacing: -0.05em;
}

.prose h3 {
  margin: 48px 0 0;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -0.04em;
}

.prose h4 {
  margin: 28px 0 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 24px;
}

/* The old posts wrap whole headings in <strong>. */
.prose :is(h2, h3, h4) strong {
  font-weight: inherit;
}

.prose p {
  margin: 16px 0 0;
}

.prose ul,
.prose ol {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
}

.prose ul {
  padding: 0;
  list-style: none;
}

.prose ol {
  padding: 0 0 0 20px;
}

.prose ol > li {
  padding-left: 4px;
}

.prose ol > li::marker {
  color: var(--ink);
  font-weight: 500;
}

/* A small square for a bullet, like the tags' corners. */
.prose ul > li {
  position: relative;
  padding-left: 18px;
}

.prose ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  background: var(--ink);
}

.prose li > :is(ul, ol) {
  margin-top: 8px;
}

.prose strong {
  color: var(--ink);
  font-weight: 500;
}

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.prose a:hover {
  color: var(--accent);
}

.prose blockquote {
  margin: 32px 0 0;
  padding-left: 18px;
  border-left: 2px solid var(--ink);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -0.04em;
}

.prose figure {
  margin: 32px 0 0;
}

.prose img {
  width: 100%;
  height: auto;
  border-radius: 2px;
}

.prose figcaption {
  margin-top: 8px;
  font-size: 12px;
  line-height: 18px;
}

.prose table {
  width: 100%;
  margin: 32px 0 0;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 20px;
}

.prose :is(th, td) {
  padding: 10px 12px;
  border: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.prose th {
  color: var(--ink);
  font-weight: 600;
}

/* ---------------------------------------------------------------- legal */

.legal {
  width: min(571px, 100% - 2 * var(--gutter));
  margin: 0 auto;
  padding-top: 149px;
}

.legal__body {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
}

/* ---------------------------------------------------------------- blog */

/* The list of posts, on /blog and under every post. */
.blog {
  width: min(var(--column), 100% - 2 * var(--gutter));
  margin: 0 auto;
  padding-top: 149px;
}

.blog__head {
  width: min(416px, 100%);
}

.posts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 16px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* The covers are between 3:2 and 9:4. The ones with lettering on them are the
 * wide ones, so the frame is wide: a photograph loses its top and bottom, and
 * no cover loses its words. */
.post-card__media {
  order: -1;
  aspect-ratio: 11 / 5;
  overflow: hidden;
  border-radius: 2px;
  background: var(--card);
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.post-card:hover .post-card__media img {
  transform: scale(1.03);
}

.post-card__meta {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.2px;
}

/* The title comes first in the markup, the date above it on screen. */
.post-card__title {
  order: 1;
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 26px;
  letter-spacing: -0.05em;
}

/* The whole card is the link. */
.post-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.post-card__link:focus-visible {
  outline: none;
}

.post-card:has(.post-card__link:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}

/* A post: its head and text in the reading column, the cover a column wide. */
.post {
  padding-top: 149px;
}

.post__head,
.post__body {
  width: min(571px, 100% - 2 * var(--gutter));
  margin-right: auto;
  margin-left: auto;
}

/* Whole, at its own shape: many covers carry the post's title. */
.post__cover {
  width: min(var(--column), 100% - 2 * var(--gutter));
  margin: 40px auto 0;
}

.post__cover img {
  width: 100%;
  height: auto;
  border-radius: 2px;
}

.post__body {
  margin-top: 40px;
}

.more-posts {
  width: min(var(--column), 100% - 2 * var(--gutter));
  margin: var(--section-gap) auto 0;
}

.more-posts__title {
  margin: 25px 0 0;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 36px;
  letter-spacing: -0.06em;
}

.more-posts .posts {
  margin-top: 40px;
}

/* ---------------------------------------------------------------- contact page, 404 */

/* /lets-talk: the contact form as a page, for a "Let’s talk" link opened in
 * a new tab. The form itself is the dialog's. */
.talk {
  width: min(560px, 100% - 2 * var(--gutter));
  margin: 0 auto;
  padding-top: 149px;
}

.talk .contact__title {
  margin-top: 25px;
  font-size: 40px;
  line-height: 44px;
}

.talk .contact__done {
  align-items: flex-start;
  padding: 0;
  text-align: left;
}

.talk .contact__done-art {
  margin-top: 25px;
}

.notfound {
  width: min(416px, 100% - 2 * var(--gutter));
  margin: 0 auto;
  padding-top: 149px;
}

.notfound__actions {
  display: flex;
  gap: 8px;
  margin-top: 32px;
}

/* ---------------------------------------------------------------- < 900px */

@media (max-width: 899px) {
  :root {
    --section-gap: 100px;
  }

  .nav {
    top: 20px;
    width: calc(100% - 24px);
    max-width: 424px;
  }

  .hero {
    padding-top: 109px;
  }

  .hero__text {
    width: min(352px, 100% - 2 * var(--gutter));
  }

  .hero__title {
    width: min(330px, 100%);
    font-size: 32px;
    line-height: 36px;
  }

  /* The desktop line break is the design's; on mobile the title wraps
   * where the narrower measure puts it. */
  .hero__break {
    display: none;
  }

  .hero__sub {
    max-width: 308px;
  }

  .hero__visual {
    margin-top: 48px;
  }

  .stats-section {
    margin-top: 100px;
  }

  .stats {
    margin-top: 24px;
  }

  .stat__bar {
    height: 92px;
  }

  .stat__text {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .stat__num {
    font-size: 24px;
  }

  .stat__line {
    display: block;
  }

  .stat--3 .stat__desc {
    max-width: 200px;
  }

  .manifesto-section {
    margin-top: 100px;
  }

  .manifesto {
    max-width: 372px;
    margin-top: 21px;
    font-size: 18px;
    line-height: 31.64px;
  }

  .pill {
    --pad-l: 2px;
    --pad-r: 11px;
    --gap: 5px;
    height: 31px;
    padding-top: 2px;
    padding-bottom: 2px;
    border-radius: 22px;
    line-height: 28px;
  }

  .pill,
  .pill--brand {
    --icon: 27px;
  }

  .pill--dev {
    --pad-r: 7px;
  }

  .pill--anim {
    --pad-l: 4px;
    --pad-r: 5px;
    --icon: 0px;
    --gap: 0px;
  }

  .pill__text {
    font-size: 18px;
  }

  .manifesto__crt {
    width: 107px;
    height: 110px;
    margin-top: -20px;
  }

  .works {
    margin-top: 100px;
  }

  .section-head__title {
    margin-top: 24px;
    font-size: 24px;
    line-height: 32px;
  }

  .section-head__sub {
    max-width: 321px;
  }

  .projects {
    gap: 16px;
    max-width: 560px;
    margin: 32px auto 0;
  }

  .project {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 16px;
    height: auto;
    padding: 16px;
  }

  .case-intro {
    padding-top: 109px;
  }

  .case-intro__title {
    font-size: 32px;
    line-height: 36px;
  }

  .case-intro__lede,
  .case-outro__text {
    font-size: 17px;
    line-height: 27px;
  }

  .case-fact {
    min-height: 112px;
    padding: 12px;
  }

  .case-fact dd {
    font-size: 18px;
  }

  .case-shots {
    gap: 12px;
    width: 100%;
    margin-top: 72px;
  }

  .case-outro {
    margin-top: 64px;
  }

  .case-outro--short {
    margin-top: 40px;
  }

  .project__media {
    grid-row: 1;
    aspect-ratio: 339 / 233;
  }

  .project__text {
    max-width: none;
    padding-bottom: 0;
  }

  .project__title {
    font-size: 20px;
    line-height: 32px;
  }

  .section-head--team .section-head__title {
    margin-top: 26px;
  }

  .cta__crt {
    width: 201px;
    height: 172px;
    margin-bottom: -6px;
  }

  .cta__title {
    font-size: 40px;
  }

  .legal,
  .blog,
  .post,
  .talk,
  .notfound {
    padding-top: 109px;
  }

  .page-title,
  .talk .contact__title {
    font-size: 32px;
    line-height: 36px;
  }

  .page-lede {
    font-size: 17px;
    line-height: 27px;
  }

  .prose h2 {
    font-size: 24px;
    line-height: 28px;
  }

  .more-posts__title {
    font-size: 28px;
    line-height: 32px;
  }

  .footer {
    width: min(370px, 100% - 2 * var(--gutter));
    padding-bottom: 24px;
  }

  .footer__brand img {
    width: 233px;
  }
}

/* ---------------------------------------------------------------- < 600px */

@media (max-width: 599px) {
  .posts {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero__visual {
    width: 100%;
    aspect-ratio: 402 / 310;
  }

  .hero__wordmark--wide {
    display: none;
  }

  .hero__wordmark--narrow {
    display: block;
  }

  .hero__folder {
    left: calc(-9 / 402 * 100%);
    top: calc(19 / 310 * 100%);
  }

  .desktop {
    width: 100%;
    height: 399px;
    margin-top: 32px;
    --win-w: 216px;
    --win-h: 316px;
  }

  .desktop__icons {
    left: 16px;
    gap: 8px;
  }

  .xp-icon {
    width: 28px;
    height: 28px;
  }

  .paint-window::before {
    background-image: url("/images/v2/paint-window-m.png");
  }

  .paint-window__canvas {
    left: 52px;
    top: 40px;
    width: 144px;
    height: 197px;
  }

  .paint-window__label {
    left: 140px;
    top: 49px;
  }
}
