/* Base: reset, type, frame, chrome, buttons, bands, reveal guard.
   Tokens only (tokens.mjs). Every length and duration comes from a custom property, so a new
   company is a new tokens.css, never an edit here. */

*, *::before, *::after { box-sizing: border-box; }
/* Smooth scrolling only for in-page links a person followed (focus moves), never for scripted
   scrolls: a global `scroll-behavior: smooth` turned every scrollTo() in a capture script into an
   animation that was cancelled by the next one, the page never moved, and the reveal never ran. */
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html:focus-within { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: var(--t-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: var(--ring) solid var(--accent); outline-offset: var(--ring-offset); border-radius: var(--s1); }
/* The ring lands on the ground around the control, and the accent is computed to read on paper:
   on a dark band it measured 1.29:1 and was simply not there (2026-09-18). */
.banner :focus-visible, .section--band :focus-visible { outline-color: var(--accent-on-band); }
::selection { background: var(--glow); color: var(--ink); }

/* Measures in em, never ch: ch is the width of "0" in the CURRENT font, so a ch-wide box changes width
   when the webfont replaces its fallback and every line inside it re-wraps (CLS 0.013 on a lead). */
h1, h2, h3, h4 { margin: 0; text-wrap: balance; overflow-wrap: break-word; }
h1 { font: var(--t-display); letter-spacing: var(--tracking-display); max-width: 10em; }
h2 { font: var(--t-h2); letter-spacing: var(--tracking-display); max-width: 12em; }
h3 { font: var(--t-h3); }
p { margin: 0 0 var(--s4); max-width: 34em; text-wrap: pretty; }
em { font-style: normal; color: var(--ink-muted); }
/* Inside a heading the muted part keeps the heading's style: with an italic-only display face (a
   company's own, e.g. G-Design's Old Standard TT italic) an upright em has no webfont and no measured
   fallback, so it re-wrapped on swap (CLS 0.028 at 375). */
h1 em, h2 em, h3 em { font-style: inherit; }
.lead { font: var(--t-lead); color: var(--ink-muted); max-width: 30em; }
.meta { font: var(--t-meta); color: var(--ink-muted); }
.label { display: inline-flex; align-items: center; gap: var(--s2); font: var(--t-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 0 0 var(--s4); }
.label .icon { width: var(--s4); height: var(--s4); }
/* 16px is the floor for anything a phone has to read; the 13px eyebrow and the 14px banner were
   the only two under it (2026-09-18). */
@media (max-width: 900px) { .label { font-size: 1rem; } }

.wrap { width: 100%; max-width: var(--frame); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: var(--section) 0; }
.section--surface { background: var(--surface); border-block: 1px solid var(--rule); }
.section--tight { padding: calc(var(--section) * 0.55) 0; }
.section--band { background: var(--band); color: var(--on-band); }
.section--band h2, .section--band h3 { color: var(--on-band); }
.section--band p, .section--band .meta, .section--band em { color: var(--on-band-muted); }
.section--band a:not(.btn) { color: var(--on-band); }
.section--band .label { color: var(--accent-on-band); }
.section-head { display: grid; gap: var(--s3); margin-bottom: var(--s9); }
.section-head p { margin: 0; }
.section-head .label { justify-self: start; }
.section-head--center .label { justify-self: center; }
.decor { position: absolute; inset: 0; overflow: hidden; pointer-events: none; color: var(--rule); z-index: 0; }
.decor svg { width: 100%; height: 100%; }
.section > .wrap { position: relative; z-index: 1; }

/* Skip link and the concept banner: the first thing a stranger reads is whose page this is. */
.skip { position: absolute; left: var(--s4); top: calc(var(--s10) * -2); z-index: 100; background: var(--ink); color: var(--paper); padding: var(--s3) var(--s4); border-radius: var(--radius); }
.skip:focus { top: var(--s4); }
.banner { background: var(--ink); color: var(--paper); font: var(--t-meta); }
.banner .wrap { padding-block: var(--s3); }
.banner p { margin: 0; max-width: none; color: var(--paper); }
.banner a { color: var(--paper); }

/* Top bar */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(var(--s3)); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s6); min-height: var(--s10); }
.brand { display: inline-flex; align-items: center; gap: var(--s3); font: var(--weight-display) 1.25rem/1 var(--font-display); color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand-mark { width: var(--s7); height: var(--s7); color: var(--accent-fill); flex: none; }
.nav { display: flex; align-items: center; justify-content: flex-end; gap: var(--s6); }
.nav-list { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: var(--s1) var(--s6); }
.nav a:not(.btn) { font: var(--t-meta); color: var(--ink-muted); text-decoration: none; padding: var(--s2) 0; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 calc(-1 * var(--underline)) 0 var(--accent); }
/* Below 900px the links fold into a native <details> menu: no script, keyboard and screen-reader
   operable, and the bar stays one line instead of wrapping into three. The <details> sits INSIDE
   the <nav>, so a navigation landmark exists at every width (below 900px there was none). */
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: var(--s9); height: var(--s9); border-radius: var(--radius); color: var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + var(--s2)); min-width: min(calc(100vw - var(--s8)), calc(var(--s11) * 3.4)); display: grid; gap: var(--s1); padding: var(--s4); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); box-shadow: var(--shadow-hover); }
.menu-panel a:not(.btn) { padding: var(--s3) var(--s2); color: var(--ink); text-decoration: none; border-radius: var(--radius); }
.menu-panel a[aria-current="page"] { color: var(--accent); }
.menu-panel .btn { margin-top: var(--s2); justify-content: center; }
/* A CLOSED drawer painted its panel over the hero on every page below 900px (Chromium 153,
   2026-09-18): display:grid on the panel outlives the closed state, so it is named off here. */
