/* Layout: quiet single sans, name/role header, large intro line, rounded thumbnail grid
   (one wide feature + two halves), small muted section labels, case pages with labels left / text right. */
:root {
  --bg: #ffffff;
  --ink: #111214;
  --muted: #6b6f75;
  --faint: #a6a9ae;
  --line: #e7e8ea;
  --surface: #f3f4f5;
  --band: #f9f9fa;
  --card: #ffffff;
  --accent: #2a56a6;          /* Ontario plate blue, used sparingly */
  --ok: #2f7d4f;
  --warn: #a2650a;
  --tile-1: #e3ebf6;
  --tile-2: #f2ead9;
  --tile-3: #e1eee5;
  --tile-4: #ebe7f4;
  --photo-bg: #1c1c1f;
  --shadow: 0 1px 2px rgba(17, 24, 39, 0.06), 0 10px 30px rgba(17, 24, 39, 0.09);
  --font: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --text-sm: 0.875rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: clamp(1.6rem, 1.25rem + 1.5vw, 2.25rem);
  --text-hero: clamp(2rem, 1.15rem + 3.4vw, 3.6rem);
  --radius: 14px;
  color-scheme: light;
}
/* Light by default. The dark palette below applies only if data-theme="dark" is set on <html>. */
:root[data-theme="dark"] {
  --bg: #0e0f10; --ink: #ececed; --muted: #9a9ea4; --faint: #63676c; --line: #25272a;
  --surface: #18191b; --band: #141517; --card: #1e2023; --accent: #93b2ea; --ok: #6cc08e; --warn: #e2b05a;
  --tile-1: #151d29; --tile-2: #241f15; --tile-3: #142019; --tile-4: #1d1a28;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
img { max-width: 100%; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
a { color: inherit; text-decoration-color: var(--faint); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.muted { color: var(--muted); }

.shell {
  max-width: 72rem;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Header */
.site-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem 2rem; padding-block: 1.6rem; }
.id { display: grid; line-height: 1.35; }
.id a { font-weight: 500; text-decoration: none; }
.id { min-width: 0; }
.id span { color: var(--muted); }
.site-nav { flex: none; }
.site-nav { display: flex; gap: 1.5rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }

/* Section rhythm */
.label { font-size: var(--text-sm); color: var(--muted); font-weight: 400; margin-bottom: 1.25rem; }
.block { padding-block: 3rem 4rem; }

/* Home hero */
.hero { padding-block: 3.5rem 1.5rem; display: grid; gap: 1.1rem; }
.hero h1 { font-size: clamp(1.75rem, 1.15rem + 2.4vw, 2.9rem); line-height: 1.14; letter-spacing: -0.026em; font-weight: 400; max-width: 20em; }
.hero p { color: var(--muted); max-width: 40rem; font-size: var(--text-lg); line-height: 1.5; }
.hero p a { color: var(--ink); }

/* Work grid */
.work-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.5rem 1.5rem; }

.work-grid .feature { grid-column: 1 / -1; }
.work-grid.more { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.work-grid.more .card { grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1.1rem; align-items: center; }
.work-grid.more .tile { aspect-ratio: 1 / 1; border-radius: 10px; }
.work-grid.more .card-top h3 { font-size: var(--text-base); letter-spacing: 0; }
.work-grid.more .card-top { flex-wrap: wrap; gap: 0 1rem; }
.more-work { padding-top: 0; }
.card { display: grid; gap: 0.8rem; text-decoration: none; color: inherit; }
.card-text { display: grid; gap: 0.35rem; }
.card-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 1rem; }
.card > * { min-width: 0; }
.card-top h3 { font-size: var(--text-lg); letter-spacing: -0.01em; }
.card-top span { color: var(--muted); font-size: var(--text-sm); white-space: nowrap; }
.card-desc { color: var(--muted); max-width: 36rem; font-size: 0.975rem; }
.card:hover .card-top h3 { text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.35rem; }
.tags span { font-size: 0.75rem; line-height: 1; color: var(--muted); background: var(--surface); border-radius: 6px; padding: 0.4rem 0.55rem; }

/* Thumbnail tile + drawn mock */
.tile {
  container-type: inline-size;
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  max-width: 100%;
}
.feature .tile, .cover .tile { aspect-ratio: 16 / 7; }
.work-grid .tile { aspect-ratio: 3 / 2; }
.work-grid .mock { font-size: clamp(8px, 2.15cqi, 12.5px); }
.work-grid .mock { width: 74%; }
.work-grid.more .mock { width: 82%; }
.t1 { background: var(--tile-1); }
.t2 { background: var(--tile-2); }
.t3 { background: var(--tile-3); }
.t4 { background: var(--tile-4); }
.tile.photo { background: var(--photo-bg); }
.tile.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.card:hover .tile.photo img { transform: scale(1.025); }
.tile.photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
.m-search { display: flex; align-items: center; gap: 0.6em; border: 1px solid var(--line); border-radius: 0.7em; padding: 0.7em 0.85em; color: var(--muted); font-size: 0.9em; }
.m-glass { width: 0.8em; height: 0.8em; border: 1.5px solid var(--faint); border-radius: 50%; flex: none; }
.m-chips { display: flex; gap: 0.45em; }
.m-chips .sk { height: 1.5em; border-radius: 99px; background: var(--surface); }
.m-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.8em; padding-top: 0.75em; border-top: 1px solid var(--line); }
.m-item > div { display: grid; gap: 0.45em; }
.m-avatar { width: 2.2em; height: 2.2em; border-radius: 0.6em; background: var(--tile-4); }
.mock { position: relative; width: min(74%, 27em); font-size: clamp(9px, 2.5cqi, 13.5px); line-height: 1.35; transition: transform 0.5s cubic-bezier(.2,.7,.2,1); }
.card:hover .mock { transform: translateY(-0.4em); }
.m-card { background: var(--card); border-radius: 0.95em; box-shadow: var(--shadow); padding: 1.15em 1.2em; display: grid; gap: 0.85em; color: var(--ink); }
.m-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1em; }
.m-title { font-weight: 600; font-size: 1.1em; }
.m-sub { color: var(--muted); font-size: 0.85em; }
.m-row { display: grid; grid-template-columns: 8.5em minmax(0, 1fr) auto; align-items: center; gap: 0.9em; padding-top: 0.75em; border-top: 1px solid var(--line); font-size: 0.92em; }
.sk { display: block; height: 0.55em; border-radius: 99px; background: var(--line); width: var(--w, 60%); }
.chip { font-size: 0.78em; font-weight: 500; padding: 0.3em 0.6em; border-radius: 99px; white-space: nowrap; background: var(--surface); color: var(--muted); }
.chip.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.chip.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.m-actions { display: flex; gap: 0.6em; padding-top: 0.2em; }
.btn-p, .btn-s { font-size: 0.85em; font-weight: 500; padding: 0.5em 0.9em; border-radius: 0.6em; white-space: nowrap; }
.btn-p { background: var(--accent); color: var(--bg); }
.btn-s { border: 1px solid var(--line); color: var(--ink); }
.m-float { position: absolute; background: var(--card); box-shadow: var(--shadow); border-radius: 0.8em; padding: 0.7em 0.9em; font-size: 0.85em; font-weight: 500; display: flex; align-items: center; gap: 0.55em; white-space: nowrap; color: var(--ink); }
.m-float .dot, .m-alert .dot { width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--ok); flex: none; }
.m-alert { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.35em 0.7em; align-items: start; }
.m-alert .dot { background: var(--warn); margin-top: 0.35em; }
.m-alert b { font-weight: 600; }
.m-alert p { color: var(--muted); font-size: 0.9em; grid-column: 2; }
.m-alert .btn-p { grid-column: 2; justify-self: start; margin-top: 0.4em; }
.m-doc { background: var(--card); border-radius: 0.5em; box-shadow: var(--shadow); padding: 1.2em 1.25em; display: grid; gap: 0.65em; width: 64%; transform: rotate(-3deg); color: var(--ink); }
.m-doc .m-title { font-size: 1em; }
.m-doc .chip { justify-self: start; margin-top: 0.3em; }
.m-steps { display: grid; gap: 0.55em; font-size: 0.9em; }
.m-steps div { display: flex; align-items: center; gap: 0.55em; }
.m-steps i { width: 0.75em; height: 0.75em; border-radius: 50%; border: 1.5px solid var(--faint); flex: none; }
.m-steps i.on { border-color: var(--ok); background: var(--ok); }
.m-steps small { color: var(--muted); font-size: 0.85em; }

