/* ───────── Fonts (self-hosted, SIL OFL) ───────── */
@font-face { font-family: "Anton"; font-weight: 400; font-display: swap; src: url(fonts/anton-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Anton"; font-weight: 400; font-display: swap; src: url(fonts/anton-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url(fonts/plexmono-400-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url(fonts/plexmono-400-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url(fonts/plexmono-500-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url(fonts/plexmono-500-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0; }

/* ───────── Tokens ───────── */
:root {
  --cap-h: 46px;
  --paper: #ffffff;
  --ink: #000000;
  --mute: #66665f;
  --rule: #dcdcd6;
  --wash: #f1f1ee;
  --label: #f04e23;          /* Théo's woven-label orange */
  --display: "Anton", "Arial Narrow", sans-serif;
  --text: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --gutter: clamp(16px, 2.4vw, 36px);
  --bar-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 13px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--label); outline-offset: 3px; }
::selection { background: var(--label); color: #fff; }
html { scrollbar-color: var(--ink) var(--paper); scrollbar-width: thin; caret-color: var(--label); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--ink); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 6px 10px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The woven label: Théo sews an orange tab on his pieces; it marks "this is a work" across the site */
.tag { display: inline-block; width: 18px; height: 9px; background: var(--label); vertical-align: middle; }

/* ───────── Top bar ───────── */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: start; gap: 24px;
  padding: max(20px, env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
  text-transform: uppercase; font-size: 12px; line-height: 1.35; letter-spacing: .02em;
  pointer-events: none;
}
.bar > * { pointer-events: auto; margin: 0; }
.wordmark { font: 400 clamp(26px, 2.6vw, 38px)/.9 var(--display); letter-spacing: 0; }
.bar-role { justify-self: center; padding-top: 3px; }
.bar-nav { display: flex; flex-direction: column; justify-self: center; padding-top: 3px; }
.bar-nav a { width: max-content; background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 1px no-repeat; transition: background-size .25s var(--ease-out); }
.bar-nav a[aria-current="page"] { background-size: 100% 1px; }
@media (hover: hover) and (pointer: fine) { .bar-nav a:hover { background-size: 100% 1px; } }
.bar-nav sup { font-size: 9px; vertical-align: top; position: relative; top: -2px; }
.bar-clock { text-align: right; padding-top: 3px; font-variant-numeric: tabular-nums; }
body.is-scrolled .bar { background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding-bottom: 14px; }

/* ───────── Mobile menu ───────── */
.menu-btn { display: none; }
.menu {
  position: fixed; inset: 0; z-index: 39; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: calc(var(--bar-h) + 28px) var(--gutter) max(var(--gutter), env(safe-area-inset-bottom));
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .5s var(--ease-drawer, cubic-bezier(0.32, 0.72, 0, 1)), visibility 0s linear .5s;
}
body.menu-open { overflow: hidden; }
body.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .5s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s; }
body.menu-open .bar { color: var(--paper); background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.menu-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.menu-list a {
  display: inline-flex; align-items: flex-start; gap: 8px; padding: 2px 0;
  font: 400 clamp(52px, 17vw, 96px)/.92 var(--display); text-transform: uppercase;
  opacity: 0; transform: translateY(24%); transition: opacity .3s ease-out, transform .5s cubic-bezier(0.23, 1, 0.32, 1);
}
.menu-list a sup { font: 500 12px/1 var(--text); margin-top: .5em; color: #a3a39b; }
.menu-list a[aria-current="page"]::before { content: ""; width: 14px; height: 7px; background: var(--label); align-self: center; margin-right: 4px; }
body.menu-open .menu-list a { opacity: 1; transform: none; }
body.menu-open .menu-list li:nth-child(1) a { transition-delay: .08s; }
body.menu-open .menu-list li:nth-child(2) a { transition-delay: .12s; }
body.menu-open .menu-list li:nth-child(3) a { transition-delay: .16s; }
body.menu-open .menu-list li:nth-child(4) a { transition-delay: .20s; }
body.menu-open .menu-list li:nth-child(5) a { transition-delay: .24s; }
.menu-foot { display: grid; gap: 8px; text-transform: uppercase; font-size: 12px; color: #a3a39b; }
.menu-foot a { color: var(--paper); font-size: 14px; text-transform: none; }

/* ───────── Home / book ───────── */
.home { position: fixed; inset: 0; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; transition: opacity .35s var(--ease-out), visibility 0s linear .35s; }
body:not(.route-home) .home { opacity: 0; visibility: hidden; pointer-events: none; }
body.route-home .home { transition: opacity .45s var(--ease-out), visibility 0s; }
body.route-home { overflow: hidden; }

.stage {
  position: absolute; inset: 0;
  perspective: 2200px; perspective-origin: 50% 42%;
  cursor: grab;
}
.stage.is-dragging { cursor: grabbing; }
.book {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0;
  transform-style: preserve-3d;
  transform: translateY(-2vh) rotateX(-9deg) rotateZ(7deg);
}
.page {
  --w: clamp(170px, 22.5vw, 350px);
  position: absolute; left: 0; top: calc(var(--w) * -0.64);
  width: var(--w); height: calc(var(--w) * 1.28);
  transform-origin: 0 50%;
  transform-style: preserve-3d;
  will-change: transform;
  outline: none;
}
.face {
  position: absolute; inset: 0; margin: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: var(--wash);
  overflow: hidden;
}
.face img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.face.back { transform: rotateY(180deg); }
.face.front::after, .face.back::after { /* thin paper edge so pages read as sheets */
  content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .06); pointer-events: none;
}
.face .tab {
  position: absolute; left: 10px; bottom: 10px;
  background: var(--label); color: #fff; padding: 3px 6px 2px;
  font: 500 9px/1 var(--text); letter-spacing: .06em; text-transform: uppercase;
}
.page:focus-visible .face.front { outline: 2px solid var(--label); outline-offset: 4px; }

.readout { position: absolute; top: 50%; transform: translateY(-50%); text-transform: uppercase; font-size: 12px; pointer-events: none; }
.readout-l { left: var(--gutter); }
.readout-r { right: var(--gutter); text-align: right; display: grid; justify-items: end; gap: 6px; max-width: 30vw; }
.ro-label { display: block; margin-bottom: 4px; color: var(--mute); }
.ro-num { font: 400 44px/1 var(--display); }
.ro-of { color: var(--mute); }
.ro-title { font: 400 clamp(22px, 2.3vw, 34px)/1 var(--display); }
.ro-kind { color: var(--mute); }
.home-hint { position: absolute; left: 0; right: 0; bottom: calc(var(--gutter) + 64px); margin: 0; text-align: center; text-transform: uppercase; font-size: 11px; color: var(--mute); pointer-events: none; }
.hint-touch { display: none; }
@media (hover: none) and (pointer: coarse) { .hint-fine { display: none; } .hint-touch { display: inline; } }
.home-quote {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: max(var(--gutter), env(safe-area-inset-bottom)); margin: 0;
  text-align: center; font: 400 clamp(17px, 2.05vw, 32px)/1.05 var(--display); text-wrap: balance; pointer-events: none;
}

/* ───────── Generic page shell ───────── */
#view { min-height: 100svh; outline: none; }
.route-home #view { display: none; }
.view { padding: calc(var(--bar-h) + 56px) var(--gutter) 0; animation: view-in .45s var(--ease-out) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(12px); } }
.display { font: 400 clamp(56px, 11.5vw, 190px)/.86 var(--display); text-transform: uppercase; margin: 0; letter-spacing: -.005em; }
.h2 { font: 400 clamp(30px, 4vw, 60px)/.95 var(--display); text-transform: uppercase; margin: 0; }
.meta { text-transform: uppercase; font-size: 12px; color: var(--mute); }
.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }
.ulink { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .25s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .ulink:hover { background-size: 0 1px; background-position: 100% 100%; } }

/* ───────── Works index ───────── */
.works-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: 28px; }
.works-head .display sup { font: 400 14px var(--text); vertical-align: top; margin-left: 6px; position: relative; top: .5em; }
.toggle { display: grid; gap: 2px; text-transform: uppercase; font-size: 12px; }
.toggle button { text-align: left; color: var(--mute); display: flex; align-items: center; gap: 8px; }
.toggle button::before { content: ""; width: 7px; height: 7px; background: transparent; border: 1px solid var(--mute); }
.toggle button[aria-pressed="true"] { color: var(--ink); }
.toggle button[aria-pressed="true"]::before { background: var(--ink); border-color: var(--ink); }

.wlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.wrow { border-bottom: 1px solid var(--rule); }
.wrow a { display: grid; grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 2.2fr); gap: 20px; padding: 16px 0; align-items: start; }
.wrow .n { font-size: 12px; padding-top: 4px; }
.wrow .t { font: 400 clamp(24px, 2.6vw, 40px)/.95 var(--display); text-transform: uppercase; }
.wrow .k { text-transform: uppercase; font-size: 12px; padding-top: 4px; }
.wrow .k span { display: block; color: var(--mute); }
.strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--wash); transition: transform .5s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .wrow a:hover .strip img { transform: translateY(-4px); }
  .wrow a:hover .strip img:nth-child(2) { transition-delay: .03s; }
  .wrow a:hover .strip img:nth-child(3) { transition-delay: .06s; }
  .wrow a:hover .strip img:nth-child(4) { transition-delay: .09s; }
  .wrow a:hover .strip img:nth-child(5) { transition-delay: .12s; }
}
.wgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 36px 14px; border-top: 1px solid var(--ink); padding-top: 22px; }
.wgrid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--wash); }
.wgrid .cap { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; text-transform: uppercase; font-size: 11px; }
.wgrid .cap span:last-child { color: var(--mute); }

/* ───────── Category ("slide") ───────── */
.cat-hero { display: grid; grid-template-columns: minmax(0, 1fr) clamp(220px, 27vw, 420px); gap: 28px var(--gutter); align-items: end; }
.cat-index { display: flex; align-items: center; gap: 10px; text-transform: uppercase; font-size: 12px; margin-bottom: 18px; }
.cat-title { overflow-wrap: anywhere; }
.cat-facts { display: grid; grid-template-columns: repeat(3, max-content); gap: 4px 36px; margin: 28px 0 0; text-transform: uppercase; font-size: 12px; }
.cat-facts dt { color: var(--mute); }
.cat-facts dd { margin: 0; }
.cat-text { max-width: 58ch; margin: 22px 0 0; font-size: 14px; }
.cat-cover { aspect-ratio: 4 / 5; background: var(--wash); overflow: hidden; margin: 0; }
.cat-cover img { width: 100%; height: 100%; object-fit: cover; }
.cat-cover.is-waiting { visibility: hidden; }
.cat-subnav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 44px; padding: 14px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); text-transform: uppercase; font-size: 12px; position: sticky; top: calc(var(--bar-h) - 6px); background: var(--paper); z-index: 5; }
.cat-subnav a { color: var(--mute); transition: color .2s ease; }
.cat-subnav a sup { font-size: 9px; }
.cat-subnav a.is-on, .cat-subnav a:focus-visible { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .cat-subnav a:hover { color: var(--ink); } }

