:root {
  --paper: #f1eee5;
  --ink: #1b1a17;
  --mute: #6f6b5a;
  --line: rgba(27, 26, 23, .16);
  --pad: clamp(16px, 2.2vw, 32px);
  --maxw: 1280px;
  --gut: max(var(--pad), calc((100vw - var(--maxw)) / 2));   /* side gutter that caps page content at --maxw */
  --gap: clamp(12px, 1.4vw, 22px);
  --unit: .5rem;
  --ws: .78;
  --iw: clamp(170px, 14vw, 260px);
  --ease: cubic-bezier(.65, 0, .15, 1);
  --out: cubic-bezier(.16, 1, .3, 1);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 300 12px/1.55 var(--mono);
  letter-spacing: .02em;
  text-transform: var(--tt, uppercase);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ol, ul { list-style: none; }

/* paper grain: the only "tactile" move, kept below the threshold of notice */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .1  0 0 0 0 .1  0 0 0 0 .08  0 0 0 .11 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- chrome ---------- */
.bar {
  position: relative; z-index: 5;
  display: grid; grid-template-columns: 1fr auto; align-items: start;
  padding: var(--pad) var(--gut);
}
.bar > :last-child:not(:first-child) { text-align: right; }
.bar a:hover { opacity: .55; }
.bar a { transition: opacity .4s; }
/* the current page is underlined; the case studies live under Portfolio */
.bar a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .5em; }
.kicker .back { transition: opacity .3s ease; }
.kicker .back:hover { opacity: .55; }

.wordmark {
  font: 400 calc(clamp(40px, 4.6vw, 76px) * var(--ss, 1))/.95 var(--serif);
  letter-spacing: -.02em;
  text-transform: none;
  padding: 0 var(--gut);
  margin-top: clamp(12px, 3vh, 36px);
  white-space: nowrap;
  position: relative; z-index: 1;
}
.wordmark .w { display: inline-block; overflow: hidden; padding: .06em .04em .12em 0; margin: -.06em -.04em -.12em 0; vertical-align: top; }
.wordmark .w > span { display: inline-block; animation: up 1.3s var(--out) .1s backwards; }
.wordmark .w:nth-child(2) > span { animation-delay: .22s; }

.intro {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap);
  padding: clamp(10px, 1.2vw, 18px) var(--gut) clamp(24px, 3vw, 44px);
  animation: fade 1.2s ease .6s backwards;
}
.intro .intro-copy { grid-column: 1 / 8; max-width: 46ch; }
.intro .intro-meta { grid-column: 10 / 13; text-align: right; align-self: end; }
.scroll-hint { display: block; color: var(--mute); }
body.field .scroll-hint { display: none; }
.arrows { display: flex; justify-content: flex-end; gap: 8px; }
.arr { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 400 15px/1 var(--mono); display: grid; place-items: center; cursor: pointer; transition: background .3s ease, color .3s ease, opacity .3s ease; }
@media (hover: hover) { .arr:hover:not(:disabled) { background: var(--ink); color: var(--paper); } }
.arr:disabled { opacity: .3; cursor: default; }

/* ---------- stage ---------- */
.stage { position: relative; z-index: 2; }
.canvas { position: relative; }

.item { position: relative; animation: rise 1.1s var(--out) calc(var(--i) * 70ms + 450ms) backwards; transition: opacity .5s ease; }
.card { display: block; position: relative; will-change: transform; }
.media {
  position: relative; width: 100%; aspect-ratio: var(--ar);
  overflow: hidden; container-type: inline-size;
  background: var(--bg); color: var(--fg);
  transform-origin: 0 0;
}
.media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--out); }
.card:hover .media img, .item.on .media img { transform: scale(1.035); }

.ph { position: absolute; inset: 0; transition: transform 1.2s var(--out); }
.card:hover .ph, .item.on .ph { transform: scale(1.035); }
.ph-k { position: absolute; top: 3.2cqw; left: 3.6cqw; font-size: 8px; opacity: .7; }
.ph-n { position: absolute; left: 3.2cqw; bottom: -.12em; font: italic 400 46cqw/1 var(--serif); letter-spacing: -.04em; text-transform: none; opacity: .92; }

