:root {
  --paper: #FBFBF9;
  --ink: #16181C;
  --barrel: #1963BB; /* sampled from the HDPE barrels in the Kutcha prototype photograph */
  --grey: #6E7378;
  --rule: #E2E2DE;
  --gap: 24px;
  --side: clamp(18px, 4vw, 48px);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tech: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 18px; line-height: 1.6;
  font-optical-sizing: auto;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--barrel); }
:focus-visible { outline: 2px solid var(--barrel); outline-offset: 3px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--side); }

/* header */
.site { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding-top: 22px; padding-bottom: 22px; }
.site a { text-decoration: none; }
.site .name { font-weight: 600; letter-spacing: -.01em; }
.site nav { display: flex; gap: clamp(14px, 3vw, 28px); font-size: 16px; }
.site nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--barrel); }

/* text */
h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.04; letter-spacing: -.025em; font-weight: 600; }
h2 { font-size: 24px; line-height: 1.25; letter-spacing: -.01em; font-weight: 500; }
.prose { max-width: 68ch; }
.prose p + p { margin-top: 1em; }
.lead { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.32; letter-spacing: -.012em; max-width: 34ch; }
.block { margin-top: clamp(48px, 7vw, 88px); }
.block > h2 { margin-bottom: 14px; }
.small { font-size: 14px; line-height: 1.5; color: var(--grey); }

/* figures: two ratios only, always letterboxed */
figure { margin: 0; }
.frame { display: block; width: 100%; }
.frame img, .frame video { width: 100%; height: 100%; object-fit: contain; }
.r32 .frame { aspect-ratio: 3 / 2; }
.r169 .frame { aspect-ratio: 16 / 9; }
.r916 .frame { aspect-ratio: 9 / 16; background: var(--rule); }
.r34 .frame { aspect-ratio: 3 / 4; }
figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--grey); max-width: 60ch; }
.figs { display: grid; gap: var(--gap); margin-top: var(--gap); }
.figs.two { grid-template-columns: 1fr 1fr; }
.figs + .figs { margin-top: var(--gap); }
.block .figs:first-child { margin-top: 0; }
.prose + .figs, .figs + .prose { margin-top: clamp(28px, 4vw, 44px); }

