/* Rush Hour IV, version A. Built from Ali Mirza's v2 feedback.
   Hero works like ViV: a fixed solid name, same-size frames in staggered columns that bleed off both edges, scroll up over the name, enlarge on hover and cross-fade in place.
   Version A: hero columns are projects, followed by a separate bodies-of-work section. Version B: the hero columns are the bodies of work.
   Then a dense collage (after Stephen Kent Johnson), the rooms, his line, the reading room and About, and the Instagram strip. */
:root {
  --ground: #ffffff;
  --ink: #0c0c0c;
  --muted: #666666;
  --line: #e2e2e2;
  --wall: #ebeae6;
  --glass: rgba(255, 255, 255, .8);
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --serif: "Bodoni Moda", "Didot", Georgia, serif;
  --stick: 56px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { overflow-x: clip; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; transition: background-color .6s, color .6s; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
figure > button, .slot > button, .tile > button { border: 0; padding: 0; background: none; cursor: zoom-in; display: block; width: 100%; }
.g { padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.k { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sec-h { margin: 0; font-size: clamp(30px, 4vw, 56px); font-weight: 800; letter-spacing: -0.04em; line-height: .95; }
.head-row { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px 24px; padding-block: 48px 28px; border-top: 1px solid var(--line); }
.head-row p { margin: 0; color: var(--muted); max-width: 46ch; }

/* Corner navigation */
.corner { position: fixed; z-index: 48; display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: #fff; mix-blend-mode: difference; }
.corner a, .corner button { text-decoration: none; background: none; border: 0; padding: 6px 0; cursor: pointer; color: #fff; }
.corner .plus { width: 18px; height: 18px; position: relative; display: inline-block; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.corner .plus::before, .corner .plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: #fff; }
.corner .plus::after { transform: rotate(90deg); }
.corner [aria-expanded="true"] .plus { transform: rotate(45deg); }
.tl { top: calc(16px + env(safe-area-inset-top, 0px)); left: max(20px, env(safe-area-inset-left, 0px)); }
.tr { top: calc(16px + env(safe-area-inset-top, 0px)); right: max(20px, env(safe-area-inset-right, 0px)); gap: 6px; }

/* Hero, ViV mechanics */
.viv { position: relative; overflow-x: clip; }
.namebox { position: sticky; top: 0; z-index: 0; padding-top: calc(128px + env(safe-area-inset-top, 0px)); }
.namebox .tag { margin: 0 0 1.4vw; font-size: clamp(16px, 1.5vw, 22px); line-height: 1.2; font-weight: 500; letter-spacing: -0.01em; max-width: 26ch; }
.namebox h1 { margin: 0; font-weight: 900; font-size: 16.9vw; line-height: .78; letter-spacing: -0.065em; white-space: nowrap; text-align: center; color: var(--ink); transition: color .6s; }
.stage { position: relative; z-index: 1; margin-top: -5vw; padding-bottom: 12vh; overflow: hidden; }
.cols-h { display: flex; gap: var(--gap); width: max-content; margin-left: var(--shift); align-items: flex-start; }
.hcol { width: var(--cw); flex: none; display: grid; gap: var(--gap); }
.run { display: grid; gap: var(--gap); transition: opacity .5s, filter .5s; }
.run.dim { opacity: .14; filter: grayscale(1); }
.run-label { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; padding: 2px 0 10px; }
.run-label a { text-decoration: none; font-weight: 500; }
.run-label a:hover { text-decoration: underline; text-underline-offset: 4px; }
.run-label span { color: var(--muted); }
.run-top { position: sticky; top: calc(var(--stick) + env(safe-area-inset-top, 0px)); z-index: 3; justify-self: start; background: var(--ground); color: var(--ink); padding: 5px 10px 6px; font-size: 13px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: calc(var(--gap) * -1 - 30px); transition: background-color .6s, color .6s; }
.slot { position: relative; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.slot:hover { transform: scale(1.06); z-index: 2; }
.slot .wrap { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--c, #ccc); border: var(--mat, 0px) solid var(--paper, #fff); box-shadow: 0 0 0 1px rgba(0,0,0,.07), 0 10px 30px -18px rgba(0,0,0,.45); transition: background-color .9s cubic-bezier(.45,0,.55,1); }
.slot img { width: 100%; height: 100%; object-fit: cover; transition: opacity .9s cubic-bezier(.45,0,.55,1); }
.slot img.out { opacity: 0; }
/* VI: frames change like an old split-flap departures board. Top half of the old photo falls, bottom half of the new one lands. */
html.v6 .slot .wrap { position: relative; perspective: 700px; }
html.v6.flip .slot .wrap::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; margin-top: -.5px; background: rgba(0,0,0,.28); box-shadow: 0 1px 0 rgba(255,255,255,.12); z-index: 4; pointer-events: none; }
.flap { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; backface-visibility: hidden; pointer-events: none; }
.flap.top { clip-path: inset(0 0 50% 0); }
.flap.bot { clip-path: inset(50% 0 0 0); }
.flap.st { z-index: 1; }
.flap.f1 { z-index: 3; transform-origin: 50% 50%; animation: flapDown var(--fd, 130ms) cubic-bezier(.55,0,1,.45) forwards; }
.flap.f2 { z-index: 3; transform-origin: 50% 50%; transform: rotateX(90deg); animation: flapUp var(--fd, 130ms) cubic-bezier(0,.55,.45,1) var(--fd, 130ms) forwards; }
@keyframes flapDown { 0% { transform: rotateX(0); filter: brightness(1); } 100% { transform: rotateX(-90deg); filter: brightness(.55); } }
@keyframes flapUp { 0% { transform: rotateX(90deg); filter: brightness(.6); } 100% { transform: rotateX(0); filter: brightness(1); } }

/* Pinned filter, top or bottom */
.bar { position: fixed; z-index: 55; left: 50%; transform: translateX(-50%); display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--line); max-width: calc(100vw - 24px); transition: opacity .4s, translate .4s; }
.bar.away { opacity: 0; pointer-events: none; translate: 0 12px; }
.bar.at-bottom { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
.bar.at-top { top: calc(58px + env(safe-area-inset-top, 0px)); }
.bar button { flex: none; border: 0; background: none; padding: 8px 12px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 500; white-space: nowrap; }
.bar button[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.bar .sep { width: 1px; align-self: stretch; background: var(--line); margin: 6px 4px; flex: none; }
.bar .lamp i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #c8321f; margin-right: 6px; vertical-align: 1px; }
.bar .lamp[aria-pressed="true"] { background: #2a0705; color: #ff6a56; }
.bar .lamp[aria-pressed="true"] i { background: #ff3b25; box-shadow: 0 0 10px 2px rgba(255, 59, 37, .7); }

/* Version A: bodies of work */
.bodies { padding-bottom: 100px; }
.bhead { position: sticky; top: calc(var(--stick) + env(safe-area-inset-top, 0px)); z-index: 4; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 14px; background: var(--ground); padding: 10px 0 8px; border-bottom: 1px solid var(--ink); transition: background-color .6s; }
.bhead button { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.bhead b { font-size: clamp(15px, 1.4vw, 20px); font-weight: 800; letter-spacing: -0.02em; }
.bhead span { color: var(--muted); font-size: 12px; }
.bhead button.dim { opacity: .3; }
.bcols { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 14px; align-items: start; padding-top: 18px; }
.bcol { display: grid; gap: 14px; will-change: transform; transition: opacity .5s, filter .5s; }
.bcol.dim { opacity: .14; filter: grayscale(1); }
.tileb button { border: 0; padding: 0; background: none; width: 100%; cursor: zoom-in; display: block; overflow: hidden; }
.tileb img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.tileb.tall img { aspect-ratio: 4 / 5; }
.tileb button:hover img { transform: scale(1.04); }
.tileb figcaption { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; margin-top: 6px; }
.tileb figcaption span { color: var(--muted); }
.tileb.reused figcaption span::after { content: " · placeholder"; }


/* Bodies of work as a catalogue: every frame keeps its catalogue number (project.frame), one section per body of work */
.mono { font-family: "Geist Mono", ui-monospace, Menlo, monospace; font-size: 11px; letter-spacing: .02em; text-transform: uppercase; }
.catsec { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-flow: dense; gap: 22px; padding-block: 56px; }
.catsec + .catsec { border-top: 1px solid var(--line); }
.cell { margin: 0; min-width: 0; transition: opacity .5s; }
.cell > button { overflow: hidden; }
.cell img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.cell > button:hover img { transform: scale(1.03); }
.cell figcaption { display: block; margin-top: 8px; color: var(--muted); }
.cell figcaption b { color: var(--ink); font-weight: 500; }
.cell.keep { grid-column: span 2; grid-row: span 2; }
.cell.keep img { aspect-ratio: auto; height: 100%; min-height: 100%; }
.cell.keep > button { height: calc(100% - 26px); }
.ctext { grid-row: span 2; display: grid; align-content: start; gap: 10px; padding-top: 2px; }
.ctext .rng, .ctext .th { color: var(--muted); }
.ctext h3 { margin: 0; font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.ctext p { margin: 6px 0 0; max-width: 28ch; }
.ctext a { justify-self: start; margin-top: 6px; text-decoration: none; border-bottom: 1px solid currentColor; }
@media (max-width: 860px) {
  .catsec { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; padding-block: 40px; }
  .cell.keep { grid-column: 1 / -1 !important; grid-row: auto; }
  .cell.keep img { aspect-ratio: 3 / 2; height: auto; min-height: 0; }
  .cell.keep > button { height: auto; }
  .ctext { grid-column: 1 / -1; grid-row: auto; }
}

/* Slideshow: one large frame above a strip of film. Hover or drag a finger along the film to change the frame; near either end the film runs that way on its own. */
.slides { padding-bottom: 90px; }
.screen { position: relative; margin: 0; }
.screen-in { position: relative; display: block; width: 100%; height: clamp(240px, calc(100vh - 330px), 56vw); background: #0d0d0c; border: 0; padding: 0; cursor: zoom-in; overflow: hidden; }
.screen-in img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .28s ease; }
.screen-in img.on { opacity: 1; }
.screen figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 10px; font-size: 13px; }
.screen figcaption .mono { color: var(--muted); }
.film { position: relative; margin-top: 22px; background: #121110; border-radius: 3px; }
.film::before, .film::after { content: ""; position: absolute; left: 0; right: 0; height: 18px; z-index: 2; pointer-events: none; background: radial-gradient(ellipse 5px 4px at 50% 50%, #f2efe8 92%, transparent 100%) 0 0 / 22px 18px repeat-x; opacity: .9; }
.film::before { top: 0; } .film::after { bottom: 0; }
.film-run { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; padding: 22px 6px; touch-action: pan-x; overscroll-behavior-x: contain; }
.film-run::-webkit-scrollbar { display: none; }
.fr { flex: none; position: relative; border: 0; padding: 0 5px; background: none; cursor: pointer; display: grid; gap: 4px; color: #e8a33d; }
.fr img { height: clamp(78px, 9vw, 120px); width: auto; aspect-ratio: 3 / 2; object-fit: cover; opacity: .55; filter: saturate(.85); transition: opacity .2s, filter .2s; }
.fr .mono { font-size: 10px; text-align: left; opacity: .85; }
.fr[aria-current="true"] img, .fr:hover img, .fr:focus-visible img { opacity: 1; filter: none; }
.fr[aria-current="true"] img { outline: 2px solid #e8a33d; outline-offset: 2px; }
.film .edge { position: absolute; top: 0; bottom: 0; width: 12%; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .3s; }
.film .edge.l { left: 0; background: linear-gradient(90deg, rgba(18,17,16,.9), transparent); }
.film .edge.r { right: 0; background: linear-gradient(-90deg, rgba(18,17,16,.9), transparent); }
.film .edge.on { opacity: 1; }
.slides .hint2 { margin-top: 10px; color: var(--muted); }
@media (max-width: 860px) { .screen-in { height: 62vw; } .fr img { height: 64px; } }

/* VI: each body of work is its own slideshow. Text always sits in a rail on the left; the big number in the rail is the catalogue number of the frame on screen. */
.bslide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 22px 32px; padding-block: 60px; }
.bslide + .bslide { border-top: 1px solid var(--line); }
.bs-text { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bs-text .rng, .bs-text .th { color: var(--muted); }
.bs-text h3 { margin: 0; font-size: clamp(30px, 3.2vw, 50px); font-weight: 900; letter-spacing: -0.045em; line-height: .9; }
.bs-text p { margin: 2px 0 0; max-width: 34ch; line-height: 1.5; }
.bs-now { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--ink); display: grid; gap: 6px; }
.bs-num { font-weight: 900; font-size: clamp(56px, 7.4vw, 120px); line-height: .8; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.bs-cap { font-size: 14px; font-weight: 500; }
.bs-count { color: var(--muted); }
.bslide .screen-in { height: clamp(240px, calc(100vh - 330px), 44vw); }
.bslide .film { grid-column: 1 / -1; margin-top: 0; }
@media (max-width: 860px) {
  .bslide { grid-template-columns: minmax(0, 1fr); padding-block: 44px; }
  .bs-now { margin-top: 6px; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 14px; row-gap: 8px; }
  .bs-num { font-size: 72px; grid-column: 1 / -1; }
  .bs-count { text-align: right; }
  .bslide .screen-in { height: 62vw; }
}

/* Collage, after Stephen Kent Johnson */
.collage-sec { padding-block: 0 80px; overflow: hidden; }
.collage { display: flex; flex-wrap: wrap; align-items: center; width: calc(100% + 4vw); margin-left: -2vw; }
.tile { position: relative; flex: 1 1 var(--tw); max-width: calc(var(--tw) * 1.35); transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .5s, filter .5s; }
.tile img { width: 100%; height: calc(var(--tw) * 1.25); aspect-ratio: auto; object-fit: cover; background: var(--c, #ccc); }
.tile.wide { flex-basis: calc(var(--tw) * 2); max-width: calc(var(--tw) * 2.7); }

.tile.big { transform: scale(1.16); z-index: 1; }
.tile:hover { transform: scale(1.3); z-index: 3; box-shadow: 0 14px 40px rgba(0,0,0,.28); }
.tile.dim { opacity: .12; filter: grayscale(1); }
.collage-sec .head-row { border-top: 1px solid var(--line); }

/* Rooms */
.rooms { background: var(--wall); background-image: radial-gradient(520px circle at var(--lx, 70%) var(--ly, 20%), rgba(255,255,255,.75), transparent 70%); background-attachment: fixed; padding-bottom: 60px; }
.room { position: relative; padding-top: 110px; }
.hang { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 72px; padding-bottom: 40px; }
.print { margin: 0; min-width: 0; }
.print .paper { display: block; width: 100%; border: 0; cursor: zoom-in; background: #fff; padding: clamp(6px, 1vw, 14px); }
.print img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.print figcaption { margin-top: 12px; font-size: 12px; line-height: 1.45; color: #5f5e58; max-width: 30ch; }
.print figcaption b { color: var(--ink); font-weight: 500; }
.vinyl { position: sticky; bottom: env(safe-area-inset-bottom, 0px); z-index: 0; margin: 0; font-weight: 900; text-transform: uppercase; white-space: nowrap; line-height: .78; letter-spacing: -0.05em; padding-bottom: 8px; pointer-events: none; overflow: hidden; }
.vinyl small { display: block; font-size: 13px; letter-spacing: .1em; font-weight: 500; line-height: 1; margin-bottom: 12px; color: #5f5e58; }
.voice { position: relative; z-index: 1; padding-block: 120px 20px; font-size: clamp(24px, 3vw, 40px); line-height: 1.2; max-width: 22ch; margin: 0 0 0 auto; text-align: right; font-style: italic; font-family: var(--serif); }
.empty { padding-block: 40px; color: var(--muted); }

/* His line */
.said { padding-block: 160px; border-top: 1px solid var(--line); }
.said p { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(38px, 6.4vw, 104px); line-height: 1.02; letter-spacing: -0.02em; max-width: 16ch; }
.said .w { display: inline-block; opacity: var(--o, 1); filter: blur(calc((1 - var(--o, 1)) * 6px)); }
.said p.by { margin-top: 26px; color: var(--muted); font-family: var(--sans); font-style: normal; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4; max-width: none; }

/* Reading room, collection, about */
.after { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 24px; padding-block: 40px 100px; border-top: 1px solid var(--line); }
.after h2 { margin: 0 0 14px; font-size: 15px; font-weight: 800; }
.reading { grid-column: 1 / 7; }
.reading ol { list-style: none; margin: 0; padding: 0; }
.reading li { border-top: 1px solid var(--line); padding-block: 14px; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; }
.reading li span { color: var(--muted); font-size: 13px; }
.reading a { text-decoration: none; font-size: 18px; font-weight: 500; }
.reading a:hover { text-decoration: underline; text-underline-offset: 4px; }
.collection { grid-column: 8 / -1; display: grid; gap: 14px; align-content: start; }
.collection p { margin: 0; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { text-decoration: none; border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; font-size: 13px; }
.tags a:hover { border-color: var(--ink); }
.about { grid-column: 1 / -1; display: grid; gap: 10px; padding-top: 24px; border-top: 1px solid var(--line); }
.about p { margin: 0; font-size: clamp(20px, 2.2vw, 30px); font-weight: 500; letter-spacing: -0.015em; max-width: 34ch; }
.marquee { display: block; overflow: hidden; border-top: 1px solid var(--line); padding-block: 26px 120px; text-decoration: none; }
.marquee .run2 { display: flex; width: max-content; gap: 6vw; font-weight: 900; font-size: clamp(56px, 11vw, 180px); letter-spacing: -0.06em; line-height: .9; }
html.v6 .after { padding-bottom: 28px; }
html.v6 .marquee { padding-block: 12px calc(84px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
html.v6 .marquee .run2 { font-size: 13px; font-weight: 500; letter-spacing: .02em; line-height: 1.4; gap: 28px; color: var(--muted); }
html.v6 .marquee:hover .run2 { color: var(--ink); }
@media (prefers-reduced-motion: no-preference) { .marquee .run2 { animation: mq 28s linear infinite; } @keyframes mq { to { transform: translateX(-50%); } } }

/* Viewer with Stay a while */
dialog.view { border: 0; padding: 0; max-width: min(92vw, 1400px); background: transparent; color: #f0efe9; }
dialog.view::backdrop { background: rgba(10, 10, 9, .93); }
dialog.view .vimg { position: relative; }
dialog.view img { max-height: 78vh; width: auto; max-width: 100%; object-fit: contain; background: #0a0a09; }
dialog.view .bar2 { display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; font-size: 13px; }
dialog.view .bar2 button { background: none; border: 1px solid currentColor; color: inherit; padding: 6px 14px; cursor: pointer; }
dialog.view .stay { height: 2px; background: rgba(240,239,233,.25); margin-top: 10px; overflow: hidden; }
dialog.view .stay i { display: block; height: 100%; width: 100%; background: #f0efe9; transform-origin: left; transform: scaleX(0); }
dialog.view.counting .stay i { transition: transform 10s linear; transform: scaleX(1); }
dialog.view .hint { font-size: 12px; opacity: .6; margin: 6px 0 0; transition: opacity .8s; }
dialog.view .note { margin: 18px 0 0; font-size: clamp(18px, 2vw, 24px); font-style: italic; font-family: var(--serif); max-width: 46ch; opacity: 0; transition: opacity 1.6s; }
dialog.view.still .bar2, dialog.view.still .stay, dialog.view.still .hint { opacity: 0; transition: opacity 1.2s; }
dialog.view.still .note { opacity: 1; }

/* Lights off */
.dark-cover { position: fixed; inset: 0; z-index: 50; pointer-events: none; background: radial-gradient(circle 190px at var(--tx, 50%) var(--ty, 45%), rgba(0,0,0,0) 0, rgba(0,0,0,.35) 45%, rgba(4,4,3,.97) 100%); }

/* Safelight */
html.safe { --ground: #0d0202; --ink: #ff6a56; --muted: #c9503f; --line: #3a0d09; --wall: #140303; --glass: rgba(30, 5, 4, .8); color-scheme: dark; }
html.safe img { filter: grayscale(1) contrast(1.08); }
html.safe .slot .wrap, html.safe .tile img { background: #2a0a07; }
html.safe { --paper: #efe8dc; }
html.safe body::after { content: ""; position: fixed; inset: 0; z-index: 70; background: #ff2b17; mix-blend-mode: multiply; pointer-events: none; }
html.safe .rooms { background-image: radial-gradient(700px circle at 50% 0%, #2a0705, transparent 70%); }
html.safe .print .paper { background: #efe8dc; }
html.safe .print figcaption, html.safe .vinyl small { color: var(--muted); }
html.safe dialog.view .vimg::after { content: ""; position: absolute; inset: 0; background: #ff2b17; mix-blend-mode: multiply; pointer-events: none; }
html.developing img { animation: develop 2.6s cubic-bezier(.45, 0, .2, 1) both; }
@keyframes develop { 0% { opacity: 0; } 30% { opacity: .2; } 100% { opacity: 1; } }

/* Project menu */
.menu { position: fixed; inset: 0; z-index: 45; background: var(--ground); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 4vw; padding-block: 90px 60px; overflow-y: auto; overscroll-behavior: contain; }
.menu-main { display: grid; gap: 14px; align-content: start; }
.menu.solo { grid-template-columns: minmax(0, 1fr); align-items: start; }
.menu.solo .preview, .menu.solo .pv-cap { display: none; }
.menu .big-list a { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 14px 0; text-decoration: none; }
.menu .big-list .n { color: var(--muted); font-size: 13px; }
.menu .big-list .t { font-size: clamp(34px, 6vw, 96px); font-weight: 800; letter-spacing: -0.045em; line-height: .95; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.menu .big-list a:hover .t, .menu .big-list a:focus-visible .t { transform: translateX(14px); }
.menu.solo .menu-more { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
.menu-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.menu-more ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.menu-more li { border: 0; }
.menu-more a { text-decoration: none; font-size: clamp(17px, 1.5vw, 22px); font-weight: 600; letter-spacing: -0.015em; }
.menu-more a:hover { text-decoration: underline; text-underline-offset: 4px; }
.menu-more a span { color: var(--muted); font-weight: 400; margin-right: 8px; font-size: .75em; }
.menu ol { list-style: none; margin: 0; padding: 0; }
.menu li { border-bottom: 1px solid var(--line); }
.menu li button { width: 100%; text-align: left; border: 0; background: none; cursor: pointer; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding: 14px 0; }
.menu li .n, .menu li .th { color: var(--muted); font-size: 13px; }
.menu li .t { font-size: clamp(30px, 4.4vw, 68px); font-weight: 800; letter-spacing: -0.045em; line-height: .95; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.menu li button:hover .t, .menu li button:focus-visible .t { transform: translateX(14px); }
.menu .preview { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.menu .preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.menu .preview img.on { opacity: 1; }
.menu .pv-cap { margin-top: 10px; color: var(--muted); font-size: 13px; min-height: 1.4em; }

/* Mockup options */

@media (max-width: 860px) {
  .g { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .corner { font-size: 13px; }
  .tr { gap: 4px; }
  .namebox { padding-top: calc(96px + env(safe-area-inset-top, 0px)); }
  .namebox .tag { margin-bottom: 10px; }
  .stage { margin-top: 6vw; }
  .slot:hover { transform: none; }
  /* A: bodies of work become tabs over a two-column grid of one body at a time */
  .bhead { display: flex; overflow-x: auto; scrollbar-width: none; gap: 18px; border-bottom-color: var(--line); }
  .bhead button { flex: none; }
  .bhead button[aria-selected="true"] b { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
  .bhead button.dim { opacity: 1; }
  .bhead span { display: none; }
  .bcols { display: block; }
  .bcol { display: none; transform: none !important; }
  .bcol.on { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
  .bcol.on .tileb:nth-child(2n) { margin-top: 36px; }
  .bcol.dim { opacity: 1; filter: none; }
  .tileb img, .tileb.tall img { aspect-ratio: 4 / 5; }
  .tileb figcaption { flex-direction: column; gap: 0; }
  .collage { width: calc(100% + 8vw); margin-left: -4vw; }
  .tile:hover { transform: none; box-shadow: none; }
  .tile.big { transform: scale(1.1); }
  .room { padding-top: 64px; }
  .hang { display: flex; flex-direction: column; row-gap: 40px; }
  .print { width: 100% !important; margin-top: 0 !important; }
  .print.sm { width: 72% !important; }
  .print.sm.r { align-self: flex-end; }
  .after { display: block; }
  .collection { margin-top: 40px; }
  .menu { grid-template-columns: minmax(0, 1fr); align-content: start; padding-block: 80px 40px; }
  .menu .preview { order: -1; }
  html.v6 .menu .preview, html.v6 .menu .pv-cap { display: none; }
  .menu li .t { font-size: 30px; }
  .bar.at-bottom { bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  .bar { border-radius: 14px; }
  .said { padding-block: 100px; }
}
/* VII: the rangefinder. The page opens on the top plate of a camera with his name engraved in the blank chrome, the frame counter and shutter release live; below it the body and its viewfinder, where the photographs are focused and taken. */
.rf { position: relative; background: #0e0e0d; color: #e9e6df; }
.plate { position: relative; container-type: inline-size; aspect-ratio: 1344 / 500; overflow: hidden; background: #bc9d80; }
.plate > img { object-position: 50% 100%; }
.plate > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.engrave { position: absolute; left: 24.5%; width: 43%; top: 29.7%; margin: 0; text-align: center; font-weight: 700; font-size: 5.8cqw; letter-spacing: -0.02em; line-height: 1; color: #262624; text-shadow: 0 .09cqw 0 rgba(255,255,255,.7), 0 -.06cqw 0 rgba(0,0,0,.35); mix-blend-mode: multiply; }
.serial { position: absolute; left: 24.5%; width: 43%; top: 57.4%; text-align: center; font-family: "Geist Mono", ui-monospace, monospace; font-size: 1.05cqw; letter-spacing: .45em; color: #2a2a28; text-shadow: 0 .06cqw 0 rgba(255,255,255,.6); text-transform: uppercase; }
.counter { position: absolute; left: 84.6%; top: 47.2%; width: 8.2%; height: 12%; display: grid; place-items: center; background: linear-gradient(#efeadb, #ddd6c3); border-radius: .5cqw; box-shadow: inset 0 .15cqw .3cqw rgba(0,0,0,.35); font-family: "Geist Mono", ui-monospace, monospace; font-weight: 500; font-size: 2.1cqw; color: #1b1b1a; letter-spacing: .05em; }
.counter b { font-weight: 500; display: inline-block; }
.counter b.tick { animation: tick .32s cubic-bezier(.2,.8,.2,1); }
@keyframes tick { from { transform: translateY(60%); opacity: 0; } to { transform: none; opacity: 1; } }
.release { position: absolute; left: 86.2%; top: 7.8%; width: 9.4%; height: 31%; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.release:hover, .release:focus-visible { background: radial-gradient(circle, rgba(255,255,255,.25), transparent 65%); outline: none; }
.rf-body { position: relative; background: #121211 none 0 0 / 210px; padding: clamp(28px, 5vw, 72px) max(16px, 5vw) clamp(26px, 4vw, 56px); box-shadow: inset 0 18px 30px -18px rgba(0,0,0,.9); }
.vf-ring { max-width: 1120px; margin: 0 auto; padding: clamp(6px, .9vw, 12px); border-radius: clamp(12px, 1.6vw, 22px); background: linear-gradient(160deg, #f4f4f2 0%, #a9aaa8 22%, #e7e7e4 45%, #8d8e8b 70%, #d9d9d6 100%); box-shadow: 0 1px 0 rgba(255,255,255,.4), 0 18px 40px -20px rgba(0,0,0,.9); }
.vf { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: clamp(6px, .9vw, 12px); background: #050505; cursor: crosshair; touch-action: manipulation; }
.vf > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vf::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55) 100%); box-shadow: inset 0 0 0 1px rgba(0,0,0,.6); }
.lines { position: absolute; inset: 7% 8%; pointer-events: none; z-index: 2; --c: rgba(255, 252, 235, .85); --l: clamp(16px, 2.4vw, 34px);
  background: linear-gradient(var(--c), var(--c)) 0 0 / var(--l) 1.5px, linear-gradient(var(--c), var(--c)) 0 0 / 1.5px var(--l),
              linear-gradient(var(--c), var(--c)) 100% 0 / var(--l) 1.5px, linear-gradient(var(--c), var(--c)) 100% 0 / 1.5px var(--l),
              linear-gradient(var(--c), var(--c)) 0 100% / var(--l) 1.5px, linear-gradient(var(--c), var(--c)) 0 100% / 1.5px var(--l),
              linear-gradient(var(--c), var(--c)) 100% 100% / var(--l) 1.5px, linear-gradient(var(--c), var(--c)) 100% 100% / 1.5px var(--l);
  background-repeat: no-repeat; }
.patch { position: absolute; left: 39%; top: 40.5%; width: 22%; height: 19%; overflow: hidden; z-index: 3; pointer-events: none; outline: 1px solid rgba(255, 248, 220, .55); transition: outline-color .3s; }
.patch img { position: absolute; max-width: none; object-fit: cover; opacity: .62; mix-blend-mode: screen; }
.patch::after { content: ""; position: absolute; inset: 0; background: rgba(255, 196, 110, .16); mix-blend-mode: overlay; }
.vf.sharp .patch { outline-color: rgba(255, 248, 220, .95); }
.blink { position: absolute; inset: 0; z-index: 5; background: #000; opacity: 0; pointer-events: none; transition: opacity .28s ease; }
.blink.on { opacity: 1; transition: none; }
.vf-cap { max-width: 1120px; margin: 14px auto 0; display: flex; justify-content: space-between; gap: 16px; color: #bdb9b0; }
.vf-cap .mono { font-size: 11px; }
.vf-cap #rf-cap { color: #ece8df; }
.about.sheet { display: block; border-top: 2px solid var(--ink); padding-top: 0; }
.sh-head { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--ink); color: var(--muted); }
.sh-lede { margin: 0; padding: clamp(28px, 4vw, 56px) 0; font-size: clamp(26px, 3.2vw, 48px) !important; font-weight: 700 !important; letter-spacing: -0.03em !important; line-height: 1.08; max-width: 24ch !important; }
.sh-grid { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.sh-grid > div { padding: 14px 16px 18px 0; border-bottom: 1px solid var(--line); }
.sh-grid dt { color: var(--muted); margin-bottom: 6px; }
.sh-grid dd { margin: 0; font-size: 16px; font-weight: 500; }
html.safe .vf .patch::after { background: transparent; }
@media (max-width: 860px) {
  .rf { padding-top: 56px; background: linear-gradient(#bc9d80 0 56px, #0e0e0d 56px); }
  .rf-body { background-size: 140px; }
  .vf-cap { flex-direction: column; gap: 4px; }
  .sh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* VIII: the lens dive. A rangefinder draws itself like a patent drawing, assembles, opens its iris on his photographs, and on scroll you fall through the lens into the work. */
.dive { position: relative; height: 260vh; background: #efece5; }
.dive-stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.dive-bg { position: absolute; inset: 0; background: #0b0b0a; opacity: 0; pointer-events: none; }
.dive svg { position: relative; width: min(94vw, 1180px, calc((100svh - 150px) * 1.875)); height: auto; overflow: visible; transform-origin: 50% 50%; will-change: transform; }
.dive .meta { position: absolute; left: 0; right: 0; display: flex; justify-content: space-between; gap: 16px; padding-inline: max(20px, 4vw); font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #3a3935; transition: opacity .4s; }
.dive .meta.top { top: calc(70px + env(safe-area-inset-top, 0px)); }
.dive .meta.bot { bottom: calc(26px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: 1fr auto 1fr; }
.dive .meta.bot #dv-hint { text-align: right; }
.dive .meta.bot #dv-cap { text-align: center; }
.lensph { position: absolute; inset: 0; pointer-events: none; clip-path: circle(0 at 50% 50%); }
.lensph img { position: absolute; object-fit: cover; max-width: none; }
.lensph .sheen { position: absolute; inset: 0; background: radial-gradient(circle at var(--sx, 50%) var(--sy, 50%), transparent 0, transparent calc(var(--sr, 100px) * .55), rgba(0,0,0,.55) var(--sr, 100px)); }
.dive .meta b { font-weight: 500; color: #111; }
.ink { fill: none; stroke: #1b1b19; stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; }
.go .ink { animation: draw 1.5s cubic-bezier(.6,.05,.3,1) forwards; animation-delay: var(--d, 0s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.fillp { opacity: 0; }
.go .fillp { animation: fillin .9s ease forwards; animation-delay: calc(1.45s + var(--d, 0s)); }
@keyframes fillin { to { opacity: 1; } }
.bp { opacity: 0; }
.go .bp { animation: bp 3.6s ease forwards; animation-delay: .5s; }
@keyframes bp { 0% { opacity: 0; } 20% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; } }
.spin { transform-box: view-box; transform-origin: 600px 490px; }
.go .spin.a { animation: spinA 1.6s cubic-bezier(.2,.8,.2,1) 1.5s both; }
.go .spin.b { animation: spinB 1.9s cubic-bezier(.2,.8,.2,1) 1.6s both; }
.go .spin.c { animation: spinA 2.2s cubic-bezier(.2,.8,.2,1) 1.7s both; }
@keyframes spinA { from { transform: rotate(-80deg) scale(.9); } to { transform: none; } }
@keyframes spinB { from { transform: rotate(70deg) scale(.94); } to { transform: none; } }
.drop { transform-box: fill-box; }
.go .drop { animation: drop .8s cubic-bezier(.2,.9,.25,1.15) calc(1.5s + var(--d, 0s)) both; }
@keyframes drop { from { transform: translateY(-34px); } to { transform: none; } }
.engr { opacity: 0; }
.go .engr { animation: fillin 1s ease 2.6s forwards; }
html.safe .dive { background: #120303; }
html.safe .dive .meta, html.safe .dive .meta b { color: var(--ink); }
html.safe .ink { stroke: var(--ink); }
@media (max-width: 860px) {
  .dive { height: 220vh; }
  .dive svg { width: 168vw; max-width: none; margin-inline: -34vw; }
  .dive .meta.bot { grid-template-columns: 1fr; gap: 6px; text-align: center; }
  .dive .meta.bot > span:first-child { display: none; }
  .dive .meta.bot #dv-hint, .dive .meta.bot #dv-cap { text-align: center; }
  .dive .meta { font-size: 10px; letter-spacing: .1em; }
  .dive .meta .hide-s { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ink { stroke-dashoffset: 0; } .fillp, .engr { opacity: 1; } .bp { opacity: 0; } }
/* v9: his About, Available for, Get in touch and footer. Safelight sits bottom right and stays. */
html.v9 .bar { left: auto; right: max(16px, env(safe-area-inset-right, 0px)); transform: none; }
html.v9 .bar.at-top { top: auto; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
html.nm-scroll .namebox { position: relative; }
html.v9 .after { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: 0 40px; }
.about9, .contact9 { padding-block: clamp(48px, 7vw, 110px); border-top: 1px solid var(--ink); }
.lede9 { margin: 14px 0 clamp(28px, 4vw, 52px); font-size: clamp(30px, 4.4vw, 68px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; max-width: 18ch; }
.cols9 { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 32px clamp(32px, 6vw, 110px); align-items: start; }
.body9 p { margin: 0 0 1em; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.6; max-width: 60ch; }
.avail9 { display: grid; gap: 8px; align-content: start; }
.avail9 ul { list-style: none; margin: 6px 0 0; padding: 0; }
.avail9 li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 500; }
.avail9 li:first-child { border-top: 1px solid var(--line); }
.avail9 p { margin: 0; }
.rates9 { color: var(--muted); margin-top: 10px !important; }
.btn9 { justify-self: start; margin-top: 14px; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--ground); text-decoration: none; font-weight: 600; }
.mail9 { font-size: clamp(20px, 2vw, 28px); font-weight: 700; letter-spacing: -0.02em; text-decoration: none; border-bottom: 2px solid currentColor; justify-self: start; }
.foot9 { border-top: 1px solid var(--ink); padding-block: 28px calc(90px + env(safe-area-inset-bottom, 0px)); }
.f-line { margin: 0 0 16px; font-size: clamp(18px, 1.8vw, 26px); font-weight: 600; letter-spacing: -0.015em; max-width: 34ch; }
.f-row { display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--muted); font-size: 14px; }
.f-row a { color: var(--ink); text-decoration: none; }
.f-row a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 860px) {
  html.v9 .bar.at-bottom, html.v9 .bar.at-top { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .cols9 { grid-template-columns: minmax(0, 1fr); }
  .f-row { flex-direction: column; }
}
/* v9 rhythm: the same gap before every section line, the same gap after it */
html.v9 { --gapB: clamp(56px, 7vw, 104px); --gapA: 48px; }
html.v9 .stage { padding-bottom: 0; margin-bottom: var(--gapB); }
html.v9 #work, html.v9 .collage-sec { padding-bottom: var(--gapB); }
html.v9 .head-row { padding-top: var(--gapA); }
html.v9 .said { padding-block: var(--gapA) var(--gapB); }
html.v9 .about9, html.v9 .contact9 { padding-block: var(--gapA) var(--gapB); }
html.v9 .foot9 { padding-top: var(--gapA); }
html.v9 .bslide:last-child { padding-bottom: 0; }
html.v9 .after { padding-bottom: 0 !important; }
.desc9 { margin: 6px 0 0; max-width: 34ch; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.6; color: var(--muted); }
.lede9 .w { display: inline-block; opacity: var(--o, 1); filter: blur(calc((1 - var(--o, 1)) * 6px)); }
/* X */
html.v10.he-full .stage { -webkit-mask-image: none !important; mask-image: none !important; padding-bottom: 28px; margin-bottom: calc(var(--gapB) - 28px) !important; }
html.v10.he-fade .stage { margin-bottom: max(24px, calc(var(--gapB) - min(8vh, 72px))) !important; }
html.v10 .stage { margin-top: -2.2vw; -webkit-mask-image: linear-gradient(#000 calc(100% - min(26vh, 240px)), transparent); mask-image: linear-gradient(#000 calc(100% - min(26vh, 240px)), transparent); }
html.v10 .corner { mix-blend-mode: normal; color: var(--ink); background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border: 1px solid rgba(0,0,0,.06); border-radius: 999px; padding: 6px 14px; }
html.v10 .corner a, html.v10 .corner button { color: var(--ink); }
html.v10 .corner .plus::before, html.v10 .corner .plus::after { background: var(--ink); }
html.v10 .tl { left: max(12px, env(safe-area-inset-left, 0px)); top: calc(12px + env(safe-area-inset-top, 0px)); }
html.v10 .tr { right: max(12px, env(safe-area-inset-right, 0px)); top: calc(12px + env(safe-area-inset-top, 0px)); gap: 7px; }
html.v10 .tr span { color: var(--muted); }
html.safe.v10 .corner { background: rgba(30,5,4,.75); border-color: var(--line); }
html.v10 .namebox { padding-top: calc(76px + env(safe-area-inset-top, 0px)); }
html.v10 .namebox .tag { max-width: 32ch; margin-bottom: 1vw; font-size: clamp(17px, 1.6vw, 24px); }
.sub10 { display: block; margin-top: 8px; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
html.v10 .namebox h1 { text-align: left; }
html.v10 #work > .head-row { display: block; }
html.v10 #work > .head-row p { margin-top: 18px; max-width: 30ch; font-size: clamp(20px, 2vw, 30px); line-height: 1.25; color: var(--ink); font-weight: 500; letter-spacing: -0.015em; }
html.v10 #work > .head-row { padding-bottom: clamp(40px, 6vw, 88px); }
html.v10 .bslide { border-top: 1px solid var(--line); padding-top: 28px; }
html.v10 .bslide:first-child { border-top-color: var(--ink); }
.lab10 { margin-bottom: 2px; }
.phil10 { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px clamp(32px, 6vw, 110px); margin-top: clamp(48px, 6vw, 96px); padding-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line); align-items: start; }
.me10 { margin: 0; }
.me10-frame { aspect-ratio: 4 / 5; background: #ecebe7; border: 10px solid #fff; outline: 1px solid var(--line); box-shadow: 0 18px 40px -24px rgba(0,0,0,.5); transform: rotate(-1.2deg); display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 16px; color: var(--muted); }
html.safe .me10-frame { background: #1c0505; border-color: #efe8dc; }
.phil10-text p { margin: 14px 0 0; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.6; max-width: 52ch; }
.pull10 { margin-top: clamp(28px, 3vw, 44px) !important; font-family: var(--serif); font-style: italic; font-size: clamp(28px, 3.4vw, 54px) !important; line-height: 1.08 !important; letter-spacing: -0.02em; max-width: 20ch !important; }
.pull10 .w { display: inline-block; opacity: var(--o, 1); filter: blur(calc((1 - var(--o, 1)) * 6px)); }
.f10 { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 24px; font-size: 14px; color: var(--muted); }
.f10-name { font-weight: 800; color: var(--ink); font-size: 16px; letter-spacing: -0.02em; }
.f10-links { display: flex; gap: 24px; }
.f10-links a { color: var(--ink); text-decoration: none; }
.f10-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
html.v10 .foot9 { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
.slot.lift { transform: scale(1.06); z-index: 2; }
.tile.lift { transform: scale(1.3); z-index: 3; box-shadow: 0 14px 40px rgba(0,0,0,.28); }
.fr.lift img { opacity: 1; filter: none; transform: scale(1.08); }
.tileb.lift img, .cell.lift img { transform: scale(1.04); }
.screen.lift .screen-in { transform: scale(.985); }
.fr img, .screen-in { transition: opacity .2s, filter .2s, transform .25s; }
@media (max-width: 860px) {
  html.v10 .corner { font-size: 13px; padding: 6px 11px; }
  html.v10 .tr { gap: 5px; }
  html.v10 .namebox { padding-top: calc(70px + env(safe-area-inset-top, 0px)); }
  html.v10 .stage { margin-top: 1.5vw; }
  .phil10 { grid-template-columns: minmax(0, 1fr); }
  .me10 { max-width: 72%; }
  .f10 { flex-direction: column; align-items: flex-start; }
}
/* X.2: portrait beside the About text, philosophy full width below; more air around the name */
.top10 { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px clamp(32px, 5vw, 80px); align-items: start; }
.top10 .cols9 { grid-template-columns: minmax(0, 1fr); gap: 32px; }
html.v10 .phil10 { display: block; }
html.v10 .phil10-text { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(32px, 6vw, 110px); align-items: start; }
html.v10 .phil10-text > * { grid-column: 1; }
html.v10 .phil10-text .pull10 { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin-top: 0 !important; }
@media (max-width: 860px) { html.v10 .phil10-text { grid-template-columns: minmax(0, 1fr); } html.v10 .phil10-text .pull10 { grid-column: 1; grid-row: auto; margin-top: 28px !important; } }
html.v10 .namebox .tag { margin-bottom: 1.8vw; }
@media (max-width: 860px) {
  .top10 { grid-template-columns: minmax(0, 1fr); }
  .top10 .me10 { max-width: 78%; margin-bottom: 8px; }
  html.v10 .namebox .tag { margin-bottom: 18px; }
  html.v10 .stage { margin-top: 22px !important; }
}
/* Dock viewer */
dialog.view.docked { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: calc(18px + env(safe-area-inset-top, 0px)) max(16px, 3vw) 0; display: grid; grid-template-rows: minmax(0, 1fr) auto auto; gap: 12px; }
dialog.view.docked:not([open]) { display: none; }
dialog.view.docked::backdrop { background: rgba(8, 8, 7, .96); }
dialog.view.docked { background: rgba(8, 8, 7, .9); }
dialog.view.docked .vimg { position: relative; min-height: 0; overflow: hidden; }
dialog.view.docked img#v-img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: contain; background: transparent; transition: opacity .12s; }
dialog.view.docked img#v-img.swap { opacity: 0; }
dialog.view.docked .stay, dialog.view.docked .hint, dialog.view.docked .note { display: none; }
dialog.view.docked .bar2 { align-items: center; padding-top: 0; }
dialog.view.docked .bar2 > span:first-child { flex: 1; }
.dock-count { opacity: .6; margin-right: 16px; }
.dock-wrap { display: flex; min-width: 0; width: 100%; padding: 64px 4px calc(14px + env(safe-area-inset-bottom, 0px)); margin-top: -52px; overflow-x: auto; overflow-y: hidden; overscroll-behavior: contain; scrollbar-width: none; }
.dock-wrap::-webkit-scrollbar { display: none; }
dialog.view.docked { overflow: hidden; }
dialog.view.docked .bar2 { position: relative; z-index: 2; }
.dock { flex: none; margin: 0 auto; display: flex; align-items: flex-end; gap: 6px; padding: 8px 10px; border-radius: 18px; background: rgba(255,255,255,.12); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.dock::-webkit-scrollbar { display: none; }
.dock-item { --s: 1; position: relative; flex: none; border: 0; padding: 0; background: none; cursor: pointer; width: calc(52px * var(--s)); height: calc(52px * var(--s)); transition: width .14s ease-out, height .14s ease-out; }
.dock-item img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(9px * var(--s)); box-shadow: 0 4px 12px rgba(0,0,0,.35); }
.dock-item .dot { position: absolute; left: 50%; bottom: -6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #f0efe9; opacity: 0; }
.dock-item[aria-current="true"] .dot { opacity: .9; }
.dock-item:focus-visible { outline: 2px solid #f0efe9; outline-offset: 3px; border-radius: 10px; }
html.safe .dock-item img { filter: grayscale(1) contrast(1.08); }
@media (max-width: 860px), (hover: none) {
  .dock { justify-content: flex-start; gap: 6px; }
  .dock-item { width: 46px; height: 46px; }
  .dock-item[aria-current="true"] { width: 58px; height: 58px; }
  .dock-wrap { padding-top: 24px; margin-top: -12px; }
  .dock { margin: 0; }
}

/* ---- WordPress theme additions ---- */
body.admin-bar .corner { margin-top: 32px; }
@media (max-width: 782px) { body.admin-bar .corner { margin-top: 46px; } }
.me10-frame.has-img { padding: 0; overflow: hidden; }
.me10-frame.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
html.bh-empty .stage, html.bh-empty #collage-sec { display: none; }
.bh-empty-note { padding: 40px max(16px, 5vw); color: #777; font: 14px/1.5 "Geist Mono", ui-monospace, monospace; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
/* projects in the menu: no number column */
.menu li button { grid-template-columns: minmax(0, 1fr) auto; }
.menu li button .n { display: none; }
.namebox { will-change: opacity; }
/* Safari: a percentage height inside an aspect-ratio box can fall back to the photo's own shape,
   so the picture under the fade sat differently from the fading layer. Pin every hero picture to the frame. */
.slot .wrap { position: relative; }
.slot .wrap > img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
/* crawler copy of the work: hidden once scripts run */
html.js .bh-static { display: none; }
.bh-static section { margin: 32px 0; } .bh-static figure { margin: 8px 0; } .bh-static img { max-width: 320px; height: auto; display: block; }
/* project pages */
.corner .proj-back { text-decoration: none; color: inherit; }
.proj { padding-top: 120px; padding-bottom: clamp(56px, 7vw, 104px); }
.proj-head { max-width: 900px; margin-bottom: clamp(32px, 4vw, 56px); }
.proj-head h1 { font-size: clamp(44px, 8vw, 120px); line-height: .9; letter-spacing: -0.045em; font-weight: 900; margin: 10px 0 18px; }
.proj-line { font-size: clamp(18px, 1.8vw, 26px); line-height: 1.3; max-width: 34ch; margin: 0 0 14px; }
.proj-meta { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #777; margin: 0; }
.proj-grid { display: grid; gap: clamp(28px, 4vw, 64px); }
.proj-fig { margin: 0; }
.proj-fig img { display: block; width: auto; max-width: 100%; max-height: 88vh; height: auto; margin: 0 auto; background: #eee; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.proj-fig figcaption { text-align: center; font-size: 12px; color: #777; margin-top: 12px; }
.proj-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; margin-top: clamp(56px, 7vw, 104px); padding-top: 24px; border-top: 1px solid rgba(0,0,0,.15); }
.proj-nav a { color: inherit; text-decoration: none; font-size: clamp(18px, 2vw, 28px); font-weight: 800; letter-spacing: -0.02em; }
.proj-nav .k { display: block; margin-bottom: 6px; }
.proj-nav .proj-all { text-align: center; } .proj-nav .proj-next { text-align: right; }
@media (max-width: 860px) { .proj { padding-top: 96px; } .proj-nav { grid-template-columns: 1fr 1fr; } .proj-nav .proj-all { display: none; } }
