/* answer — the offer first, then proof, then case studies. The contact button in the sticky bar
   is the only coloured thing on the page. No motion. */
:root {
  --paper: #FFFFFF;
  --ink: #0F2B2F;
  --muted: #4C6669;
  --panel: #E5EDEB;
  --line: #CFDAD7;
  --head: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --text: "Source Sans 3", "Source Sans Pro", "Segoe UI", Arial, sans-serif;
  --rail: 300px;
  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 40px; --s6: 64px; --s7: 96px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.55 var(--text); }
img { display: block; max-width: 100%; height: auto; background: var(--panel); }
a { color: var(--ink); text-decoration-color: var(--muted); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3, dd, .cta, .lead, .offer { font-family: var(--head); }
.skip { position: absolute; left: var(--s3); top: -64px; z-index: 3; background: var(--ink); color: var(--paper); padding: var(--s2) var(--s3); }
.skip:focus { top: var(--s2); }

/* The bar: who you are on the left, the one action on the right. Always on screen. */
.bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: var(--s4);
  padding: 12px max(var(--s4), calc((100% - 1200px) / 2)); background: var(--paper); border-bottom: 1px solid var(--panel); }
.who { display: flex; align-items: baseline; gap: var(--s3); min-width: 0; margin-right: auto; text-decoration: none; }
.who strong { font: 600 18px/1.2 var(--head); white-space: nowrap; }
.who span { color: var(--muted); font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.direct { color: var(--muted); font-size: 16px; white-space: nowrap; }
.cta { flex: none; display: inline-block; padding: 12px 22px; border-radius: 4px; background: var(--accent); color: var(--on-accent);
  font-size: 17px; font-weight: 600; line-height: 1.2; text-decoration: none; }
.cta:hover { color: var(--on-accent); box-shadow: inset 0 0 0 100px rgb(0 0 0 / 0.12); }

.page { max-width: 1200px; margin: 0 auto; padding: var(--s6) var(--s4) var(--s5); }

/* The answer: one sentence at display size beside a portrait (the first case study's cover). */
.intro { display: grid; gap: var(--s6); align-items: end; }
.intro.has-figure { grid-template-columns: minmax(0, 1fr) minmax(240px, 360px); }
h1 { font-size: 18px; font-weight: 600; line-height: 1.3; }
h1 span { display: block; color: var(--muted); font: 400 18px/1.4 var(--text); }
.offer { margin-top: var(--s5); display: grid; gap: var(--s3); }
.offer p:first-child { font-size: clamp(32px, 4.6vw, 58px); font-weight: 600; line-height: 1.06; letter-spacing: -0.025em; max-width: 19ch; text-wrap: balance; }
.offer.long p:first-child { font-size: clamp(26px, 3vw, 38px); line-height: 1.12; max-width: 28ch; }
.offer p + p { font: 400 20px/1.5 var(--text); color: var(--muted); max-width: 52ch; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.portrait figcaption { margin-top: var(--s2); font-size: 15px; color: var(--muted); }
.portrait figcaption a { color: var(--muted); }

/* Proof: the facts as a ruled strip, each label over its value. */
.proof { margin-top: var(--s6); display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  column-gap: var(--s4); border-top: 2px solid var(--ink); }
.proof div { padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.proof dt { color: var(--muted); font-size: 15px; }
.proof dd { font-size: 20px; font-weight: 600; line-height: 1.3; }

/* Case studies and the later sections share one left rail. */
h2 { font-size: 28px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.work { margin-top: var(--s7); }
.case { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); gap: var(--s5); align-items: start;
  padding: var(--s5) 0; border-bottom: 1px solid var(--line); }
.work h2 { padding-bottom: var(--s3); border-bottom: 2px solid var(--ink); }
.cover { width: 100%; max-height: 420px; object-fit: cover; object-position: 50% 30%; }
.case .body { display: grid; gap: var(--s3); max-width: 64ch; }
.case h3 { font-size: 26px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.meta { color: var(--muted); font-size: 16px; margin-top: calc(-1 * var(--s2)); }
.summary { display: grid; gap: 12px; }
.lead { font-weight: 600; }
.credits { color: var(--muted); font-size: 15px; }
.more a { font-weight: 600; }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 120px)); gap: var(--s2); margin-top: var(--s2); }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 30%; }

.split { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); gap: var(--s5); margin-top: var(--s7); }
.prose { display: grid; gap: var(--s3); max-width: 64ch; font-size: 20px; }
.cv h3 { font-size: 17px; font-weight: 600; color: var(--muted); }
.cv h3:not(:first-child) { margin-top: var(--s5); }
.cv ul { margin-top: var(--s2); border-top: 1px solid var(--line); max-width: 760px; }
.cv li { display: flex; justify-content: space-between; gap: var(--s4); padding: 12px 0; border-bottom: 1px solid var(--line); }
.cv strong { font-weight: 600; }
.years { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

.contact { margin-top: var(--s7); padding: var(--s6) var(--s5); background: var(--panel); display: grid; gap: var(--s4); }
.contact ul { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2) var(--s5); }
.contact .big { flex-basis: 100%; font: 600 clamp(24px, 3.4vw, 40px)/1.2 var(--head); letter-spacing: -0.015em; overflow-wrap: anywhere; }
.contact .big + .big { margin-top: calc(-1 * var(--s2)); }

footer { margin-top: var(--s5); color: var(--muted); font-size: 15px; }

@media (max-width: 860px) {
  :root { --rail: 220px; }
  .intro.has-figure { grid-template-columns: 1fr; gap: var(--s5); }
  .portrait { max-width: 420px; }
  .direct { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .bar { padding: 10px var(--s3); gap: var(--s3); }
  .who span { display: none; }
  .who strong { overflow: hidden; text-overflow: ellipsis; }
  .cta { padding: 10px 16px; font-size: 16px; }
  .page { padding: var(--s5) var(--s3) var(--s4); }
  .offer { margin-top: var(--s4); }
  .portrait { display: none; } /* the same image opens the first case study just below */
  .proof { margin-top: var(--s5); grid-template-columns: 1fr; }
  .proof:has(> div:nth-child(6)) { grid-template-columns: 1fr 1fr; }
  .work, .split, .contact { margin-top: var(--s6); }
  .case, .split { grid-template-columns: 1fr; gap: var(--s3); }
  .cover { aspect-ratio: 4 / 3; max-height: none; }
  .case h3 { font-size: 22px; }
  .prose { font-size: 18px; }
  .contact { padding: var(--s5) var(--s4); margin-inline: calc(-1 * var(--s3)); }
}
@media print {
  .bar { position: static; }
  .skip { display: none; }
}