.group { padding-top: 42px; scroll-margin-top: calc(var(--bar-h) + 60px); }
.group-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.group-head h3 { font: 400 clamp(22px, 2.2vw, 32px)/1 var(--display); text-transform: uppercase; margin: 0; }
.masonry { columns: 4 240px; column-gap: 12px; }
.tile { break-inside: avoid; margin: 0 0 12px; display: block; width: 100%; background: var(--wash); position: relative; cursor: zoom-in; }
.tile img { width: 100%; height: auto; opacity: 0; transition: opacity .5s var(--ease-out); }
.tile img.is-loaded { opacity: 1; }
.tile video { width: 100%; height: auto; background: #000; }
.tile.is-video { cursor: default; }

.cat-pager { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); margin-top: 90px; border-top: 1px solid var(--ink); }
.cat-pager a { padding: 18px 0 56px; display: grid; gap: 10px; }
.cat-pager a:last-child { text-align: right; justify-items: end; }
.cat-pager .h2 { transition: transform .35s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .cat-pager a:first-child:hover .h2 { transform: translateX(-8px); }
  .cat-pager a:last-child:hover .h2 { transform: translateX(8px); }
}

/* MA-1: the real jacket, cut out, turned by hand to show its reversed side */
.rev { position: relative; aspect-ratio: 4 / 5; margin: 0; display: grid; grid-template-rows: 1fr auto; perspective: 1100px; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.rev.is-dragging { cursor: grabbing; }
.rev.is-waiting { visibility: hidden; }
.rev-stage { position: relative; display: grid; place-items: center; }
.rev-card { position: relative; width: 100%; aspect-ratio: 4 / 3; transform-style: preserve-3d; will-change: transform; }
.rev-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.rev-face { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.rev-a { transform: translateZ(7px); }
.rev-b { transform: rotateY(180deg) translateZ(7px); }
.rev-core { filter: brightness(.16) saturate(0); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.rev-shadow { position: absolute; left: 14%; right: 14%; bottom: 6%; height: 16px; border-radius: 50%; background: radial-gradient(closest-side, rgb(0 0 0 / .22), rgb(0 0 0 / 0)); transform-origin: 50% 50%; pointer-events: none; }
.rev-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 10px; border-top: 1px solid var(--rule); text-transform: uppercase; font-size: 12px; }
.rev-btn { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; font-size: 12px; }
.rev-btn .tag { transition: transform .3s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .rev-btn:hover .tag { transform: scaleX(1.5); transform-origin: 0 50%; } }
.rev-side { color: var(--mute); font-variant-numeric: tabular-nums; }

.m3d { margin-top: 64px; border-top: 1px solid var(--ink); }
.m3d-stage { position: relative; background: radial-gradient(ellipse 70% 60% at 50% 42%, #fbfbf9, #e6e6e1); }
.m3d model-viewer { display: block; width: 100%; height: min(80svh, 780px); background: transparent; --poster-color: transparent; --progress-bar-color: var(--label); cursor: grab; transition: opacity .22s ease-out; }
.m3d model-viewer.is-swapping { opacity: 0; }
.m3d-hint {
  position: absolute; left: 50%; top: 18px; transform: translateX(-50%); pointer-events: none;
  display: grid; grid-template-columns: auto; justify-items: center; gap: 6px; color: var(--ink);
  transition: opacity .35s ease-out, transform .35s cubic-bezier(0.23, 1, 0.32, 1);
}
.m3d-hint-t { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: var(--paper); text-transform: uppercase; font-size: 12px; letter-spacing: .06em; white-space: nowrap; }
.m3d-hint-t b { font: 400 15px/1 var(--display); letter-spacing: 0; color: var(--label); }
.m3d-hand { grid-row: 1; animation: m3d-swipe 2.2s cubic-bezier(0.77, 0, 0.175, 1) infinite; }
.m3d-arrows { grid-row: 1; opacity: .35; align-self: center; }
.m3d-hint .m3d-hand, .m3d-hint .m3d-arrows { grid-column: 1; }
@keyframes m3d-swipe { 0%, 100% { transform: translateX(-32px); } 50% { transform: translateX(32px); } }
.m3d.is-touched .m3d-hint { opacity: 0; transform: translate(-50%, -6px); }
@media (prefers-reduced-motion: reduce) { .m3d-hand { animation: none; } }

.m3d-toggle { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 4px; padding: 4px; background: rgb(255 255 255 / .8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 999px; }
.m3d-toggle button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; text-transform: uppercase; font-size: 12px; color: var(--mute); transition: background-color .2s ease, color .2s ease; }
.m3d-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.m3d-toggle .sw { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .15); }
.m3d model-viewer:active { cursor: grabbing; }
.m3d-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding-top: 12px; }
.m3d-bar p { margin: 0; max-width: 60ch; text-align: right; color: var(--mute); font-size: 12px; text-transform: uppercase; }
@media (max-width: 760px) { .m3d model-viewer { height: 62svh; } .m3d-bar { flex-direction: column; } .m3d-bar p { text-align: left; } }

/* ───────── Gallery wall ───────── */
body.route-gallery { overflow: hidden; }
body.route-gallery .bar { background: var(--paper); padding-bottom: 14px; }
.wall { position: fixed; inset: 0; background: var(--paper); }
.wall-stage {
  position: absolute; left: 0; right: 0; top: calc(var(--bar-h) + 2px); bottom: var(--cap-h); overflow: hidden;
  perspective: 820px; perspective-origin: 50% 50%; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
  background: #e9e9e4;
}
.wall-stage.is-dragging { cursor: grabbing; }
.wt { position: absolute; left: 50%; top: 50%; border-radius: 14px; overflow: hidden; background: var(--wash); will-change: transform; backface-visibility: hidden; }
.wt img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; transition: transform .6s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .wt:hover img { transform: scale(1.045); } }
.wt:focus-visible { outline: 2px solid var(--label); outline-offset: 4px; }
.wall-stage::after { /* light falls off toward the edges of the room */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 75% 70% at 50% 50%, rgb(255 255 255 / 0) 55%, rgb(255 255 255 / .55) 100%);
}
.wall-name {
  position: absolute; left: 50%; top: calc(50% + (var(--bar-h) - var(--cap-h)) / 2); transform: translate(-50%, -50%); margin: 0;
  display: flex; align-items: center; gap: 10px; pointer-events: none;
  font: 400 clamp(22px, 2.4vw, 34px)/1 var(--display); text-transform: uppercase; color: #fff; mix-blend-mode: difference;
}
.wall-cap {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--cap-h); margin: 0; display: grid; place-items: center; padding: 0 var(--gutter);
  text-align: center; text-transform: uppercase; font-size: 11px; line-height: 1.3; background: var(--paper);
}

