/* sellframe.com, design E4 (31 Oct 2026): lilac paper, Parkinsans, the melt logo and soft organic corners, solid colour blocks
   with ink outlines, and the machine on a butter panel. Every colour is a token here; the machine reads the same tokens.
   Contrast (WCAG 2.2 AA, checked by tests/test_agency_site.py): ink on paper, card, tomato, teal, lilac and butter; paper on ink;
   soft on paper and card. Tomato is never body text: the headline uses --tomato-text, which passes for large text. */

@font-face {
  font-family: "Parkinsans";
  src: url("../fonts/parkinsans.d19fa2b763.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F1EEFF;
  --card: #FFFFFF;
  --ink: #17132E;
  --ink-2: #2A2550;
  --soft: #575275;
  --on-ink-soft: #C8C3E6;
  --tomato: #FF5533;
  --tomato-text: #E23D1B;
  --teal: #00A99D;
  --butter: #FFD84D;
  --lilac: #BBA8FF;
  --face: "Parkinsans", "Trebuchet MS", system-ui, sans-serif;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --section: clamp(64px, 9vw, 128px);
  --line: 2.5px solid var(--ink);
  --r-big: 64px;
  --r-small: 18px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--face); overflow-wrap: break-word; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { text-decoration-color: var(--tomato); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.on-ink :focus-visible, .on-ink:focus-visible { outline-color: var(--butter); }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { max-width: 1280px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.wrap--narrow { max-width: 860px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 12px 18px; background: var(--ink); color: var(--paper); font-weight: 700; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* --- type -------------------------------------------------------------------------------------------------------------------------- */
.h2 { font: 800 clamp(2.1rem, 4.8vw, 4.2rem)/.98 var(--face); letter-spacing: -.04em; text-wrap: balance; max-width: 16ch; }
.h2--wide { max-width: 22ch; }
.h3 { font: 800 clamp(1.3rem, 2vw, 1.6rem)/1.1 var(--face); letter-spacing: -.02em; }
.intro { margin-top: 18px; font-size: clamp(1.08rem, 1.4vw, 1.2rem); max-width: 40em; color: var(--soft); }
.lede { font-size: clamp(1.12rem, 1.6vw, 1.32rem); max-width: 36em; }
.small { font-size: .92rem; color: var(--soft); }

.prose { max-width: 42em; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 1.9em; font: 800 clamp(1.6rem, 2.8vw, 2.2rem)/1.08 var(--face); letter-spacing: -.03em; text-wrap: balance; }
.prose h3 { margin-top: 1.6em; font: 800 1.3rem/1.15 var(--face); letter-spacing: -.015em; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--tomato-text); font-weight: 700; }
.prose strong { font-weight: 700; }
.prose a { font-weight: 600; }
/* a table scrolls inside its own outlined card, never the page; cells keep a readable width, so wide tables scroll on phones */
.table-wrap { overflow-x: auto; background: var(--card); border: var(--line); border-radius: var(--r-small); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.45; }
.table-wrap th, .table-wrap td { min-width: 7.5em; padding: .7em .9em; text-align: left; vertical-align: top; }
.table-wrap thead th { background: var(--butter); border-bottom: var(--line); font-weight: 800; }
.table-wrap tbody tr + tr > * { border-top: 1.5px solid var(--lilac); }
@media (max-width: 560px) { .table-wrap table { font-size: .875rem; } .table-wrap th, .table-wrap td { padding: .6em .7em; } }

/* --- buttons ----------------------------------------------------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; background: var(--ink); color: var(--paper); text-decoration: none; font: 700 1rem/1.1 var(--face); padding: 14px 24px; border-radius: 999px; border: 0; cursor: pointer; text-align: center; }
.btn:hover { background: var(--tomato); color: var(--ink); }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2.5px var(--ink); }
.btn--line:hover { background: var(--butter); }
.btn--big { font-size: 1.1rem; padding: 18px 30px; }
.on-ink .btn { background: var(--butter); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* --- header ------------------------------------------------------------------------------------------------------------------------ */
.site-header { position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; padding-block: 20px; }
.logo { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; text-decoration: none; font: 700 1.55rem/1 var(--face); letter-spacing: -.02em; }
.logo svg { width: 38px; height: 26px; flex: none; }
.nav { margin-left: auto; }
.nav > ul { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav a, .nav summary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; text-decoration: none; font-weight: 500; cursor: pointer; }
.nav a:hover, .nav summary:hover { background: var(--card); }
.nav [aria-current="page"], .nav [aria-current="true"] { background: var(--card); box-shadow: inset 0 0 0 2px var(--ink); }
.nav summary { list-style: none; gap: 8px; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.nav details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.nav__drop { position: relative; }
.nav__sub { position: absolute; left: -12px; top: calc(100% + 10px); z-index: 30; width: min(640px, 80vw); list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 14px; background: var(--card); border: var(--line); border-radius: 18px 36px 36px 36px; }
.nav__sub a { display: grid; gap: 2px; min-height: 0; padding: 12px 14px; border-radius: 16px; font-weight: 700; }
.nav__sub a span { font-weight: 400; font-size: .9rem; color: var(--soft); line-height: 1.35; }
.nav__sub a:hover, .nav__sub a[aria-current="page"] { background: var(--paper); box-shadow: none; }
.site-header__cta { flex: none; }

.menu { display: none; }
.menu summary { list-style: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 2.5px var(--ink); font-weight: 700; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu__icon { position: relative; width: 18px; height: 12px; border-top: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; }
.menu__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 2.5px; border-top: 2.5px solid currentColor; }
.menu[open] summary { background: var(--ink); color: var(--paper); }
.menu__panel { position: absolute; left: var(--gutter); right: var(--gutter-r); top: calc(100% - 4px); z-index: 30; max-height: calc(100vh - 100px); overflow: auto; padding: 10px 22px 22px; background: var(--card); border: var(--line); border-radius: 18px 40px 40px 40px; }
.menu__panel ul { list-style: none; }
.menu__panel a { display: block; padding: 12px 0; font: 800 1.35rem/1.2 var(--face); letter-spacing: -.02em; text-decoration: none; }
.menu__panel a[aria-current="page"] { color: var(--tomato-text); }
.menu__group-label { padding: 14px 0 2px; font-weight: 600; color: var(--soft); }
.menu__group ul { padding-left: 14px; border-left: 2.5px solid var(--lilac); }
.menu__group a { font-size: 1.12rem; padding: 9px 0; }
.menu__cta { margin-top: 10px; }
.menu__cta a { display: inline-flex; color: var(--paper); }

/* --- shared sections --------------------------------------------------------------------------------------------------------------- */
.section { padding-block: var(--section); }
.section--tight { padding-top: 0; }
.section__head { margin-bottom: clamp(28px, 4vw, 44px); }
.crumbs { padding-top: 8px; font-size: .92rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--soft); }
.crumbs a { color: var(--soft); }
.crumbs [aria-current] { font-weight: 600; }

.page-hero { padding-block: clamp(28px, 5vw, 64px) clamp(40px, 6vw, 80px); }
.page-hero h1 { font: 800 clamp(2.6rem, 6.4vw, 5.6rem)/.95 var(--face); letter-spacing: -.045em; text-wrap: balance; max-width: 16ch; }
.page-hero .lede { margin-top: 24px; }
.page-hero .lede + p { margin-top: 14px; max-width: 40em; color: var(--soft); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.page-hero__aside { padding: 28px 28px 30px; border-radius: var(--r-big) var(--r-big) var(--r-big) var(--r-small); }
.page-hero__aside h2 { font: 800 1.15rem/1.2 var(--face); }
.page-hero__aside ul { list-style: none; margin-top: 12px; display: grid; gap: 8px; }
.page-hero__aside li { padding-left: 22px; position: relative; }
.page-hero__aside li::before { content: ""; position: absolute; left: 0; top: .55em; width: 11px; height: 11px; border-radius: 50%; background: var(--ink); }
.meta { margin-top: 22px; color: var(--soft); font-size: .95rem; }

.fill-tomato { background: var(--tomato); }
.fill-teal { background: var(--teal); }
.fill-lilac { background: var(--lilac); }
.fill-butter { background: var(--butter); }
.fill-card { background: var(--card); }

/* cards: solid colour blocks with alternating organic corners, or outlined white cards */
.cards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { padding: 28px 26px 30px; display: flex; flex-direction: column; gap: 10px; border-radius: 28px; }
.card--line { background: var(--card); border: var(--line); }
.card h3 { font: 800 clamp(1.2rem, 1.8vw, 1.45rem)/1.12 var(--face); letter-spacing: -.02em; }
.card p { font-size: 1rem; }
.card--line p { color: var(--soft); }
.card a { font-weight: 700; }
.card .more { margin-top: auto; padding-top: 8px; }
.cards > :nth-child(3n+1).card:not(.card--line) { border-radius: var(--r-big) var(--r-big) var(--r-big) var(--r-small); }
.cards > :nth-child(3n+2).card:not(.card--line) { border-radius: var(--r-small) var(--r-big) var(--r-big) var(--r-big); }
.cards > :nth-child(3n).card:not(.card--line) { border-radius: var(--r-big) var(--r-small) var(--r-big) var(--r-big); }
.cards--dots .card--line h3::before { content: ""; display: block; width: 34px; height: 34px; margin-bottom: 14px; border-radius: 46% 54% 42% 58% / 55% 45% 55% 45%; background: var(--tomato); }
.cards--dots > :nth-child(4n+2) h3::before { background: var(--teal); }
.cards--dots > :nth-child(4n+3) h3::before { background: var(--butter); }
.cards--dots > :nth-child(4n) h3::before { background: var(--lilac); }

/* a list of rows: a name and what it means (rules, systems, figures) */
.rowlist { list-style: none; display: grid; gap: 12px; }
.rowlist > li { display: grid; grid-template-columns: minmax(0, 18em) minmax(0, 1fr); gap: 8px 32px; padding: 22px 26px; background: var(--card); border-radius: 24px; }
.rowlist h3 { font: 800 1.12rem/1.25 var(--face); }
.rowlist p { color: var(--soft); }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
.chips a, .chips span { display: inline-flex; align-items: center; min-height: 48px; text-decoration: none; font: 800 clamp(1.05rem, 1.8vw, 1.5rem)/1.1 var(--face); padding: 12px 22px; border-radius: 999px; border: var(--line); background: var(--card); }
.chips--small a, .chips--small span { font-size: 1rem; font-weight: 700; min-height: 44px; padding: 8px 16px; border-width: 2px; }
.chips span { border-style: dashed; background: transparent; font-weight: 600; }
.chips > :nth-child(4n+1) a:hover { background: var(--tomato); }
.chips > :nth-child(4n+2) a:hover { background: var(--teal); }
.chips > :nth-child(4n+3) a:hover { background: var(--butter); }
.chips > :nth-child(4n) a:hover { background: var(--lilac); }
.chips .all a { background: transparent; border-style: dashed; }

.panel { padding: clamp(28px, 4vw, 52px); border-radius: var(--r-big) var(--r-small) var(--r-big) var(--r-big); }
.panel--ink { background: var(--ink); color: var(--paper); }
.panel--ink .intro, .panel--ink p { color: var(--on-ink-soft); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.ticks { list-style: none; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--teal); box-shadow: inset 0 0 0 2px var(--ink); }

/* questions: native details, so they open without JavaScript (no FAQ markup) */
.qa { display: grid; gap: 10px; }
.qa details { background: var(--card); border-radius: 28px; padding: 0 26px; }
.qa summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 48px; padding: 20px 0; font: 800 clamp(1.08rem, 1.6vw, 1.3rem)/1.25 var(--face); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--butter); font-size: 1.4rem; font-weight: 700; flex: none; }
.qa details[open] summary::after { content: "\2212"; background: var(--teal); }
.qa details > div { padding-bottom: 22px; max-width: 46em; }

/* proof: a product we built and run */
.proof { list-style: none; display: grid; gap: 18px; }
.proof > li { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center; padding: 18px; background: var(--card); border-radius: 36px 36px 36px 14px; }
.proof img { display: block; width: 100%; border-radius: 22px; border: 2px solid var(--ink); }
.proof h3 { font: 800 1.4rem/1.1 var(--face); }
.proof p { margin-top: 8px; color: var(--soft); }
.proof .more { margin-top: 12px; font-weight: 700; }

/* the closing call to action */
.cta { padding-block: var(--section); }
.cta__blob { background: var(--tomato); border-radius: 56% 44% 48% 52% / 46% 52% 48% 54%; padding: clamp(56px, 8vw, 110px) clamp(28px, 7vw, 100px); }
.cta__blob h2 { font: 800 clamp(2.4rem, 6.6vw, 6rem)/.95 var(--face); letter-spacing: -.045em; max-width: 12ch; text-wrap: balance; }
.cta__blob p { margin-top: 18px; font-size: 1.2rem; font-weight: 600; max-width: 30em; }
.cta__blob .btn { margin-top: 26px; }

/* --- home -------------------------------------------------------------------------------------------------------------------------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: clamp(16px, 3vw, 40px) clamp(48px, 6vw, 88px); }
.hero h1 { font: 800 clamp(3rem, 7vw, 7rem)/.92 var(--face); letter-spacing: -.045em; }
.hero h1 span { display: block; }
.hero h1 span + span { color: var(--tomato-text); }
.hero .lede { margin-top: 26px; max-width: 32em; }
.machine { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 600px; justify-self: end; background: var(--butter); border-radius: var(--r-big) var(--r-big) var(--r-big) var(--r-small); }
.machine canvas { width: 100%; height: 100%; display: block; cursor: pointer; border-radius: inherit; }
.machine__tip { position: absolute; left: 22px; bottom: 18px; font-size: .875rem; font-weight: 600; background: var(--card); padding: 6px 14px; border-radius: 999px; pointer-events: none; }

.make { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.make > li { padding: 32px 30px 34px; display: flex; flex-direction: column; gap: 14px; min-height: 340px; }
.make > li:nth-child(1) { background: var(--tomato); border-radius: var(--r-big) var(--r-big) var(--r-big) var(--r-small); }
.make > li:nth-child(2) { background: var(--teal); border-radius: var(--r-small) var(--r-big) var(--r-big) var(--r-big); }
.make > li:nth-child(3) { background: var(--lilac); border-radius: var(--r-big) var(--r-small) var(--r-big) var(--r-big); }
.make svg { width: 60px; height: 60px; }
.make h3 { font: 800 clamp(1.55rem, 2.3vw, 2rem)/1.04 var(--face); letter-spacing: -.025em; }
.make a { margin-top: auto; font-weight: 700; }
.also { margin-top: 22px; font-size: 1.05rem; }
.also a { font-weight: 700; }

.swap { background: var(--ink); color: var(--paper); border-radius: 56px; margin-inline: max(8px, env(safe-area-inset-left, 0px)) max(8px, env(safe-area-inset-right, 0px)); }
.swap .intro { color: var(--on-ink-soft); }
.switch { display: inline-flex; margin-top: 30px; background: var(--ink-2); border-radius: 999px; padding: 5px; }
.switch button { font: 700 1rem/1 var(--face); min-height: 44px; border: 0; background: transparent; color: var(--paper); padding: 12px 24px; border-radius: 999px; cursor: pointer; }
.switch button[aria-pressed="true"] { background: var(--butter); color: var(--ink); }
.switch[hidden] { display: none; }
.rows { list-style: none; margin-top: 28px; display: grid; gap: 12px; }
.rows li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; align-items: center; background: var(--ink-2); border-radius: 999px; padding: 12px 28px 12px 12px; }
.rows .dot { width: 52px; height: 52px; border-radius: 50%; background: var(--tomato); transition: background .35s, border-radius .35s; }
.rows p { font-size: clamp(1.05rem, 1.7vw, 1.3rem); font-weight: 600; }
.rows .was { display: block; color: var(--on-ink-soft); font-weight: 500; font-size: .85em; }
.rows .now { display: block; }
.swap.is-ready .rows .now { display: none; }
.swap.is-ready .rows .was { color: var(--paper); font-weight: 600; font-size: 1em; }
.swap.is-after .rows .was { display: none; }
.swap.is-after .rows .now { display: block; }
.swap.is-after .rows .dot { background: var(--teal); border-radius: 46% 54% 42% 58% / 55% 45% 55% 45%; }

.loop { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; counter-reset: step; }
.loop li { counter-increment: step; border: var(--line); border-radius: 28px; padding: 18px 16px 20px; background: var(--card); }
.loop li::before { content: counter(step); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; font: 800 1.1rem/1 var(--face); background: var(--tomato); }
.loop li:nth-child(4n+2)::before { background: var(--butter); }
.loop li:nth-child(4n+3)::before { background: var(--teal); }
.loop li:nth-child(4n)::before { background: var(--lilac); }
.loop h3 { margin-top: 14px; font: 800 1.25rem/1.05 var(--face); }
.loop p { margin-top: 6px; color: var(--soft); font-size: .96rem; }
.own { margin-top: 30px; font-size: 1.2rem; font-weight: 600; max-width: 40em; }

.note { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; background: var(--card); border-radius: var(--r-big) var(--r-small) var(--r-big) var(--r-big); padding: clamp(24px, 4vw, 56px); }
.note img { width: 100%; display: block; border-radius: 47% 53% 44% 56% / 52% 46% 54% 48%; }
.note__body p { font-size: clamp(1.1rem, 1.7vw, 1.38rem); line-height: 1.5; }
.note__body p + p { margin-top: 14px; }

/* --- work -------------------------------------------------------------------------------------------------------------------------- */
.work { list-style: none; display: grid; gap: 22px; }
.work > li { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 52px); align-items: center; padding: clamp(18px, 2.5vw, 28px); border-radius: 40px; background: var(--card); }
.work > li:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
.work > li:nth-child(even) .work__shot { order: 2; }
.work__shot img { display: block; width: 100%; border-radius: 26px; border: 2px solid var(--ink); }
.work h2 { font: 800 clamp(1.7rem, 3vw, 2.5rem)/1.02 var(--face); letter-spacing: -.03em; }
.work p { margin-top: 12px; }
.work .built { color: var(--soft); }
.fig { display: inline-grid; margin-top: 18px; padding: 12px 18px; border-radius: 20px; background: var(--butter); }
.fig strong { font: 800 1.6rem/1 var(--face); letter-spacing: -.02em; }
.fig small { font-size: .88rem; }
.work .more { display: inline-block; margin-top: 18px; font-weight: 700; }

/* the home page's strip of our products: one row of shots, each to its case study */
.strip { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.strip a { display: block; color: var(--ink); font-weight: 700; text-decoration: none; }
.strip img { display: block; width: 100%; height: auto; border-radius: 18px; border: 2px solid var(--ink); }
.strip span { display: block; margin-top: 10px; }
.strip a:hover span, .strip a:focus-visible span { text-decoration: underline; }

.shot { margin-top: clamp(8px, 2vw, 24px); }
.shot img { display: block; width: 100%; border-radius: clamp(20px, 3vw, 40px); border: var(--line); }
.figs { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.figs li { padding: 26px; border-radius: 30px; background: var(--butter); }
.figs li:nth-child(2) { background: var(--teal); }
.figs strong { display: block; font: 800 clamp(2.2rem, 4vw, 3.2rem)/1 var(--face); letter-spacing: -.03em; }
.figs span { display: block; margin-top: 8px; font-weight: 600; }
.figs small { display: block; margin-top: 6px; font-size: .9rem; }

/* --- blog -------------------------------------------------------------------------------------------------------------------------- */
.posts { list-style: none; display: grid; gap: 16px; }
.posts li { padding: 26px 28px; border-radius: 30px; background: var(--card); }
.posts h2 { font: 800 clamp(1.35rem, 2.2vw, 1.8rem)/1.12 var(--face); letter-spacing: -.02em; }
.posts h2 a { text-decoration: none; }
.posts h2 a:hover { text-decoration: underline; }
.posts p { margin-top: 8px; color: var(--soft); }
.byline { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.byline img { width: 56px; height: 56px; border-radius: 50%; }
.byline p { color: var(--soft); font-size: .95rem; line-height: 1.4; }
.byline strong { color: var(--ink); }
.aside-card { margin-top: 48px; padding: 28px; border-radius: 30px; background: var(--lilac); max-width: 42em; }
.aside-card h2 { font: 800 1.3rem/1.15 var(--face); }
.aside-card p { margin-top: 8px; }

/* --- about ------------------------------------------------------------------------------------------------------------------------- */
.facts { list-style: none; display: grid; gap: 10px; }
.facts li { display: grid; grid-template-columns: minmax(0, 12em) minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 2px solid var(--lilac); }
.facts span:first-child { font-weight: 700; }

/* --- forms ------------------------------------------------------------------------------------------------------------------------- */
.form-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.form { display: grid; gap: 18px; padding: clamp(22px, 3vw, 40px); background: var(--card); border-radius: 40px 40px 40px 14px; }
.form .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; }
.field .hint, .req { font-weight: 400; color: var(--soft); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; background: var(--paper); border: 2px solid var(--ink); border-radius: 14px; }
.field textarea { min-height: 170px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; background: var(--card); }
.form .small a { color: var(--ink); }
.next { padding: 28px; border-radius: var(--r-big) var(--r-big) var(--r-big) var(--r-small); background: var(--butter); }
.next h2 { font: 800 1.4rem/1.15 var(--face); }
.next ol { margin-top: 14px; padding-left: 1.2em; display: grid; gap: 10px; }
.next p { margin-top: 16px; }
.callout { padding: 16px 20px; border-radius: 20px; background: var(--card); border: var(--line); font-weight: 600; }
.callout[hidden] { display: none; }

/* --- footer ------------------------------------------------------------------------------------------------------------------------ */
.site-footer { padding-block: 48px 56px; font-size: .95rem; }
.site-footer__cols { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 28px; }
.site-footer__about p { margin-top: 14px; max-width: 22em; color: var(--soft); }
.site-footer h2 { font: 700 1rem/1.2 var(--face); margin-bottom: 10px; }
.site-footer ul { list-style: none; display: grid; gap: 2px; }
.site-footer nav a { display: inline-block; padding: 5px 0; text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer__legal { margin-top: 40px; padding-top: 18px; border-top: var(--line); color: var(--soft); }
.site-footer__legal a { color: var(--ink); }

/* --- case studies (work/product.html) ----------------------------------------------------------------------------------------------- */
.case-facts { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.case-facts li { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--card); border: var(--line); border-radius: var(--r-small) 28px 28px 28px; }
.case-facts li span:first-child { font-weight: 700; }
.case-facts li span + span { color: var(--soft); font-size: .96rem; }
.case-facts a { color: var(--ink); font-weight: 700; }
.tour { list-style: none; display: grid; gap: clamp(28px, 4vw, 56px); counter-reset: tour; }
.tour > li { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; counter-increment: tour; }
.tour > li:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.tour > li:nth-child(even) .tour__shot { order: 2; }
.tour > li.tour--text { grid-template-columns: minmax(0, 1fr); max-width: 46em; }
.tour__shot img { display: block; width: 100%; border-radius: 26px; border: var(--line); background: var(--card); }
.tour__text h3 { font: 800 clamp(1.4rem, 2.4vw, 1.9rem)/1.08 var(--face); letter-spacing: -.02em; }
.tour__text h3::before { content: counter(tour); display: inline-grid; place-items: center; width: 40px; height: 40px; margin-right: 12px; vertical-align: .1em; border-radius: 50%; font-size: 1.05rem; background: var(--butter); box-shadow: inset 0 0 0 2.5px var(--ink); }
.tour > li:nth-child(4n+2) .tour__text h3::before { background: var(--teal); }
.tour > li:nth-child(4n+3) .tour__text h3::before { background: var(--lilac); }
.tour > li:nth-child(4n) .tour__text h3::before { background: var(--tomato); }
.tour__text p { margin-top: 12px; }
.tour__behind { color: var(--soft); }
.tour__behind strong { color: var(--ink); }
.flow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: stretch; }
.flow__col { position: relative; padding: 24px 22px 26px; border: var(--line); border-radius: 36px; }
.flow__col--in { background: var(--butter); border-radius: 36px 36px 36px var(--r-small); }
.flow__col--mid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.flow__col--out { background: var(--teal); border-radius: var(--r-small) 36px 36px 36px; }
.flow__col h3 { font: 800 1.3rem/1.1 var(--face); }
.flow__col ul, .flow__col ol { list-style: none; display: grid; gap: 10px; margin-top: 14px; }
.flow__col li { padding: 10px 14px; background: var(--card); color: var(--ink); border-radius: 16px; font-weight: 600; font-size: .98rem; line-height: 1.35; }
.flow__col--mid ol { counter-reset: flow; }
.flow__col--mid li { counter-increment: flow; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: center; background: var(--ink-2); color: var(--paper); }
.flow__col--mid li::before { content: counter(flow); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--lilac); color: var(--ink); font-weight: 800; font-size: .9rem; }
/* the pipes between the columns: a thick ink bar with a rounded end, drawn in CSS so nothing is read aloud */
.flow__col--in::after, .flow__col--mid::after { content: ""; position: absolute; top: 50%; right: calc(-1 * clamp(28px, 4vw, 56px) - 2px); width: calc(clamp(28px, 4vw, 56px) + 4px); height: 10px; margin-top: -5px; background: var(--ink); border-radius: 0 999px 999px 0; }
.timeline { list-style: none; display: grid; gap: 0; border-left: 4px solid var(--lilac); padding-left: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: minmax(0, 6.5em) minmax(0, 1fr); gap: 14px; padding: 12px 0 12px 26px; }
.timeline li::before { content: ""; position: absolute; left: -12px; top: 18px; width: 20px; height: 20px; border-radius: 50%; background: var(--tomato); box-shadow: inset 0 0 0 2.5px var(--ink); }
.timeline li:nth-child(4n+2)::before { background: var(--butter); }
.timeline li:nth-child(4n+3)::before { background: var(--teal); }
.timeline li:nth-child(4n)::before { background: var(--lilac); }
.timeline__when { font-weight: 800; }
.next-case { display: grid; gap: 6px; padding: clamp(24px, 4vw, 44px); border: var(--line); border-radius: var(--r-big) var(--r-small) var(--r-big) var(--r-big); color: var(--ink); text-decoration: none; }
.next-case__label { font: 800 clamp(1.6rem, 3.4vw, 2.6rem)/1.05 var(--face); letter-spacing: -.03em; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.next-case:hover .next-case__label { text-decoration-color: var(--tomato); }

/* --- narrower screens -------------------------------------------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav, .site-header__cta { display: none; }
  .menu { display: block; margin-left: auto; }
  .loop { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__about { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hero, .note, .page-hero__grid, .split, .form-layout, .work > li, .work > li:nth-child(even), .proof > li { grid-template-columns: minmax(0, 1fr); }
  .work > li:nth-child(even) .work__shot { order: 0; }
  .machine { justify-self: stretch; max-width: none; }
  .make, .cards { grid-template-columns: minmax(0, 1fr); }
  .cards--2 { grid-template-columns: minmax(0, 1fr); }
  .make > li { min-height: 0; }
  .swap { border-radius: 32px; }
  .rows li { border-radius: 28px; }
  .loop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .note img { max-width: 240px; }
  .rowlist > li { grid-template-columns: minmax(0, 1fr); }
  .proof img { max-width: 420px; }
  .page-hero__aside { max-width: 560px; }
  .case-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tour > li, .tour > li:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .tour > li:nth-child(even) .tour__shot { order: 0; }
  .flow { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .flow__col--in::after, .flow__col--mid::after { top: auto; bottom: -36px; right: auto; left: 50%; width: 10px; height: 38px; margin: 0 0 0 -5px; border-radius: 0 0 999px 999px; }
  .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form .pair, .facts li, .case-facts { grid-template-columns: minmax(0, 1fr); }
  .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rows li { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 10px 18px 10px 10px; }
  .rows .dot { width: 40px; height: 40px; }
  .loop { grid-template-columns: minmax(0, 1fr); }
  .cta__blob { border-radius: 48px 48px 48px 18px; }
  .qa details { padding: 0 18px; }
  .logo { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  .rows .dot { transition: none; }
}
@media print {
  .site-header, .site-footer, .cta, .machine { display: none; }
}
