/* dintsen.agency, 2 Nov 2026: the agency's site in the grammar of elevenlabs.io (grown from route A). Tokens and
 * rules: DESIGN.md; the reasoning: DIRECTION.md. Phone below 640px, desktop from 1024px. Owner: session A. */

@font-face {
  font-family: "Funnel Sans";
  src: url("../fonts/FunnelSans-latin-var.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fragment Mono";
  src: url("../fonts/FragmentMono-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

:root {
  --ink: #000;
  --on-ink: #fff;
  --ground: #fdfcfc;
  --cream: #f5f3f1;
  --track: #efedea;
  --raised: #fff;
  --muted: #59544f;
  --subtle: #777169;
  --ink-hover: #44403b;
  /* edges, not shadows: no blur, no offset */
  --ring: inset 0 0 0 .5px rgba(0, 0, 0, .075);
  --ring-raised: inset 0 0 0 1px rgba(0, 0, 0, .08);
  --out: cubic-bezier(.16, 1, .3, 1);
  --in-out: cubic-bezier(.76, 0, .24, 1);
  --gutter: clamp(16px, 4.375vw, 63px);
  --section: 96px;
  --r-card: 16px;
  --r-inner: 12px;
  --shot-pad: 40px;
  --sans: "Funnel Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Fragment Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 16px/24px var(--sans);
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
}
[hidden] { display: none !important; }
h1, h2, h3, h4, p, ul, ol, dl, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; letter-spacing: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: 16px; top: -64px; z-index: 10;
  padding: 8px 14px; border-radius: 9999px; background: var(--ink); color: var(--on-ink);
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1306px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }

/* type */
.display, .h2, .band__line, .h-article {
  font-weight: 300;
  text-wrap: balance;
}
.display { font-size: 48px; line-height: 52px; letter-spacing: -.02em; }
.h2 { font-size: 36px; line-height: 42px; letter-spacing: -.015em; }
.h-article { font-size: 32px; line-height: 38px; letter-spacing: -.015em; }
.band__line { font-size: 32px; line-height: 36px; letter-spacing: -.015em; }
.title { font-size: 20px; line-height: 28px; letter-spacing: -.005em; font-weight: 400; }
.lead { font-size: 16px; line-height: 24px; letter-spacing: .01em; text-wrap: pretty; }
.label { font-size: 15px; line-height: 22px; font-weight: 500; }
.meta { font-size: 14px; line-height: 21px; letter-spacing: .01em; }
.caption { font-size: 13px; line-height: 18px; letter-spacing: .01em; }
.muted { color: var(--muted); }
.subtle { color: var(--subtle); }

/* pills */
.pill {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  height: 44px; padding: 0 20px; border: 0; border-radius: 9999px;
  font-size: 16px; line-height: 24px; font-weight: 500; letter-spacing: .005em; white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s var(--out), color .15s var(--out);
}
.pill--ink { background: var(--ink); color: var(--on-ink); }
.pill--ink:hover { background: var(--ink-hover); }
.pill--white { background: var(--raised); color: var(--ink); box-shadow: var(--ring-raised); }
.pill--white:hover { background: var(--cream); }
.pill--sm { height: 36px; padding: 0 14px; font-size: 14px; line-height: 20px; letter-spacing: .01em; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* nav: the name set in type, four links, two pills; on the phone the links fold into a sheet */
.nav { position: relative; display: flex; align-items: center; gap: 32px; height: 64px; }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; height: 44px; font-size: 17px; line-height: 24px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; }
.nav__brand img { width: 30px; height: 30px; }
.nav__links { display: flex; gap: 24px; font-size: 15px; line-height: 22px; }
.nav__links a { display: inline-flex; align-items: center; min-height: 36px; color: var(--muted); transition: color .15s var(--out); }
.nav__links a:hover, .nav__links a[aria-current] { color: var(--ink); }
.nav__end { display: flex; gap: 8px; margin-left: auto; }
.nav__toggle { display: none; }

/* section head: h2 left, paragraph from the column midpoint, the pill under the h2 */
.head {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 52px;
  grid-template-areas: "title aside" "action aside";
  align-items: start;
  margin-bottom: 48px;
}
.head > :first-child { grid-area: title; max-width: 600px; }
.head__aside { grid-area: aside; max-width: 540px; padding-top: 6px; }
.head__aside > * + * { margin-top: 16px; }
.head__action { grid-area: action; margin-top: 24px; }
.head--quiet { margin-bottom: 32px; }

/* hero */
.hero { padding-top: 110px; }
.hero__grid {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 52px;
  grid-template-areas: "title aside" "action aside";
}
.hero h1 { grid-area: title; }
.hero__aside { grid-area: aside; max-width: 520px; padding-top: 30px; }
.hero__actions { grid-area: action; margin-top: 24px; }
.hero__aside > * + * { margin-top: 16px; }

/* home: the station panel */
.panel { margin-top: 36px; background: var(--track); border-radius: var(--r-card); }
.panel__tabs { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); padding: 4px; }
.panel__tab {
  position: relative; z-index: 1;
  height: 44px; padding: 0 16px; border: 0; border-radius: 12px; background: none;
  font-size: 15px; line-height: 22px; font-weight: 500; color: var(--muted);
  cursor: pointer; transition: color .15s var(--out);
}
.panel__tab:hover, .panel__tab[aria-selected="true"] { color: var(--ink); }
.panel__tab:focus-visible { outline-offset: -2px; }
.slider {
  position: absolute; top: 4px; left: 0; z-index: 0;
  height: 44px; width: calc((100% - 8px) / 5); transform: translateX(4px);
  border-radius: 12px; background: var(--raised); box-shadow: var(--ring-raised);
  pointer-events: none;
}
.slider.is-live { transition: transform .5s var(--in-out), width .5s var(--in-out); }
.panel__body {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; row-gap: 20px;
  grid-template-areas: "mark shot" "role caption";
  padding: 24px; border-radius: var(--r-card); background: var(--cream); box-shadow: var(--ring);
}
.panel__mark { grid-area: mark; position: relative; min-height: 0; }
.panel__mark pre {
  /* the mark's share of the box; the owner's own mark in depth keeps the same size as the flat ones */
  --mark-fit: .72; --object-fit: var(--mark-fit);
  position: absolute; inset: 0; margin: 0; overflow: hidden;
  font: 400 10px/11px var(--mono); letter-spacing: 0; color: var(--ink);
  white-space: pre; user-select: none;
}
.panel__shot { grid-area: shot; }
.panel__role { grid-area: role; max-width: 480px; }
.panel__caption { grid-area: caption; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.panel__product { font-size: 16px; line-height: 24px; font-weight: 500; }
.panel__line { margin-top: 2px; color: var(--muted); }

/* media: a rounded frame with an edge; a round control over it */
.media { position: relative; margin: 0; overflow: hidden; border-radius: var(--r-inner); background: var(--track); aspect-ratio: 16 / 9; }
.media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: var(--ring); pointer-events: none; }
.media video, .media img { width: 100%; height: 100%; object-fit: cover; }
.media-toggle {
  position: absolute; right: 12px; bottom: 12px; z-index: 1;
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%;
  background: var(--raised); color: var(--ink); box-shadow: var(--ring-raised); cursor: pointer;
  transition: background-color .15s var(--out);
}
.media-toggle:hover { background: var(--cream); }
.media-toggle svg { width: 14px; height: 14px; }
.media-toggle .i-play, .media-toggle[data-state="playing"] .i-pause { display: block; }
.media-toggle .i-pause, .media-toggle[data-state="playing"] .i-play { display: none; }
.media-toggle[hidden] { display: none; }

/* logos: each company's own file in one ink, centred on a cream tile, the owner's role there at the bottom
   (the stories index's tile: the client's logo centred, the line at the bottom left) */
.logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.logos li {
  display: grid; grid-template-rows: 1fr auto; gap: 24px; min-height: 216px; padding: 24px;
  border-radius: var(--r-card); background: var(--cream); box-shadow: var(--ring);
}
.logos img { place-self: center; max-width: 100%; height: auto; filter: brightness(0); }
.logos p { font-size: 14px; line-height: 21px; }
.logos p span { display: block; color: var(--muted); }

/* home: recognition, a quiet row after the panel */
.honours { display: grid; grid-template-columns: repeat(5, 1fr); column-gap: 24px; row-gap: 32px; }
.honours li { display: flex; flex-direction: column; gap: 4px; }
.honours .label { margin-bottom: 4px; }

/* a section that opens with its h2 alone, like the story page's «Similar articles» */
.section-title { margin-bottom: 40px; }

/* image cards with text under them */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 24px; row-gap: 40px; }
.card { display: flex; flex-direction: column; }
.card__media { overflow: hidden; border-radius: var(--r-card); background: var(--cream); aspect-ratio: 16 / 10; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card .title { margin-top: 16px; }
.card__text { margin-top: 4px; color: var(--muted); text-wrap: pretty; }
.card__meta { margin-top: 8px; color: var(--subtle); }
a.card .title { text-decoration: underline transparent; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-color .15s var(--out); }
a.card:hover .title { text-decoration-color: currentColor; }

/* home: services and the about row, text in columns */
.cols { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 24px; row-gap: 32px; }
.cols--3 { grid-template-columns: repeat(3, 1fr); }
.cols p { margin-top: 4px; }

/* product screens set into a cream card, rising from its bottom edge */
.shot {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--shot-pad) var(--shot-pad) 0;
  border-radius: var(--r-card); background: var(--cream); box-shadow: var(--ring);
}
.shot img, .shot video { width: 100%; height: auto; border-radius: var(--r-inner) var(--r-inner) 0 0; }
.shot--crop { aspect-ratio: var(--ar, 4 / 5); justify-content: flex-start; }
.shot--crop img { flex: 1 1 0; min-height: 0; height: 100%; object-fit: cover; object-position: top; }
.shot--phone img { width: min(100%, 300px); margin-inline: auto; }
.shot--contain { aspect-ratio: 1; padding: 0; }
.shot--contain img {
  position: absolute; inset: 24px; width: calc(100% - 48px); height: calc(100% - 48px);
  object-fit: contain; border-radius: 0;
}
/* artwork (boards, identity sheets) fills the card edge to edge; the ring is drawn over it */
.shot--art { padding: 0; }
.shot--art img, .shot--art video { border-radius: 0; }
.shot--art::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: var(--ring); pointer-events: none; }
.shot .media-toggle { right: 16px; bottom: 16px; }
.fig { display: flex; flex-direction: column; }
.fig .shot { flex: 1 1 auto; }
.fig .shot--crop, .fig .shot--contain { flex: none; }
.fig--landscape .shot--crop { --ar: 3 / 2; }

