/* Good Work Digital. Round three: the approved look, made exact.
   One grid, one spacing scale, one type scale, one corner scale, one glass, one tint, one rule.
   Every number a layout uses is set once in the block below. tools/audit.mjs reads this block and measures the pages against it. */

:root {
  /* Colour */
  --accent: #2F4BFF;            /* solid things: the filled button, the point, the Launch step, the ribbon */
  --accent-hover: #2740EB;
  --accent-press: #1C32CC;
  --accent-on: #FFFFFF;
  --accent-edge: #1F36D6;
  --accent-ink: #2A44F0;        /* the accent as text, a line or a focus ring */
  --accent-lit: rgba(255, 255, 255, 0.36);
  --ground: #FFFFFF;
  --ink: #0B0D12;
  --text: #3B404B;
  --muted: #5B626E;
  --edge: #7C838F;              /* form field edges, at least 3 to 1 */
  --rule: rgba(11, 13, 18, 0.12); /* the one rule: 1 pixel, this colour, everywhere on light ground */
  --tint: #F0F1F4;              /* the one tint */
  --night: #0B0D12;             /* the one dark field */
  --on-night: #F5F6F8;
  --on-night-muted: #AEB3BD;
  --night-rule: rgba(245, 246, 248, 0.16);
  --wrong: #B3261E;
  --wrong-tint: #FCF1F0;

  /* The grid: 12 columns in one content width, one gutter. Panels that bleed past the content do so by --bleed. */
  --content-max: 1200px;
  --margin: 24px;               /* the least space between the content and the edge of the screen */
  --gutter: 16px;
  --bleed: 16px;                /* how far a field runs past the content, on every side it bleeds */
  --inset: 24px;                /* from the edge of a card to what is in it */

  /* The spacing scale. Every gap, inset and row height is one of these. */
  --s-4: 4px; --s-8: 8px; --s-12: 12px; --s-16: 16px; --s-24: 24px; --s-32: 32px; --s-40: 40px;
  --s-48: 48px; --s-56: 56px; --s-64: 64px; --s-72: 72px; --s-80: 80px; --s-96: 96px; --s-128: 128px;

  /* The rhythm between sections: two values and no more. */
  --gap: 80px;                  /* standard */
  --gap-tight: 48px;            /* tight: inside the opening, where the parts belong together */
  --head: 24px;                 /* from a section's heading to its panel */

  /* The type scale */
  --d1: 40px;  --d1-lh: 1;        /* the headline, the name in the footer */
  --d2: 32px;  --d2-lh: 36px;     /* section headings */
  --d3: 24px;  --d3-lh: 28px;     /* the name of a card, a value */
  --d4: 24px;  --d4-lh: 28px;     /* a card heading, a question */
  --lead: 18px; --lead-lh: 28px;
  --body: 18px; --body-lh: 28px;
  --small: 16px; --small-lh: 24px;

  /* Corners: three */
  --r-1: 8px;                   /* controls, pictures inside a frame */
  --r-2: 16px;                  /* glass: cards, frames, panels */
  --r-3: 24px;                  /* fields */

  /* Lift: two levels */
  --lift-1: 0 1px 2px rgba(11, 13, 18, 0.06), 0 16px 40px -12px rgba(11, 13, 18, 0.18);
  --lift-2: 0 2px 6px rgba(11, 13, 18, 0.10), 0 28px 56px -16px rgba(11, 13, 18, 0.34);

  --display: "Bricolage Grotesque", "GWD Display Fallback", "Segoe UI", system-ui, sans-serif;
  --sans: "Geist", "GWD Body Fallback", "Segoe UI", system-ui, sans-serif;
  --focus: var(--accent-ink);
  --header: 56px;
}
@media (min-width: 600px) {
  :root {
    --margin: 40px; --gutter: 24px; --bleed: 24px;
    --gap: 96px; --gap-tight: 48px; --head: 32px;
    --d1: 7.2222vw; --d1-lh: 0.9231;
    --d2: 40px; --d2-lh: 44px;
    --d3: 32px; --d3-lh: 36px;
    --lead: 24px; --lead-lh: 32px;
    --r-3: 32px;
    --header: 72px;
  }
}
@media (min-width: 1200px) {
  :root {
    --margin: 64px; --bleed: 48px;
    --gap: 128px; --gap-tight: 48px; --head: 32px;
    --d1: min(7.2222vw, 104px);
    --d2: clamp(48px, 4.375vw, 56px); --d2-lh: 1;
    --d3: clamp(28px, 2.2222vw, 32px);
  }
}