[data-tone="olive"]  { --bg: #5f5c33; --fg: #ece8d8; }
[data-tone="cream"]  { --bg: #e5e1d4; --fg: #1b1a17; }
[data-tone="ink"]    { --bg: #1d1c1a; --fg: #ece8d8; }
[data-tone="powder"] { --bg: #bccbd8; --fg: #1b1a17; }
[data-tone="sand"]   { --bg: #d7ccb3; --fg: #1b1a17; }
[data-tone="maroon"] { --bg: #6b2432; --fg: #f1e6dc; }
[data-tone="sage"]   { --bg: #9ba17c; --fg: #1b1a17; }
[data-tone="sun"]    { --bg: #dccb62; --fg: #1b1a17; }
[data-tone="navy"]   { --bg: #12305c; --fg: #ece8d8; }
[data-tone="moss"]   { --bg: #c7d8c3; --fg: #34503a; }
[data-tone="mint"]   { --bg: #d6e9de; --fg: #1b1a17; }
[data-tone="deep"]   { --bg: #172a45; --fg: #ece8d8; }
[data-tone="indigo"] { --bg: #151b3d; --fg: #ece8d8; }
[data-tone="plum"]   { --bg: #3a1033; --fg: #ece8d8; }

.cap { display: grid; gap: 0; margin-top: 8px; font-size: 10px; line-height: 1.45; }
.cap span:first-child { color: var(--mute); }
.cap em { display: block; font-style: normal; color: var(--mute); }

body[data-active] .item { opacity: .28; }
body[data-active] .item.on { opacity: 1; }

/* ---------- mode: index ---------- */
body.index .stage { padding: 0; }
body.index .canvas {
  display: flex; gap: var(--gap); align-items: flex-start;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scroll-padding: 0 var(--pad);
  padding: 32px var(--pad) 16px; margin: -32px 0 -16px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  cursor: grab;
}
@media (hover: hover) and (pointer: fine) { body.index .canvas { scroll-snap-type: none; } }
body.index .canvas.is-dragging { cursor: grabbing; scroll-snap-type: none; }
body.index .canvas::-webkit-scrollbar { display: none; }
/* when every card fits on screen, centre the strip instead of leaving it hugging the left */
body.index .canvas.fits { justify-content: center; }
body.index .canvas.fits::after { display: none; }
/* no trailing spacer: the last card stops flush with the right edge, mirroring the first on the left */
body.index .canvas::after { display: none; }
body.index .item { flex: 0 0 var(--iw); scroll-snap-align: start; margin-top: calc(var(--dy) * var(--unit)); }

.list-head, .list a { display: grid; grid-template-columns: 5ch 1.3fr 1fr 1fr 6ch; gap: var(--gap); align-items: center; }
.list-head { position: relative; z-index: 2; margin: clamp(28px, 4vw, 56px) var(--gut) 0; padding-bottom: 10px; color: var(--mute); }
.list-head span:last-child { text-align: right; }
.list { position: relative; z-index: 2; margin: 0 var(--gut); }
.list li { transition: opacity .4s ease; }
.list a {
  padding: 14px 0;
  transition: padding .6s var(--out);
}
/* the table builds in as it scrolls into view: rules draw, then rows rise */
.list li { position: relative; }
.list li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line); transform-origin: 0 50%; }
.list-head, .list li { opacity: 0; }
.list-head.in, .list li.in { opacity: 1; animation: row-in 1s var(--out) var(--d, 0ms) backwards; }
.list li:last-child::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: var(--line); transform-origin: 0 50%; }
.list li.in::before, .list li.in:last-child::after { animation: draw 1.2s var(--out) var(--d, 0ms) backwards; }
@keyframes row-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes draw { from { transform: scaleX(0); } }
.list .t { font: 400 calc(clamp(20px, 2.2vw, 32px) * var(--ss, 1))/1.1 var(--serif); text-transform: none; letter-spacing: -.01em; transition: font-style .1s; }
.list .k, .list .c { color: var(--mute); }
.list .k { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { --tg: #e7e4d8; font-style: normal; padding: 5px 11px 4px; border-radius: 99px; background: var(--tg); color: #3b3a33; font-size: 11px; line-height: 1.2; white-space: nowrap; }
.tag[data-tag="product-design"] { --tg: #cfe0bb; color: #2c4a2f; }
.tag[data-tag="data-viz"] { --tg: #d6e4f1; color: #2e4c68; }
.tag[data-tag="ai"] { --tg: #ece6cf; color: #5a5230; }
.tag[data-tag="dashboard"] { --tg: #f4dcc0; color: #6a4420; }
.tag[data-tag="animation"] { --tg: #e3dcf3; color: #4a3d78; }
.tag[data-tag="illustration"] { --tg: #e3ecd0; color: #3f4f2c; }
.tag[data-tag="motion"] { --tg: #f2d8d1; color: #6e3a30; }
.list .c { color: var(--ink); }
.list .y { text-align: right; }
.list .b { display: none; }
.list li.on a { padding-left: 14px; }
.list li.on .t { font-style: italic; }
body[data-active] .list li:not(.on) { opacity: .35; }

main { padding-bottom: calc(clamp(64px, 9vw, 140px) + env(safe-area-inset-bottom)); }
.hello { font: 400 calc(clamp(44px, 8vw, 120px) * var(--ss, 1))/1 var(--serif); letter-spacing: -.03em; text-transform: none; transition: letter-spacing .8s var(--out); }
.hello:hover { letter-spacing: -.01em; }

/* ---------- mode: field ---------- */
body.field { overflow: hidden; height: 100dvh; }
body.field .bar { position: fixed; top: 0; left: 0; right: 0; padding: var(--pad); }
body.field .wordmark { padding: 0 var(--pad); position: fixed; left: 0; bottom: calc(clamp(24px, 3vw, 40px) + env(safe-area-inset-bottom)); margin: 0; z-index: 1; pointer-events: none; }
body.field .bar { color: #fff; mix-blend-mode: difference; }
body.field .bar span:nth-child(2) { color: inherit; opacity: .7; }
body.field .intro, body.field .list-head, body.field .list { display: none; }
body.field .stage { position: fixed; inset: 0; z-index: 2; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
body.field .canvas { position: absolute; left: 0; top: 0; width: var(--cw); height: var(--ch); will-change: transform; }
body.field .item { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: calc(var(--w) * var(--ws) * 1%); }
body.field .card { cursor: none; }

/* ---------- focus ---------- */
a:focus-visible, button:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

/* ---------- cursor ---------- */
.cursor { display: none; position: fixed; left: 0; top: 0; z-index: 80; pointer-events: none; }
.cursor i {
  display: grid; place-items: center; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px;
  border-radius: 50%; background: #fff; mix-blend-mode: difference;
  transition: width .5s var(--out), height .5s var(--out), margin .5s var(--out), background .3s;
}
.cursor b { font-weight: 300; font-size: 10px; opacity: 0; transition: opacity .25s; color: var(--ink); }
.cursor.is-hover i { width: 76px; height: 76px; margin: -38px 0 0 -38px; background: var(--paper); mix-blend-mode: normal; box-shadow: 0 0 0 1px var(--line); }
.cursor.is-hover b { opacity: 1; transition-delay: .12s; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; }
  body, a, button { cursor: none; }
}

/* ---------- keyframes ---------- */
@keyframes up { from { transform: translateY(105%); } }
@keyframes rise { from { opacity: 0; transform: translateY(36px); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- mobile ---------- */
@media (max-width: 700px) {
  :root { --unit: .3rem; --ws: 1.3; }
  :root { --iw: 31vw; }
  .intro .intro-copy { grid-column: 1 / 8; }
  .intro .intro-meta { grid-column: 8 / 13; }
  /* visuals sit inside the table: image on top, then a two-line caption row */
  body.stacked .stage { display: none; }
  body.stacked .intro-meta { display: none; }
  body.stacked .intro .intro-copy { grid-column: 1 / -1; }
  body.stacked .list-head { display: none; }
  body.stacked .list { margin-top: clamp(24px, 6vw, 40px); }
  /* two-column rows: specimen on the left, text on the right */
  .list li { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); gap: 0 clamp(12px, 4vw, 20px); align-items: stretch; padding: 14px 0; }
  .list li .item { position: relative; display: block; width: 100%; flex: none; animation: none; margin: 0; opacity: 1; align-self: start; }
  .list li .item .cap { display: none; }
  .list li .item .card { display: block; padding: 0; width: 100%; transform: none !important; }
  .list li .item .media { width: 100%; }
  .list li > a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "n c y" "t t t" "b b b" "k k k"; gap: 0 8px; padding: 0; align-items: start; align-content: start; min-width: 0; }
  .list li > a > span:nth-child(1) { grid-area: n; color: var(--mute); font-size: 10px; }
  .list .c { grid-area: c; font-size: 10px; color: var(--mute); text-align: center; line-height: 1.3; }
  .list .y { grid-area: y; color: var(--mute); font-size: 10px; }
  .list .t { grid-area: t; font-size: calc(clamp(20px, 5.6vw, 24px) * var(--ss, 1)); margin-top: 12px; }
  .list .k { grid-area: k; display: flex; gap: 4px; margin-top: 14px; align-self: end; }
  .list .tag { padding: 4px 8px 3px; font-size: 9px; }
  .list .b { grid-area: b; display: block; padding-top: 14px; font: 400 12px/1.4 var(--mono); text-transform: none; letter-spacing: 0; color: var(--ink); }
  .list .b i { font-style: normal; white-space: nowrap; }
  .list li > a { grid-template-rows: auto auto auto 1fr; }
  .list li.on > a { padding-left: 0; }
  body[data-active] .list li:not(.on) { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* =====================================================================
   Case study page
   ===================================================================== */
.case .bar a:hover { opacity: .55; }
.case .bar { position: relative; z-index: 6; }
.case .bar a, .case .bar span { transition: opacity .4s; }
.case.leaving main { opacity: 0; transform: translateY(-12px); transition: opacity .38s ease, transform .38s ease; }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 90; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s ease var(--d, 0ms), transform 1.1s var(--out) var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* hero */
.hero { padding: clamp(36px, 9vh, 110px) var(--gut) 0; }
.kicker { color: var(--mute); }
.title { font: 400 calc(clamp(52px, 9vw, 168px) * var(--ss, 1))/.92 var(--serif); letter-spacing: -.035em; text-transform: none; margin-top: clamp(14px, 2vw, 28px); }
.title .line { display: block; overflow: hidden; padding: .06em .04em .14em 0; margin: -.06em 0 -.14em; }
.title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.3s var(--out) .1s; }
.ready .title .line > span { transform: none; }
.dek { font: 400 calc(clamp(22px, 2.5vw, 38px) * var(--ss, 1))/1.15 var(--serif); letter-spacing: -.01em; text-transform: none; max-width: 75%; margin-top: clamp(14px, 1.6vw, 24px); }
@media (max-width: 700px) { .dek, .dek[style] { max-width: none !important; } }

.meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin-top: clamp(36px, 5vw, 72px); border-top: 1px solid var(--line); padding-top: 14px; }
.meta-5 { grid-template-columns: repeat(5, 1fr); }
.meta dt { color: var(--mute); }
.meta dd { margin-top: 2px; }
.hero .fig { margin-top: clamp(32px, 4vw, 56px); }

/* sections */
.sec { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); padding: clamp(64px, 10vw, 150px) var(--gut) 0; }
/* the label box stretches to the text's height; the words stick inside it, so they stop where the text stops and never slide under a picture */
.sec-label { grid-column: 1 / 4; align-self: stretch; display: grid; grid-template-columns: auto 1fr; column-gap: 1.2em; align-items: start; padding-top: .55em; }
.sec-label > span { position: sticky; top: 24px; }
.sec-label span:first-child { color: var(--mute); }
.sec-body { grid-column: 4 / 11; }
.sec > .wide { grid-column: 1 / -1; margin-top: clamp(36px, 5vw, 80px); }
.sec > .sec-body ~ .wide:first-of-type { margin-top: clamp(36px, 5vw, 80px); }
.sec > .wide + .wide { margin-top: var(--gap); }

.prose { font-family: var(--serif); text-transform: none; letter-spacing: 0; }
.prose p { font: 400 calc(clamp(19px, 1.55vw, 24px) * var(--ss, 1))/1.42 var(--serif); max-width: 36em; color: color-mix(in srgb, var(--ink) 82%, var(--paper)); }
.prose p + p, .prose p + ol, .prose p + ul { margin-top: 1.1em; }
.prose p.lead { font-size: clamp(28px, 3.3vw, 52px); line-height: 1.08; letter-spacing: -.02em; color: var(--ink); max-width: 20em; }
.prose p.lead + p { margin-top: clamp(24px, 2.4vw, 40px); }

.principles, .issues { margin-top: clamp(24px, 2.6vw, 40px); border-bottom: 1px solid var(--line); }
.principles li, .issues li { display: grid; grid-template-columns: 5ch 1fr; gap: var(--gap); align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); font: 400 calc(clamp(22px, 2.4vw, 36px) * var(--ss, 1))/1.1 var(--serif); letter-spacing: -.01em; }
.issues li { font-size: clamp(19px, 1.8vw, 28px); }
.principles li > span:first-child, .issues li > span:first-child { font: 300 12px/1 var(--mono); letter-spacing: .02em; text-transform: var(--tt, uppercase); color: var(--mute); }

/* figures */
.fig { position: relative; }
.fig .media { overflow: hidden; }
.fig .media > .ph { position: absolute; inset: 0; }
.fig.round .media { border-radius: clamp(12px, 1.5vw, 22px); }
.fig.round .media > video { transform: scale(1.012); }          /* a hair of overscan so the rounded edge sits clear of any dark frame corners */
.fig .media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.fig .media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: translate3d(0, calc(var(--p, 0) * -3%), 0) scale(1.07); transition: none; will-change: transform; }
.fig .ph-t { position: absolute; left: 3.6cqw; top: 50%; translate: 0 -50%; font: italic 400 calc(clamp(22px, 5.2cqw, 72px) * var(--ss, 1))/1.05 var(--serif); letter-spacing: -.02em; text-transform: none; max-width: 14em; opacity: .9; }
.fig .ph-k { font-size: 10px; }
.fig .tag { position: absolute; z-index: 2; top: 12px; right: 12px; padding: 5px 10px; border-radius: 999px; background: color-mix(in srgb, var(--paper) 86%, transparent); color: var(--ink); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 10px; }
.fig figcaption { display: flex; gap: 1em; margin-top: 10px; font-size: 11px; color: var(--ink); }
.fig figcaption span { color: var(--mute); }

.pair { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: clamp(36px, 5vw, 80px); }
.pair .fig:nth-child(even) { margin-top: clamp(0px, 4vw, 56px); }
/* staggered trio: the right image runs alongside the left pair, so the third sits snug under the first */
.pair.stagger > .fig:nth-child(1) { grid-column: 1; grid-row: 1; }
.pair.stagger > .fig:nth-child(2) { grid-column: 2; grid-row: 1 / span 2; }
.pair.stagger > .fig:nth-child(3) { grid-column: 1; grid-row: 2; margin-top: clamp(4px, 1vw, 14px); align-self: start; }

/* results */
.results { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: clamp(36px, 5vw, 80px); }
.result { display: grid; align-content: space-between; gap: 40px; min-height: clamp(200px, 22vw, 320px); padding: 14px 16px 16px; border: 1px solid var(--line); }
.r-k { color: var(--mute); }
.r-v { font: italic 400 calc(clamp(64px, 9vw, 150px) * var(--ss, 1))/.9 var(--serif); letter-spacing: -.04em; text-transform: none; }
.r-v i { font-style: italic; opacity: .35; }
.r-v .arr { font: 300 .34em/1 var(--mono); vertical-align: .9em; margin-right: .15em; }
.r-n { color: var(--mute); max-width: 26ch; }
.todo { justify-self: start; padding: 4px 10px; border-radius: 999px; background: #dccb62; color: var(--ink); font-size: 10px; }

/* who covid extras */
.trio { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: clamp(36px, 5vw, 80px); }
.visit { padding: 18px var(--gut) 0; }
.visit a { border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.fig .media > img { object-fit: cover; }
.fig[data-tone="cream"] .media > img { object-fit: contain; transform: none; }
.hero .fig .media > img, .fig[data-tone="ink"] .media > img { transform: none; }

.brand { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--gap); margin-top: clamp(36px, 5vw, 80px); border-top: 1px solid var(--line); padding-top: 14px; }
.b-k { display: block; color: var(--mute); margin-bottom: 14px; }
.b-face { display: block; font: 600 clamp(40px, 5.4vw, 88px)/1 "Noto Sans", sans-serif; letter-spacing: -.02em; text-transform: none; }
.b-alpha { display: block; margin-top: 14px; max-width: 34em; font: 400 clamp(13px, 1.2vw, 17px)/1.5 "Noto Sans", sans-serif; letter-spacing: 0; text-transform: none; color: var(--mute); }
.brand-pal ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.brand-pal li { display: grid; gap: 8px; }
.brand-pal i { display: block; aspect-ratio: 4/3; border-radius: 14px; background: var(--c); transition: transform .8s var(--out); }
.brand-pal li:hover i { transform: translateY(-4px) scale(1.02); }
@media (max-width: 900px) { .brand { grid-template-columns: 1fr; gap: 36px; } .trio { grid-template-columns: 1fr; } }

/* pager */
.pager { padding: clamp(80px, 12vw, 180px) var(--gut) 0; }
.next { display: grid; gap: 10px; padding: clamp(24px, 3vw, 44px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.next-k { color: var(--mute); }
.next-t { font: 400 calc(clamp(40px, 7vw, 120px) * var(--ss, 1))/1 var(--serif); letter-spacing: -.03em; text-transform: none; transition: letter-spacing .9s var(--out), font-style .1s; }
.next:hover .next-t { letter-spacing: -.005em; font-style: italic; }

@media (max-width: 900px) {
  .meta { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .sec-label { grid-column: 1 / -1; display: flex; gap: 1.2em; padding: 0 0 18px; }
  .sec-label > span { position: static; }
  .sec-body { grid-column: 1 / -1; }
  .results { grid-template-columns: 1fr; }
  .result { min-height: 0; gap: 18px; }
}
@media (max-width: 600px) {
  .pair { grid-template-columns: 1fr; }
  .pair .fig:nth-child(even) { margin-top: 0; }
  .pair.stagger > .fig:nth-child(n) { grid-column: auto; grid-row: auto; }
  .pair.stagger > .fig:nth-child(3) { margin-top: 0; }
  .principles li, .issues li { grid-template-columns: 4ch 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .title .line > span { transform: none; }
}

/* embeds + about */
.fig .media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.about-hero { padding: clamp(36px, 9vh, 110px) var(--gut) 0; }
.about-lead { font: 400 calc(clamp(32px, 5.2vw, 92px) * var(--ss, 1))/1.02 var(--serif); letter-spacing: -.03em; text-transform: none; max-width: 16em; margin-top: clamp(14px, 2vw, 28px); }
.about-lead em { font-style: italic; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.facts dt { color: var(--mute); }
.facts dd { margin: 2px 0 20px; }
.rows { margin-top: 0; border-bottom: 1px solid var(--line); }
.rows li { display: grid; grid-template-columns: 1fr 1.4fr 12ch; gap: var(--gap); align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); }
.rows .r-t { font: 400 calc(clamp(20px, 2vw, 30px) * var(--ss, 1))/1.1 var(--serif); letter-spacing: -.01em; text-transform: none; }
.rows .r-m { color: var(--mute); }
.rows .r-y { text-align: right; }
.clients { display: flex; flex-wrap: wrap; gap: 8px 22px; font: 400 calc(clamp(24px, 3vw, 44px) * var(--ss, 1))/1.1 var(--serif); letter-spacing: -.02em; text-transform: none; }
.clients li:not(:last-child)::after { content: "·"; margin-left: 22px; color: var(--mute); }
.work-list a { display: grid; grid-template-columns: 5ch 1fr 1fr 6ch; gap: var(--gap); align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); transition: padding .6s var(--out); }
.work-list a:hover { padding-left: 14px; }
.work-list a:hover .r-t { font-style: italic; }
.work-list { border-bottom: 1px solid var(--line); }
@media (max-width: 700px) { .rows li { grid-template-columns: 1fr 12ch; } .rows .r-m { grid-column: 1 / -1; order: 3; } .facts { grid-template-columns: 1fr; } .work-list a { grid-template-columns: 4ch 1fr 5ch; } .work-list .r-m { display: none; } }
.visit-link { border-bottom: 1px solid var(--ink); }

.card:hover .media img, .item.on .media img { transform: scale(1.09); }
.media img { transition-duration: 2.2s; }

/* quotes */
.quote { grid-column: 1 / -1; margin-top: clamp(36px, 5vw, 80px); max-width: 26em; justify-self: start; }
.sec .quote + .quote { margin-top: clamp(28px, 3vw, 48px); }
.quote blockquote { font: italic 400 calc(clamp(28px, 3.6vw, 60px) * var(--ss, 1))/1.06 var(--serif); letter-spacing: -.025em; text-transform: none; }
.quote figcaption { margin-top: 14px; color: var(--mute); }
.mute { color: var(--mute); }
.prose strong { font-weight: 400; color: var(--ink); }
.prose p strong { font-style: italic; }
@media (min-width: 901px) { .quote { grid-column: 4 / 12; } }
.principles .li-t strong, .issues .li-t strong { font-style: italic; font-weight: 400; }
.principles li:has(.li-t strong) { font-size: clamp(18px, 1.7vw, 26px); line-height: 1.2; }
.principles .li-t, .issues .li-t { font: inherit; letter-spacing: inherit; text-transform: none; color: var(--ink); }
.principles .li-t strong { font-style: normal; }
.principles .li-t strong::after { content: " "; }
.sec > .principles { grid-column: 4 / 11; margin-top: 0; }
@media (max-width: 900px) { .sec > .principles { grid-column: 1 / -1; } }
.case .title { font-size: clamp(40px, 6.4vw, 118px); line-height: .98; max-width: 14em; }
.case .title .line > span { display: inline; }

@media (prefers-reduced-motion: reduce) { .list-head.in, .list li.in, .list li.in::before, .list li.in::after { animation: none; } }

/* video player: a small floating control bar, shown on hover or when paused */
.vp { position: absolute; z-index: 3; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: 999px; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--ink); opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .5s var(--out); }
.fig:hover .vp, .vp.paused, .vp:focus-within { opacity: 1; transform: none; }
/* touch: nothing covers the picture until it is tapped */
@media (hover: none) {
  .vp { pointer-events: none; }
  .vp.show, .vp.paused { opacity: 1; transform: none; pointer-events: auto; }
  .fig:hover .vp { opacity: 0; transform: translateY(6px); }
  .fig:hover .vp.show, .fig:hover .vp.paused { opacity: 1; transform: none; }
  .vp-b { width: 42px; height: 42px; }
  .vp-t { height: 34px; }
  .vp .vp-fs { display: none; }
}
@media (hover: none) and (max-width: 520px) { .vp { left: 10px; right: 10px; bottom: 10px; gap: 8px; } .vp-n { display: none; } }
.vp-fs { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); cursor: pointer; }
.vp-fs svg, .vp-fs-lone svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .vp-fs:hover { background: color-mix(in srgb, var(--ink) 9%, transparent); } }
/* the lone full-screen button: touch only, always there, small and out of the way */
.vp-fs-lone { display: none; }
@media (hover: none) {
  .vp-fs-lone { display: grid; place-items: center; position: absolute; z-index: 3; right: 10px; top: 10px; width: 38px; height: 38px; border-radius: 50%; background: color-mix(in srgb, var(--paper) 78%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--ink); cursor: pointer; }
}
/* in full screen the whole frame shows, uncropped */
video:fullscreen { object-fit: contain !important; transform: none !important; background: #000; }
video:-webkit-full-screen { object-fit: contain !important; transform: none !important; background: #000; }
.vp-b { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; cursor: pointer; }
.vp-b svg { width: 14px; height: 14px; fill: currentColor; }
.vp-b .i-play { display: none; margin-left: 2px; }
.vp.paused .vp-b .i-play { display: block; } .vp.paused .vp-b .i-pause { display: none; }
.vp-t { position: relative; flex: 1; height: 18px; cursor: pointer; touch-action: none; }
.vp-t::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 18%, transparent); }
.vp-t i { position: absolute; left: 0; top: 50%; height: 3px; width: 0; margin-top: -1.5px; border-radius: 2px; background: var(--ink); }
.vp-n { flex: none; font: 300 11px/1 var(--mono); letter-spacing: .02em; min-width: 9.5ch; text-align: right; font-variant-numeric: tabular-nums; }

/* two-user profiles: hairline columns, a big serif name, then Goals and Frustrations as ruled rows */
.personas { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.persona { border-top: 1px solid var(--ink); padding-top: 14px; }
.persona header { display: grid; grid-template-columns: 5ch 1fr; column-gap: var(--gap); align-items: baseline; padding-bottom: clamp(24px, 3vw, 44px); }
.persona .p-k { font: 300 12px/1 var(--mono); letter-spacing: .02em; text-transform: var(--tt, uppercase); color: var(--mute); }
.persona .p-n { font: 400 calc(clamp(30px, 3.6vw, 56px) * var(--ss, 1))/1 var(--serif); letter-spacing: -.02em; text-transform: none; }
.persona .p-d { grid-column: 2; margin-top: 10px; font: 300 12px/1.4 var(--mono); letter-spacing: .02em; text-transform: var(--tt, uppercase); color: var(--mute); }
.persona dl { border-bottom: 1px solid var(--line); }
.persona dl > div { display: grid; grid-template-columns: 11ch 1fr; gap: var(--gap); align-items: baseline; padding: 16px 0 18px; border-top: 1px solid var(--line); }
.persona dt { font: 300 12px/1.4 var(--mono); letter-spacing: .02em; text-transform: var(--tt, uppercase); color: var(--mute); }
.persona dd { font: 400 calc(clamp(19px, 1.6vw, 24px) * var(--ss, 1))/1.25 var(--serif); letter-spacing: -.005em; text-transform: none; }
@media (max-width: 900px) {
  .personas { grid-template-columns: 1fr; gap: clamp(36px, 8vw, 56px); }
  .persona dl > div { grid-template-columns: 1fr; gap: 8px; }
}

/* in-text links on case pages */
.prose p a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .16em; transition: opacity .3s ease; }
.prose p a:hover { opacity: .55; }

/* website note: framed by hairlines, picture in the label column, words in the text column */
.site-note { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: start; margin-top: clamp(40px, 5vw, 80px); padding: clamp(18px, 2vw, 28px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sn-shot { grid-column: 1 / 4; display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #5b2fff; }
.sn-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 0 0; transition: transform 1.2s var(--out); }
.sn-shot:hover img { transform: scale(1.04); }
.sn-copy { grid-column: 4 / -1; align-self: center; font: 400 calc(clamp(24px, 2.6vw, 40px) * var(--ss, 1))/1.12 var(--serif); letter-spacing: -.015em; text-transform: none; text-wrap: balance; }
.sn-copy a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .14em; transition: opacity .3s ease; }
.sn-copy a:hover { opacity: .55; }
@media (max-width: 900px) {
  .site-note { grid-template-columns: 1fr; row-gap: 20px; }
  .sn-shot, .sn-copy { grid-column: 1 / -1; }
  .sn-shot { aspect-ratio: 16 / 10; }
}

/* a short summary under the hero image */
.summary { max-width: 46em; margin: clamp(28px, 3.4vw, 52px) 0 clamp(36px, 4.4vw, 68px); font: 400 calc(clamp(19px, 1.7vw, 26px) * var(--ss, 1))/1.35 var(--serif); letter-spacing: -.005em; text-transform: none; color: color-mix(in srgb, var(--ink) 85%, var(--paper)); }

/* one caption per before/after pair */
.pair-cap { grid-column: 1 / -1; margin: 10px 0 0; font-size: 11px; color: var(--ink); }
.pair + .pair-cap + .pair { margin-top: clamp(28px, 3.4vw, 52px); }

/* no single-word last lines: balance the big leads and titles, tidy the body copy */
.prose p.lead, .about-lead, .dek, .next-t, .sn-copy { text-wrap: balance; }
.prose p, .prose li, .summary, .fig figcaption, .pair-cap { text-wrap: pretty; }

/* pair caption tucks up under the "Before" image (the "After" sits lower), kept to its column */
.pair-cap { margin-top: calc(10px - clamp(0px, 4vw, 56px)); max-width: calc((100% - var(--gap)) / 2); }
@media (max-width: 600px) { .pair-cap { margin-top: 10px; max-width: none; } }

/* ---------- theme lab (temporary) ---------- */
.theme-lab { position: fixed; right: var(--pad); bottom: calc(var(--pad) + env(safe-area-inset-bottom)); z-index: 80; display: flex; flex-wrap: wrap; gap: 8px 10px; padding: 8px 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; font: 400 11px/1 var(--mono); text-transform: none; letter-spacing: 0; cursor: auto; }
.theme-lab * { cursor: pointer; }
.theme-lab label { display: flex; align-items: center; gap: 6px; color: var(--mute); }
.theme-lab select { font: inherit; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; max-width: 130px; }
@media (max-width: 700px) { .theme-lab { left: var(--pad); right: var(--pad); } .theme-lab label { flex: 1 1 40%; justify-content: space-between; } .theme-lab select { max-width: 30vw; } }

/* UI-style quote callout: a soft card in the product's own sage */
.callout { grid-column: 4 / 11; margin-top: 0; padding: clamp(22px, 2.8vw, 40px); border-radius: clamp(10px, 1.2vw, 16px); background: var(--bg); color: var(--fg); text-transform: none; letter-spacing: 0; }
.callout blockquote { margin: 0; }
.callout-mark { display: block; font: 400 calc(clamp(34px, 3.4vw, 52px) * var(--ss, 1))/.6 var(--serif); height: .5em; margin-bottom: clamp(10px, 1.4vw, 20px); }
.callout p { font: 400 calc(clamp(24px, 2.8vw, 42px) * var(--ss, 1))/1.12 var(--serif); letter-spacing: -.015em; text-wrap: balance; }
.callout figcaption { display: grid; gap: 2px; margin-top: clamp(18px, 2.2vw, 30px); font: 400 12px/1.4 var(--mono); text-transform: none; letter-spacing: 0; }
.callout figcaption span:last-child { opacity: .75; }
@media (max-width: 900px) { .callout { grid-column: 1 / -1; } }
.callout + .sec-body { margin-top: 0; }

/* design approach card: same sage as the quote callout, rows split by hairlines */
.approach { grid-column: 4 / 11; margin-top: clamp(28px, 3.4vw, 52px); padding: clamp(22px, 2.8vw, 40px); border-radius: clamp(10px, 1.2vw, 16px); background: var(--bg); color: var(--fg); text-transform: none; letter-spacing: 0; }
.approach h3 { font: 400 calc(clamp(22px, 2.2vw, 32px) * var(--ss, 1))/1.1 var(--serif); letter-spacing: -.01em; margin-bottom: clamp(18px, 2.4vw, 32px); }
.approach li { font: 400 calc(clamp(20px, 2vw, 28px) * var(--ss, 1))/1.2 var(--serif); letter-spacing: -.01em; padding: clamp(12px, 1.4vw, 18px) 0; border-top: 1px solid color-mix(in srgb, var(--fg) 28%, transparent); }
@media (max-width: 900px) { .approach { grid-column: 1 / -1; } }

.issues li a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; text-decoration-color: var(--mute); }
.issues li a:hover { text-decoration-color: var(--ink); }

/* about: portrait sits under the section label, beside the text */
.sec:has(> .about-photo) > .sec-body { grid-row: 1 / span 2; }
.about-photo { grid-column: 1 / 4; grid-row: 2; align-self: start; margin: clamp(20px, 2.4vw, 36px) 0 0; max-width: 320px; }
.about-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
@media (max-width: 900px) {
  .sec:has(> .about-photo) > .sec-body { grid-row: auto; }
  .about-photo { grid-column: 1 / -1; grid-row: auto; order: 1; max-width: 260px; margin: 0 0 32px; }
  .sec:has(> .about-photo) > .sec-body { order: 2; }
}

/* about: contact rows. Email copies, the rest link out; all share one hover fill */
.contact { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-left: -14px; }
.contact-row { appearance: none; display: inline-flex; align-items: center; gap: .7em; margin: 0; padding: .35em 14px; border: 0; border-radius: 0; background: transparent; color: var(--ink); font: 400 calc(clamp(19px, 1.55vw, 24px) * var(--ss, 1))/1.3 var(--serif); letter-spacing: 0; text-transform: none; text-decoration: none; cursor: pointer; transition: background .25s ease; }
@media (hover: hover) { .contact-row:hover { background: color-mix(in srgb, var(--ink) 9%, var(--paper)); } }
.contact-row:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; background: color-mix(in srgb, var(--ink) 9%, var(--paper)); }
.contact-row .ico { width: .85em; height: .85em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; color: var(--mute); }
.contact-row .ico-check { display: none; color: var(--ink); }
.contact-row.done .ico-copy { display: none; }
.contact-row.done .ico-check { display: block; }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 50; transform: translate(-50%, 12px); padding: 11px 18px; background: var(--ink); color: var(--paper); font: 300 12px/1 var(--mono); letter-spacing: .02em; text-transform: var(--tt, uppercase); opacity: 0; pointer-events: none; transition: opacity .3s ease, transform .4s cubic-bezier(.16, 1, .3, 1); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .toast { transition: opacity .2s ease; transform: translate(-50%, 0); } }

/* site footer */
.site-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; margin: clamp(96px, 12vw, 180px) var(--gut) 0; padding: 14px 0 calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.site-foot .foot-home { margin-left: -12px; }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.site-foot .foot-links { margin-right: -12px; }
.foot-link { appearance: none; display: inline-flex; align-items: center; gap: .7em; margin: 0; padding: .7em 12px; border: 0; border-radius: 0; background: transparent; color: var(--ink); font: 300 12px/1.2 var(--mono); letter-spacing: .02em; text-transform: var(--tt, uppercase); text-decoration: none; cursor: pointer; transition: background .25s ease; }
.foot-link .foot-email { text-transform: none; }
@media (hover: hover) { .foot-link:hover { background: color-mix(in srgb, var(--ink) 9%, var(--paper)); } }
.foot-link:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; background: color-mix(in srgb, var(--ink) 9%, var(--paper)); }
.foot-link .ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; color: var(--mute); }
.foot-link .ico-check { display: none; color: var(--ink); }
.foot-link.done .ico-copy { display: none; }
.foot-link.done .ico-check { display: block; }
@media (max-width: 700px) { .site-foot { flex-direction: column; align-items: flex-start; } .site-foot .foot-links { flex-direction: column; align-items: flex-start; gap: 0; margin-right: 0; } }

/* hierarchy: with the muted grey darker, the primary text carries a heavier weight instead of a darker colour */
.cap span:last-child { font-weight: 500; }
.cap em { font-weight: 300; }
.sec-label span:last-child { font-weight: 400; }
.fig figcaption { font-weight: 400; }
.fig figcaption span { font-weight: 300; }
.meta dd { font-weight: 500; }

/* image viewer */
.fig .media > img.zoomable { cursor: zoom-in; }
.lb-lock, .lb-lock body { overflow: hidden; overscroll-behavior: none; }
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(14, 12, 11, .95); opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility 0s linear .28s; }
.lb.open { opacity: 1; visibility: visible; transition: opacity .28s ease; }
.lb-stage { position: absolute; inset: 0; touch-action: none; cursor: zoom-in; overflow: hidden; }
.lb.zoomed .lb-stage { cursor: grab; }
.lb-img { position: absolute; left: 12px; right: 12px; top: 64px; bottom: 64px; width: calc(100% - 24px); height: calc(100% - 128px); object-fit: contain; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; will-change: transform; transform-origin: 50% 50%; }
.lb-x { position: absolute; z-index: 2; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: #f3f1ec; cursor: pointer; transition: background .25s ease; }
.lb-x svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
@media (hover: hover) { .lb-x:hover { background: rgba(255, 255, 255, .22); } }
.lb-cap { position: absolute; z-index: 2; left: 16px; right: 72px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); margin: 0; color: rgba(243, 241, 236, .78); font: 300 11px/1.45 var(--mono); letter-spacing: .02em; text-transform: var(--tt, uppercase); pointer-events: none; transition: opacity .25s ease; }
.lb.zoomed .lb-cap { opacity: 0; }
.lb-hint { position: absolute; z-index: 2; left: 50%; bottom: calc(52px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); margin: 0; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #f3f1ec; font: 300 11px/1 var(--mono); letter-spacing: .02em; text-transform: var(--tt, uppercase); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .4s ease; }
.lb-hint.show { opacity: 1; }
@media (max-width: 700px) { .lb-img { left: 0; right: 0; width: 100%; } }