/* closing band and footer */
.band { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.footer { padding-block: 64px 40px; }
.footer__top { display: grid; grid-template-columns: 1fr auto auto; column-gap: 96px; row-gap: 32px; }
.footer__brand { display: flex; flex-direction: column; gap: 16px; }
.footer__brand .nav__brand { height: auto; }
.footer__list { display: flex; flex-direction: column; gap: 3px; font-size: 14px; line-height: 21px; }
/* 24px targets; the 3px gap keeps the 27px pitch of the type */
.footer__list a, .footer__bottom a { display: inline-flex; align-items: center; min-width: 24px; min-height: 24px; }
.footer__list a { transition: color .15s var(--out); }
.footer__list a:hover { color: var(--muted); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 64px; color: var(--subtle); }
.footer__bottom a { transition: color .15s var(--out); }
.footer__bottom a:hover { color: var(--ink); }

/* work index */
.index-head { padding-top: 110px; text-align: center; }
.index-head .lead { max-width: 540px; margin: 16px auto 0; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 56px 0 24px; }
.filter { position: relative; display: inline-flex; padding: 4px; border-radius: 9999px; background: var(--track); }
.filter button {
  position: relative; z-index: 1;
  height: 36px; padding: 0 16px; border: 0; border-radius: 9999px; background: none;
  font-size: 15px; line-height: 22px; font-weight: 500; color: var(--muted);
  cursor: pointer; transition: color .15s var(--out);
}
.filter button:hover, .filter button[aria-pressed="true"] { color: var(--ink); }
.filter .slider { height: 36px; border-radius: 9999px; width: 0; transform: none; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 24px; row-gap: 40px; }
.work-grid .card__media { aspect-ratio: 1; }
.card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 16px; }
.card__row .title { margin-top: 0; }
.card__row .meta { flex: none; color: var(--subtle); }
.work-grid .card[hidden] { display: none; }