.menu:not([open]) .menu-panel { display: none; }
@media (max-width: 900px) { .nav-list { display: none; } .menu { display: block; } .top .wrap { min-height: var(--s10); } .brand span { max-width: 12em; } }
@media (max-width: 560px) { .brand { font-size: 1.0625rem; } }

/* Buttons: one primary action per site, in the same words everywhere. */
.btn { display: inline-flex; align-items: center; gap: var(--s2); min-height: var(--s9); padding: 0 var(--s6); border-radius: var(--radius); font: 600 1rem/1 var(--font-text); text-decoration: none; transition: transform var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease); }
.btn .icon { width: var(--s5); height: var(--s5); transition: transform var(--dur-1) var(--ease); }
.btn:hover .icon { transform: translateX(var(--s1)); }
.btn--primary, .btn--primary:visited { background: var(--accent-fill); color: var(--accent-label); box-shadow: var(--shadow); }
.btn--primary:hover { color: var(--accent-label); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn--ghost, .btn--ghost:visited { color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); background: transparent; }
.btn--ghost:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.section--band .btn--ghost, .section--band .btn--ghost:visited { color: var(--on-band); box-shadow: inset 0 0 0 1px var(--on-band-muted); }
.nav .btn { min-height: var(--s8); padding: 0 var(--s4); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); margin-top: var(--s7); }

/* Stagger is capped at four steps: an eighteen-card grid must not take two seconds to appear.
   Reveal: hidden ONLY when motion.js has run (html.js) and the visitor accepts motion. Without
   JavaScript, for a crawler, a screenshot or reader mode, everything is simply visible. */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] { opacity: 0; transform: translateY(var(--s5)); transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease); transition-delay: calc(min(var(--i, 0), 4) * var(--stagger)); }
  html.js [data-reveal].is-in { opacity: 1; transform: none; }
}

/* Cards lift on hover with CSS only. */
.lift { transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .lift:hover { transform: translateY(calc(var(--s1) * -1)); box-shadow: var(--shadow-hover); } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Their logo, when they have one: at its own proportions, never stretched into a square. */
.brand-logo { height: var(--s9); width: auto; flex: none; background: var(--logo-ground, transparent); padding: var(--logo-pad, 0); box-sizing: content-box; }

/* footer: tokens only */
.foot { border-top: 1px solid var(--rule); background: var(--paper); padding: var(--s10) 0 var(--s7); }
.foot-grid { display: grid; gap: var(--s8); }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
/* 24px is the WCAG 2.2 floor for a target (--s6); these links cleared it only by accident. */
.foot a { color: var(--ink-muted); text-decoration: none; display: inline-flex; align-items: center; gap: var(--s2); min-height: var(--s6); min-width: var(--s6); }
.foot a:hover { color: var(--ink); }
.foot .icon { color: var(--accent); flex: none; }
.foot-brand .brand { margin-bottom: var(--s3); }
.foot-credit { margin-top: var(--s9); padding-top: var(--s5); border-top: 1px solid var(--rule); }
.foot-min { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s7); align-items: baseline; }

/* A long e-mail address must wrap on a phone, not push the page sideways (30px at 375, Schoenmakers). */
.foot-ways a span, .foot-min .meta { overflow-wrap: anywhere; }

/* Archetype: High-End Agency. Precision: hairlines, tight type, generous air, an arrow in a circle. Tokens only. */
h1, h2 { letter-spacing: -0.03em; }
.section-head { margin-bottom: var(--s10); }
.btn--primary .icon { box-sizing: content-box; padding: var(--s1); margin-right: calc(var(--s2) * -1); border-radius: 50%; background: color-mix(in srgb, var(--accent-label) 18%, transparent); }
.bento-cell, .way, .step, .stat, .work-card { box-shadow: none; border-color: var(--rule); }
.bento-cell:hover, .way:hover, .work-card:hover { border-color: var(--ink); }
.label { letter-spacing: 0.18em; }