.flyer { position: fixed; z-index: 60; margin: 0; overflow: hidden; pointer-events: none; transform-origin: 0 0; background: var(--wash); }
.flyer img { width: 100%; height: 100%; object-fit: cover; }

/* ───────── About ───────── */
.about-hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: #1a1a1a; color: #fff; }
.about-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(1) contrast(1.05); opacity: .82; }
.about-hero .lede { position: absolute; right: var(--gutter); top: 32%; width: min(46ch, 44vw); margin: 0; text-transform: uppercase; font-size: 13px; line-height: 1.45; }
.about-hero .display { position: absolute; left: var(--gutter); bottom: calc(var(--gutter) - .06em); font-size: clamp(64px, 14.5vw, 250px); }
body.route-about:not(.is-scrolled) .bar { color: #fff; }

.about-body { padding: 110px var(--gutter) 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px var(--gutter); }
.about-quote { grid-column: 1 / -1; font: 400 clamp(30px, 4.4vw, 72px)/.98 var(--display); text-transform: uppercase; margin: 0; max-width: 18ch; }
.about-photo { margin: 0; }
.about-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.about-photo figcaption { margin-top: 8px; }
.about-bio p { margin: 0 0 1.1em; font-size: 14px; max-width: 62ch; }
.sec { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 20px var(--gutter); border-top: 1px solid var(--ink); padding-top: 16px; }
.sec > h2 { margin: 0; font: 500 12px/1.4 var(--text); text-transform: uppercase; }
.tbl { list-style: none; margin: 0; padding: 0; }
.tbl li { display: grid; grid-template-columns: 110px minmax(0, 1.2fr) minmax(0, 1.6fr); gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.tbl li:first-child { padding-top: 0; }
.tbl .yr { color: var(--mute); font-variant-numeric: tabular-nums; }
.tbl .who { font: 400 22px/1 var(--display); text-transform: uppercase; }
.tbl .who small { display: block; margin-top: 6px; font: 400 12px/1.3 var(--text); color: var(--mute); text-transform: uppercase; }
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.services h3 { margin: 0 0 6px; font: 400 26px/1 var(--display); text-transform: uppercase; }
.services p { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { border: 1px solid var(--ink); padding: 3px 9px; text-transform: uppercase; font-size: 12px; }

/* ───────── Contact ───────── */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px var(--gutter); padding-bottom: 80px; }
.contact .display { grid-column: 1 / -1; }
.contact-copy p { font-size: 15px; max-width: 48ch; margin: 0 0 1.1em; }
.contact-lines { margin-top: 34px; display: grid; gap: 14px; }
.ig-link { display: inline-flex; align-items: center; gap: .32em; }
.ig-link .ig { flex: none; width: .9em; height: .9em; }
.socials { display: inline-flex; gap: 18px; }
.cities { margin-top: 20px; text-transform: uppercase; font-size: 13px; letter-spacing: .04em; color: var(--mute); }
.contact-lines a { font: 400 clamp(24px, 2.8vw, 42px)/1 var(--display); text-transform: uppercase; width: max-content; max-width: 100%; overflow-wrap: anywhere; }
.form { background: var(--wash); padding: clamp(20px, 3vw, 44px); display: grid; gap: 18px; align-content: start; }
.form label { display: grid; gap: 6px; text-transform: uppercase; font-size: 12px; }
.form input, .form textarea { font: 400 15px/1.4 var(--text); color: var(--ink); background: var(--paper); border: 1px solid transparent; border-radius: 0; padding: 12px; width: 100%; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--ink); }
.form textarea { min-height: 180px; resize: vertical; }
.btn { background: var(--ink); color: var(--paper); padding: 16px; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; transition: transform .14s var(--ease-out), background-color .2s ease; }
.btn:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--label); } }
.form .note { margin: 0; color: var(--mute); font-size: 12px; }