/* Earlier work list */
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto); gap: 0.25rem 1.5rem; padding-block: 0.95rem; border-bottom: 1px solid var(--line); }
.list li span:last-child { color: var(--muted); text-align: right; }
.feature .mock, .cover .mock { font-size: clamp(9px, 1.55cqi, 17px); }
.m3 { width: min(74%, 25em); padding-bottom: 2.5em; }
.m-sticker { position: absolute; right: -4%; bottom: 0; width: 52%; padding: 0.95em 1em; gap: 0.6em; }
.m-sticker .m-title { font-size: 0.95em; }
.m-stack { display: grid; gap: 0.8em; }
.m-stack > .m-card:last-child { margin-left: 12%; }
.list-link { display: inline-block; margin-top: 1.25rem; }

/* Contact */
.contact { display: grid; gap: 1.25rem; }
.contact p { color: var(--muted); max-width: 32rem; }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
.email { font-size: var(--text-xl); letter-spacing: -0.02em; user-select: all; overflow-wrap: anywhere; }
.btn { font: inherit; font-size: var(--text-sm); color: var(--ink); background: var(--surface); border: 0; border-radius: 99px; padding: 0.45rem 0.9rem; cursor: pointer; }
.btn:hover { background: var(--line); }
.socials { display: flex; gap: 1.25rem; }