/* case */
.article { max-width: 800px; margin-inline: auto; }
.case-head { padding-top: 110px; }
.case-back { display: inline-flex; align-items: center; min-height: 32px; color: var(--subtle); transition: color .15s var(--out); }
.case-back:hover { color: var(--ink); }
.case-head h1 { margin-top: 8px; }
.case-head .lead { margin-top: 16px; }
/* facts under the case title, like the story page's «Written by / Published» columns */
.case-facts { display: flex; flex-wrap: wrap; gap: 16px 48px; margin-top: 32px; }
.case-facts dt { font-size: 13px; line-height: 18px; letter-spacing: .01em; color: var(--subtle); }
.case-facts dd { margin: 2px 0 0; font-size: 14px; line-height: 21px; letter-spacing: .01em; }
.case-cover { margin-top: 56px; overflow: hidden; border-radius: var(--r-card); background: var(--cream); aspect-ratio: 16 / 10; }
.case-cover img { width: 100%; height: 100%; object-fit: cover; }
.case-intro { padding-top: 96px; }
.case-section { padding-top: 120px; }
.body { font-size: 17px; line-height: 30px; letter-spacing: .005em; text-wrap: pretty; }
.case-intro .body, .case-section .body { margin-top: 16px; }
/* a subhead belongs to the paragraph under it, not to the one above */
.case-section .article > .title:not(:first-child) { margin-top: 40px; }
.case-section .article > .title + .body { margin-top: 8px; }
.case-note { margin-top: 16px; color: var(--muted); }
.figs { display: grid; gap: 12px; margin-top: 40px; }
.figs--2 { grid-template-columns: 1fr 1fr; }
.figs--3 { grid-template-columns: repeat(3, 1fr); --shot-pad: 32px; }
.figs--wide { grid-template-columns: 2fr 1fr; }
.figs--wide .shot { height: 720px; aspect-ratio: auto; }
.fig figcaption { margin-top: 12px; color: var(--subtle); font-size: 14px; line-height: 21px; }
.fig--span { grid-column: 1 / -1; }
.pull { margin-top: 48px; }
.more { margin-top: 40px; }
.more summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 0 24px; border-radius: var(--r-card); background: var(--cream); box-shadow: var(--ring);
  font-size: 16px; line-height: 24px; font-weight: 500; cursor: pointer; list-style: none;
  transition: background-color .15s var(--out);
}
.more summary::-webkit-details-marker { display: none; }
.more summary:hover { background: var(--track); }
.more summary svg { width: 16px; height: 16px; transition: transform .5s var(--in-out); }
.more[open] summary svg { transform: rotate(180deg); }
.more .figs { margin-top: 12px; grid-template-columns: repeat(3, 1fr); }
.next { display: grid; grid-template-columns: 1fr 1fr; column-gap: 52px; align-items: end; }
.next__text > * + * { margin-top: 16px; }
.next__text .h2 { margin-top: 8px; }