/* ───────── Footer ───────── */
.foot { margin-top: 110px; background: var(--ink); color: var(--paper); padding: 56px var(--gutter) 22px; display: grid; gap: 40px; }
.foot .h2 a { display: inline-block; }
.foot-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; text-transform: uppercase; font-size: 12px; color: #a3a39b; }

/* ───────── Lightbox ───────── */
.lightbox { position: fixed; inset: 0; z-index: 80; background: var(--paper); display: grid; place-items: center; opacity: 0; transition: opacity .2s var(--ease-out); }
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lb-figure { margin: 0; width: 100%; height: 100%; display: grid; place-items: center; padding: 64px clamp(16px, 7vw, 120px); }
.lb-figure img { max-width: 100%; max-height: calc(100svh - 128px); width: auto; height: auto; object-fit: contain; transform: scale(.97); transition: transform .25s var(--ease-out); }
.lightbox.is-open .lb-figure img { transform: none; }
.lb-meta { position: absolute; left: var(--gutter); top: 22px; margin: 0; text-transform: uppercase; font-size: 12px; }
.lb-meta { display: flex; gap: 12px; align-items: baseline; min-width: 0; }
.lb-meta #lb-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lb-meta #lb-count { color: var(--mute); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lb-btn { position: absolute; text-transform: uppercase; font-size: 12px; padding: 10px; }
.lb-close { right: calc(var(--gutter) - 10px); top: 12px; }
.lb-prev { left: calc(var(--gutter) - 10px); top: 50%; transform: translateY(-50%); }
.lb-next { right: calc(var(--gutter) - 10px); top: 50%; transform: translateY(-50%); }