/* case study */
.hero { width: 100%; max-width: 2000px; margin: 0 auto; aspect-ratio: 16 / 9; overflow: hidden; background: var(--rule); }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero.contained { max-width: 1240px; padding: 0 var(--side); background: none; aspect-ratio: auto; }
.hero.contained .frame { aspect-ratio: 16 / 9; }
.hero.contained.r32 .frame { aspect-ratio: 3 / 2; max-height: 78vh; margin: 0 auto; }
.hero.contained img { object-fit: contain; }
.title { margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--gap) clamp(24px, 6vw, 96px); align-items: end; }
.title .sub { font-size: 24px; line-height: 1.25; margin-top: 10px; color: var(--grey); letter-spacing: -.01em; }
.meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 20px; font-size: 14px; line-height: 1.5; }
.meta dt { color: var(--grey); }
.fact { margin-top: clamp(36px, 5vw, 64px); }
.spec { display: grid; grid-template-columns: minmax(120px, 200px) minmax(0, 68ch); gap: 0 var(--gap); font-size: 16px; line-height: 1.55; }
.spec dt, .spec dd { padding: 12px 0; border-top: 1px solid var(--rule); }
.spec dt { color: var(--grey); }
.people { list-style: none; max-width: 68ch; }
.people li { padding: 12px 0; border-top: 1px solid var(--rule); font-size: 16px; line-height: 1.5; }
.people span { color: var(--grey); }
blockquote { max-width: 60ch; margin-top: 22px; padding-left: 18px; border-left: 2px solid var(--ink); }
blockquote p { font-size: 20px; line-height: 1.4; letter-spacing: -.005em; }
blockquote footer { margin-top: 8px; font-size: 14px; color: var(--grey); }
.next { margin-top: clamp(64px, 9vw, 120px); padding-top: 22px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.next a { font-size: 24px; letter-spacing: -.01em; }
.foot { margin-top: clamp(64px, 9vw, 120px); padding-top: 20px; padding-bottom: 40px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; font-size: 14px; color: var(--grey); }
.foot a { color: var(--ink); }

/* tide loop */
.tide { position: relative; }
.tide svg { width: 100%; height: auto; }
.tide .mark { position: absolute; right: 0; font-family: var(--tech); font-size: 13px; line-height: 1.3; color: var(--grey); text-align: right; max-width: 30%; }
.tide .mark b { font-weight: 500; color: var(--barrel); display: block; }
.tide .mark.hi { top: 56.375%; transform: translateY(calc(-100% - 6px)); }
.tide .mark.lo { top: 62.5%; transform: translateY(6px); }
.tide .ln { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.tide .thin { stroke-width: 1; }
.tide .fixed { stroke: var(--grey); }
.tide .lvl { stroke: var(--grey); stroke-width: 1; stroke-dasharray: 3 5; fill: none; }
.tide .water { fill: var(--barrel); fill-opacity: .13; }
.tide .waterline { stroke: var(--barrel); stroke-width: 2; fill: none; }
.tide .ground { fill: var(--paper); }
.tide .wet { animation: tide-water 6s linear infinite; }
.tide .house { animation: tide-house 6s linear infinite; }
@keyframes tide-water { 0%, 6.667% { transform: translateY(0); } 43.333%, 56.667% { transform: translateY(-113.2px); } 93.333%, 100% { transform: translateY(0); } }
@keyframes tide-house { 0%, 18.17% { transform: translateY(0); } 43.333%, 56.667% { transform: translateY(-77.7px); } 81.83%, 100% { transform: translateY(0); } }

/* index */
.intro { padding-top: clamp(36px, 7vw, 96px); padding-bottom: clamp(36px, 6vw, 72px); }
.intro h1 { font-size: clamp(32px, 4.6vw, 56px); font-weight: 500; max-width: 20ch; letter-spacing: -.022em; line-height: 1.08; }
.intro p { margin-top: 22px; max-width: 58ch; color: var(--grey); }
.axis { position: relative; }
.axis-ends { display: flex; justify-content: space-between; font-family: var(--tech); font-size: 13px; color: var(--barrel); padding-bottom: 8px; }
.axis-rule { height: 1px; background: var(--ink); transform-origin: 0 50%; animation: axis-draw .8s cubic-bezier(.3, 0, .2, 1) 1 both; }
@keyframes axis-draw { from { transform: scaleX(0); } }
.axis ol { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); }
.axis li { position: relative; padding-top: 22px; }
.axis li::before { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 12px; background: var(--ink); }
.axis ol a { display: block; text-decoration: none; }
.axis .frame { aspect-ratio: 3 / 2; overflow: hidden; }
.axis .frame img { object-fit: cover; transition: transform .5s ease; }
.axis ol a:hover .frame img { transform: scale(1.03); }
.axis .t { display: block; margin-top: 12px; font-weight: 500; line-height: 1.3; letter-spacing: -.005em; }
.axis .d { display: block; font-size: 14px; line-height: 1.45; color: var(--grey); margin-top: 2px; }
.axis .m { display: block; font-family: var(--tech); font-size: 13px; line-height: 1.45; color: var(--barrel); margin-top: 8px; }
.also { margin-top: clamp(40px, 5vw, 64px); max-width: 68ch; }
.two-col > .figs { margin-top: 0; }
.entry figure { align-self: start; }
.intro h1:only-child { max-width: none; }
.also a { font-weight: 500; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--gap) clamp(24px, 6vw, 96px); align-items: start; }
.list { list-style: none; }
.list li { padding: 12px 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: minmax(110px, 170px) 1fr; gap: 4px var(--gap); font-size: 16px; line-height: 1.5; }
.list li > span:first-child { color: var(--grey); }
.email { font-size: clamp(22px, 3vw, 32px); letter-spacing: -.015em; user-select: all; }
.entry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--gap) clamp(24px, 5vw, 72px); padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid var(--rule); align-items: start; }
.entry h2 { margin-bottom: 4px; }
.entry .prose { font-size: 16px; line-height: 1.55; margin-top: 12px; }