/* Stand in faces sized to the real ones, so lines break the same way before and after the fonts arrive. */
@font-face { font-family: "GWD Display Fallback"; src: local("Arial Bold"), local("Arial"); font-weight: 500 800; size-adjust: 90%; }
@font-face { font-family: "GWD Body Fallback"; src: local("Arial"); size-adjust: 103%; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 24px); }
body {
  position: relative; margin: 0; overflow-x: clip;
  background: var(--ground); color: var(--text);
  font: 400 var(--body)/var(--body-lh) var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dt, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
strong { color: var(--ink); font-weight: 600; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: var(--r-1); }
::selection { background: var(--ink); color: #fff; }

.skip {
  position: absolute; left: 16px; top: -96px; z-index: 60;
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--r-1); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 8px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The grid */
.wrap { width: min(var(--content-max), 100% - 2 * var(--margin)); margin-inline: auto; }
.cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }

/* Type */
h1, h2, h3, .d1, .d2, .d3, .d4 { font-family: var(--display); color: var(--ink); font-weight: 700; font-optical-sizing: auto; text-wrap: balance; }
h1, .d1 { font-size: var(--d1); line-height: var(--d1-lh); letter-spacing: -0.035em; }
h2, .d2 { font-size: var(--d2); line-height: var(--d2-lh); letter-spacing: -0.035em; }
.d3 { font-size: var(--d3); line-height: var(--d3-lh); letter-spacing: -0.035em; }
h3, .d4 { font-size: var(--d4); line-height: var(--d4-lh); letter-spacing: -0.025em; }
p { text-wrap: pretty; }
.lead { font-size: var(--lead); line-height: var(--lead-lh); letter-spacing: -0.012em; color: var(--muted); text-wrap: balance; }
.lead .ink, .lead strong { color: var(--ink); font-weight: 500; }
.small { font-size: var(--small); line-height: var(--small-lh); }

/* The point: the one small solid square that ends the name and the headline. */
.pt {
  display: inline-block; width: 0.19em; height: 0.19em; margin-left: 0.045em;
  background: var(--accent); border-radius: 0.04em; color: transparent; overflow: hidden; line-height: 1;
  -webkit-user-select: none; user-select: none;
}

/* The name mark */
.brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--ink); }
.brand__name { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.04em; line-height: 1; white-space: nowrap; }
.brand__name .pt { width: 0.24em; height: 0.24em; margin-left: 0.07em; border-radius: 0.05em; }

/* Buttons. One filled button on a screen. A button is a verb. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 56px; padding: 0 24px;
  font: 600 18px/1 var(--sans); letter-spacing: -0.012em; text-decoration: none; white-space: nowrap;
  border-radius: var(--r-1); border: 1px solid transparent; cursor: pointer;
  transition: background-color 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease, transform 0.08s ease;
}
.btn--fill {
  background: var(--accent); color: var(--accent-on); border-color: var(--accent-edge);
  box-shadow: inset 0 1px 0 var(--accent-lit), 0 1px 2px rgba(11, 13, 18, 0.18), 0 10px 20px -10px rgba(11, 13, 18, 0.45);
}
.btn--fill:hover { background: var(--accent-hover); box-shadow: inset 0 1px 0 var(--accent-lit), 0 1px 2px rgba(11, 13, 18, 0.18), 0 14px 24px -10px rgba(11, 13, 18, 0.5); }
.btn--fill:active { background: var(--accent-press); transform: translateY(1px); box-shadow: 0 1px 1px rgba(11, 13, 18, 0.2); }
.btn--quiet {
  height: 44px; padding: 0 16px; font-size: 16px;
  background: #fff; color: var(--ink); border-color: rgba(11, 13, 18, 0.17);
  box-shadow: 0 1px 2px rgba(11, 13, 18, 0.06);
}
.btn--quiet:hover { border-color: var(--edge); background: #F7F8F9; }
.btn--quiet:active { background: var(--tint); transform: translateY(1px); box-shadow: none; }
.btn:focus-visible { border-radius: var(--r-1); }

.link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  color: var(--ink); font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
  text-decoration: underline; text-decoration-color: var(--edge); text-decoration-thickness: 1px; text-underline-offset: 6px;
  transition: color 0.14s ease, text-decoration-color 0.14s ease;
}
.link:hover { color: var(--accent-ink); text-decoration-color: currentColor; }
.link:active { color: var(--ink); }
.link svg { flex: none; width: 16px; height: 16px; transition: transform 0.14s ease; }
.link:hover svg { transform: translate(3px, 0); }
.link--out:hover svg { transform: translate(2px, -2px); }
.link--down:hover svg { transform: translate(0, 3px); }
.field--night .link { color: var(--on-night); text-decoration-color: var(--on-night-muted); }

/* Glass: the one raised surface. On the tint it reads as frosted glass, on white as a white panel.
   One lit top edge, one hairline, one shadow. Frames, cards, the form and the menu are all this. */