.site-foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 2rem 2.5rem; color: var(--muted); font-size: var(--text-sm); border-top: 1px solid var(--line); margin-top: 2rem; }

/* About page */
.about-hero { padding-block: 5rem 3rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 4rem; }
.about-hero h1 { font-size: var(--text-xl); line-height: 1.2; letter-spacing: -0.02em; font-weight: 400; max-width: 14em; }
.about-hero .copy { display: grid; gap: 1.1rem; }
.rows { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 1rem 3rem; padding-block: 2.5rem; border-top: 1px solid var(--line); }
.rows h2 { font-size: var(--text-base); }
.rows ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.1rem 1.5rem; }
.rows li span { color: var(--muted); }
.rows li span:not(.when) { grid-column: 1; }
.rows li .when { grid-column: 2; grid-row: 1; text-align: right; white-space: nowrap; }
.rows .plain li { display: block; }

/* ---------- Case pages ---------- */
.back { display: inline-block; margin-top: 1rem; color: var(--muted); text-decoration: none; font-size: var(--text-sm); }
.back:hover { color: var(--ink); }
.case-hero { padding-block: 2.5rem 2rem; display: grid; gap: 1.1rem; }
.case-kicker { color: var(--muted); font-size: var(--text-sm); }
.case-hero h1 { font-size: clamp(1.9rem, 1.25rem + 2.6vw, 3.1rem); line-height: 1.12; letter-spacing: -0.026em; font-weight: 400; max-width: 20em; }
.case-hero .lead { color: var(--muted); font-size: var(--text-lg); line-height: 1.5; max-width: 38rem; }
.cover { margin: 1.5rem 0 0; }
.meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem 2rem; margin: 2.5rem 0 0; }
.meta div { min-width: 0; }
.meta dt { color: var(--muted); font-size: var(--text-sm); margin-bottom: 0.3rem; }
.meta dd { margin: 0; font-size: 0.95rem; }
.outcomes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem 2rem; margin-top: 1.4rem; }
.outcomes div { display: grid; gap: 0.25rem; align-content: start; padding-top: 1rem; border-top: 1px solid var(--ink); min-width: 0; }
.outcomes .big, .outcomes .text { font-size: var(--text-xl); letter-spacing: -0.02em; line-height: 1.15; }
.outcomes .text { font-size: var(--text-lg); font-weight: 500; letter-spacing: -0.01em; }
.outcomes .label { color: var(--muted); font-size: 0.95rem; }
.outcomes-note { color: var(--muted); font-size: var(--text-sm); margin-top: -0.25rem; }
.case-hero > .todo { max-width: 40rem; margin-top: 0.5rem; }

.chapter { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 1rem 3rem; padding-block: 3rem; border-top: 1px solid var(--line); }
.case-hero + .chapter { margin-top: 2.5rem; }
.chapter > h2 { font-size: var(--text-base); }
.chapter-body { display: grid; gap: 1.1rem; max-width: 40rem; min-width: 0; }
.chapter-body ul { margin: 0; padding-left: 1.15rem; display: grid; gap: 0.35rem; }
.question { font-size: var(--text-lg); line-height: 1.45; letter-spacing: -0.01em; padding-top: 0.5rem; }
.question strong { display: block; font-size: var(--text-sm); font-weight: 400; color: var(--muted); letter-spacing: 0; margin-bottom: 0.25rem; }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.65rem 1rem 0.65rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 400; color: var(--muted); font-size: var(--text-sm); }
td.num { white-space: nowrap; }

.todo { border: 1px dashed var(--warn); color: var(--warn); border-radius: 10px; padding: 0.7rem 0.9rem; font-size: 0.9rem; }
.todo::before { content: "To add: "; font-weight: 600; }
.ph { border: 1px dashed var(--warn); color: var(--warn); border-radius: 6px; padding: 0.05em 0.4em; font-size: 0.85em; white-space: nowrap; }
.ph::before { content: "To add: "; font-weight: 600; }

/* Image covers and galleries */
.shot-img { display: block; width: 100%; height: auto; border-radius: var(--radius); background: var(--photo-bg); box-shadow: 0 0 0 1px var(--line); }
.gallery { display: grid; gap: 2.5rem; padding-block: 1rem 3rem; }
.shot { margin: 0; display: grid; gap: 0.75rem; }
.shot figcaption { color: var(--muted); font-size: var(--text-sm); max-width: 40rem; }
.gallery + .chapter, .chapter + .gallery { border-top: 0; }