/* centred openings (work, approach, for clients) carry their pills under the lead */
.index-head .actions { justify-content: center; margin-top: 32px; }

/* the step between h2 and title: stage panes, company stories, the start card */
.subhead { font-size: 24px; line-height: 32px; letter-spacing: -.01em; font-weight: 400; }

/* filled lines, white on cream: a stage's results, what to send */
.fill-list { display: flex; flex-direction: column; gap: 8px; }
.fill-list li {
  display: flex; align-items: center; min-height: 56px; padding: 12px 20px;
  border-radius: var(--r-inner); background: var(--raised); box-shadow: var(--ring);
}

/* approach: the five stages in the panel's tab bar; each pane its title and text beside its three results */
.head + .panel { margin-top: 0; }
.stage {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; row-gap: 24px; align-items: start;
  padding: 40px; border-radius: var(--r-card); background: var(--cream); box-shadow: var(--ring);
}
.stage .lead { margin-top: 12px; max-width: 440px; }

/* approach: the foundation, three cream cards, each opening on the owner's illustration printed in characters */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.feature { overflow: hidden; border-radius: var(--r-card); background: var(--cream); box-shadow: var(--ring); }
.feature__art { display: flex; justify-content: center; height: 198px; margin-top: 24px; overflow: hidden; }
.feature__art img { flex: none; width: 384px; max-width: none; height: 198px; }
/* the live object (js/glyph-object.js) fills the art's whole width; the print above stays for pages without scripts */
.feature__art pre {
  --object-fit: .9;
  flex: 1; margin: 0; overflow: hidden;
  font: 400 10px/11px var(--mono); letter-spacing: 0; color: var(--ink);
  white-space: pre; user-select: none;
}
.feature__text { padding: 24px; }
.feature__text p { margin-top: 8px; }