.glass {
  position: relative; border-radius: var(--r-2);
  background: rgba(255, 255, 255, 0.64);
  -webkit-backdrop-filter: blur(12px) saturate(1.6); backdrop-filter: blur(12px) saturate(1.6);
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(255, 255, 255, 0.6), 0 0 0 1px rgba(11, 13, 18, 0.08), var(--lift-1);
}
.glass--high { box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(255, 255, 255, 0.6), 0 0 0 1px rgba(11, 13, 18, 0.12), var(--lift-2); }
.card { padding: var(--inset); }

/* A field: a large quiet ground set into the page, bleeding past the content by the same amount on every side. */
.field { position: relative; isolation: isolate; padding-block: var(--bleed); }
.field__bg {
  position: absolute; inset: 0 calc(var(--bleed) * -1); z-index: -1;
  border-radius: var(--r-3); background: var(--tint);
  box-shadow: inset 0 0 0 1px rgba(11, 13, 18, 0.04);
}
.field--night { --focus: #fff; color: var(--on-night-muted); }
.field--night .field__bg { background: var(--night); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16); }
.field--night h2, .field--night h3, .field--night strong, .field--night .lead .ink { color: var(--on-night); }
.field--night .lead { color: var(--on-night-muted); }

/* Header: a pane of glass over the page */
.top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.84);
  -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: inset 0 -1px 0 var(--rule);
}
.top__in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; height: var(--header); }
.top__right { display: flex; align-items: center; gap: 8px; }
.nav { display: none; }
.nav a {
  display: inline-flex; align-items: center; height: 44px; padding: 0 16px;
  color: var(--text); text-decoration: none; font-size: 16px; font-weight: 500; border-radius: var(--r-1);
  transition: color 0.14s ease, background-color 0.14s ease;
}
.nav a:hover { color: var(--ink); background: rgba(11, 13, 18, 0.05); }
.nav a:active { background: rgba(11, 13, 18, 0.09); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center; min-width: 56px; height: 44px; padding: 0 8px;
  background: transparent; border: 1px solid transparent; border-radius: var(--r-1); cursor: pointer;
  font: 600 16px/1 var(--sans); color: var(--ink); transition: background-color 0.14s ease;
}
.menu-btn:hover { background: rgba(11, 13, 18, 0.05); }
.menu-btn:active, .menu-btn[aria-expanded="true"] { background: rgba(11, 13, 18, 0.08); }
.menu { position: absolute; left: 0; right: 0; top: calc(100% + 8px); padding: 8px; background: #fff; }
.menu[hidden] { display: none; }
.menu a {
  position: relative; display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 16px;
  font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -0.03em; color: var(--ink); text-decoration: none;
  border-radius: var(--r-1);
}
.menu a + a::before { content: ""; position: absolute; left: 16px; right: 16px; top: 0; height: 1px; background: var(--rule); }
.menu a:hover { background: var(--tint); }
.menu a:active { background: #E6E8EC; }
.menu a svg { width: 16px; height: 16px; color: var(--muted); }

/* The rhythm: every part of the page is one .wrap block, and the space above it is one of two values. */
main > .sec, .foot { margin-top: var(--gap); }
main > .sec--tight { margin-top: var(--gap-tight); }
.head { display: grid; gap: var(--s-16); }
.head + * { margin-top: var(--head); }

/* 1. The opening: the first screen, the three facts and the work. On a phone the work comes before the facts. */
.opening { display: flex; flex-direction: column; }
.hero { position: relative; isolation: isolate; padding-top: var(--s-24); }
.hero h1 > span { display: block; }
.hero__say { margin-top: var(--s-16); }
.acts { display: flex; align-items: center; justify-content: space-between; gap: var(--s-16); margin-top: var(--s-24); }

.facts { margin-top: var(--gap-tight); order: 3; }
.facts li { grid-column: 1 / -1; display: grid; gap: var(--s-4); align-content: start; padding-block: var(--s-16); box-shadow: inset 0 1px 0 var(--rule); }
.facts li:last-child { box-shadow: inset 0 1px 0 var(--rule), inset 0 -1px 0 var(--rule); }
.facts__v { font-family: var(--display); font-weight: 700; font-size: var(--d2); line-height: var(--d2-lh); letter-spacing: -0.04em; color: var(--ink); white-space: nowrap; }
.facts__c { max-width: 12em; text-wrap: balance; }

/* 2. Work You Can Open */
.work { margin-top: var(--gap-tight); order: 2; display: flex; flex-direction: column; }
.work .head { display: contents; }
.work .head .link { order: 3; align-self: flex-start; margin-top: var(--s-16); }
.stage { margin-top: var(--head); row-gap: var(--s-32); }
/* each project sits on six of the columns it spans: the frame on all six, the words on four, the phone pane on the last two */
.project { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: var(--gutter); grid-template-rows: auto auto 1fr; }
.frame { padding: var(--s-8); }
.frame img { width: 100%; object-fit: cover; object-position: top center; background: #fff; border-radius: var(--r-1); box-shadow: 0 0 0 1px rgba(11, 13, 18, 0.10); }
/* a project's frame is the one glass, like every card. The ribbon is cut away under it (ribbon.js), so nothing behind it shows through */
.frame--wide { grid-column: 1 / -1; grid-row: 1; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.frame--wide img { aspect-ratio: 16 / 10; }
.frame__bar { display: flex; align-items: center; height: 48px; padding: 0 var(--s-16) var(--s-8); }
.frame__bar a, .frame__bar > span {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; min-width: 0;
  color: var(--ink); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; transition: color 0.14s ease;
}
.frame__bar a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frame__bar a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-2); } /* the whole picture opens the site */
.frame__bar svg { flex: none; width: 16px; height: 16px; transition: transform 0.14s ease; }
.frame--wide:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(255, 255, 255, 0.6), 0 0 0 1px rgba(11, 13, 18, 0.14), var(--lift-2); }
.frame--wide:hover .frame__bar a span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.frame--wide:hover .frame__bar svg { transform: translate(2px, -2px); }
.frame--wide:active { transform: none; }
@supports selector(:has(a)) {
  .frame--wide:has(a:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
  .frame__bar a:focus-visible { outline: none; }
}
/* The phone picture: a second pane, one level higher. Its right edge is the frame's right edge and its foot is the caption's foot. */
.frame--tall { grid-column: 5 / span 2; grid-row: 1 / -1; align-self: end; z-index: 1; pointer-events: none; }
.frame--tall img { aspect-ratio: 390 / 760; }
.project h3 { grid-column: 1 / span 4; grid-row: 2; margin-top: var(--s-16); }
.project p { grid-column: 1 / span 4; grid-row: 3; margin-top: var(--s-4); text-wrap: balance; }

/* 3. What customers look for: four equal glass cards on the tint */
.kinds__list { row-gap: var(--gutter); grid-auto-rows: 1fr; }
.kind { grid-column: 1 / -1; display: flex; flex-direction: column; }
.slip { margin-top: var(--s-16); border-radius: var(--r-1); background: #fff; box-shadow: 0 0 0 1px var(--rule), 0 1px 2px rgba(11, 13, 18, 0.05); }
.slip span { display: flex; align-items: center; gap: var(--s-8); height: 48px; padding: 0 var(--s-16); font-size: var(--small); line-height: var(--small-lh); color: var(--text); white-space: nowrap; }
.slip span:first-child { color: var(--ink); font-weight: 600; }
.slip span:first-child::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.slip span + span { border-top: 1px solid var(--rule); padding-left: var(--s-32); }
.kind p { margin-top: var(--s-16); }
.kinds__close { margin-top: var(--s-32); color: var(--ink); font-weight: 500; }

/* 4. What you get and what you own: two glass panels, one header line, one row height */
.offer { row-gap: var(--gutter); }
.offer__part { grid-column: 1 / -1; padding: 0 var(--inset) var(--s-8); }
.offer__head { display: grid; gap: var(--s-8); align-content: start; padding-block: var(--s-24); }
.price { display: flex; align-items: baseline; gap: var(--s-12); }
.price__fig { font-family: var(--display); font-weight: 700; font-size: 64px; line-height: 64px; letter-spacing: -0.05em; color: var(--ink); }
.price__term { font-family: var(--display); font-weight: 700; font-size: var(--d4); line-height: var(--d4-lh); letter-spacing: -0.025em; color: var(--muted); white-space: nowrap; }
/* Rows: every row in a list is the same height on a computer, with its words centred between the rules. */
.rows li { display: grid; align-content: center; align-items: start; min-height: var(--s-56); padding-block: var(--s-12); box-shadow: inset 0 1px 0 var(--rule); color: var(--ink); text-wrap: pretty; }
/* the mark sits on the first line of its row, as tall as the small letters */
.rows--marked li { grid-template-columns: 8px minmax(0, 1fr); column-gap: var(--s-16); }
.rows--marked li::before { content: ""; width: 8px; height: 8px; margin-top: 10px; border-radius: 2px; background: var(--accent); }

/* 5. Need more: the one dark field */
.more { row-gap: var(--s-32); padding-block: var(--s-32); }
.more > *, .more h2, .more .btn { grid-column: 1 / -1; }
.more__lead { display: contents; }
.more h2 { order: 1; }
.more__text { order: 2; }
.more .btn { order: 3; justify-self: start; }
.more__text p { padding-block: var(--s-24); border-top: 1px solid var(--night-rule); }
.more__text p:first-child { padding-top: 0; border-top: 0; }
.more__text p:last-child { padding-bottom: 0; }

/* 6. How it goes: four equal glass cards on one track */
.steps { row-gap: var(--gutter); counter-reset: step; }
.step { grid-column: 1 / -1; position: relative; counter-increment: step; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: var(--s-16); align-content: start; }
.step::before, .next li::before {
  content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-1);
  background: var(--ink); color: #fff; font: 700 18px/1 var(--display);
}
.step::before { grid-row: 1 / span 2; }
.step:last-child::before { background: var(--accent); }
.step h3 { grid-column: 2; align-self: center; min-height: 40px; display: flex; align-items: center; }
.step p { grid-column: 2; margin-top: var(--s-4); }
/* the track, on a phone: a line down from each number to the next */
.step:not(:last-child)::after { content: ""; position: absolute; left: calc(var(--inset) + 19.5px); top: calc(var(--inset) + 48px); bottom: calc(-1 * var(--gutter) - var(--inset) + 8px); width: 1px; background: var(--rule); z-index: 1; }

/* 8. Questions: one wide answer and three equal ones */
.qa { row-gap: var(--gutter); }
.qa > div { grid-column: 1 / -1; }
.qa dd { text-wrap: pretty; }
.qa dt { font-family: var(--display); color: var(--ink); font-weight: 700; font-size: var(--d4); line-height: var(--d4-lh); letter-spacing: -0.025em; text-wrap: balance; }
.qa dd { margin-top: var(--s-8); }
.qa__first dd > * + * { margin-top: var(--s-16); }
.qa blockquote { padding-left: var(--s-16); border-left: 2px solid var(--accent); font-family: var(--display); font-weight: 700; font-size: var(--d3); line-height: var(--d3-lh); letter-spacing: -0.035em; color: var(--ink); text-wrap: balance; }
.qa .qa__short { font-family: var(--display); font-weight: 700; font-size: var(--d2); line-height: var(--d2-lh); letter-spacing: -0.035em; color: var(--ink); }

/* 9. The form */
.start { row-gap: var(--s-32); }
.start > * { grid-column: 1 / -1; }
.start__say { display: grid; gap: var(--s-16); align-content: start; }
.start__say .lead { color: var(--text); }
.next { counter-reset: step; display: grid; }
.next li { position: relative; counter-increment: step; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: var(--s-16); align-items: start; padding-bottom: var(--s-24); }
.next li:last-child { padding-bottom: 0; }
.next li:last-child::before { background: var(--accent); }
.next li span { color: var(--ink); font-family: var(--display); font-weight: 700; font-size: var(--d4); line-height: var(--d4-lh); letter-spacing: -0.025em; padding-block: var(--s-4) var(--s-8); text-wrap: balance; }
.next li:not(:last-child)::after { content: ""; position: absolute; left: 19.5px; top: 44px; bottom: 4px; width: 1px; background: var(--rule); }
.start__mail { display: grid; }
.start__mail a { display: inline-flex; align-items: center; width: fit-content; max-width: 100%; min-height: 44px; font-family: var(--display); font-weight: 700; font-size: clamp(20px, 5.6vw, 24px); letter-spacing: -0.025em; line-height: 28px; color: var(--ink); overflow-wrap: anywhere; text-decoration: underline; text-decoration-color: var(--edge); text-decoration-thickness: 1px; text-underline-offset: 6px; transition: color 0.14s ease; }
.start__mail a:hover { color: var(--accent-ink); text-decoration-color: currentColor; }
.inline-link { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--edge); text-decoration-thickness: 1px; text-underline-offset: 5px; transition: color 0.14s ease; }
.inline-link:hover { color: var(--accent-ink); text-decoration-color: currentColor; }
.form { display: grid; gap: var(--s-16); background: #fff; }
.field-row { display: grid; gap: var(--s-4); }
.field-row label { color: var(--ink); font-weight: 600; font-size: var(--small); line-height: var(--small-lh); }
.field-row label span { color: var(--muted); font-weight: 400; }
.field-row input, .field-row textarea {
  width: 100%; height: 48px; padding: 8px 16px;
  background: #fff; color: var(--ink);
  border: 1px solid var(--edge); border-radius: var(--r-1);
  font: 400 18px/28px var(--sans);
  box-shadow: inset 0 1px 2px rgba(11, 13, 18, 0.05);
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}
.field-row textarea { height: 96px; resize: vertical; display: block; }
.field-row input:hover, .field-row textarea:hover { border-color: var(--ink); }
.field-row input:focus-visible, .field-row textarea:focus-visible, .field-row .is-focus { border-color: var(--focus); outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-1); }
.form .btn { justify-self: start; min-width: 168px; margin-top: var(--s-8); }
/* A field that is wrong: a heavier edge, a mark, and words that say how to put it right. */
.field-row--wrong input, .field-row--wrong textarea { border-color: var(--wrong); box-shadow: inset 0 0 0 1px var(--wrong); }
.field-row__msg { display: grid; grid-template-columns: 24px 1fr; gap: var(--s-8); align-items: start; color: var(--wrong); font-size: var(--small); line-height: var(--small-lh); font-weight: 500; }
.field-row__msg svg { width: 24px; height: 24px; }
.note { display: grid; grid-template-columns: 24px 1fr; gap: var(--s-16); padding: var(--s-16); border-radius: var(--r-1); color: var(--ink); }
.note svg { width: 24px; height: 24px; margin-top: 2px; }
.note strong { display: block; font-family: var(--display); font-weight: 700; font-size: var(--d4); line-height: var(--d4-lh); letter-spacing: -0.025em; margin-bottom: var(--s-4); }
.note--failed { background: var(--wrong-tint); box-shadow: inset 0 0 0 1px rgba(179, 38, 30, 0.35); }
.note--failed svg { color: var(--wrong); }
.sent { justify-items: start; gap: var(--s-16); }
.sent__mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--r-1); background: var(--ink); color: #fff; }
.sent__mark svg { width: 32px; height: 32px; }
.sent .lead { color: var(--text); font-size: var(--body); line-height: var(--body-lh); }
.sent .btn { margin-top: var(--s-8); }

