/* Public site. Theme tokens (--bg, --fg, --accent, fonts) are written by the server from
   Studio > Design, so nothing here hard-codes a colour the owner might want to change. */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html.has-cur, html.has-cur * { cursor: none !important; }
html { -webkit-text-size-adjust: 100%; font-size: calc(16px * var(--scale, 1)); }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-display); font-weight: 400; line-height: 1.35;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
  --bar-h: 56px;
}
img, video, canvas, iframe { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--bg); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: fixed; top: -60px; left: 12px; z-index: 100; background: var(--fg); color: var(--bg); padding: 8px 12px; }
.skip:focus { top: 12px; }

#main { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 100vh; transition: opacity .35s ease, transform .5s cubic-bezier(.2,.7,.2,1); }
body.is-leaving #main { opacity: 0; transform: translateX(1.5vw); }
body.is-entering #main { opacity: 0; transform: translateX(-1vw); transition: none; }

/* ---- mono micro-type shared by every piece of interface chrome ---- */
.bar, .eyebrow, .show__intro, .show__label, .tile__code, .tile__quick, .index__views,
.facets, .row__year, .row__role, .row__co, .pmeta dt, .pnext__label, .foot,
.lcol h3, .lcol li, figcaption, .compare__tag, .tabs__bar, .quick__close,
.phead__code, .cat__n, .cat__t, .tpl-split__desc, .contact__grid, .biglinks small {
  font-family: var(--font-mono); font-size: .75rem; line-height: 1.5;
  font-variation-settings: 'wdth' 87; letter-spacing: 0;
}
.eyebrow { color: var(--muted); }

/* ---- display type ---- */
.display {
  font-family: var(--font-display); font-weight: 560; line-height: .9; letter-spacing: -.035em;
  font-variation-settings: 'wdth' 100; text-wrap: balance; overflow-wrap: break-word;
}
.display--m { font-size: clamp(2rem, calc(4.2vw * var(--scale)), 4rem); }
.display--l { font-size: clamp(2.75rem, calc(7.4vw * var(--scale)), 7.5rem); }
.display--xl { font-size: clamp(3.5rem, calc(12.5vw * var(--scale)), 13.5rem); line-height: .86; letter-spacing: -.045em; }
/* Line height under 1 leaves descenders outside the box, so reserve room for them. */
.display--xl, .display--fit { padding-bottom: .16em; }
.display--fit { font-size: 10vw; white-space: nowrap; line-height: .86; letter-spacing: -.045em; }

/* ---- header ---- */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30; height: var(--bar-h);
  display: flex; align-items: center; gap: 24px; padding: 0 var(--gutter);
  mix-blend-mode: difference; color: #fff; pointer-events: none; transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.bar > * { pointer-events: auto; }
body.bar-away:not(.menu-open) .bar { transform: translateY(-100%); }
body.at-name:not(.menu-open) .bar__brand { display: none; }
.bar__brand { font-weight: 500; font-size: .8125rem; }
.bar__tag { opacity: .6; }
.bar__nav { margin-left: auto; display: flex; gap: 22px; }
.bar__nav a { position: relative; padding: 6px 0; }
.bar__nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.bar__nav a:hover::after, .bar__nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.bar__menu { display: none; margin-left: auto; font: inherit; }
.navitem { position: relative; }
.navitem__sub {
  position: absolute; top: 100%; right: 0; display: none; flex-direction: column; min-width: 150px;
  padding: 8px 0; text-align: right;
}
.has-sub:hover .navitem__sub, .has-sub:focus-within .navitem__sub { display: flex; }

/* ---- block rhythm ---- */
.block { position: relative; }
.block > * { margin-inline: auto; }
.w-narrow > * { max-width: 44rem; padding-inline: var(--gutter); }
.w-content > * { max-width: 72rem; padding-inline: var(--gutter); }
.w-wide > * { padding-inline: var(--gutter); }
.w-full > * { max-width: none; }
.a-center { text-align: center; }
.a-right { text-align: right; }
.pt-0 { padding-top: 0; } .pt-s { padding-top: 2rem; } .pt-m { padding-top: 4rem; } .pt-l { padding-top: 7rem; } .pt-xl { padding-top: 12rem; }
.pb-0 { padding-bottom: 0; } .pb-s { padding-bottom: 2rem; } .pb-m { padding-bottom: 4rem; } .pb-l { padding-bottom: 7rem; } .pb-xl { padding-bottom: 12rem; }
.pagetitle { padding: calc(var(--bar-h) + 7vh) var(--gutter) 2rem; }
.empty { font-family: var(--font-mono); font-size: .75rem; color: var(--muted); padding: 2rem var(--gutter); border: 1px dashed var(--line); }