/* rows: a title, its line and one action on a filled line (approach's services) */
.rows { display: flex; flex-direction: column; gap: 8px; }
.rows li {
  /* the action column has one width, so the lines start at one x whatever the pill says */
  display: grid; grid-template-columns: 1fr 1fr minmax(152px, auto); align-items: center; column-gap: 24px;
  min-height: 72px; padding: 14px 14px 14px 24px;
  border-radius: var(--r-inner); background: var(--cream); box-shadow: var(--ring);
}
.rows li > a { justify-self: end; }
.rows .meta { color: var(--muted); }

/* about: the career as rows, the company and role beside what the work was */
.roles { display: grid; row-gap: 32px; }
.roles li { display: grid; grid-template-columns: 1fr 1fr; column-gap: 52px; row-gap: 8px; }
.roles .meta { margin-top: 2px; }
.roles + .actions { margin-top: 40px; }

/* about: a company story, the text beside the product it led to, on one cream card */
.story {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; row-gap: 32px;
  padding: 40px; border-radius: var(--r-card); background: var(--cream); box-shadow: var(--ring);
}
.story + .story { margin-top: 12px; }
.logo-ink { width: auto; filter: brightness(0); }
.story .subhead { margin-top: 24px; }
.story__about { margin-top: 12px; max-width: 480px; }
.figures { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 24px; row-gap: 16px; margin-top: 32px; }
.figures dt { font-size: 32px; line-height: 38px; font-weight: 300; letter-spacing: -.015em; }
.figures dd { margin: 4px 0 0; font-size: 13px; line-height: 18px; letter-spacing: .01em; color: var(--muted); }
.story__role { margin-top: 32px; }
.story__role .label + .meta { margin-top: 2px; }
.story__role .lead { margin-top: 8px; max-width: 480px; }
.story .actions { margin-top: 24px; }
.story__media img { width: 100%; height: auto; aspect-ratio: 7 / 5; object-fit: cover; border-radius: var(--r-inner); }
.story__media figcaption { margin-top: 12px; color: var(--muted); }
.story__source { grid-column: 1 / -1; color: var(--muted); }
.head__logo { display: block; height: 26px; margin-bottom: 24px; }

/* four smaller cards in a row (the rest of the Fourmeta work, the selected work for clients) */
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards + .cards--4 { margin-top: 40px; }
.cards--2 { grid-template-columns: 1fr 1fr; }
.section .cards + .actions { margin-top: 40px; justify-content: center; }
.cols + .actions { margin-top: 40px; }

/* for clients: how to start, one cream card */
.start {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 52px; row-gap: 32px; align-items: start;
  padding: 40px; border-radius: var(--r-card); background: var(--cream); box-shadow: var(--ring);
}
.start .lead { margin-top: 16px; max-width: 460px; }
.start .actions { margin-top: 32px; }
.start__send .label { margin-bottom: 12px; }
#start { scroll-margin-top: 24px; }