/* Footer */
.foot { padding-bottom: var(--s-40); }
.foot__in { display: grid; row-gap: var(--s-24); padding-top: var(--s-48); border-top: 1px solid var(--rule); }
.foot__in > * { grid-column: 1 / -1; }
.foot .brand__name { font-size: var(--d1); line-height: var(--d1-lh); letter-spacing: -0.04em; }
.foot .brand__name .pt { width: 0.19em; height: 0.19em; margin-left: 0.045em; border-radius: 0.04em; }
.foot__mail, .foot__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 500; transition: color 0.14s ease; }
.foot__mail { justify-self: start; font-weight: 600; }
.foot__mail:hover, .foot__links a:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 6px; }
.foot__base { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 var(--s-24); padding-top: var(--s-16); border-top: 1px solid var(--rule); }
.foot__links { display: flex; flex-wrap: wrap; gap: 0 var(--s-24); }
.foot__legal { font-size: var(--small); line-height: 44px; color: var(--muted); }

/* Page 2: Our Work */
.cases { row-gap: var(--s-64); }
.case { grid-column: 1 / -1; row-gap: var(--s-24); }
.case > * { grid-column: 1 / -1; }
.case__shot { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: var(--gutter); grid-template-rows: auto var(--s-56); }
.case__shot .frame--wide { grid-row: 1; }
.case__shot .frame--tall { grid-row: 1 / span 2; }
.case__text { display: grid; gap: var(--s-24); align-content: start; }
.case__text .lead { color: var(--text); }
.case__has h3 { padding-bottom: var(--s-16); }
.case__has .rows li { height: var(--s-56); align-content: center; padding-block: 0; }
.case__has .rows li:last-child { box-shadow: inset 0 1px 0 var(--rule), inset 0 -1px 0 var(--rule); }
.closing { row-gap: var(--s-32); padding-block: var(--s-32); }
.closing > * { grid-column: 1 / -1; }
.closing .btn { justify-self: start; }