/* Reveals: main.js adds .rv-wait below the fold and removes it as blocks enter view. */
.rv-rise.rv-wait { opacity: 0; transform: translateY(28px); }
.rv-rise { transition: opacity .9s ease, transform 1.1s cubic-bezier(.2,.7,.2,1); }
.rv-wipe.rv-wait { clip-path: inset(0 100% 0 0); }
.rv-wipe { clip-path: inset(0 0 0 0); transition: clip-path 1.2s cubic-bezier(.7,0,.2,1); }
/* ---- cover media: an image with an optional loop fading in over it ---- */
.cover { position: absolute; inset: 0; overflow: hidden; }
.cover img, .cover video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover video { opacity: 0; transition: opacity .6s; }
.cover video.is-ready { opacity: 1; }

/* ---- showcase: full-bleed media, thumbnail strip along the bottom ---- */
.show { position: relative; height: 100svh; overflow: hidden; background: #000; color: #fff; }
.show__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; pointer-events: none; }
.show__slide.is-on { opacity: 1; pointer-events: auto; }
.show__slide img, .show__slide video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.show__slide img { transform: scale(1.04); transition: transform 7s linear; }
.show__slide.is-on img { transform: none; }
.show__slide video { opacity: 0; transition: opacity .6s; }
.show__slide video.is-ready { opacity: 1; }
.show__intro { position: absolute; z-index: 2; left: var(--gutter); top: calc(var(--bar-h) + 6px); max-width: 34ch; pointer-events: none; }
.show::after { content: ''; position: absolute; inset: 45% 0 0; z-index: 1; background: linear-gradient(to top, rgba(0,0,0,.68), transparent); pointer-events: none; }
.show__name { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: calc(clamp(64px, 12vh, 110px) + 34px); font-weight: 560; line-height: .8; letter-spacing: -.02em; white-space: nowrap; pointer-events: none; }
.show__line { display: inline-block; transform-origin: left; will-change: transform; }
.show__line span { display: inline-block; white-space: pre; }
.show__strip { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: flex; height: clamp(64px, 12vh, 110px); background: #000; }
.show__thumb { position: relative; flex: 1 1 0; min-width: 0; }
.show__thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .6; transition: opacity .3s; }
.show__thumb:hover img, .show__thumb.is-on img { opacity: 1; }
.show__label {
  position: absolute; left: 0; bottom: 100%; margin-bottom: 8px; padding: 2px 6px; background: #000; color: #fff;
  white-space: nowrap; opacity: 0; transition: opacity .25s; pointer-events: none;
}
.show__label i { font-style: normal; opacity: .6; margin-left: .8em; }
.show__thumb.is-on .show__label { opacity: 1; }

/* ---- hero ---- */
.hero { position: relative; height: calc(var(--h) * 1svh); display: flex; overflow: hidden; color: #fff; }
.hero__copy { position: relative; z-index: 2; padding: var(--gutter); padding-bottom: var(--gutter); display: flex; flex-direction: column; gap: 10px; }
.hero--bl .hero__copy { margin-top: auto; }
.hero--tl .hero__copy { padding-top: calc(var(--bar-h) + 8px); }
.hero--c { align-items: center; justify-content: center; text-align: center; }
.hero--br .hero__copy { margin-top: auto; margin-left: auto; text-align: right; }

/* ---- text ---- */
.prose { font-size: 1.0625rem; line-height: 1.45; }
.prose p + p { margin-top: 1em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--accent); }
.prose--s { font-size: .9375rem; }
.prose--l { font-size: clamp(1.25rem, calc(2.1vw * var(--scale)), 2rem); line-height: 1.2; letter-spacing: -.012em; }
.prose h2, .prose h3 { font-weight: 560; margin: 1.4em 0 .4em; letter-spacing: -.02em; }
.cols-2 { columns: 2; column-gap: var(--gutter); }