/* questions: filled rows that open in place */
.split { display: grid; grid-template-columns: 1fr 1fr; column-gap: 52px; row-gap: 32px; align-items: start; }
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details { border-radius: var(--r-inner); background: var(--cream); box-shadow: var(--ring); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 64px; padding: 16px 20px 16px 24px;
  font-size: 16px; line-height: 24px; font-weight: 500; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 14px; height: 14px; transition: transform .3s var(--in-out); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 24px 24px; max-width: 560px; color: var(--muted); }
.faq details::details-content {
  block-size: 0; overflow: hidden;
  transition: block-size .3s var(--in-out), content-visibility .3s var(--in-out) allow-discrete;
}
.faq details[open]::details-content { block-size: auto; }

/* not found: the code large, the line and the way back */
.lost { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-block: 160px 120px; text-align: center; }
.numeral { font-size: 100px; line-height: 96px; font-weight: 700; letter-spacing: -.04em; }
.lost .actions { margin-top: 16px; }

/* CV: the owner's CV as a document in the article column, printable */
.cv { padding-top: 110px; }
.cv h1 { margin-top: 8px; }
.cv__role { margin-top: 8px; }
.cv__intro { margin-top: 24px; }
.cv__contact { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 32px; }
.cv__contact .meta { color: var(--muted); }
.cv-section { margin-top: 80px; }
.cv-section > h2 { margin-bottom: 24px; }
.cv-practice { columns: 2; column-gap: 24px; }
.cv-practice li { padding-block: 4px; }
.cv-roles { display: grid; row-gap: 28px; }
.cv-roles li { display: grid; grid-template-columns: 1fr 2fr; column-gap: 24px; row-gap: 4px; }
.cv-roles .meta { margin-top: 2px; color: var(--muted); }
.cv-roles .body { margin: 0; }
.cv-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 14px; line-height: 21px; letter-spacing: .01em; }
.cv-table th:first-child { width: 104px; }
.cv-work th:nth-child(2) { width: 22%; }
.cv-work th:nth-child(3) { width: 30%; }
.cv-honours th:nth-child(2) { width: 36%; }
.cv-table th {
  padding: 0 16px 8px 0; font-size: 13px; line-height: 18px; font-weight: 400; color: var(--subtle); text-align: left;
}
.cv-table td { padding: 10px 16px 10px 0; vertical-align: top; }
.cv-table td:first-child { white-space: nowrap; color: var(--subtle); }
.cv-table td span { display: block; color: var(--muted); }
.cv-table a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.cv-table a:hover { color: var(--muted); }
.cv-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }

/* tablet */
@media (max-width: 1023px) {
  .honours { grid-template-columns: repeat(3, 1fr); }
  .cols { grid-template-columns: 1fr 1fr; }
  .cols--3 { grid-template-columns: 1fr 1fr; }
  .cards, .work-grid { grid-template-columns: 1fr 1fr; }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figs--3 { grid-template-columns: repeat(3, 1fr); --shot-pad: 20px; }
  .figs--wide .shot { height: 560px; }
  .footer__top { column-gap: 48px; }
  .features, .stage, .story, .start, .split { grid-template-columns: 1fr; }
  .cards--4 { grid-template-columns: 1fr 1fr; }
  .rows li { grid-template-columns: 1fr auto; grid-template-areas: "title action" "line action"; row-gap: 2px; }
  .rows h3 { grid-area: title; }
  .rows .meta { grid-area: line; }
  .rows .pill { grid-area: action; }
}