/* The sheet of form states (a drawing for review, not a page of the site) */
.sheet__head { padding-top: var(--s-24); }
.sheet__grid { margin-top: var(--gap-tight); row-gap: var(--s-48); }
.sheet__col { grid-column: 1 / -1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-16); align-content: start; grid-template-rows: auto auto 1fr; }
.sheet__col > p { font-size: var(--small); line-height: var(--small-lh); }
.sheet__col .form { align-self: start; }

/* The column overlay: add ?grid=1 to the address */
.grid-overlay { position: absolute; inset-block: 0; left: 0; right: 0; z-index: 90; pointer-events: none; }
.grid-overlay i { display: block; background: rgba(255, 46, 99, 0.07); box-shadow: inset 1px 0 0 rgba(255, 46, 99, 0.45), inset -1px 0 0 rgba(255, 46, 99, 0.45); }

/* Phones narrower than 375: the second link drops its arrow so it still sits beside the button */
@media (max-width: 599px) {
  .top .brand__name { font-size: 17px; line-height: 1; }
  .top .brand__b { display: block; }
  .top .btn--quiet { padding: 0 12px; }
  .top__right { gap: 0; }
  /* The header's button waits until the first screen's blue button has scrolled out of sight (site.js adds .cta-shown).
     It is hidden, not removed: it keeps its place, so the header keeps its height and the name and Menu do not move.
     While hidden it cannot be reached by keyboard. With scripts off there is no .js and it simply shows. */
  .js[data-cta="waits"] .top .btn--quiet { opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0s linear 0.2s; }
  .js[data-cta="waits"].cta-shown .top .btn--quiet { opacity: 1; visibility: visible; transition: opacity 0.2s ease, visibility 0s, background-color 0.14s ease, border-color 0.14s ease, transform 0.08s ease; }
  .btn { height: 48px; font-size: 16px; }
  .acts .link { font-size: 16px; }
}
@media (max-width: 374px) {
  .top .brand__name { font-size: 16px; }
  .top .btn--quiet { padding: 0 8px; font-size: 16px; letter-spacing: -0.02em; }
  .menu-btn { min-width: 48px; padding: 0 4px; }
  .acts .link svg { display: none; }
  .btn { padding: 0 16px; }
  .hero { padding-top: var(--s-16); }
  .acts { margin-top: var(--s-16); }
  :root { --d1: 36px; }
}