/* ───────── Responsive ───────── */
@media (max-width: 1100px) {
  .wgrid { grid-template-columns: repeat(3, 1fr); }
  .wrow a { grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1.4fr); }
  .wrow .k { display: none; }
}
@media (max-width: 760px) {
  .bar { grid-template-columns: 1fr auto; gap: 8px; }
  .bar-role, .bar-clock { display: none; }
  :root { --cap-h: 62px; }
  .readout-r { max-width: 60vw; }
  .ro-num { font-size: 32px; }
  .view { padding-top: calc(var(--bar-h) + 28px); }
  .cat-hero { grid-template-columns: 1fr; }
  .cat-cover { order: -1; width: 72%; }
  .rev { order: -1; aspect-ratio: 5 / 4; }
  .cat-facts { grid-template-columns: 1fr 1fr; }
  .masonry { columns: 2; column-gap: 8px; }
  .tile { margin-bottom: 8px; }
  .wgrid { grid-template-columns: repeat(2, 1fr); gap: 24px 10px; }
  .wrow a { grid-template-columns: 30px minmax(0, 1fr); }
  .strip { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
  .strip img:nth-child(5) { display: none; }
  .about-body, .contact { grid-template-columns: 1fr; }
  .sec { grid-template-columns: 1fr; }
  .tbl li { grid-template-columns: 1fr; gap: 4px; }
  .services { grid-template-columns: 1fr; }
  .cat-pager .h2 { font-size: 26px; }
}

/* ───────── Phones ───────── */
@media (max-width: 760px) {
  :root { --bar-h: calc(58px + env(safe-area-inset-top)); }
  .bar { padding-top: max(14px, env(safe-area-inset-top)); align-items: center; }
  .bar-nav { display: none; }
  .wordmark { font-size: 24px; position: relative; z-index: 2; }
  .menu-btn {
    display: inline-flex; align-items: center; justify-self: end; position: relative; z-index: 2;
    min-height: 44px; margin: -12px -10px -12px 0; padding: 0 10px; text-transform: uppercase; font-size: 12px; letter-spacing: .08em;
  }
  .menu-btn .mb-close { display: none; }
  body.menu-open .menu-btn .mb-open { display: none; }
  body.menu-open .menu-btn .mb-close { display: inline; }

  /* home: book centred in the free space, readout and quote anchored at the bottom */
  .book { top: 41%; left: 33%; }
  .page { --w: min(54vw, 260px); }
  .readout { top: auto; bottom: calc(max(var(--gutter), env(safe-area-inset-bottom)) + 74px); transform: none; }
  .home-hint { display: block; bottom: calc(max(var(--gutter), env(safe-area-inset-bottom)) + 150px); font-size: 10px; }
  .home-quote { font-size: 16px; line-height: 1.08; }

  /* category strip: one line you swipe */
  .cat-subnav {
    flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; gap: 0 18px;
    margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 0 var(--gutter);
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .cat-subnav::-webkit-scrollbar { display: none; }
  .cat-subnav a { white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; }
  .cat-title { font-size: clamp(48px, 15vw, 90px); }
  .cat-pager a { padding-bottom: 36px; min-height: 44px; }

  /* about: the words sit on a dark fall-off, not on the face */
  .about-hero { height: 88svh; min-height: 520px; }
  .about-hero img { object-position: 50% 18%; }
  .about-hero::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(rgb(0 0 0 / 0), rgb(0 0 0 / .78)); pointer-events: none; }
  .about-hero .lede { top: auto; bottom: calc(var(--gutter) + 15vw + 14px); left: var(--gutter); right: var(--gutter); width: auto; z-index: 1; font-size: 11.5px; }
  .about-hero .display { z-index: 1; font-size: 15vw; }
  .about-body { padding-top: 64px; gap: 44px; }

  /* forms: 16px stops iOS from zooming into fields */
  .form input, .form textarea { font-size: 16px; }
  .contact-lines a { font-size: clamp(22px, 7.4vw, 34px); }
  .toggle button { min-height: 32px; }

  /* image viewer: controls along the bottom, within thumb reach */
  .lb-figure { padding: calc(56px + env(safe-area-inset-top)) 0 calc(72px + env(safe-area-inset-bottom)); }
  .lb-figure img { max-height: calc(100svh - 140px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
  .lb-meta { top: calc(16px + env(safe-area-inset-top)); right: 80px; }
  .lb-close { top: calc(4px + env(safe-area-inset-top)); min-height: 44px; }
  .lb-prev, .lb-next { top: auto; transform: none; bottom: calc(8px + env(safe-area-inset-bottom)); min-height: 44px; min-width: 88px; }
  .lb-prev { text-align: left; } .lb-next { text-align: right; }

  .wall-name { font-size: 20px; }
  .wall-cap { padding-bottom: env(safe-area-inset-bottom); font-size: 10px; }
  .m3d { margin-top: 44px; }
}
/* phones held sideways */
@media (max-height: 520px) and (orientation: landscape) {
  :root { --bar-h: calc(54px + env(safe-area-inset-top)); }
  .bar { grid-template-columns: 1fr auto; padding-top: max(12px, env(safe-area-inset-top)); align-items: center; }
  .bar-role, .bar-clock, .bar-nav { display: none; }
  .wordmark { font-size: 24px; position: relative; z-index: 2; }
  .menu-btn { display: inline-flex; align-items: center; justify-self: end; position: relative; z-index: 2; min-height: 44px; margin: -12px -10px -12px 0; padding: 0 10px; text-transform: uppercase; font-size: 12px; letter-spacing: .08em; }
  .menu-btn .mb-close { display: none; }
  body.menu-open .menu-btn .mb-open { display: none; }
  body.menu-open .menu-btn .mb-close { display: inline; }
  .page { --w: min(30vh + 40px, 210px); }
  .book { top: 53%; left: 50%; }
  .readout { top: 50%; bottom: auto; transform: translateY(-50%); }
  .home-hint { display: none; }
  .home-quote { font-size: 14px; }
  .about-hero { height: 100svh; }
  .menu-list a { font-size: clamp(36px, 11vh, 60px); }
  .menu { flex-direction: row; align-items: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  .menu, body.menu-open .menu { transition: visibility 0s, clip-path 0s; }
  .menu-list a { transition: opacity .2s ease; transform: none; }
  .view { animation: fade-only .3s ease both; }
  @keyframes fade-only { from { opacity: 0; } }
  .lb-figure img { transform: none; }
  .strip img, .cat-pager .h2 { transition: none; }
}