@media (max-width: 860px) {
  .title, .two-col, .entry { grid-template-columns: 1fr; }
  .axis ol { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
  .axis-ends span:last-child { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .figs.two { grid-template-columns: 1fr; }
  .spec { grid-template-columns: 1fr; }
  .spec dt { padding-bottom: 0; }
  .spec dd { border-top: 0; padding-top: 2px; }
  .list li { grid-template-columns: 1fr; }
  .axis-rule { display: none; }
  .axis-ends { display: none; }
  .axis ol { grid-template-columns: 1fr; gap: 0; border-left: 1px solid var(--ink); margin-left: 2px; }
  .axis li { padding: 0 0 36px 22px; }
  .axis li::before { top: 0; width: 12px; height: 1px; }
  .tide .mark { max-width: 34%; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .axis-rule { animation: none; }
  .axis .frame img { transition: none; }
  .tide .wet { animation: none; transform: translateY(-113.2px); }
  .tide .house { animation: none; transform: translateY(-77.7px); }
}
@media print { .site nav, .next { display: none; } }

/* ---------- v10: tiers, facts bar, pictograms ---------- */

.crumb { font-size: 14px; line-height: 1.5; color: var(--grey); padding-bottom: 14px; }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(28px, 4vw, 44px); padding: 20px 0 22px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.facts.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
.facts dt { font-size: clamp(24px, 3vw, 38px); line-height: 1.1; letter-spacing: -.02em; font-weight: 500; font-variant-numeric: tabular-nums; }
.facts dd { font-size: 14px; line-height: 1.45; color: var(--grey); margin-top: 6px; max-width: 28ch; }

.fact { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--gap) clamp(24px, 6vw, 96px); align-items: center; }
.picto { width: clamp(180px, 20vw, 250px); }
.picto svg { width: 100%; height: auto; overflow: visible; }
.picto .ln { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.picto .hi { stroke: var(--barrel); }
.picto .dot { fill: var(--barrel); stroke: none; }
.picto .soft { fill: var(--ink); fill-opacity: .08; }

.figs.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.figs.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) {
  .figs.three { grid-template-columns: 1fr; justify-items: center; }
  .figs.three figure { width: 100%; max-width: 340px; }
}
.small + .figs { margin-top: 14px; }
.figs + .small { margin-top: clamp(28px, 4vw, 44px); }
/* a portrait and a landscape video side by side at equal height */
.figs.pair { grid-template-columns: minmax(0, 9fr) minmax(0, 28.44fr); align-items: start; }
@media (max-width: 640px) {
  .figs.pair { grid-template-columns: 1fr; justify-items: center; }
  .figs.pair figure { width: 100%; }
  .figs.pair .r916 { max-width: 340px; }
}

/* pictogram loops */
.p-unit { animation: p-unit 7s cubic-bezier(.2, .8, .2, 1) infinite both; }
.p-unit:nth-of-type(2) { animation-delay: .9s; }
.p-unit:nth-of-type(3) { animation-delay: 1.8s; }
.p-unit:nth-of-type(4) { animation-delay: 2.7s; }
@keyframes p-unit { 0% { opacity: 0; transform: translateY(-16px); } 9%, 78% { opacity: 1; transform: none; } 86%, 100% { opacity: 0; transform: none; } }

.p-petal { stroke-dasharray: 1; animation: p-draw 6s ease-in-out infinite both; }
.p-petal:nth-of-type(2) { animation-delay: .7s; }
.p-petal:nth-of-type(3) { animation-delay: 1.4s; }
.p-petal:nth-of-type(4) { animation-delay: 2.1s; }
@keyframes p-draw { 0% { stroke-dashoffset: 1; } 18%, 82% { stroke-dashoffset: 0; } 96%, 100% { stroke-dashoffset: 1; } }

.p-layer { animation: p-layer 6s cubic-bezier(.3, 1.3, .5, 1) infinite both; }
.p-layer:nth-of-type(2) { animation-delay: .8s; }
.p-layer:nth-of-type(3) { animation-delay: 1.6s; }
@keyframes p-layer { 0% { opacity: 0; transform: translateY(-34px); } 10%, 80% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; transform: none; } }

.p-ball { offset-rotate: 0deg; animation: p-ball 7s linear infinite; }
@keyframes p-ball { from { offset-distance: 100%; } to { offset-distance: 0%; } }

.p-flip { transform-origin: 120px 88px; animation: p-flip 8s cubic-bezier(.6, 0, .3, 1) infinite; }
@keyframes p-flip { 0%, 34% { transform: rotate(0deg); } 50%, 84% { transform: rotate(180deg); } 100% { transform: rotate(360deg); } }

.p-wing { transform-origin: 120px 96px; animation: p-wing 2.6s ease-in-out infinite alternate; }
.p-wing.r { animation-name: p-wing-r; }
@keyframes p-wing { from { transform: rotate(-9deg); } to { transform: rotate(13deg); } }
@keyframes p-wing-r { from { transform: rotate(9deg); } to { transform: rotate(-13deg); } }

/* journey strip */
.journey { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; margin-top: clamp(28px, 4vw, 44px); padding-top: 22px; border-top: 1px solid var(--ink); font-size: 16px; line-height: 1.35; }
.journey li { position: relative; padding-right: 12px; color: var(--grey); animation: j-stop 10s linear infinite both; }
.journey li::before { content: ""; position: absolute; left: 0; top: -27px; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); }
.journey li:nth-child(2) { animation-delay: 2s; } .journey li:nth-child(3) { animation-delay: 4s; }
.journey li:nth-child(4) { animation-delay: 6s; } .journey li:nth-child(5) { animation-delay: 8s; }
.journey li span { display: block; font-size: 14px; }
.journey li b { font-weight: 500; color: inherit; }
.journey::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--barrel); z-index: 1; animation: j-dot 10s linear infinite; }
@keyframes j-dot { from { left: 0; } to { left: 80%; } }
@keyframes j-stop { 0%, 19% { color: var(--ink); } 20%, 100% { color: var(--grey); } }