/* Long-form project parts (Wura) */
.part { display: grid; gap: 2.5rem; padding-block: 4rem 1.5rem; border-top: 1px solid var(--line); }
.part-head { display: grid; gap: 0.75rem; max-width: 44rem; }
.part-label { color: var(--muted); font-size: var(--text-sm); }
.part-head h2 { font-size: var(--text-xl); line-height: 1.15; letter-spacing: -0.02em; font-weight: 400; }
.part-head p:not(.part-label) { color: var(--muted); font-size: var(--text-lg); line-height: 1.5; }
.part + .chapter { margin-top: 2rem; }

.brand-board { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; }
.bb { margin: 0; border-radius: var(--radius); overflow: hidden; min-width: 0; }
.bb-logo { grid-column: span 8; background: #132C47; color: #fff; display: grid; place-items: center; align-content: center; gap: 1.5rem; padding: 4.5rem 2rem; min-height: 22rem; }
.bb-logo img { width: min(62%, 24rem); height: auto; }
.bb-logo figcaption { font-size: var(--text-lg); color: rgba(255, 255, 255, 0.82); letter-spacing: 0.01em; }
.bb-icon { grid-column: span 4; background: #ECE1D2; display: grid; place-items: center; padding: 3rem 2rem; }
.bb-icon img { width: min(58%, 12rem); height: auto; filter: drop-shadow(0 14px 24px rgba(19, 44, 71, 0.28)); }
.bb-colors { grid-column: span 5; display: grid; grid-template-rows: 1.6fr 1fr 1fr; min-height: 18rem; }
.bb-colors div { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; padding: 1rem 1.25rem; font-size: var(--text-sm); }
.bb-colors b { font-weight: 600; }
.bb-colors span { opacity: 0.85; font-variant-numeric: tabular-nums; }
.bb-illo { grid-column: span 7; background: #ffffff; box-shadow: inset 0 0 0 1px var(--line); display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 1rem; padding: 2rem; }
.bb-illo img { width: 100%; height: auto; }

.notes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 2rem; }
.notes h3 { font-size: var(--text-base); margin-bottom: 0.35rem; }
.notes p { color: var(--muted); font-size: 0.95rem; }

.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.pair.process { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.flows { gap: 1rem; }

.features { display: grid; gap: 1rem; margin-top: 1.5rem; }
.feature-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem 3rem; align-items: center; padding: 2.5rem; background: var(--surface); border-radius: var(--radius); }
.feature-text { display: grid; gap: 0.75rem; max-width: 26rem; }
.feature-text h3 { font-size: var(--text-lg); letter-spacing: -0.01em; }
.feature-text p { color: var(--muted); }
.phones { display: flex; justify-content: center; gap: 1.25rem; }
.phone { display: block; width: 100%; height: auto; border-radius: 1.25rem; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 12px 30px rgba(17, 24, 39, 0.10); }
.phones .phone { width: min(46%, 15rem); }

.tokens { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem 1rem; }
.tokens div { display: grid; gap: 0.15rem; min-width: 0; }
.tokens i { display: block; height: 4.5rem; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.08); margin-bottom: 0.5rem; }
.tokens b { font-weight: 500; }
.tokens span { font-size: var(--text-sm); }
.tokens small { color: var(--muted); font-size: 0.8rem; line-height: 1.4; }
.token-note { color: var(--muted); font-size: var(--text-sm); margin-top: -1.25rem; }

.ds-grid { column-count: 3; column-gap: 1rem; }
.ds-card { break-inside: avoid; margin: 0 0 1rem; background: var(--surface); border-radius: var(--radius); padding: 1.25rem; display: grid; gap: 0.9rem; }
.ds-card img { display: block; width: 100%; height: auto; border-radius: 8px; box-shadow: 0 0 0 1px var(--line); background: #fff; }
.ds-stack { display: grid; gap: 0.6rem; }
.ds-stack.two { grid-template-columns: 1fr 1fr; align-items: start; }
.ds-card figcaption { display: grid; gap: 0.1rem; }
.ds-card figcaption b { font-weight: 500; }
.ds-card figcaption span { color: var(--muted); font-size: var(--text-sm); }

.screen-set { display: grid; gap: 1rem; }
.screen-set h3 { font-size: var(--text-base); }
.screen-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 1.25rem; }
.screen-grid figure { margin: 0; display: grid; gap: 0.6rem; }
.screen-grid figcaption { color: var(--muted); font-size: var(--text-sm); }

@media (max-width: 1127px) {
  .ds-grid { column-count: 2; }
  .notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 743px) {
  .part { padding-block: 3rem 1rem; gap: 2rem; }
  .bb-logo, .bb-icon, .bb-colors, .bb-illo { grid-column: 1 / -1; }
  .bb-logo { min-height: 14rem; padding: 3rem 1.5rem; }
  .bb-colors { min-height: 14rem; }
  .bb-illo { padding: 1.25rem; }
  .notes { grid-template-columns: minmax(0, 1fr); }
  .pair, .pair.process { grid-template-columns: minmax(0, 1fr); }
  .feature-row { grid-template-columns: minmax(0, 1fr); padding: 1.5rem; }
  .tokens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-grid { column-count: 1; }
  .screen-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Story blocks for the DDR case studies */
.choices { display: grid; gap: 1rem; }
.choice { display: grid; gap: 0.7rem; padding: 1.25rem 1.4rem; background: var(--surface); border-radius: var(--radius); }
.choice-row { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0.2rem 1rem; align-items: baseline; }
.choice-k { font-size: var(--text-sm); color: var(--muted); }
.choice-row.considered p { color: var(--muted); }
.choice-row.chose .choice-k { color: var(--accent); font-weight: 500; }
.choice-row.chose p { font-weight: 500; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); gap: 0.2rem 1.5rem; padding: 0 0 1.5rem 1.75rem; }
.timeline li::before { content: ""; position: absolute; left: 0.32rem; top: 1.1rem; bottom: -0.35rem; width: 1px; background: var(--line); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 0; top: 0.4rem; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--faint); }
.timeline .when { font-size: var(--text-sm); color: var(--muted); padding-top: 0.1rem; }
.timeline li.decision > div { background: var(--surface); border-radius: 10px; padding: 0.85rem 1rem; }
.timeline li.decision::after { box-shadow: inset 0 0 0 2px var(--accent); }
.timeline li.decision .when { color: var(--accent); font-weight: 500; }
.timeline li.key::after { background: var(--accent); box-shadow: none; }
.timeline li.key p { font-weight: 500; }