/* From a large phone up: twelve columns with a 24 gutter */
@media (min-width: 600px) {
  .hero { padding-top: var(--s-40); }
  .hero__say { margin-top: var(--s-32); max-width: 31em; }
  .acts { justify-content: flex-start; gap: var(--s-24); margin-top: var(--s-32); }

  .facts { order: 0; }
  .facts li { grid-column: span 4; padding-block: var(--s-24) 0; gap: var(--s-8); }
  .facts li:last-child { box-shadow: inset 0 1px 0 var(--rule); }
  .facts__v { font-size: var(--d4); line-height: var(--d4-lh); }
  .work { order: 0; display: block; }
  .work .head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-24); }
  .work .head .link { margin-top: 0; align-self: auto; }
  .project h3 { margin-top: var(--s-24); }
  .project p { margin-top: var(--s-8); }

  .kind { grid-column: span 6; }
  .slip, .kind p { margin-top: var(--s-24); }
  .step { grid-column: span 6; display: block; }
  .step::before { margin-bottom: var(--s-24); }
  .step h3 { display: block; min-height: calc(var(--d4-lh) * 2); }
  .step p { margin-top: var(--s-8); }
  .step:not(:last-child)::after { display: none; }
  .more { padding-block: var(--bleed); }
  .foot__mail { justify-self: end; }
  .case__shot { grid-template-rows: auto var(--s-96); }
  .closing { padding-block: var(--bleed); }
  .sheet__head { padding-top: var(--s-40); }
}
@media (min-width: 900px) and (max-width: 1199px) {
  .project { grid-column: span 6; }
  .qa > .qa__rest { grid-column: span 4; }
  .sheet__col { grid-column: span 6; }
}