/* index */
.top { position: relative; overflow: hidden; }
.field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.top .intro { position: relative; z-index: 1; }
.intro .second { margin-top: 10px; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.25; letter-spacing: -.012em; color: var(--grey); max-width: 30ch; }
.rise .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.rise .w > span { display: inline-block; animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--n) * 55ms + 120ms); }
@keyframes rise { from { transform: translateY(112%); } }

.tier-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 1px solid var(--ink); padding-top: 12px; margin: 0 0 24px; }
.tier { margin-top: clamp(48px, 7vw, 88px); }
.tier.first { margin-top: 0; }
.tier-head span { font-family: var(--tech); font-size: 13px; color: var(--barrel); white-space: nowrap; }
.grid { display: grid; gap: clamp(28px, 3vw, 44px) var(--gap); }
.grid.t1 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.t2, .grid.t3 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.card { display: block; text-decoration: none; }
.card .frame { aspect-ratio: 3 / 2; overflow: hidden; background: var(--rule); }
.card .frame img { object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.card:hover .frame img, .card:focus-visible .frame img { transform: scale(1.05); }
.card .t { display: inline-block; margin-top: 12px; font-weight: 500; line-height: 1.3; letter-spacing: -.005em; background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 1px no-repeat; transition: background-size .35s ease; }
.card:hover .t { background-size: 100% 1px; color: var(--ink); }
.card .d { display: block; font-size: 14px; line-height: 1.45; color: var(--grey); margin-top: 2px; }
.t1 .card .t { font-size: 20px; letter-spacing: -.012em; }
.t3 .card .t { font-size: 15px; }
.t3 .card .d { font-size: 13px; }

.ticker { overflow: hidden; white-space: nowrap; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 16px 0; margin-top: clamp(48px, 7vw, 88px); }
.ticker div { display: inline-block; animation: ticker 44s linear infinite; }
.ticker span { font-size: clamp(20px, 2.4vw, 30px); letter-spacing: -.012em; padding-right: 1.4em; }
.ticker i { font-style: normal; color: var(--barrel); padding-right: 1.4em; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* cursor */
.cur { position: fixed; left: 0; top: 0; z-index: 60; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--barrel); color: #fff; pointer-events: none; opacity: 0; display: grid; place-items: center; font-size: 12px; font-weight: 500; letter-spacing: .01em; transition: width .25s cubic-bezier(.2, .8, .2, 1), height .25s cubic-bezier(.2, .8, .2, 1), margin .25s cubic-bezier(.2, .8, .2, 1), opacity .2s; }
.cur span { opacity: 0; transition: opacity .15s; }
.cur.on { opacity: 1; }
.cur.is-card { width: 68px; height: 68px; margin: -34px 0 0 -34px; }
.cur.is-card span { opacity: 1; }
.cur.is-link { opacity: .35; width: 30px; height: 30px; margin: -15px 0 0 -15px; }

/* image wipe, loops only while on screen */
.js .frame.rv { clip-path: inset(0 0 100% 0); transition: clip-path .85s cubic-bezier(.2, .8, .2, 1); }
.js .frame.rv.in { clip-path: inset(0 0 0 0); }
.js .picto:not(.playing) *, .js .tide:not(.playing) *, .js .journey:not(.playing), .js .journey:not(.playing) li, .js .journey:not(.playing)::before, .js .ticker:not(.playing) div { animation-play-state: paused; }

/* reading progress, where the browser supports scroll timelines */
@supports (animation-timeline: scroll()) {
  .progress { position: fixed; left: 0; top: 0; right: 0; height: 2px; background: var(--barrel); transform-origin: 0 50%; transform: scaleX(0); z-index: 50; animation: progress linear both; animation-timeline: scroll(root); }
  @keyframes progress { to { transform: scaleX(1); } }
}

/* sound of colour: play the picture */
.play { position: relative; touch-action: none; }
.play.live { cursor: crosshair; }
.play .pin { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #16181C; pointer-events: none; display: none; }
.play.live .pin { display: block; }
.playbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-size: 14px; color: var(--grey); font-variant-numeric: tabular-nums; }
.btn { font: inherit; font-size: 14px; color: var(--ink); background: none; border: 1px solid var(--ink); padding: 8px 14px; cursor: pointer; }
.btn:hover { background: var(--ink); color: var(--paper); }

.research { list-style: none; max-width: 76ch; }
.research li { padding: 14px 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 64px 1fr; gap: 4px var(--gap); font-size: 16px; line-height: 1.5; }
.research .y { font-family: var(--tech); font-size: 13px; color: var(--grey); padding-top: 3px; }
.research b { font-weight: 500; }
.research span.n { display: block; color: var(--grey); }

@media (max-width: 860px) {
  .grid.t1 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.t2, .grid.t3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fact { grid-template-columns: 1fr; }
  .picto { width: 190px; }
}
@media (max-width: 640px) {
  .facts, .facts.two { grid-template-columns: 1fr; gap: 16px; }
  .facts dd { max-width: none; }
  .grid.t1 { grid-template-columns: 1fr; }
  .grid.t2, .grid.t3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figs.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey { font-size: 13px; }
  .journey li span { display: none; }
  .research li { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .picto *, .journey, .journey li, .journey::before, .ticker div, .rise .w > span, .progress { animation: none !important; }
  .journey::before { display: none; }
  .journey li { color: var(--ink); }
  .ticker { white-space: normal; }
  .ticker div span:not(:first-child), .ticker i { display: none; }
  .card .frame img { transition: none; }
  .cur { display: none; }
  .field { display: none; }
}
@media (hover: none) { .cur { display: none; } }

/* ---------- v10.1: categories, shared transitions ---------- */

.work { margin-top: 0; }
.cats-wrap { position: sticky; top: 0; z-index: 30; background: var(--paper); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.cats { position: relative; display: flex; gap: clamp(18px, 2.6vw, 36px); overflow-x: auto; scrollbar-width: none; padding: 14px 0 16px; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; font: inherit; font-size: clamp(19px, 2.2vw, 28px); line-height: 1.2; font-weight: 500; letter-spacing: -.015em; color: var(--grey); background: none; border: 0; padding: 0; cursor: pointer; white-space: nowrap; transition: color .25s; }
.cat:hover, .cat.on { color: var(--ink); }
.cat sup { font-family: var(--tech); font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--barrel); margin-left: 4px; vertical-align: top; position: relative; top: .15em; }
.cat-bar { position: absolute; left: 0; bottom: 8px; height: 2px; width: 0; background: var(--barrel); transition: transform .45s cubic-bezier(.2, .8, .2, 1), width .45s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.cat-note { margin: 18px 0 clamp(28px, 4vw, 44px); min-height: 1.6em; color: var(--grey); max-width: 68ch; }
.cat-note.swap { animation: note-in .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes note-in { from { opacity: 0; transform: translateY(8px); } }

.deck { --n: 3; display: flex; flex-wrap: wrap; gap: clamp(28px, 3vw, 44px) var(--gap); align-items: flex-start; }
.deck .tier-head { flex: 0 0 100%; margin: clamp(24px, 4vw, 48px) 0 0; scroll-margin-top: 80px; }
.deck .tier-head:first-child { margin-top: 0; }
.deck .card { flex: 0 0 auto; width: calc((100% - (var(--n) - 1) * var(--gap)) / var(--n)); transition: opacity .3s; }
.deck .card[data-tier="1"] .t { font-size: 20px; letter-spacing: -.012em; }
.deck .card[data-tier="2"], .deck .card[data-tier="3"] { --n: 5; }
.deck .card[data-tier="3"] .t { font-size: 15px; }
.deck .card .e { display: none; font-family: var(--tech); font-size: 12px; line-height: 1.4; color: var(--grey); margin-top: 6px; }
.deck.filtered .tier-head { display: none; }
.deck.filtered .card { --n: 3; }
.deck.filtered .card .t { font-size: 20px; letter-spacing: -.012em; }
.deck.filtered .card .e { display: block; }
.deck .card.off { display: none; }
.deck.peek .card.dim { opacity: .2; }

.hello .big { font-size: clamp(24px, 4.4vw, 56px); line-height: 1.1; letter-spacing: -.025em; font-weight: 500; margin: 6px 0 18px; overflow-wrap: anywhere; }
.hello .big a { text-decoration: none; background: linear-gradient(var(--barrel), var(--barrel)) 0 100% / 0 2px no-repeat; transition: background-size .5s cubic-bezier(.2, .8, .2, 1); padding-bottom: 4px; }
.hello .big a:hover { color: var(--ink); background-size: 100% 2px; }

.site nav a { background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 1px no-repeat; transition: background-size .3s ease; padding-bottom: 3px; }
.site nav a:hover { background-size: 100% 1px; color: var(--ink); }
.site nav a[aria-current] { background: none; }
.research li { transition: padding-left .3s cubic-bezier(.2, .8, .2, 1); }
.research li:hover { padding-left: 10px; }

/* pages cross-fade, and the card image grows into the project's opening image */
@view-transition { navigation: auto; }
.card .frame, .hero img, .play img { view-transition-class: shot; }
.deck .card { view-transition-class: card; }
::view-transition-group(*) { animation-duration: .5s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-old(.shot), ::view-transition-new(.shot) { height: 100%; object-fit: cover; }
::view-transition-old(.card):only-child, ::view-transition-old(.shot):only-child { animation: vt-out .22s ease both; }
::view-transition-new(.card):only-child, ::view-transition-new(.shot):only-child { animation: vt-in .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes vt-out { to { opacity: 0; scale: .96; } }
@keyframes vt-in { from { opacity: 0; scale: .96; } }

@media (max-width: 860px) {
  .deck { --n: 2; }
  .deck .card[data-tier="2"], .deck .card[data-tier="3"] { --n: 3; }
  .deck.filtered .card { --n: 2; }
}
@media (max-width: 640px) {
  .deck { --n: 1; }
  .deck .card[data-tier="2"], .deck .card[data-tier="3"] { --n: 2; }
  .deck.filtered .card { --n: 1; }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .cat-bar, .hello .big a, .site nav a, .research li, .deck .card { transition: none; }
  .cat-note.swap { animation: none; }
}

/* audio embed */
.embed { margin-top: 18px; max-width: 760px; }
.embed iframe { display: block; width: 100%; height: 166px; border: 0; }
.embed + .small { margin-top: 10px; }
.tier .prose { margin-top: 0; }

/* spacing around spec tables added for the portfolio detail, 14 Oct 2026 */
.spec + .prose, .spec + .figs, .figs + .spec, .prose + .spec { margin-top: clamp(28px, 4vw, 44px); }

/* portfolio panels at their own ratio, 14 Oct 2026 */
.nat .frame { aspect-ratio: auto; }
.nat .frame img { height: auto; }
.figs.two:has(.nat) { align-items: start; }
.stack { display: grid; gap: var(--gap); align-content: start; }
.figs.narrow { max-width: 640px; }

/* ---- story chapters and image viewer, 14 Oct 2026 ---- */
.chapter > h2 { display: flex; align-items: baseline; gap: .75em; }
.chapter > h2 .no { font-family: var(--tech); font-size: 13px; font-weight: 400; color: var(--grey); letter-spacing: .04em; }
.chapter + .chapter { border-top: 1px solid var(--rule); }
.chapter .prose + .journey, .chapter .journey + .figs { margin-top: clamp(28px, 4vw, 44px); }
.figs .stack .figs, .figs > div > .spec:first-child { margin-top: 0; }

/* images that open: a quiet corner hint on hover, nothing on touch */
.frame.zoom { position: relative; }
.frame.zoom img { cursor: zoom-in; }
.frame.zoom img:focus-visible { outline: 2px solid var(--barrel); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .frame.zoom::after {
    content: ""; position: absolute; right: 10px; top: 10px; width: 26px; height: 26px; border-radius: 50%;
    background: rgba(251, 251, 249, .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2316181C' stroke-width='1.4'%3E%3Cpath d='M9.5 3.5h3v3M6.5 12.5h-3v-3M12.5 3.5 9 7M3.5 12.5 7 9'/%3E%3C/svg%3E") center / 14px no-repeat;
    opacity: 0; transform: scale(.85); transition: opacity .18s, transform .18s; pointer-events: none;
  }
  .frame.zoom:hover::after { opacity: 1; transform: none; }
}
.cur.is-zoom { width: 54px; height: 54px; margin: -27px 0 0 -27px; }
.cur.is-zoom span { opacity: 1; }

.lb { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(16, 17, 20, .94); color: #F2F2EE; }
.lb::backdrop { background: transparent; }
.lb figure { position: absolute; inset: 56px clamp(12px, 6vw, 88px) 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.lb img { max-width: 100%; max-height: calc(100% - 40px); object-fit: contain; opacity: 0; transform: scale(.985); transition: opacity .2s ease, transform .25s cubic-bezier(.2, .8, .2, 1); }
.lb.ready img { opacity: 1; transform: none; }
.lb figcaption { display: flex; gap: 18px; align-items: baseline; justify-content: center; font-size: 14px; line-height: 1.5; color: #C9CBC6; max-width: 70ch; text-align: center; }
.lb .lb-n { font-family: var(--tech); font-size: 12px; color: #8D918E; white-space: nowrap; }
.lb button { position: absolute; background: none; border: 0; color: #F2F2EE; font: 500 14px/1 var(--sans); cursor: pointer; padding: 12px 14px; border-radius: 999px; }
.lb button:hover { background: rgba(255, 255, 255, .08); }
.lb button:focus-visible { outline: 2px solid #F2F2EE; outline-offset: 2px; }
.lb-x { top: calc(10px + env(safe-area-inset-top, 0px)); right: 12px; }
.lb-p, .lb-f { top: 50%; margin-top: -22px; font-size: 20px !important; }
.lb-p { left: 6px; } .lb-f { right: 6px; }
html.lb-open { overflow: hidden; }
@media (max-width: 640px) { .lb-p, .lb-f { top: auto; bottom: 14px; margin: 0; } .lb figure { inset: 52px 12px 70px; } }
@media (prefers-reduced-motion: reduce) { .lb img, .frame.zoom::after { transition: none; } }