.statement {
  font-size: clamp(1.9rem, calc(5vw * var(--scale)), 5.25rem); line-height: 1.02; letter-spacing: -.03em; font-weight: 500;
  max-width: 22em; text-wrap: pretty;
}

.splitrow { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--gutter); }
.splitrow .eyebrow { position: sticky; top: calc(var(--bar-h) + 8px); align-self: start; }

.ticker { overflow: hidden; border-block: 1px solid var(--line); padding-block: .6rem; }
.ticker__row { display: inline-flex; gap: 3em; white-space: nowrap; will-change: transform; }
.ticker--s { font-family: var(--font-mono); font-size: .6875rem; }
.ticker--m { font-size: 1.25rem; }
.ticker--l { font-size: clamp(3rem, calc(9vw * var(--scale)), 9rem); letter-spacing: -.04em; font-weight: 560; line-height: 1; }

/* ---- media ---- */
.fig__frame { overflow: hidden; border-radius: var(--radius); background: color-mix(in srgb, var(--fg) 5%, transparent); }
.fig__frame img, .fig__frame video { width: 100%; height: 100%; object-fit: cover; }
figcaption { color: var(--muted); margin-top: 8px; }

.gallery { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--gap); }
.gallery__item { overflow: hidden; border-radius: var(--radius); }
.gallery__item img, .gallery__item video { width: 100%; height: 100%; object-fit: cover; }
.gallery--masonry { display: block; columns: var(--cols); column-gap: var(--gap); }
.gallery--masonry .gallery__item { break-inside: avoid; margin-bottom: var(--gap); }
.gallery--feature .gallery__item:first-child { grid-column: 1 / -1; }
.gallery--offset .gallery__item:nth-child(even) { transform: translateY(12%); }
.gallery--offset { padding-bottom: 8%; }
.gallery.is-loose { isolation: isolate; }
.is-loose .gallery__item { position: relative; user-select: none; }

.strip {
  display: flex; gap: 8px; height: calc(var(--h) * 1vh); overflow-x: auto; padding-inline: var(--gutter);
  scrollbar-width: none; cursor: grab; scroll-snap-type: x proximity;
}
.strip::-webkit-scrollbar { display: none; }
.strip.is-drag { cursor: grabbing; scroll-snap-type: none; }
.strip__item { flex: none; height: 100%; scroll-snap-align: center; }
.strip__item img, .strip__item video { height: 100%; width: auto; max-width: none; pointer-events: none; }