/* phone */
@media (max-width: 639px) {
  :root { --section: 64px; --r-card: 12px; --shot-pad: 16px; }
  .display { font-size: 36px; line-height: 42px; }
  .h2 { font-size: 30px; line-height: 36px; }
  .h-article { font-size: 26px; line-height: 32px; }
  .band__line { font-size: 26px; line-height: 32px; letter-spacing: -.01em; }
  .body { font-size: 16px; line-height: 28px; }

  .nav { gap: 12px; }
  .nav__end .pill { height: 36px; padding: 0 14px; font-size: 14px; line-height: 20px; }
  .js .nav__email { display: none; }
  .js .nav__toggle { display: inline-flex; }
  .js .nav__links {
    position: absolute; top: 64px; left: 0; right: 0; z-index: 5; min-height: calc(100dvh - 64px);
    display: flex; flex-direction: column; gap: 0; padding: 8px var(--gutter) 24px;
    background: var(--ground); font-size: 24px; line-height: 32px;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .3s var(--in-out), transform .3s var(--in-out), visibility 0s linear .3s;
  }
  .js .nav__links a { min-height: 52px; color: var(--ink); }
  .js .nav.is-open .nav__links { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }

  .hero { padding-top: 64px; }
  .hero__grid, .head { grid-template-columns: 1fr; grid-template-areas: "title" "aside" "action"; }
  .hero__aside, .head__aside { padding-top: 16px; }
  .head { margin-bottom: 32px; }
  .section-title { margin-bottom: 24px; }

  .panel { margin-top: 32px; }
  .panel__tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
  .panel__tabs::-webkit-scrollbar { display: none; }
  .panel__tab { flex: 1 0 auto; padding: 0 10px; }
  .panel__body {
    grid-template-columns: 1fr; grid-template-areas: "mark" "role" "shot" "caption";
    row-gap: 12px; padding: 16px;
  }
  .panel__mark { height: 232px; }
  .panel__mark pre { --mark-fit: .9; font-size: 9px; line-height: 10px; }
  .panel__shot { margin-top: 4px; }
  .panel__caption { flex-direction: column; gap: 16px; }

  .honours { grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .logos { gap: 8px; }
  .logos li { min-height: 176px; padding: 16px; gap: 16px; }
  .logos p { font-size: 13px; line-height: 18px; }
  .cards, .work-grid, .cols, .cols--3 { grid-template-columns: 1fr; }
  .cols { row-gap: 24px; }

  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { margin-top: 48px; }

  .index-head { padding-top: 64px; }
  .toolbar { flex-direction: column; align-items: flex-start; margin-top: 40px; }
  .filter { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .filter button { flex: none; padding: 0 14px; }

  .case-head { padding-top: 64px; }
  .case-cover { margin-top: 32px; }
  .case-intro { padding-top: 64px; }
  .case-section { padding-top: 80px; }
  .figs { margin-top: 24px; }
  .figs--2, .figs--3, .figs--wide, .more .figs { grid-template-columns: 1fr; }
  .figs--3 .shot--crop { --ar: 1 / 1; }
  .figs--wide .shot { height: 480px; }
  .shot--phone img { width: min(100%, 240px); }
  .next { grid-template-columns: 1fr; row-gap: 24px; }

  .cards--4 { grid-template-columns: 1fr 1fr; column-gap: 12px; row-gap: 24px; }
  .cards--4 .card__text { font-size: 13px; line-height: 18px; }
  .stage, .story, .start { padding: 20px; }
  .subhead { font-size: 22px; line-height: 30px; }
  .feature__text { padding: 20px; }
  .rows li { padding: 14px 12px 14px 16px; }
  .roles li { grid-template-columns: 1fr; }
  .figures { grid-template-columns: 1fr; }
  .figures dt { font-size: 28px; line-height: 34px; }
  .head__logo { margin-bottom: 16px; }
  .faq summary { padding: 14px 16px 14px 20px; }
  .faq details p { padding: 0 20px 20px; }
  .lost { padding-block: 96px 80px; }
  .numeral { font-size: 72px; line-height: 72px; }
  .cv { padding-top: 64px; }
  .cv-section { margin-top: 56px; }
  .cv-practice { columns: 1; }
  .cv-roles li { grid-template-columns: 1fr; }
  /* the CV's tables read as stacked entries: year, client, product, role */
  .cv-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .cv-table, .cv-table tbody, .cv-table tr, .cv-table td { display: block; }
  .cv-table tr { padding-block: 10px; }
  .cv-table td { padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* print: the CV alone, ink on paper */
@media print {
  .nav, .band, .footer, .skip, [data-print] { display: none !important; }
  body { background: #fff; }
  .cv { padding-top: 0; }
  .cv-section { margin-top: 32px; }
  .cv-roles li, .cv-table tr { break-inside: avoid; }
  .cv-table a { text-decoration: none; }
  @page { margin: 16mm 14mm; }
}