/* Computer */
@media (min-width: 1200px) {
  .nav { display: flex; align-items: center; margin-right: var(--s-8); }
  .menu-btn, .menu { display: none; }

  .hero { padding-top: var(--s-40); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .hero h1 { grid-column: 1 / -1; }
  .hero__say { grid-column: 1 / span 6; margin-top: var(--s-32); max-width: none; }
  .acts { margin-top: var(--s-24); }
  .facts__v { font-size: 40px; line-height: 40px; letter-spacing: -0.04em; }
  .facts li { padding-block: var(--s-16) 0; }

  .head--split { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; align-items: last baseline; }
  .head--split h2 { grid-column: 1 / span 6; }
  .head--split .lead { grid-column: 7 / span 6; }

  .project { grid-column: span 6; }
  .kind { grid-column: span 3; }

  /* two panels of the same height: the same header zone, then five rows of 64 beside four rows of 80 */
  .offer__get { grid-column: 1 / span 6; }
  .offer__terms { grid-column: 7 / span 6; }
  .offer__head { height: 184px; align-content: space-between; }
  .price__fig { font-size: var(--d1); line-height: 96px; }
  .offer .rows li { height: var(--s-64); padding-block: 0; line-height: 24px; }
  .offer .rows--marked li::before { margin-top: var(--s-8); }
  .offer__terms .rows li { height: var(--s-80); }

  .more__lead { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; grid-column: 1 / span 5; }
  .more__text { grid-column: 7 / span 6; }

  .step { grid-column: span 3; }
  /* the track, on a computer: a line from each number across to the next */
  .step:not(:last-child)::after { display: block; left: calc(var(--inset) + 56px); right: calc(-1 * var(--gutter) - var(--inset) + 16px); top: calc(var(--inset) + 19.5px); bottom: auto; width: auto; height: 1px; }

  .qa__first { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: baseline; padding: var(--inset) 0; }
  .qa__first dt, .qa__first dd > * { padding-inline: var(--inset); }
  .qa__first dt { grid-column: 1 / span 4; grid-row: 1; }
  .qa__first dd { display: contents; }
  .qa__first dd > p:first-child { grid-column: 1 / span 4; grid-row: 2; margin-top: var(--s-8); align-self: start; }
  .qa__first blockquote { grid-column: 5 / span 4; grid-row: 1 / span 2; margin: 0 var(--inset); padding-inline: var(--s-16) 0; }
  .qa__first dd > p:last-child { grid-column: 9 / span 4; grid-row: 1 / span 2; margin-top: 0; }
  /* the three answers share their rows, so each question takes the height of the tallest and the answers start level */
  .qa { grid-template-rows: auto auto auto; }
  .qa > .qa__first { grid-row: 1; }
  .qa > .qa__rest { grid-column: span 4; grid-row: 2 / span 2; display: grid; grid-template-rows: subgrid; row-gap: var(--s-8); }
  .qa__rest dd { margin-top: 0; }

  /* the left column is three groups: the heading, what happens next, the address. The middle group sits centred, so the two spaces are equal. */
  .start { grid-template-rows: auto 1fr auto; row-gap: var(--s-32); }
  .start__say { grid-column: 1 / span 5; grid-row: 1; }
  .start .form { grid-column: 7 / span 6; grid-row: 1 / span 3; }
  .next { grid-column: 1 / span 5; grid-row: 2; align-self: center; }
  .next li { padding-bottom: var(--s-32); }
  .next li span { font-size: var(--d3); line-height: var(--d3-lh); letter-spacing: -0.035em; padding-block: var(--s-4) 0; }
  .start__mail { grid-column: 1 / span 5; grid-row: 3; }

  .foot__in { row-gap: var(--s-32); align-items: baseline; }
  .foot .brand { grid-column: 1 / span 8; }
  .foot__mail { grid-column: 9 / span 4; }

  /* each project: the frame and its words start level and end level; the phone pane's foot is the foot of both */
  .case__shot { grid-column: 1 / span 7; grid-row: 1; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: auto minmax(0, 1fr); }
  .case__shot .frame--tall { grid-column: 6 / span 2; }
  .case__text { grid-column: 8 / span 5; grid-row: 1; grid-template-rows: auto auto 1fr auto; }
  .case__has { align-self: end; }
  .case--flip .case__shot { grid-column: 6 / span 7; }
  .case--flip .case__text { grid-column: 1 / span 5; }
  .sheet__head { padding-top: var(--s-56); }
  .closing { align-items: end; }
  .closing h2 { grid-column: 1 / span 8; }
  .closing .btn { grid-column: 9 / span 4; justify-self: end; }
  /* the three states share their rows, so the three headings, the three notes and the three frames each start level */
  .sheet__col { grid-column: span 4; grid-row: span 3; grid-template-rows: subgrid; row-gap: var(--s-16); }
}

/* Wide enough for each fact's second line to sit on one line */
@media (min-width: 1280px) {
  .facts__c { max-width: none; white-space: nowrap; }
}

/* Movement: the two projects rise once. Position and opacity only. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .rise { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .rise--2 { animation-delay: 0.1s; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* The narrowest phones (under 340): the header keeps the name and the menu; the main button is the first thing on the page below. */
@media (max-width: 339px) {
  .top .btn--quiet { display: none; }
}

/* The three facts as one bar (the owner's choice, 1 December 2026, option C): one rule above and one below, a thin
   divider in each gutter, each fact centred, so the gaps between them read even however long each one is. */
@media (min-width: 600px) {
  .facts { box-shadow: inset 0 1px 0 var(--rule), inset 0 -1px 0 var(--rule); padding-bottom: var(--s-24); }
  .facts li, .facts li:last-child { box-shadow: none; text-align: center; justify-items: center; position: relative; }
  .facts li + li::before { content: ""; position: absolute; left: calc(var(--gutter) / -2); top: var(--s-24); bottom: 0; width: 1px; background: var(--rule); }
}

/* The footer's contact: the email, then the phone under it. Left on a phone; at the right from 600 wide, as the email was. */
.foot__contact { display: flex; flex-direction: column; align-items: flex-start; }
@media (min-width: 600px) { .foot__contact { align-items: flex-end; } }
@media (min-width: 1200px) { .foot__contact { grid-column: 9 / span 4; } }