.compare { position: relative; overflow: hidden; --x: 50%; touch-action: pan-y; }
.compare__layer { position: absolute; inset: 0; }
.compare__layer img, .compare__layer video { width: 100%; height: 100%; object-fit: cover; }
.compare__top { clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.compare__line { position: absolute; top: 0; bottom: 0; left: var(--x); width: 1px; background: var(--accent); pointer-events: none; }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare__tag { position: absolute; top: 10px; z-index: 2; color: #fff; pointer-events: none; }
.compare__tag--l { left: 10px; } .compare__tag--r { right: 10px; }

.embed iframe { width: 100%; height: 100%; border: 0; }

/* ---- film player: words for controls, a ruler for a timeline, timecode throughout ---- */
.player { --pad: clamp(12px, 1.4vw, 20px); position: relative; overflow: hidden; background: #000; color: #fff; user-select: none; -webkit-user-select: none; }
.player > video { display: block; width: 100%; height: auto; max-height: calc(100svh - 6rem); object-fit: contain; }
.fig__frame[style] .player, .fig__frame[style] .player > video { height: 100%; }
.player__shade { position: absolute; inset: auto 0 0; height: min(46%, 220px); background: linear-gradient(to top, rgba(0,0,0,.74), transparent); pointer-events: none; transition: opacity .5s; }
.player.is-quiet .player__shade { opacity: 0; }
.player__go { position: absolute; left: var(--pad); top: calc(var(--pad) - .12em); font-size: clamp(2.25rem, 5.4vw, 5.5rem); font-weight: 560; line-height: 1; letter-spacing: -.045em; transition: opacity .35s, transform .6s cubic-bezier(.2,.7,.2,1), visibility 0s; }
.player__length, .player__bar { font-family: var(--font-mono); font-size: .75rem; line-height: 1; font-variation-settings: 'wdth' 87; }
.player__length { position: absolute; right: var(--pad); bottom: var(--pad); transition: opacity .35s; }
.player.is-on .player__go { opacity: 0; transform: translateY(14px); visibility: hidden; transition-delay: 0s, 0s, .35s; }
.player.is-on .player__length { opacity: 0; }
.player__bar {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; gap: clamp(12px, 1.6vw, 24px); padding: 0 var(--pad) var(--pad);
  opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .4s, transform .5s cubic-bezier(.2,.7,.2,1);
}
.player.is-on .player__bar { opacity: 1; transform: none; pointer-events: auto; }
.player.is-on.is-quiet .player__bar { opacity: 0; transform: translateY(8px); pointer-events: none; }
.player__bar button { line-height: 1; }
.player__play, .player__sound { min-width: 5ch; text-align: left; }
.player__full { min-width: 4ch; text-align: right; }
.player__line { position: relative; flex: 1; min-width: 0; height: 34px; color: var(--accent); touch-action: none; }
.player__line canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.player.is-waiting .player__now { animation: player-wait 1s steps(2) infinite; }
@keyframes player-wait { 50% { opacity: .35; } }
.player__peek { position: absolute; left: 0; bottom: calc(var(--pad) + 44px); width: clamp(160px, 17vw, 260px); aspect-ratio: var(--ar, 16 / 9); overflow: hidden; background: #000; opacity: 0; pointer-events: none; transition: opacity .2s; }
.player__peek.is-on { opacity: 1; }
.player.is-scrub .player__peek { opacity: 0; }
.player__peek video { width: 100%; height: 100%; object-fit: cover; }
.player:fullscreen { --pad: 24px; }
.player:fullscreen > video { height: 100%; max-height: none; }

/* ---- cursor ---- */
.cur { position: fixed; inset: 0; z-index: 90; pointer-events: none; color: #fff; mix-blend-mode: difference; opacity: 0; transition: opacity .2s; }
.cur.is-on { opacity: 1; }
.cur__cross { position: absolute; left: -7px; top: -7px; width: 15px; height: 15px; background: linear-gradient(#fff, #fff) 50% 50% / 100% 1px no-repeat, linear-gradient(#fff, #fff) 50% 50% / 1px 100% no-repeat; }
.cur__tag { position: absolute; left: 0; top: 0; font-family: var(--font-mono); font-size: .6875rem; line-height: 1.2; font-variation-settings: 'wdth' 87; white-space: nowrap; }
body.film-quiet .cur { opacity: 0; }

/* ---- work index ---- */
.index { position: relative; padding-top: calc(var(--bar-h) + 4px); }
.index__views {
  position: fixed; z-index: 25; left: 50%; top: 0; height: var(--bar-h); transform: translateX(-50%); display: flex; align-items: center; gap: 22px;
  color: #fff; mix-blend-mode: difference; transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
body.bar-away .index__views { transform: translate(-50%, -100%); }
.index__views button { position: relative; padding: 6px 0; opacity: .55; transition: opacity .25s; }
.index__views button:hover, .index__views button[aria-selected="true"] { opacity: 1; }
.index__views button::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.index__views button[aria-selected="true"]::after { transform: scaleX(1); transform-origin: left; }

.mosaic { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 8px; }
.tile { position: relative; overflow: hidden; border-radius: var(--radius); background: color-mix(in srgb, var(--fg) 6%, transparent); isolation: isolate; }
/* Rows fill the width and share one height, so tile size only sets a tile's share of its row. */
.tile { height: 34vw; }
.tile--s { flex: 3 1 calc(25% - 8px); }
.tile--m { flex: 4 1 calc(33.33% - 8px); }
.tile--l { flex: 6 1 calc(50% - 8px); }
.tile--xl { flex: 12 1 100%; height: 42vw; }
.tile__link { position: absolute; inset: 0; }
.tile__link img, .tile__link video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.tile__link video { opacity: 0; transition: opacity .4s; }
.tile.is-hover .tile__link video.is-ready { opacity: 1; }
.tile:hover .tile__link img { transform: scale(1.03); }
.tile::after { content: ''; position: absolute; inset: 0 0 55%; z-index: 0; background: linear-gradient(to bottom, rgba(0,0,0,.42), transparent); pointer-events: none; }
.tile__copy, .tile__code, .tile__quick { z-index: 1; }
.tile__copy { position: absolute; top: 12px; left: 14px; right: 14px; color: #fff; pointer-events: none; overflow-wrap: anywhere; }
.tile__copy h3, .tile__copy p { font-size: clamp(1.4rem, calc(2.5vw * var(--scale)), 2.75rem); line-height: 1; letter-spacing: -.03em; font-weight: 500; }
.tile--s .tile__copy h3, .tile--s .tile__copy p { font-size: clamp(1.15rem, calc(1.7vw * var(--scale)), 1.75rem); }
.tile__copy p { opacity: .78; }
.tile__code { position: absolute; left: 14px; bottom: 10px; display: flex; gap: 10px; color: #fff; pointer-events: none; }
.tile__quick {
  position: absolute; right: 14px; bottom: 10px; color: #fff; text-decoration: underline; text-underline-offset: 3px;
  opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s;
}
.tile:hover .tile__quick, .tile__quick:focus-visible { opacity: 1; transform: none; }

.catalog { padding: 2vh var(--gutter) 0; min-height: calc(100vh - var(--bar-h) - 5rem); display: flex; flex-direction: column; gap: 6vh; }
.catalog__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px 14px; align-content: start; }
.cat { display: grid; grid-template-columns: auto 1fr; gap: 6px 8px; transition: opacity .3s; }
.cat img { grid-column: 1 / -1; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.cat__t { color: var(--muted); transition: color .2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat:hover .cat__t { color: var(--fg); }
.cat.is-off { opacity: .1; pointer-events: none; }
.catalog__grid:has(.cat:hover) .cat:not(:hover):not(.is-off) { opacity: .35; }
.facets { margin-top: auto; padding-bottom: var(--gutter); display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: flex-end; justify-content: space-between; }
.facet { display: flex; flex-direction: column; }
.facet ul { columns: auto; }
.facet li button, .facets__all { color: var(--muted); text-align: left; }
.facet h4 { font: inherit; margin-top: 8px; }
.facet li button:hover, .facets__all:hover { color: var(--fg); }
.facet li button.is-on, .facets__all.is-on { color: var(--accent); }

/* ---- lists ---- */
.ledger__rows { margin-top: 12px; border-bottom: 1px solid var(--line); }
.row { border-top: 1px solid var(--line); }
.row, .row > summary { display: grid; grid-template-columns: 7rem minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr); gap: var(--gutter); align-items: baseline; padding-block: .7rem; }
details.row { display: block; padding: 0; }
.row > summary { cursor: pointer; list-style: none; }
.row > summary::-webkit-details-marker { display: none; }
.row__title { font-size: clamp(1.25rem, calc(2.4vw * var(--scale)), 2.25rem); letter-spacing: -.025em; line-height: 1.05; font-weight: 500; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.row:hover .row__title { transform: translateX(10px); }
.row__title em { display: block; margin-top: .4em; font-style: normal; font-family: var(--font-mono); font-size: .6875rem; line-height: 1.3; letter-spacing: 0; color: var(--accent); font-variation-settings: 'wdth' 87; }
.row__year, .row__co, .row__role { color: var(--muted); }
.row__co, .row__role { font-size: .8125rem; }
.row__detail { padding: 0 0 1rem calc(7rem + var(--gutter)); max-width: 56rem; font-size: 1rem; color: var(--muted); }

.tpl-split .row, .tpl-split .row > summary { grid-template-columns: 4.5rem minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr); gap: 16px; }
.tpl-split .row__title { font-size: clamp(1.15rem, calc(1.8vw * var(--scale)), 1.75rem); }

.lcols { display: flex; flex-wrap: wrap; gap: 2rem 4rem; align-items: flex-end; }
.lcol li { color: var(--muted); }
.lcol li:hover { color: var(--fg); }
.lcol h3 { font-weight: 400; margin-top: 10px; }

.tabs__bar { display: flex; flex-wrap: wrap; gap: 18px; border-bottom: 1px solid var(--line); }
.tabs__bar button { padding: 8px 0; color: var(--muted); border-bottom: 1px solid transparent; margin-bottom: -1px; }
.tabs__bar button[aria-selected="true"] { color: var(--fg); border-color: var(--accent); }
.tabs__panel { padding-top: 1.5rem; }
.accordion details { border-top: 1px solid var(--line); }
.accordion summary { padding: .8rem 0; cursor: pointer; font-size: 1.5rem; letter-spacing: -.02em; }
.accordion .prose { padding-bottom: 1.5rem; }

.biglinks a { display: flex; align-items: baseline; justify-content: space-between; gap: 2rem; padding-block: .3em; border-top: 1px solid var(--line); }
.biglinks a:hover { color: var(--accent); }
.biglinks small { color: var(--muted); flex: none; }
.biglinks__peek { position: fixed; left: 0; top: 0; z-index: 20; width: 26vw; pointer-events: none; }

.contact { display: flex; flex-direction: column; gap: 3rem; }
.contact__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.contact__mail { text-decoration: underline; text-underline-offset: 3px; }
.contact a:hover { color: var(--accent); }

/* ---- project pages ---- */
.phead { position: relative; height: 100svh; display: flex; align-items: flex-end; overflow: hidden; color: #fff; }
.phead::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(to top, color-mix(in srgb, var(--bg) 70%, transparent), transparent); pointer-events: none; }
.phead__inner { position: relative; z-index: 2; padding: var(--gutter); padding-bottom: var(--gutter); }
.phead__code { display: flex; gap: 12px; margin-bottom: 10px; }
.pmeta { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter); padding: 2.5rem var(--gutter) 4rem; background: var(--bg); }
.pmeta dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px var(--gutter); align-content: start; }
.pmeta dt { color: var(--muted); }
.pmeta dd { font-size: .9375rem; }
.pmeta__summary { font-size: clamp(1.25rem, calc(2.2vw * var(--scale)), 2.1rem); line-height: 1.14; letter-spacing: -.02em; text-wrap: pretty; }
.project .tpl-flow, .project .tpl-stack, .project .tpl-reel { background: var(--bg); }
.pnext { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; height: 70vh; padding: var(--gutter); padding-bottom: var(--gutter); overflow: hidden; color: #fff; }
.pnext img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.6); transition: transform 1.4s cubic-bezier(.2,.7,.2,1), filter .6s; }
.pnext:hover img { transform: scale(1.03); filter: brightness(.85); }
.pnext > span { position: relative; }

/* ---- page templates ---- */
.tpl-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.tpl-split__rail { position: sticky; top: 0; height: 100vh; padding: calc(var(--bar-h) + 8px) var(--gutter) var(--gutter); display: flex; flex-direction: column; justify-content: space-between; }
.tpl-split__rail .display { font-size: clamp(3rem, calc(8vw * var(--scale)), 8.5rem); }
.tpl-split__desc { max-width: 40ch; }
.tpl-split__body { padding-top: var(--bar-h); }
.tpl-split__body .block.w-wide > * { padding-left: 0; }

.tpl-stack > .block { position: sticky; top: 0; min-height: 100vh; background: var(--bg); display: flex; flex-direction: column; justify-content: center; }
.tpl-stack > .block > * { width: 100%; }

.tpl-reel { height: var(--reel-h, 300vh); }
.tpl-reel__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.tpl-reel__track { display: flex; height: 100%; width: max-content; align-items: center; will-change: transform; padding-inline: var(--gutter); gap: 1.4vw; }
.tpl-reel__track > .block { flex: none; width: min(78vw, 1300px); max-height: 100vh; }
.tpl-reel__track > .block.w-full { width: 100vw; margin-inline: calc(var(--gutter) * -1); }
.tpl-reel__track > .block.w-narrow { width: min(56vw, 82vh); }
.tpl-reel__track > .block { padding-block: 0; }
.tpl-reel__track > .block > * { max-width: none; padding-inline: 0; }

/* ---- quick view ---- */
.quick { width: min(1200px, 92vw); max-width: none; max-height: 92vh; padding: 0; border: 0; background: #000; color: #fff; overflow: visible; }
.quick::backdrop { background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(6px); }
.quick__close { position: absolute; right: 0; top: -26px; color: var(--fg); }
.quick video { width: 100%; }
.quick__info { display: flex; justify-content: space-between; padding: 8px 10px; font-family: var(--font-mono); font-size: .6875rem; background: var(--bg); color: var(--fg); }

.foot { display: flex; justify-content: space-between; gap: 2rem; margin-top: auto; padding: 3rem var(--gutter) var(--gutter); color: var(--muted); position: relative; background: var(--bg); }
.foot__links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a:hover { color: var(--fg); }

.lost { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: var(--gutter); }
.arrow { font-family: var(--font-mono); font-size: .75rem; text-decoration: underline; text-underline-offset: 3px; }

/* Studio preview helpers */
.is-preview [data-block-id] { cursor: pointer; }
.is-preview [data-block-id].is-selected { outline: 1px solid var(--accent); outline-offset: -1px; }
.is-preview [data-block-id]:hover:not(.is-selected) { outline: 1px dashed color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: -1px; }

.hide-d { display: none; }

@media (max-width: 1100px) {
  .bar__tag { display: none; }
}

@media (max-width: 800px) {
  body.menu-open .bar { mix-blend-mode: normal; color: var(--fg); }
  .pt-m { padding-top: 3rem; } .pt-l { padding-top: 5rem; } .pt-xl { padding-top: 8rem; }
  .pb-m { padding-bottom: 3rem; } .pb-l { padding-bottom: 5rem; } .pb-xl { padding-bottom: 8rem; }
  .bar__tag { display: none; }
  .bar__menu { display: block; position: relative; z-index: 2; }
  .bar__nav {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; justify-content: center; gap: 4px; padding: var(--gutter);
    background: var(--bg); visibility: hidden; opacity: 0; transition: opacity .25s;
  }
  body.menu-open .bar__nav { visibility: visible; opacity: 1; }
  .bar__nav a { font-family: var(--font-display); font-size: 3rem; letter-spacing: -.03em; line-height: 1.1; font-weight: 560; font-variation-settings: 'wdth' 100; }
  .navitem__sub { position: static; display: flex; text-align: left; padding: 0 0 8px; }
  .navitem__sub a { font-size: 1.4rem; }
  .bar__brand { position: relative; z-index: 2; }
  .index__views, body.bar-away .index__views { position: static; height: auto; transform: none; padding: 4px var(--gutter) 12px; mix-blend-mode: normal; color: var(--fg); }

  .tile { height: 60vw; }
  .tile--s, .tile--m { flex: 1 1 calc(50% - 8px); }
  .tile--l, .tile--xl { flex: 1 1 100%; height: 72vw; }
  .tile__quick { display: none; }
  .player__bar { flex-wrap: wrap; row-gap: 4px; }
  .player__line { order: -1; flex: 0 0 100%; height: 26px; }
  .player__end { display: none; }
  .player__sound { margin-left: auto; text-align: right; }

  .row, .row > summary, .tpl-split .row, .tpl-split .row > summary { grid-template-columns: 3.5rem minmax(0, 1fr); gap: 2px 10px; }
  .row__co, .row__role { grid-column: 2; }
  .row__detail { padding-left: 0; }
  .splitrow, .pmeta, .tpl-split { grid-template-columns: minmax(0, 1fr); }
  .splitrow .eyebrow { position: static; }
  .tpl-split__rail { position: static; height: auto; gap: 2rem; }
  .tpl-split__body { padding-top: 0; }
  .tpl-split__body .block.w-wide > * { padding-left: var(--gutter); }
  .gallery { grid-template-columns: repeat(min(var(--cols), 2), minmax(0, 1fr)); }
  .gallery--masonry { columns: 2; }
  .gallery--offset .gallery__item:nth-child(even) { transform: none; }
  .cols-2 { columns: 1; }
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .catalog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tpl-reel { height: auto !important; }
  .tpl-reel__pin { position: static; height: auto; overflow: visible; }
  .tpl-reel__track { display: block; width: auto; padding: 0; transform: none !important; }
  .tpl-reel__track > .block, .tpl-reel__track > .block.w-narrow { width: auto; padding-block: 3px; }
  .tpl-reel__track > .block > * { padding-inline: var(--gutter); }
  .tpl-reel__track > .block.w-full { width: auto; margin-inline: 0; }
  .tpl-stack > .block { position: relative; min-height: 0; }
  .hide-m { display: none; }
  .hide-d { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .show__slide { transition: opacity .9s ease !important; } /* a plain fade, nothing moves */
  .rv-wait { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