.risks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.risk { display: grid; gap: 0.6rem; align-content: start; padding: 1.25rem 1.3rem; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.risk h3 { font-size: var(--text-base); line-height: 1.4; }
.risk p { font-size: 0.95rem; }
.risk .risk-cost { color: var(--muted); font-size: var(--text-sm); padding-top: 0.6rem; border-top: 1px solid var(--line); }

.flow-foot { color: var(--muted); font-size: 0.9rem; }

@media (max-width: 743px) {
  .choice-row { grid-template-columns: minmax(0, 1fr); }
  .timeline li { grid-template-columns: minmax(0, 1fr); }
  .risks { grid-template-columns: minmax(0, 1fr); }
}

/* Flow diagrams */
.flow { margin: 0.75rem 0 0; display: grid; gap: 1.25rem; padding: 1.4rem; background: var(--surface); border-radius: var(--radius); }
.flow figcaption { font-weight: 500; line-height: 1.35; }
.lane { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 0.6rem 1rem; align-items: center; }
.lane-label { font-size: 0.8rem; color: var(--muted); }
.lane-label.strong { color: var(--ink); font-weight: 500; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 1.4rem; }
.steps.cols-3 { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps.cols-4 { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps li { position: relative; background: var(--card); border-radius: 10px; padding: 0.6rem 0.7rem; font-size: 0.85rem; line-height: 1.35; display: grid; gap: 0.1rem; align-content: center; min-height: 3.75rem; box-shadow: 0 0 0 1px var(--line); }
.steps li b { font-weight: 600; }
.steps li small { color: var(--muted); font-size: 0.78rem; }
.steps li.key { box-shadow: 0 0 0 2px var(--accent); }
.steps li.span2 { grid-column: span 2; }
.steps li.start2 { grid-column-start: 2; }
.steps li.branch { box-shadow: 0 0 0 1px var(--faint); background: transparent; }
.steps li:not(:last-child)::after { content: "→"; position: absolute; right: -1.15rem; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: 0.85rem; }

.page-tags { padding-block: 0.5rem 2.5rem; }
.page-tags .tags { gap: 0.45rem; margin-top: 0; }
.page-tags .tags span { font-size: var(--text-sm); padding: 0.5rem 0.7rem; }
.case-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; padding-block: 2.5rem; border-top: 1px solid var(--line); margin-top: 1rem; }
.case-nav a { text-decoration: none; display: grid; gap: 0.2rem; }
.case-nav small { color: var(--muted); font-size: var(--text-sm); }
.case-nav span { font-size: var(--text-lg); letter-spacing: -0.01em; }
.case-nav a:hover span { text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
.case-nav .next { text-align: right; justify-items: end; }
.case-nav + .site-foot { margin-top: 0; }

/* ---------- Narrow ---------- */
@media (max-width: 743px) {
  .block { padding-block: 3.25rem; }
  .work-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .work-grid.more { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .work-grid.more .card { grid-template-columns: 6rem minmax(0, 1fr); }
  .hero { padding-block: 2.25rem 0.5rem; }
  .block { padding-block: 2.25rem 3rem; }
  .feature .tile, .cover .tile { aspect-ratio: 4 / 3; }
  .mock { width: min(84%, 27em); }
  .list li { grid-template-columns: minmax(0, 1fr); }
  .list li span:last-child { text-align: left; font-size: var(--text-sm); }
  .about-hero { grid-template-columns: minmax(0, 1fr); padding-block: 3rem 2rem; }
  .rows { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .meta, .outcomes { grid-template-columns: minmax(0, 1fr); }
  .chapter { grid-template-columns: minmax(0, 1fr); padding-block: 2.25rem; }
  .flow { padding: 1rem; }
  .lane { grid-template-columns: minmax(0, 1fr); }
  .steps, .steps.cols-3, .steps.cols-4 { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); gap: 1.3rem; }
  .steps li.span2, .steps li.start2 { grid-column: auto; }
  .steps li:not(:last-child)::after { content: "↓"; right: auto; left: 0.9rem; top: auto; bottom: -1.25rem; transform: none; }
  .case-nav { grid-template-columns: minmax(0, 1fr); }
  .case-nav .next { text-align: left; justify-items: start; }
}
@media (prefers-reduced-motion: reduce) { .mock { transition: none; } .card:hover .mock { transform: none; } }

/* ---------- Selected work as a list ---------- */
.work-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.work-list a { display: grid; grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 15rem) 1.5rem; gap: 0.3rem 1.5rem; align-items: baseline; padding: 1.6rem 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: color .2s ease; }
.wl-num { color: var(--faint); font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.wl-title { font-size: clamp(1.35rem, 0.95rem + 1.3vw, 2rem); line-height: 1.15; letter-spacing: -0.025em; transition: transform .25s ease, color .2s ease; }
.wl-cat { color: var(--muted); font-size: 0.95rem; }
.wl-arrow { color: var(--ink); text-align: right; opacity: 0; transform: translateX(-6px); transition: opacity .2s ease, transform .2s ease; }
.work-list a:hover .wl-title, .work-list a:focus-visible .wl-title { transform: translateX(6px); }
.work-list a:hover .wl-arrow, .work-list a:focus-visible .wl-arrow { opacity: 1; transform: none; }
.work-list:hover a:not(:hover) .wl-title { color: var(--faint); }

@media (max-width: 743px) {
  .work-list a { grid-template-columns: 1.75rem minmax(0, 1fr); gap: 0.3rem 0.75rem; padding: 1.25rem 0; }
  .wl-cat { grid-column: 2; }
  .wl-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) { .work-list a, .wl-title, .wl-arrow { transition: none; } .work-list a:hover .wl-title { transform: none; } }

/* Light grey band behind Selected work, full width */
#work { background: var(--band); box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax); padding-block: 4rem 4.5rem; margin-top: 3.5rem; }
#work .work-list, #work .work-list a { border-color: #e4e5e8; }
@media (max-width: 743px) { #work { padding-block: 3rem 3.25rem; margin-top: 2.5rem; } }
#work .work-list { border-top: 0; }
#work .work-list li:last-child a { border-bottom: 0; }


/* =====================================================================
   GOV.UK + Apple blend (Nov 24, 2026)
   GOV.UK structure: captions above titles, headings above content, a single
   reading column, summary-list meta, underlined links in body text.
   Apple type and space: semibold display with tight tracking, 17px body,
   21px leads, soft greys, very generous section spacing, rounded imagery.
   Breakpoints 744 / 1128. Content max width 980px; reading column 692px.
   ===================================================================== */
:root {
  --ink: #1d1d1f; --muted: #6e6e73; --faint: #86868b; --line: #d2d2d7;
  --surface: #f5f5f7; --band: #f5f5f7; --accent: #0066cc;
  --radius: 18px;
  --read: 692px;
  --text-sm: 0.875rem; --text-base: 1.0625rem; --text-lg: 1.3125rem; --text-xl: 1.75rem;
  --display: 2.5rem; --h2: 1.75rem; --sec: 64px;
}
@media (min-width: 744px) { :root { --display: 3.5rem; --h2: 2rem; --sec: 88px; } }
@media (min-width: 1128px) { :root { --display: 4rem; --h2: 2.5rem; --sec: 112px; } }

body { font-size: var(--text-base); line-height: 1.47; letter-spacing: -0.01em; color: var(--ink); }
h1, h2, h3 { font-weight: 600; }
.shell { max-width: calc(980px + 80px); padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
@media (min-width: 744px) { .shell { padding-left: 40px; padding-right: 40px; } }
a:focus-visible, button:focus-visible { outline: 3px solid rgba(0, 113, 227, 0.6); outline-offset: 2px; border-radius: 6px; }

/* Header: small, quiet, centred on the content */
.site-head { align-items: center; padding-block: 16px; border-bottom: 1px solid var(--line); }
.id a { font-weight: 600; font-size: var(--text-base); letter-spacing: -0.02em; }
.site-nav { gap: 24px; }
.site-nav a { color: var(--ink); font-size: var(--text-sm); opacity: 0.8; }
.site-nav a:hover, .site-nav a[aria-current="page"] { opacity: 1; color: var(--ink); }

/* Section headings */
.label { font-size: var(--h2); line-height: 1.1; font-weight: 600; letter-spacing: -0.025em; color: var(--ink); margin-bottom: 24px; }
.block { padding-block: var(--sec); }

/* Home hero */
.hero { padding-block: var(--sec) calc(var(--sec) * 0.6); gap: 20px; }
.hero h1 { font-size: var(--display); line-height: 1.07; letter-spacing: -0.035em; font-weight: 600; max-width: 14em; }
.hero p { font-size: var(--text-lg); line-height: 1.38; color: var(--muted); max-width: var(--read); letter-spacing: -0.015em; }

/* Selected work: a list of links, title over category */
#work { margin-top: 0; padding-block: var(--sec); }
#work .work-list, #work .work-list a { border-color: var(--line); }
.work-list a { grid-template-columns: 2.25rem minmax(0, 1fr); gap: 4px 16px; align-items: baseline; padding: 28px 0; }
.wl-num { color: var(--faint); font-size: var(--text-sm); }
.wl-title { grid-column: 2; font-size: 1.5rem; line-height: 1.17; font-weight: 600; letter-spacing: -0.025em; }
@media (min-width: 1128px) { .wl-title { font-size: 1.75rem; } }
.wl-cat { grid-column: 2; color: var(--muted); font-size: var(--text-base); }
.wl-arrow { display: none; }
.work-list a:hover .wl-title { color: var(--accent); transform: none; }
.work-list:hover a:not(:hover) .wl-title { color: var(--ink); }
.wl-title::after { content: " \203A"; color: var(--accent); opacity: 0; transition: opacity .2s ease; }
.work-list a:hover .wl-title::after, .work-list a:focus-visible .wl-title::after { opacity: 1; }
@media (max-width: 743px) { .work-list a { grid-template-columns: 1.75rem minmax(0, 1fr); padding: 22px 0; } .wl-title { font-size: 1.3125rem; } }

/* Contact */
.contact { gap: 12px; max-width: var(--read); }
.contact .label { margin-bottom: 4px; }
.email { font-size: var(--text-xl); font-weight: 600; letter-spacing: -0.025em; }
.btn { background: var(--accent); color: #fff; font-size: var(--text-sm); border-radius: 980px; padding: 8px 16px; font-weight: 400; }
.btn:hover { background: #0077ed; }
.socials a { color: var(--accent); text-decoration: none; }
.socials a:hover { text-decoration: underline; }
.site-foot { color: var(--muted); font-size: 0.75rem; border-top-color: var(--line); }

/* About: stacked, one reading column */
.about-hero { grid-template-columns: minmax(0, 1fr); padding-block: var(--sec) calc(var(--sec) * 0.5); gap: 24px; max-width: var(--read); }
.about-hero h1 { font-size: var(--h2); line-height: 1.1; font-weight: 600; letter-spacing: -0.025em; max-width: none; }
.about-hero .copy { gap: 16px; }
.about-hero .copy a, .chapter-body a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(0, 102, 204, 0.4); }
.rows { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block: 48px; border-top-color: var(--line); max-width: var(--read); }
.rows h2 { font-size: var(--text-xl); font-weight: 600; letter-spacing: -0.02em; }
.rows ul { gap: 20px; }
.rows li { font-weight: 600; }
.rows li span { font-weight: 400; color: var(--muted); }

/* Case pages: caption above the title */
.back { margin-top: 12px; color: var(--accent); font-size: var(--text-sm); }
.back:hover { color: var(--accent); text-decoration: underline; }
.case-hero { padding-block: 40px calc(var(--sec) * 0.7); gap: 20px; }
.case-hero > :not(.cover):not(.outcomes):not(.meta) { max-width: var(--read); }
.case-kicker { font-size: var(--text-lg); line-height: 1.2; color: var(--muted); font-weight: 600; letter-spacing: -0.015em; margin-bottom: -8px; }
.case-hero h1 { font-size: var(--display); line-height: 1.07; letter-spacing: -0.035em; font-weight: 600; }
@media (min-width: 1128px) { .case-hero h1 { font-size: 3.5rem; } }
.case-hero .lead { font-size: var(--text-lg); line-height: 1.38; color: var(--muted); letter-spacing: -0.015em; }
.outcomes { gap: 24px 32px; margin-top: 8px; }
.outcomes div { border-top: 0; padding: 20px; background: var(--surface); border-radius: var(--radius); gap: 4px; }
.outcomes .big { font-size: 2rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
@media (min-width: 1128px) { .outcomes .big { font-size: 2.125rem; } }
.outcomes .text { font-size: 1.3125rem; font-weight: 600; letter-spacing: -0.02em; }
.outcomes .label { font-size: var(--text-sm); color: var(--muted); font-weight: 400; letter-spacing: 0; margin: 0; }
.shot-img { border-radius: var(--radius); box-shadow: none; }

/* Meta as a summary list */
.meta { display: block; margin-top: 32px; border-top: 1px solid var(--line); max-width: var(--read); }
.meta div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 4px 24px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.meta dt { font-weight: 600; color: var(--ink); font-size: var(--text-base); margin: 0; }
.meta dd { font-size: var(--text-base); color: var(--muted); }
@media (max-width: 743px) { .meta div { grid-template-columns: minmax(0, 1fr); } }

/* Chapters stack in one reading column */
.chapter { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-block: calc(var(--sec) * 0.6); border-top-color: var(--line); max-width: var(--read); }
.case-hero + .chapter { margin-top: 0; }
.chapter > h2 { font-size: var(--h2); line-height: 1.1; font-weight: 600; letter-spacing: -0.025em; }
.chapter-body { gap: 16px; max-width: none; }
.part { padding-block: calc(var(--sec) * 0.7) 24px; gap: 40px; border-top-color: var(--line); }
.part-head { max-width: var(--read); gap: 12px; }
.part-head h2 { font-size: var(--h2); line-height: 1.1; font-weight: 600; letter-spacing: -0.025em; }
.part-head p:not(.part-label) { font-size: var(--text-lg); line-height: 1.38; }
.notes h3 { font-size: var(--text-base); font-weight: 600; }
.notes p { font-size: var(--text-sm); line-height: 1.43; }
.feature-text h3 { font-size: 1.3125rem; font-weight: 600; letter-spacing: -0.02em; }
.feature-row, .choice, .flow, .ds-card { border-radius: var(--radius); }
.risk { border-radius: var(--radius); }
.choice-row.chose .choice-k, .timeline li.decision .when { color: var(--accent); }
.tags span { border-radius: 980px; background: var(--surface); color: var(--muted); }
.case-nav { border-top-color: var(--line); padding-block: 40px; }
.case-nav small { color: var(--muted); font-size: var(--text-sm); }
.case-nav span { font-size: var(--text-lg); font-weight: 600; letter-spacing: -0.02em; }
.case-nav a:hover span { color: var(--accent); text-decoration: none; }

/* Framed screenshots and process maps (Nov 29, 2026) */
.frame { margin: 8px 0 0; display: grid; gap: 14px; background: var(--surface); border-radius: var(--radius); padding: clamp(14px, 4vw, 40px); }
.frame img { display: block; width: 100%; height: auto; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 14px 32px -14px rgba(0, 0, 0, 0.22); }
.frame figcaption { color: var(--muted); font-size: var(--text-sm); line-height: 1.43; }
.cover.frame { margin-top: 8px; }
/* Let figures use the full content width; text keeps the reading column */
.chapter { max-width: none; }
.chapter > h2, .chapter-body > :not(.frame):not(.flow):not(.table-wrap):not(.choices):not(.risks) { max-width: var(--read); }
.frame a { display: block; border-radius: 10px; }
.frame a:hover img { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12), 0 18px 40px -14px rgba(0, 0, 0, 0.28); }
.frame.narrow a, .frame.narrow > img { max-width: 600px; width: 100%; justify-self: center; }
.frame.narrow figcaption { text-align: center; }

/* ---------- Selected work as cards (comparison version, Nov 30, 2026) ---------- */
.work-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; }
.wcard { display: grid; gap: 16px; text-decoration: none; color: var(--ink); }
.wcard-img { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06); transition: transform .3s ease, box-shadow .3s ease; }
.wcard-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.wcard-img.screen img { object-position: left top; }
.wcard-text { display: grid; gap: 4px; }
.wcard-title { font-size: 1.3125rem; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
.wcard-title::after { content: " \203A"; color: var(--accent); opacity: 0; transition: opacity .2s ease; }
.wcard-cat { color: var(--muted); font-size: var(--text-base); }
.wcard:hover .wcard-img { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 18px 40px -18px rgba(0, 0, 0, 0.3); transform: translateY(-2px); }
.wcard:hover .wcard-img img { transform: scale(1.02); }
.wcard:hover .wcard-title { color: var(--accent); }
.wcard:hover .wcard-title::after, .wcard:focus-visible .wcard-title::after { opacity: 1; }
@media (min-width: 1128px) { .wcard-title { font-size: 1.5rem; } }
@media (max-width: 743px) { .work-cards { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
@media (prefers-reduced-motion: reduce) { .wcard-img, .wcard-img img { transition: none; } .wcard:hover .wcard-img, .wcard:hover .wcard-img img { transform: none; } }
.wcard-img.screen { background: #e8edf3; padding: 28px 0 0 28px; }
.wcard-img.screen img { border-radius: 10px 0 0 0; object-position: left top; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 10px 30px -12px rgba(16, 24, 40, 0.25); background: #fff; }
.wcard:hover .wcard-img.screen img { transform: translate(-4px, -4px); }
@media (min-width: 1128px) { .wcard-img.screen { padding: 36px 0 0 36px; } }
/* More room between the Selected work heading and the first card */
#work .label { margin-bottom: 44px; }
@media (min-width: 744px) { #work .label { margin-bottom: 52px; } }
