/* Hubert Krzysztofik — portfolio
 *
 * One idea runs through the motion: the full stop. It contracts out of the
 * loader into the headline, opens into the first world as you scroll, sweeps
 * between screens as an iris, and swallows the page at the end.
 *
 * Colour is ink, paper and one grey. There is no accent colour: an accent is the
 * opposite of what it sits on (paper on ink, ink on paper), and under a pointer
 * the two change places.
 *
 * html.fx    motion allowed (set inline in <head>, off for reduced motion)
 * html.live  app.js has booted; every hidden/pinned state is scoped to this
 *            so the page still reads if the script never arrives.
 */

@property --hole { syntax: '<length>'; inherits: false; initial-value: 0px; }

:root {
  --ink: #0b0a08;
  --ink-2: #14120e;
  --ink-3: #1e1b15;
  --paper: #f3efe6;
  --paper-2: #e6e0d2;
  --grey: #a59e8f;
  /* Proportion: the golden ratio (1 : 1.618) and the Fibonacci steps 8 13 21 34 55 89 144 */
  --phi: 1.618;
  --pad: clamp(21px, 4.4vw, 89px);
  --radius: 0px;
  --sans: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --e-out: cubic-bezier(.16, 1, .3, 1);
  --e-io: cubic-bezier(.76, 0, .24, 1);
  /* theme slots, overridden per section */
  --mut: #948c7c;
  --hair: #2f2a20;
  --focus: var(--paper);
  --accent: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; }
html.modal-open { overflow: hidden; }
body { margin: 0; color: var(--paper); background: var(--ink); font: 400 16px/1.618 var(--sans); font-variant-emoji: text; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
img, video { display: block; max-width: 100%; }
figure { margin: 0; }
h1, h2, h3, p, dl, dd { margin: 0; }
[hidden] { display: none !important; }
::selection { color: var(--ink); background: var(--paper); }
.t-paper ::selection, .loader ::selection, .menu ::selection, .project-next ::selection { color: var(--paper); background: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
section:focus { outline: none; }

.t-ink { background: var(--ink); color: var(--paper); --mut: #948c7c; --hair: #2f2a20; --focus: var(--paper); --accent: var(--paper); }
.t-paper { background: var(--paper); color: var(--ink); --mut: #6b6456; --hair: #d3ccbb; --focus: var(--ink); --accent: var(--ink); }

.section-pad { padding-left: var(--pad); padding-right: var(--pad); }
.skip-link { position: fixed; top: 10px; left: 20px; z-index: 120; padding: 8px 21px; background: var(--paper); color: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

/* ---------- Type ---------- */
.display { font-family: var(--sans); font-stretch: 62%; font-weight: 800; line-height: .86; letter-spacing: -.012em; text-transform: uppercase; }
.display em { font-style: italic; font-weight: 700; color: var(--accent); }
.eyebrow { display: block; font-size: 10.5px; font-weight: 600; font-stretch: 125%; letter-spacing: .09em; text-transform: uppercase; }
.muted { color: var(--mut); font-size: 12px; }
.pill { display: inline-block; padding: 8px 13px; border: 1px solid var(--mut); border-radius: 0; font: 500 10px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.dark-pill { background: #0b0a0866; border-color: #fff6; color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.text-link { display: inline-flex; align-items: center; gap: 34px; padding: 8px 0; border-bottom: 1px solid currentColor; font-size: 13px; font-weight: 600; font-stretch: 112%; text-align: left; }
.text-link span { font-size: 20px; line-height: 1; transition: transform .5s var(--e-out); }
.light-link { color: var(--paper); }

/* ---------- Loader ---------- */
.loader { display: none; }
.fx .loader { position: fixed; inset: 0; z-index: 110; display: grid; grid-template-columns: 1fr auto; align-content: space-between; padding: 0 var(--pad) 21px; background: var(--paper); color: var(--ink); animation: loader-failsafe 0s 7s forwards; }
/* The name and the note sit exactly where the header puts them, so nothing jumps when the loader lets go */
.loader-mark, .loader-note { display: flex; align-items: center; align-self: start; height: 89px; }
.loader-mark { justify-self: start; gap: 13px; }
.loader-note { font-size: 10.5px; font-weight: 600; font-stretch: 125%; letter-spacing: .09em; text-transform: uppercase; }
.loader-count { grid-column: 1 / -1; align-self: end; font: 800 clamp(120px, 30vw, 460px)/.74 var(--sans); font-stretch: 62%; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.loader > * { transition: opacity .25s linear; }
.loader.leaving > * { opacity: 0; }
@keyframes loader-failsafe { to { visibility: hidden; } }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 40; height: 89px; padding: 0 var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 21px; color: #fff; mix-blend-mode: difference; pointer-events: none; transition: transform .7s var(--e-out); }
.site-header > * { pointer-events: auto; }
.site-header.up { transform: translateY(-110%); }
/* Away from the top the header returns as a floating bar, so it never sits on top of page text. */
.site-header.float { inset: 12px calc(var(--pad) - 10px) auto; height: 55px; padding: 0 8px 0 21px; border-radius: 0; background: #0b0a08ee; box-shadow: 0 0 0 1px #f3efe624; color: var(--paper); mix-blend-mode: normal; pointer-events: auto; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.site-header.float.up { transform: translateY(calc(-100% - 24px)); }
.site-header.float .menu-toggle { padding-right: 13px; }
.identity { display: flex; align-items: center; gap: 13px; }
.identity-name { font-size: 11.5px; line-height: 1.25; font-weight: 600; font-stretch: 112%; }
.site-nav { display: flex; gap: clamp(21px, 2.6vw, 34px); }
.site-nav a, .menu-toggle { font-size: 11px; font-weight: 600; font-stretch: 125%; letter-spacing: .07em; text-transform: uppercase; }
.site-nav a { position: relative; padding: 8px 0; }
.site-nav a span { margin-right: 8px; font: 400 9.5px var(--mono); letter-spacing: 0; opacity: .6; }
.site-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--e-out); }
.menu-toggle { display: none; align-items: center; gap: 8px; padding: 13px 0 13px 13px; }
.menu-toggle i { width: 12px; height: 12px; border-radius: 50%; background: currentColor; transition: transform .5s var(--e-out); }

/* Full-screen menu (small screens): the dot in the corner opens into it. */
.menu { position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; overscroll-behavior: contain; padding: 89px var(--pad) 34px; background: var(--paper); color: var(--ink); --focus: var(--ink); visibility: hidden; clip-path: circle(0px at calc(100% - var(--pad) - 6px) 36px); transition: clip-path .75s var(--e-io), visibility 0s .75s; }
.menu-open .menu { visibility: visible; clip-path: circle(150vmax at calc(100% - var(--pad) - 6px) 36px); transition: clip-path .95s var(--e-io), visibility 0s; }
.menu-bar { position: absolute; top: 0; left: var(--pad); right: var(--pad); display: flex; align-items: center; justify-content: space-between; height: 55px; }
.menu-close { display: flex; align-items: center; gap: 8px; padding: 13px 0 13px 13px; font-size: 11px; font-weight: 600; font-stretch: 125%; letter-spacing: .07em; text-transform: uppercase; }
.menu-close i { width: 12px; height: 12px; border-radius: 50%; background: currentColor; }
/* The links sit at the foot of the screen (the first one takes the spare room above it, so a list that
   is too tall scrolls from its top), and are sized by the shorter side so all four fit on a phone held sideways */
.menu > a:first-of-type { margin-top: auto; }
.menu > a { display: flex; align-items: baseline; gap: 13px; font: 800 clamp(40px, min(19vw, 16vh), 150px)/.9 var(--sans); font-stretch: 62%; text-transform: uppercase; opacity: 0; transform: translateY(46px); transition: opacity .3s, transform .3s; }
.menu > a span { font: 400 12px var(--mono); }
.menu-open .menu > a { opacity: 1; transform: none; transition: opacity .7s var(--e-out) calc(.22s + var(--n, 0) * 60ms), transform 1s var(--e-out) calc(.22s + var(--n, 0) * 60ms); }
.menu > a:nth-of-type(2) { --n: 1; }
.menu > a:nth-of-type(3) { --n: 2; }
.menu > a:nth-of-type(4) { --n: 3; }
.menu > a:nth-of-type(5) { --n: 4; }

/* ---------- Hero / portal ---------- */
.hero-stage { position: relative; background: var(--ink); }
.stage-pin { position: relative; }
.hero { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 34px; min-height: 100vh; min-height: 100svh; padding-top: 144px; padding-bottom: 34px; background: var(--ink); color: var(--paper); }
.hero-eyebrow { display: flex; align-items: center; gap: 8px; font-size: 10.5px; font-weight: 600; font-stretch: 125%; letter-spacing: .09em; text-transform: uppercase; color: #bfb8a9; }
.status-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--paper); }
/* On a narrow screen the line breaks after the studio's name, never inside "A Hubert Krzysztofik company" */
.hero-eyebrow .keep { white-space: nowrap; }
.hero h1 { font-size: 18.4vw; }
.h-line { display: block; white-space: nowrap; letter-spacing: -.012em; }
.h-line-2 { text-align: right; }
.h-in, .w, .w > span { display: inline-block; }
.dot { position: relative; display: inline-block; width: .15em; height: .15em; margin-left: .035em; border-radius: 50%; background: var(--paper); }
.hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 34px; }
.hero-bottom p { max-width: 36ch; font-size: clamp(15px, 1.3vw, 19px); line-height: 1.5; color: #cec8ba; }

.world { position: relative; height: clamp(460px, 52vw, 780px); overflow: hidden; isolation: isolate; color: #fff; background: var(--ink); }
.world-media { position: absolute; inset: 0; width: 100%; height: 100%; }
.world-media img, .world-media canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 46%; }
.image-shade { position: absolute; inset: 0; background: linear-gradient(180deg, #0b0a0899, #0b0a0800 30%, #0b0a0800 58%, #0b0a08e6); }
.world-tint { position: absolute; inset: 0; background: var(--paper); opacity: 0; pointer-events: none; }
.world-top, .world-bottom { position: absolute; left: var(--pad); right: var(--pad); display: flex; justify-content: space-between; align-items: center; gap: 21px; pointer-events: none; }
.world-top { top: 89px; }
.world-index { font: 400 11px var(--mono); letter-spacing: .08em; }
.world-bottom { bottom: 34px; align-items: flex-end; }
.world-bottom h2 { max-width: 30ch; font-size: clamp(30px, 4.6vw, 76px); text-wrap: balance; }
.round-link { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid #fff9; border-radius: 0; color: #fff; font-size: 28px; line-height: 1; pointer-events: auto; transition: background .3s, color .3s, border-color .3s, transform .6s var(--e-out); }

.live .hero-stage { height: 290vh; }
.live .stage-pin { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: clip; }
.live .hero { height: 100vh; height: 100svh; min-height: 0; transform-origin: var(--cx, 80%) var(--cy, 60%); transform: scale(var(--hs, 1)); opacity: var(--ho, 1); will-change: transform; }
.live .world { position: absolute; inset: 0; height: auto; z-index: 2; clip-path: circle(var(--r, 0px) at var(--cx, 80%) var(--cy, 60%)); }
.live .world-media img, .live .world-media canvas { transform: scale(var(--ws, 1)); }
.live .world-tint { opacity: var(--tint, 1); }
.live .world-top, .live .world-bottom { opacity: var(--wo, 0); transform: translateY(calc((1 - var(--wo, 0)) * 34px)); }
.live .world-bottom { bottom: calc(100vh - 100svh + 34px); bottom: calc(100lvh - 100svh + 34px); }
/* headline words rise once the loader lets go */
.live .w { clip-path: inset(-.1em -.06em -.02em); }
.live .w > span { transform: translateY(112%); }
.live.hero-ready .w > span { transform: none; transition: transform 1.25s var(--e-out); }
.live.hero-ready .w:nth-child(2) > span { transition-delay: .09s; }
.live.hero-ready .h-line-2 .w > span { transition-delay: .18s; }
.live .hero-eyebrow, .live .hero-bottom { opacity: 0; transform: translateY(18px); }
.live.hero-ready .hero-eyebrow, .live.hero-ready .hero-bottom { opacity: 1; transform: none; transition: opacity 1s var(--e-out) .55s, transform 1.2s var(--e-out) .55s; }
/* once the intro has played, the small print fades as soon as the dot starts to open */
.live.hero-set .hero-eyebrow, .live.hero-set .hero-bottom { opacity: var(--he, 1); transition: none; }
/* the dot breathes: an invitation to scroll */
.live.hero-ready .dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--paper); animation: beacon 2.6s var(--e-out) 1.6s infinite; }
@keyframes beacon { from { transform: scale(1); opacity: .9; } to { transform: scale(4.2); opacity: 0; } }

/* ---------- Brand marquee ---------- */
.brand-band { position: relative; padding: 55px 0 calc(var(--radius) + 55px); background: var(--ink); color: var(--paper); }
.brand-band .eyebrow, .brand-band small { color: #948c7c; }
.brand-band small { display: block; font-size: 12px; }
.marquee { overflow: hidden; padding: 21px 0 34px; }
.marquee-track { display: flex; flex-wrap: wrap; align-items: center; gap: .1em .3em; padding: 0 var(--pad); font: 800 clamp(44px, 9.2vw, 150px)/.9 var(--sans); font-stretch: 62%; text-transform: uppercase; white-space: nowrap; }
.marquee-track i { flex: none; width: .13em; height: .13em; border-radius: 50%; background: var(--grey); }
.live .marquee-track { display: inline-flex; flex-wrap: nowrap; gap: 0 .34em; padding: 0 .34em 0 0; font-size: clamp(64px, 11.5vw, 184px); will-change: transform; }

/* ---------- Sheets: a section that rises over the one before ---------- */
.sheet { position: relative; z-index: 2; margin-top: calc(-1 * var(--radius)); border-radius: var(--radius) var(--radius) 0 0; }

/* ---------- Work ---------- */
.work-section { padding-top: clamp(55px, 8.9vw, 144px); padding-bottom: clamp(55px, 8.9vw, 144px); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 34px; margin-bottom: clamp(34px, 5.5vw, 89px); }
.section-heading h2 { margin-top: 21px; font-size: clamp(54px, 10.6vw, 180px); }
.section-heading > p { flex: none; max-width: 36ch; padding-bottom: 8px; font-size: 14px; line-height: 1.6; color: var(--mut); }
.section-heading > p br { display: none; }
/* 13 columns split 8 : 5. A large tile is a golden rectangle and its partner a square, so each pair,
   like each full-width tile, fills a row of 2.618 : 1. */
.featured-grid { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); column-gap: clamp(13px, 2.36vw, 34px); row-gap: clamp(13px, 2.36vw, 34px); align-items: stretch; }
.project-card { display: block; grid-column: span 8; width: 100%; text-align: left; }
.project-card.s { grid-column: span 5; }
.project-card.w { grid-column: 1 / -1; }
/* The two tiles of a pair sit level and share one height: the large one sets it (1.618 : 1) and the small one fills it. */
.project-card.tile { display: flex; flex-direction: column; }
.project-card.tile .card-visual { flex: 1 1 auto; }
@media (min-width: 761px) { .project-card.tile.s .card-visual { aspect-ratio: auto; } }
.w .card-visual { aspect-ratio: 2.618 / 1; }
.card-visual { position: relative; overflow: hidden; aspect-ratio: 1.618 / 1; background: var(--paper-2); }
.s .card-visual { aspect-ratio: 1 / 1; }
.card-visual > img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--e-out); }
.card-visual.contain > img { object-fit: contain; padding: clamp(13px, 2vw, 34px); }
.card-visual.dark-visual { background: #12100c; }
.card-visual.mobile-visual { background: #e0dacb; }
.card-visual.mobile-visual > img { object-fit: contain; padding: clamp(21px, 2.4vw, 34px); }
.card-number { position: absolute; left: 14px; top: 14px; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 0; background: var(--paper); color: var(--ink); font: 500 10.5px var(--mono); }
.card-arrow { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 0; background: var(--paper); color: var(--ink); font-size: 22px; transition: background .3s, color .3s, transform .6s var(--e-out); }
.card-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 21px; margin-top: 21px; }
.card-meta h3 { font: 800 clamp(26px, 3vw, 46px)/.95 var(--sans); font-stretch: 62%; text-transform: uppercase; }
.card-description { margin-top: 8px; font-size: 14px; color: var(--mut); }
.card-visual.type-only { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(21px, 3vw, 34px); background: var(--ink); color: var(--paper); }
.type-only .type-tag { margin-top: 34px; font-size: 10.5px; font-weight: 600; font-stretch: 125%; letter-spacing: .09em; text-transform: uppercase; }
.type-only .type-title { font: 800 clamp(34px, 5.6vw, 96px)/.86 var(--sans); font-stretch: 62%; text-transform: uppercase; }
@supports (font-size: 1cqw) {
  .card-visual.type-only { container-type: inline-size; }
  .type-only .type-title { font-size: 17.5cqw; }
}
/* a 2.39:1 frame delivered inside 16:9: zoom past the black bars */
.card-visual.letterbox { aspect-ratio: 1 / 1; }
.card-visual.letterbox > img { transform: scale(1.38); }
.type-only .type-note { font: 400 11px var(--mono); }
.live .card-visual > img:not([data-par]) { transform: scale(1.001); }
.live .card-visual > img[data-par] { transform: translate3d(0, calc(var(--par, 0) * 1%), 0) scale(1.14); transition: none; }
.live .card-visual.letterbox > img[data-par] { transform: translate3d(0, calc(var(--par, 0) * 1%), 0) scale(1.48); }

/* Poster tiles: what a card is while it has no picture. */
.tone-ink { --tile: var(--ink); --tile-ink: var(--paper); --fill: var(--paper); --fill-ink: var(--ink); }
.tone-grey { --tile: var(--grey); --tile-ink: var(--ink); --fill: var(--ink); --fill-ink: var(--paper); }
.tone-bone { --tile: var(--paper-2); --tile-ink: var(--ink); --fill: var(--ink); --fill-ink: var(--paper); }
.tile { --tile-pad: clamp(21px, 2.1vw, 34px); }
.tile .card-visual { display: flex; flex-direction: column; justify-content: space-between; gap: 13px; padding: var(--tile-pad); isolation: isolate; background: var(--tile); color: var(--tile-ink); transition: color .3s; }
.tile-fill { position: absolute; inset: 0; z-index: -1; background: var(--fill); clip-path: circle(0px at var(--mx, 50%) var(--my, 100%)); transition: clip-path .8s var(--e-out); }
.tile-top { display: flex; justify-content: space-between; align-items: center; gap: 13px; font: 400 11px var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.w .tile-title { flex-direction: row; gap: .24em; }
.tile-title { display: flex; flex-direction: column; align-items: flex-start; align-self: flex-start; margin-top: auto; font: 800 clamp(44px, 7vw, 120px)/.86 var(--sans); font-stretch: 62%; letter-spacing: -.012em; text-transform: uppercase; white-space: nowrap; }
.tile-title span { display: block; }
.tile-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 13px; }
.tile-note { max-width: 26ch; font-size: 14px; line-height: 1.4; }
.tile .card-arrow { position: static; flex: none; width: calc(var(--tile-pad) * 1.618); height: calc(var(--tile-pad) * 1.618); font-size: calc(var(--tile-pad) * .618); border: 1px solid currentColor; background: none; color: inherit; transition: transform .6s var(--e-out); }
.tile:focus-visible .card-visual { color: var(--fill-ink); }
.tile:focus-visible .tile-fill { clip-path: circle(142% at 50% 100%); }

.more-work-heading { display: flex; justify-content: space-between; gap: 21px; margin: clamp(55px, 8vw, 144px) 0 13px; }
.more-work { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(21px, 3vw, 55px); }
.more-work button, .archive-row { position: relative; isolation: isolate; width: 100%; text-align: left; border-bottom: 1px solid var(--hair); transition: color .35s; }
.more-work button::before, .archive-row::before { content: ''; position: absolute; inset: 0 calc(var(--pad) * -.35); z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--e-out); }
.more-work button { display: flex; align-items: center; gap: 21px; padding: 21px 0; border-bottom: 0; border-top: 1px solid var(--hair); }
.more-work button > span:first-child { width: 24px; font: 400 11px var(--mono); color: var(--mut); }
.more-work button > div { flex: 1; min-width: 0; transition: transform .6s var(--e-out); }
.more-work h3 { font: 800 clamp(22px, 2.3vw, 34px)/1 var(--sans); font-stretch: 62%; text-transform: uppercase; }
.more-work p { margin-top: 5px; font-size: 13px; color: var(--mut); }
.more-work button > span:last-child { font-size: 22px; transition: transform .6s var(--e-out); }

/* ---------- Film: a card that opens to full bleed ---------- */
.film-wrap { position: relative; }
.film-section { display: grid; grid-template-columns: 1fr 1.7fr; gap: clamp(34px, 6vw, 89px); align-items: center; padding-top: clamp(55px, 9vw, 144px); padding-bottom: clamp(55px, 9vw, 144px); background: var(--ink); color: var(--paper); --mut: #948c7c; --focus: var(--paper); --accent: var(--paper); }
.live .film-section { clip-path: inset(calc(var(--k, 0) * 2vw) calc(var(--k, 0) * var(--pad)) round calc(var(--k, 0) * var(--radius))); }
.film-intro h2 { margin: 21px 0 21px; font-size: clamp(48px, 6.7vw, 120px); }
.film-intro p { max-width: 34ch; font-size: 14px; line-height: 1.7; color: #b0a999; }
.film-intro .text-link { margin-top: 34px; }
.film-player video { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #171510; }
.film-caption { display: flex; justify-content: space-between; gap: 13px; padding-top: 13px; font: 400 10.5px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: #a69d8a; }

/* ---------- Archive ---------- */
.archive-section { padding-top: clamp(55px, 8.9vw, 144px); padding-bottom: clamp(55px, 5.5vw, 89px); }
.archive-tools { display: flex; justify-content: space-between; align-items: center; gap: 21px; padding-bottom: 21px; border-bottom: 1px solid var(--ink); }
.archive-tabs { display: flex; flex-wrap: wrap; gap: 5px; }
.archive-tabs button { padding: 8px 13px; border-radius: 0; font-size: 11px; font-weight: 600; font-stretch: 112%; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; transition: background .3s, color .3s; }
.archive-tabs button.active { background: var(--ink); color: var(--paper); }
.archive-tabs span { margin-left: 3px; font: 400 9px var(--mono); vertical-align: top; opacity: .7; }
.search-field { display: flex; align-items: center; gap: 8px; min-width: 250px; }
.search-field > span { display: flex; }
.search-field svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4px; }
.search-field svg * { vector-effect: non-scaling-stroke; }
.search-field input { width: 100%; padding: 8px 0; border: 0; border-bottom: 1px solid #bfb8a9; border-radius: 0; background: none; color: var(--ink); font-size: 14px; }
.search-field input:focus-visible { outline: 0; border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.archive-subhead { display: flex; justify-content: space-between; padding: 21px 0; font: 400 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mut); }
.archive-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 28px; gap: 21px; align-items: center; padding: 21px 0; }
.archive-row > div { min-width: 0; transition: transform .6s var(--e-out); }
.archive-num { font: 400 11px var(--mono); color: var(--mut); }
.archive-row h3 { font: 800 clamp(22px, 2.5vw, 38px)/1 var(--sans); font-stretch: 62%; text-transform: uppercase; }
.archive-row p { margin-top: 5px; font-size: 12.5px; color: var(--mut); }
.archive-row > span:last-child { font-size: 22px; transition: transform .6s var(--e-out); }
.archive-footer { display: flex; justify-content: space-between; align-items: center; gap: 21px; padding-top: 21px; }
.archive-footer p { max-width: 46ch; font-size: 12.5px; color: var(--mut); }
.outline-button { display: inline-flex; align-items: center; gap: 34px; padding: 13px 21px; border: 1px solid var(--ink); border-radius: 0; font-size: 11px; font-weight: 600; font-stretch: 125%; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; transition: background .3s, color .3s; }
.outline-button span { font: 400 11px var(--mono); }
.empty-state { padding: 55px 0; font-size: 16px; color: var(--mut); }
.empty-state button { text-decoration: underline; }
.loading { grid-column: 1 / -1; padding: 34px 0; color: var(--mut); }

/* ---------- About ---------- */
.about-section { display: grid; grid-template-columns: 1.618fr 1fr; gap: clamp(34px, 5.5vw, 89px); padding-top: clamp(55px, 8.9vw, 144px); padding-bottom: clamp(55px, 5.5vw, 89px); }
.about-section h2 { margin: 21px 0; font-size: clamp(48px, 7.4vw, 126px); }
.about-copy p { max-width: 54ch; margin-top: 21px; font-size: 15.5px; line-height: 1.618; color: #bab3a4; }
.about-copy p.large-copy { margin-top: 34px; font-size: clamp(21px, 1.8vw, 26px); line-height: 1.382; letter-spacing: -.01em; color: var(--paper); }
/* Four headline facts in About, under the headline in the wide column */
.credentials { display: grid; grid-template-columns: 1fr 1fr; gap: 21px; margin: 34px 0 0; }
.credentials div { padding-top: 13px; border-top: 1px solid var(--hair); }
.credentials dt { font: 800 clamp(21px, 2.1vw, 34px)/1 var(--sans); font-stretch: 62%; text-transform: uppercase; color: var(--accent); }
.credentials dd { margin: 8px 0 0; font-size: 13px; line-height: 1.382; color: #bab3a4; }
.capabilities { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 21px; margin: 34px 0 34px; }
.capabilities span { padding-top: 13px; border-top: 1px solid var(--hair); font-size: 10.5px; font-weight: 600; font-stretch: 125%; letter-spacing: .07em; text-transform: uppercase; }

/* ---------- Training ---------- */
.training-section { padding-top: clamp(55px, 8vw, 144px); padding-bottom: clamp(89px, 12vw, 144px); border-top: 1px solid var(--hair); }
/* The closing screen opens from the middle of the last screenful of Training: keep that half clear of text */
.live .training-section { padding-bottom: calc(50vh + 34px); }
.training-section .section-heading { align-items: center; margin-bottom: 34px; }
.training-section .section-heading h2 { font-size: clamp(44px, 7.4vw, 126px); }
.trainer-credential { display: flex; align-items: center; gap: 21px; max-width: 320px; padding: 21px 21px; border: 1px solid var(--hair); }
/* The Apple logo beside the credential, drawn through a mask like the other logos (34 x 42 keeps its own proportion). */
.credential-logo { flex: none; display: block; width: 34px; height: 42px; background: currentColor; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.trainer-credential p { font-size: 17px; line-height: 1.25; font-weight: 600; }
.trainer-credential p span { display: block; margin-top: 8px; font: 400 11px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--mut); }
.training-intro { max-width: 60ch; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; color: #cec8ba; }
.training-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(21px, 2.6vw, 34px); margin: 55px 0 34px; }
.training-grid article { padding-top: 21px; border-top: 1px solid var(--hair); }
.training-grid .eyebrow { color: var(--mut); }
.training-grid h3 { margin: 21px 0 13px; font: 800 clamp(26px, 2.6vw, 38px)/1 var(--sans); font-stretch: 62%; text-transform: uppercase; }
.training-grid p { font-size: 14.5px; line-height: 1.618; color: #bab3a4; }

/* ---------- Contact: the dot swallows the page ---------- */
.contact-stage { position: relative; }
.contact-pin { display: flex; flex-direction: column; justify-content: center; padding-top: 89px; padding-bottom: 55px; min-height: 86vh; }
.contact-pin > a { display: flex; justify-content: space-between; align-items: flex-end; gap: 21px; margin: 21px 0 34px; }
.contact-pin h2 { font-size: clamp(50px, 11.4vw, 196px); }
.contact-arrow { font-size: clamp(64px, 11vw, 190px); font-weight: 300; line-height: .8; transition: transform .7s var(--e-out); }
.contact-pin > p { font-size: 14px; }
.live .contact-stage { z-index: 3; height: 200vh; margin-top: -100vh; pointer-events: none; }
.live .contact-pin { position: sticky; top: 0; height: 100vh; height: 100lvh; min-height: 0; pointer-events: auto; clip-path: circle(var(--cr, 0px) at 50% 50%); }

.site-footer { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 21px; padding-top: 34px; padding-bottom: 34px; background: var(--ink); color: #b3ab9a; font: 400 11px var(--mono); letter-spacing: .03em; }
.site-footer a { margin: -13px 0; padding: 13px 0; color: var(--paper); }
.noscript { position: relative; z-index: 5; padding: 21px; background: var(--paper); color: var(--ink); }

/* ---------- Project screen ---------- */
.project-screen { position: fixed; inset: 0; z-index: 60; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--ink); color: var(--paper); --mut: #948c7c; --hair: #2f2a20; --focus: var(--paper); --accent: var(--paper); }
.project-screen:not([open]) { display: none; }
.dialog-toolbar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; height: 89px; margin-bottom: -89px; padding: 0 var(--pad); color: var(--paper); background: linear-gradient(var(--ink) 61.8%, #0b0a0800); pointer-events: none; }
.dialog-toolbar > * { pointer-events: auto; }
.close-dialog { font-size: 11px; font-weight: 600; font-stretch: 125%; letter-spacing: .07em; text-transform: uppercase; }
.close-dialog { display: flex; align-items: center; gap: 13px; padding: 8px 0 8px 13px; }
.close-dialog span { position: relative; width: 40px; height: 40px; border: 1px solid currentColor; border-radius: 0; font-size: 0; transition: background .3s, color .3s, transform .6s var(--e-out); }
.close-dialog span::before, .close-dialog span::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -.75px 0 0 -7px; background: currentColor; transform: rotate(45deg); }
.close-dialog span::after { transform: rotate(-45deg); }

.project-top { display: flex; align-items: flex-end; min-height: 61.8vh; }
.project-top.has-cover { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: stretch; min-height: 100vh; }
.project-header { display: flex; flex-direction: column; justify-content: flex-end; width: 100%; padding: 144px var(--pad) clamp(34px, 4vw, 55px); }
.project-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; }
.project-tags .eyebrow { color: var(--accent); }
.project-count { margin-right: 8px; font: 400 11px var(--mono); letter-spacing: .06em; color: var(--mut); }
.no-cover .project-lede { display: grid; grid-template-columns: minmax(0, 1.618fr) minmax(0, 1fr); gap: clamp(34px, 5.5vw, 89px); align-items: end; }
.no-cover .project-facts { margin-top: 0; }
.project-header h2 { margin: 21px 0 21px; font-size: clamp(46px, 9.4vw, 168px); overflow-wrap: break-word; }
.has-cover .project-header h2 { font-size: clamp(44px, 5.6vw, 100px); }
.project-summary { max-width: 46ch; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.45; color: #cec8ba; }
.project-facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 21px; margin-top: 34px; padding-top: 21px; border-top: 1px solid var(--hair); }
.project-facts dt { margin-bottom: 8px; font: 400 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mut); }
.project-facts dd { font-size: 13.5px; line-height: 1.4; }
.project-cover { position: sticky; top: 0; display: grid; place-items: center; height: 100vh; padding: 89px clamp(21px, 3.4vw, 55px) 55px; background: var(--ink-2); overflow: hidden; }
.project-cover img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.cover-caption { position: absolute; left: clamp(20px, 3.4vw, 60px); right: clamp(20px, 3.4vw, 60px); bottom: 22px; font-size: 12px; line-height: 1.5; color: var(--mut); }
.project-emblem { display: none; }

.project-story { display: grid; grid-template-columns: 1.618fr 1fr; gap: clamp(34px, 5.5vw, 89px); padding: clamp(55px, 7vw, 89px) var(--pad); border-top: 1px solid var(--hair); }
.project-story p { max-width: 62ch; margin-bottom: 21px; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.618; color: #cec8ba; }
.project-story h3, .project-links h3 { margin-bottom: 21px; font-size: 10.5px; font-weight: 600; font-stretch: 125%; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }
.project-story ul { margin: 0; padding: 0; list-style: none; }
.project-story li { padding: 13px 0; border-top: 1px solid var(--hair); font-size: 15px; line-height: 1.45; }
.project-story li:last-child { border-bottom: 1px solid var(--hair); }
.project-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 21px; padding: 0 var(--pad) clamp(34px, 6vw, 89px); }
.media-figure { min-width: 0; }
.media-figure.wide-media { grid-column: 1 / -1; }
.media-figure img { width: 100%; height: clamp(260px, 30vw, 460px); object-fit: contain; background: var(--ink-2); }
.media-figure.wide-media img { height: auto; max-height: 680px; }
.media-figure figcaption { margin-top: 8px; font-size: 12.5px; line-height: 1.55; color: var(--mut); }
.media-figure figcaption .credit { display: block; margin-top: 3px; font-size: 11.5px; }
.media-figure video { width: 100%; max-height: 680px; background: #171510; }
.external-video { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 13px; width: 100%; aspect-ratio: 16 / 9; padding: 34px; overflow: hidden; background: var(--ink-2); color: var(--paper); text-align: center; }
.external-video::before { content: ''; position: absolute; width: 75%; height: 180%; border: 1px solid #423b2d; border-radius: 50%; transform: rotate(35deg); pointer-events: none; }
.external-video strong { z-index: 1; font: 800 clamp(28px, 3.4vw, 50px)/.95 var(--sans); font-stretch: 62%; text-transform: uppercase; }
.external-video small { font: 400 11px var(--mono); letter-spacing: .04em; color: #c8c1b1; }
.play-circle { flex: none; display: grid; place-items: center; width: 62px; height: 62px; padding-left: 3px; border-radius: 0; background: var(--paper); color: var(--ink); font-size: 19px; transition: transform .6s var(--e-out); }
.youtube-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #111; }
.video-fallback { display: inline-block; margin-top: 8px; font-size: 12px; text-decoration: underline; }
.project-links { padding: 0 var(--pad) clamp(55px, 6vw, 89px); }
.project-links > div { display: flex; flex-wrap: wrap; gap: 8px; }
.project-links a { display: flex; align-items: center; gap: 34px; padding: 13px 21px; border: 1px solid #504a3c; border-radius: 0; font-size: 13px; transition: background .3s, color .3s, border-color .3s; }
.project-next { display: flex; justify-content: space-between; align-items: flex-end; gap: 21px; width: 100%; padding: clamp(34px, 6vw, 89px) var(--pad); background: var(--paper); color: var(--ink); text-align: left; --focus: var(--ink); transition: background .3s, color .3s; }
.project-next:focus-visible { outline-offset: -8px; }
.project-next small { font-size: 10.5px; font-weight: 600; font-stretch: 125%; letter-spacing: .09em; text-transform: uppercase; }
.project-next > span:first-child { min-width: 0; }
.project-next small { display: block; }
.project-next strong { display: block; margin-top: 13px; font: 800 clamp(44px, 9vw, 160px)/.86 var(--sans); font-stretch: 62%; text-transform: uppercase; }
.project-next > span:last-child { flex: none; font-size: clamp(54px, 9vw, 150px); font-weight: 300; line-height: .8; transition: transform .7s var(--e-out); }

/* ---------- Hover (pointer devices only) ----------
 * Under a pointer a control turns into its opposite: paper becomes ink and ink becomes paper.
 */
@media (hover: hover) {
  .site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
  .text-link:hover span { transform: translate(4px, -4px); }
  .hero-bottom .text-link:hover span { transform: translateY(5px); }
  .round-link:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); transform: translateY(5px); }
  .project-card:hover .card-visual > img:not([data-par]) { transform: scale(1.05); }
  .project-card:hover .card-arrow { background: var(--ink); color: var(--paper); transform: rotate(45deg); }
  .tile:hover .card-visual { color: var(--fill-ink); }
  .tile:hover .tile-fill { clip-path: circle(142% at var(--mx, 50%) var(--my, 100%)); }
  .tile:hover .card-arrow { background: none; color: inherit; }
  .more-work button:hover, .archive-row:hover { color: var(--paper); --mut: #b0a999; }
  .more-work button:hover::before, .archive-row:hover::before { transform: scaleY(1); }
  .more-work button:hover > div, .archive-row:hover > div { transform: translateX(14px); }
  .more-work button:hover > span:last-child, .archive-row:hover > span:last-child { transform: rotate(45deg); }
  .archive-tabs button:hover:not(.active) { background: var(--paper-2); }
  .outline-button:hover { background: var(--ink); color: var(--paper); }
  .contact-pin > a:hover .contact-arrow, .project-next:hover > span:last-child { transform: translate(.08em, -.08em); }
  .close-dialog:hover span { background: var(--paper); color: var(--ink); transform: rotate(90deg); }
  .project-links a:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
  .project-next:hover { background: var(--ink); color: var(--paper); box-shadow: inset 0 1px 0 var(--paper); --focus: var(--paper); }
  .external-video:hover .play-circle { transform: scale(1.14); }
  .menu > a:hover { font-style: italic; }
}
.more-work button:focus-visible, .archive-row:focus-visible { outline-offset: -2px; }

/* ---------- Scroll reveals ---------- */
.live [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--e-out), transform 1.2s var(--e-out); transition-delay: calc(var(--d, 0) * 80ms); }
.live [data-reveal].in { opacity: 1; transform: none; }
.live [data-reveal='clip'] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--e-out); transition-delay: calc(var(--d, 0) * 80ms); }
.live [data-reveal='clip'].in { clip-path: inset(0 0 0 0); }
.live [data-reveal='lines'] { opacity: 1; transform: none; }
.live .line { display: block; overflow: hidden; margin: -.08em -.04em -.12em; padding: .08em .04em .12em; }
.live .line > span { display: block; transform: translateY(118%); transition: transform 1.25s var(--e-out) calc(var(--i, 0) * 110ms); }
.live .in > .line > span { transform: none; }
.live [data-reveal='row'] { transform: translateY(18px); transition-duration: .7s, .9s; transition-delay: calc(var(--d, 0) * 34ms); }


/* ---------- Screen transitions (View Transitions API) ----------
 * in    forward: a paper ring opens from the click and the next screen follows it
 * out   back: the screen closes into a point, trailed by the ring
 * rise  next project: the screen lifts away and the next one rises under a paper edge
 * The page background of the transition layer is paper; the old screen is masked
 * with a growing hole (--hole) and the new one is clipped to a slightly smaller
 * circle, so the gap between them reads as the ring.
 */
::view-transition-group(root) { animation-duration: .35s; }
html[data-vt='in']::view-transition-group(root),
html[data-vt='out']::view-transition-group(root),
html[data-vt='rise']::view-transition-group(root) { background: var(--paper); animation: none; }
html[data-vt='in']::view-transition-old(root),
html[data-vt='in']::view-transition-new(root),
html[data-vt='out']::view-transition-old(root),
html[data-vt='out']::view-transition-new(root),
html[data-vt='rise']::view-transition-old(root),
html[data-vt='rise']::view-transition-new(root) { mix-blend-mode: normal; animation: none; }

html[data-vt='in']::view-transition-old(root) { -webkit-mask: radial-gradient(circle at var(--vx) var(--vy), transparent var(--hole), #000 calc(var(--hole) + 1px)); mask: radial-gradient(circle at var(--vx) var(--vy), transparent var(--hole), #000 calc(var(--hole) + 1px)); animation: vt-hole-open .82s var(--e-io) both; }
html[data-vt='in']::view-transition-new(root) { animation: vt-iris-open .82s var(--e-io) .085s both; }

html[data-vt='out']::view-transition-old(root) { z-index: 2; animation: vt-iris-close .74s var(--e-io) both; }
html[data-vt='out']::view-transition-new(root) { z-index: 1; -webkit-mask: radial-gradient(circle at var(--vx) var(--vy), transparent var(--hole), #000 calc(var(--hole) + 1px)); mask: radial-gradient(circle at var(--vx) var(--vy), transparent var(--hole), #000 calc(var(--hole) + 1px)); animation: vt-hole-close .74s var(--e-io) .08s both; }

html[data-vt='rise']::view-transition-old(root) { animation: vt-lift .86s var(--e-io) both; }
html[data-vt='rise']::view-transition-new(root) { animation: vt-rise .86s var(--e-io) .07s both; }

@keyframes vt-hole-open { from { --hole: 0px; } to { --hole: var(--vr); } }
@keyframes vt-hole-close { from { --hole: var(--vr); } to { --hole: 0px; } }
@keyframes vt-iris-open { from { clip-path: circle(0px at var(--vx) var(--vy)); } to { clip-path: circle(var(--vr) at var(--vx) var(--vy)); } }
@keyframes vt-iris-close { from { clip-path: circle(var(--vr) at var(--vx) var(--vy)); } to { clip-path: circle(0px at var(--vx) var(--vy)); } }
@keyframes vt-lift { from { clip-path: inset(0 0 0 0); transform: none; } to { clip-path: inset(0 0 100% 0); transform: translateY(-14%); } }
@keyframes vt-rise { from { clip-path: inset(100% 0 0 0); transform: translateY(14%); } to { clip-path: inset(0 0 0 0); transform: none; } }

/* the picture you clicked travels into the project's cover (and back) */
::view-transition-group(cover) { z-index: 3; animation-duration: .9s; animation-timing-function: var(--e-io); }
::view-transition-old(cover), ::view-transition-new(cover) { width: 100%; height: 100%; object-fit: cover; }
html[data-vt='out']::view-transition-group(cover) { animation-duration: .8s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .site-nav { gap: 21px; }
  .about-section { grid-template-columns: 1fr 1fr; }
  .film-section { grid-template-columns: 1fr 1.3fr; }
  .archive-tools { flex-direction: column; align-items: stretch; gap: 13px; }
  .search-field { max-width: 380px; }
  .archive-row { grid-template-columns: 26px minmax(0, 1fr) 20px; gap: 13px; }
  .project-top.has-cover { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .site-header { height: 55px; }
  .loader-mark, .loader-note { height: 55px; }
  .loader-note { max-width: 11em; line-height: 1.3; text-align: right; }
  .site-nav { display: none; }
  .menu-toggle { display: flex; }
  .hero { padding-top: 89px; padding-bottom: 21px; }
  .hero-eyebrow { font-size: 8.5px; letter-spacing: .06em; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 21px; }
  .world-top { top: 89px; }
  .world-bottom { bottom: 21px; }
  .live .world-bottom { bottom: calc(100vh - 100svh + 21px); bottom: calc(100lvh - 100svh + 21px); }
  .round-link { width: 50px; height: 50px; font-size: 22px; }
  .brand-band { padding-top: 34px; }
  .section-heading { display: block; margin-bottom: 34px; }
  .section-heading h2 { font-size: clamp(50px, 16.5vw, 110px); }
  .section-heading > p { margin-top: 21px; }
  .section-heading > p br { display: none; }
  .featured-grid { display: flex; flex-direction: column; gap: 21px; }
  .w .card-visual { aspect-ratio: 1.618 / 1; }
  .w .tile-title { flex-direction: column; gap: 0; }
  .s .card-visual { aspect-ratio: 1 / 1; }
  .more-work-heading .muted { display: none; }
  .more-work { grid-template-columns: 1fr; }
  .film-section { display: flex; flex-direction: column; align-items: stretch; gap: 34px; }
  .film-intro h2 { font-size: clamp(54px, 17vw, 120px); }
  .archive-tabs { gap: 3px; }
  .archive-tabs button { padding: 8px 13px; font-size: 10px; }
  .search-field { max-width: none; }
  .archive-row { grid-template-columns: 24px minmax(0, 1fr) 20px; padding: 21px 0; }
  .archive-footer { flex-direction: column; align-items: flex-start; gap: 21px; }
  .about-section { grid-template-columns: 1fr; gap: 34px; }
  .about-section .credentials { margin-top: 13px; }
  .about-section h2 { font-size: clamp(48px, 15vw, 100px); }
  .about-copy p.large-copy { margin-top: 0; }
  .training-section .section-heading h2 { font-size: clamp(42px, 13vw, 90px); }
  .trainer-credential { display: inline-flex; margin-top: 21px; }
  .training-grid { grid-template-columns: 1fr; gap: 21px; margin-top: 34px; }
  .contact-pin > a { flex-direction: column; align-items: flex-start; gap: 5px; }
  .contact-pin h2 { font-size: clamp(46px, 13.4vw, 110px); }
  .contact-arrow { align-self: flex-end; }
  .site-footer { flex-wrap: wrap; gap: 13px; }
  .site-footer > span:nth-child(2) { display: none; }
  .site-footer a { margin-left: auto; }
  .dialog-toolbar { height: 55px; margin-bottom: -55px; }
  .project-top, .project-top.has-cover { display: flex; flex-direction: column-reverse; align-items: stretch; min-height: 0; }
  .project-cover { position: relative; height: auto; min-height: 56vh; max-height: 74vh; padding: 89px 21px 55px; }
  .project-cover img { max-height: 52vh; }
  .project-header { padding-top: 34px; }
  .no-cover .project-header { min-height: 61.8vh; padding-top: 89px; }
  .no-cover .project-lede { display: block; }
  .no-cover .project-facts { margin-top: 34px; }
  .tile-note { font-size: 13px; }
  .project-header h2, .has-cover .project-header h2 { font-size: clamp(44px, 14vw, 96px); }
  .project-story { grid-template-columns: 1fr; gap: 21px; }
  .project-gallery { grid-template-columns: 1fr; gap: 34px; }
  .media-figure img { height: auto; max-height: 560px; }
  .project-next { align-items: center; }
  .external-video { aspect-ratio: auto; min-height: 250px; padding: 34px 21px; }
}

/* ---------- Brand logos on tiles ----------
 * A logo fills the space the lettering would take. It is drawn through a mask in the tile's own
 * colour, so it sits on ink, grey and bone alike and turns with the hover flood.
 */
/* A logo sits in the middle of its tile, between the number and the note, with equal space on both sides.
   --w is its share of the width: 61.8% (the golden section) for a mark of average shape, more for a long
   wordmark and less for a compact one, so every logo carries the same weight. It never takes more than
   61.8% of the height it has. */
.tile-title.has-logo { display: flex; flex-direction: row; align-items: center; justify-content: center; align-self: stretch; flex: 1 1 0; min-height: 0; margin-top: 0; }
.tile-logo { display: block; width: var(--w, 61.8%); height: 61.8%; background: currentColor; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }

/* A project screen is headed by the brand's logo when it has one: 144 px tall on a wide screen for a mark of
   average shape (55 px on a phone), lower and longer for a wordmark, so all carry the same weight. */
.project-logo { display: block; height: calc(var(--k, 1) * clamp(55px, 8.9vw, 144px)); width: calc(var(--k, 1) * var(--r, 2.2) * clamp(55px, 8.9vw, 144px)); max-width: 100%; background: currentColor; -webkit-mask: var(--logo) left center / contain no-repeat; mask: var(--logo) left center / contain no-repeat; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Arrows ----------
 * Arrows are drawn, not typed. The typed north-east arrow is swapped for an emoji on phones;
 * a drawn one looks the same everywhere. It takes its size and colour from the text around it.
 */
.arrow { display: inline-block; flex: none; width: 1em; height: 1em; overflow: visible; fill: none; stroke: currentColor; stroke-width: .06em; vertical-align: -.08em; }
.arrow path { vector-effect: non-scaling-stroke; }
.contact-arrow .arrow, .project-next .arrow { stroke-width: .045em; }

/* ---------- Interactive layer ----------
 * Everything here answers the pointer or a touch. It all sits behind .live, so with reduced
 * motion the page stays static, and the mouse-only parts sit behind .has-cursor.
 */
/* The dot field behind the headline, drawn by app.js */
.hero-field { display: none; }
.live .hero-field { position: absolute; inset: 0; z-index: -1; display: block; width: 100%; height: 100%; pointer-events: none; }
/* The full stop can be pressed: the page flies through it. The ::before widens what can be hit. */
.live .dot { cursor: pointer; }
.live .dot::before { content: ''; position: absolute; inset: -70%; border-radius: 50%; }
/* Brand names: each opens its project; in motion the row can be grabbed and thrown */
.marquee-track button { display: flex; align-items: center; min-height: 44px; text-transform: inherit; white-space: nowrap; transition: color .3s, background .3s, box-shadow .3s; }
/* The row shows logos only. Each is drawn through a mask in the text colour, sized by --h (height) and --r (width / height). */
.brand-logo { display: block; height: var(--h, .75em); width: calc(var(--h, .75em) * var(--r, 2.5)); background: currentColor; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.marquee-hint { display: none; }
.live .marquee-hint { display: inline; }
.live .marquee { touch-action: pan-y; -webkit-user-select: none; user-select: none; cursor: grab; }
.live .marquee.held { cursor: grabbing; }
/* Poster tiles lean toward the pointer; the lettering slides against the lean */
.live.has-cursor .tile { perspective: 1200px; }
.live.has-cursor .tile .card-visual { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: clip-path 1.3s var(--e-out), transform .6s var(--e-out), color .3s; transition-delay: calc(var(--d, 0) * 80ms), 0s, 0s; will-change: transform; }
.live.has-cursor .tile .tile-title { translate: calc(var(--px, 0) * -12px) calc(var(--py, 0) * -9px); transition: translate .6s var(--e-out); }
.live.has-cursor .tile .tile-foot { translate: calc(var(--px, 0) * 5px) calc(var(--py, 0) * 4px); transition: translate .6s var(--e-out); }
/* Arrow-key hint on project screens, for visitors with a keyboard and mouse */
.dialog-keys { display: none; }
.has-cursor .dialog-keys { display: block; font: 400 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mut); }
/* Under a pointer a logo turns into its opposite: ink on a block of paper. The block is a shadow, so the row does not shift. */
@media (hover: hover) { .marquee-track button:hover { background: var(--paper); color: var(--ink); box-shadow: 0 0 0 .08em var(--paper); } }
@media (max-width: 620px) { .has-cursor .dialog-keys { display: none; } }

/* ---------- Plain pages ----------
 * The build writes one plain page per archive entry (work/<id>.html) for search engines, language models and
 * anyone without scripts. They use the same type and colours as the site. .static-index is the plain list of
 * links the build puts where the script later draws the archive.
 */
.page { min-height: 100vh; }
.page-bar, .page-foot { display: flex; justify-content: space-between; align-items: center; gap: 21px; padding: 21px var(--pad); font-size: 11px; font-weight: 600; font-stretch: 125%; letter-spacing: .07em; text-transform: uppercase; }
/* The bar is the site header: same height, and the name in the same place and type */
.page-bar { height: 89px; padding-top: 0; padding-bottom: 0; border-bottom: 1px solid var(--hair); }
.page-bar .identity-name { letter-spacing: 0; text-transform: none; }
@media (max-width: 760px) { .page-bar { height: 55px; } }
.page-foot { border-top: 1px solid var(--hair); color: var(--mut); }
.page-main { max-width: 1100px; padding: clamp(55px, 8.9vw, 144px) var(--pad) clamp(55px, 5.5vw, 89px); }
.page-main .eyebrow { color: var(--accent); }
.page-main h1 { margin: 21px 0 13px; font-size: clamp(46px, 9.4vw, 144px); overflow-wrap: break-word; }
.page-main h1.has-logo { margin: 21px 0; }
.page-did { font-size: clamp(21px, 2.1vw, 34px); line-height: 1.382; }
.page-summary { max-width: 62ch; margin-top: 21px; font-size: clamp(16px, 1.3vw, 19px); color: #cec8ba; }
.page-main section { max-width: 62ch; margin-top: 55px; padding-top: 21px; border-top: 1px solid var(--hair); }
.page-main h2 { margin-bottom: 13px; font-size: 10.5px; font-weight: 600; font-stretch: 125%; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }
.page-main section p, .page-main section li { margin-bottom: 13px; color: #cec8ba; }
.page-main section ul { margin: 0; padding-left: 21px; }
.page-main section a, .page-foot a { text-decoration: underline; text-underline-offset: 3px; }
.page-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 21px; margin-top: 89px; padding-top: 21px; border-top: 1px solid var(--hair); font-size: 13px; }
.static-index { margin: 0; padding: 0; list-style: none; }
.static-index a { display: block; padding: 13px 0; border-bottom: 1px solid var(--hair); }
.static-index strong { font-weight: 800; text-transform: uppercase; }
.static-index span { color: var(--mut); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* "Next project" shows the next brand's logo when there is one */
.project-next .project-logo { margin-top: 13px; height: calc(var(--k, 1) * clamp(44px, 7.6vw, 123px)); width: calc(var(--k, 1) * var(--r, 2.2) * clamp(44px, 7.6vw, 123px)); -webkit-mask-position: left bottom; mask-position: left bottom; }

/* Archive rows: the brand's logo slides in beside the arrow under a pointer or keyboard focus (wide screens only) */
.row-logo { display: none; }
@media (hover: hover) and (min-width: 1100px) {
  .row-logo { display: block; position: absolute; right: 89px; top: 50%; height: calc(var(--k, 1) * 34px); width: calc(var(--k, 1) * var(--r, 2.2) * 34px); background: currentColor; -webkit-mask: var(--logo) right center / contain no-repeat; mask: var(--logo) right center / contain no-repeat; opacity: 0; transform: translate(21px, -50%); transition: opacity .35s, transform .6s var(--e-out); pointer-events: none; }
  .archive-row:hover .row-logo, .archive-row:focus-visible .row-logo { opacity: 1; transform: translate(0, -50%); }
}

/* Touch screens: the archive tabs are finger-sized */
@media (pointer: coarse) { .archive-tabs button { padding-top: 13px; padding-bottom: 13px; } }

/* ---------- Short screens: a phone held sideways, or a low browser window ----------
 * The opening screen is one viewport tall, so the headline gets whatever the spacing leaves. On a short
 * screen the spacing closes up and the introduction sits beside its link, which gives the room back
 * to the headline. Portrait phones are tall enough and keep their own layout.
 */
@media (max-height: 640px) and (orientation: landscape) {
  .hero { padding-top: 89px; padding-bottom: 21px; gap: 13px; }
  .hero-bottom { flex-direction: row; align-items: flex-end; gap: 34px; }
  .hero-bottom p { max-width: 60ch; font-size: 13px; }
  .hero-bottom .text-link { flex: none; }
}
@media (max-height: 640px) and (orientation: landscape) and (max-width: 760px) { .hero { padding-top: 55px; } }

/* ---------- The studio mark ----------
 * Adastra Studios. It is drawn through a mask like every other logo, so it takes the colour of the text
 * around it. It stands beside the name wherever the name appears (header, loader, phone menu, project
 * screens, plain pages) and in the footer; app.js also draws it inside the sun of the first world.
 * --s is its height: 34 px in a 55 px bar, 44 px in the 89 px header. The file is 1.497 : 1.
 */
.studio-logo { flex: none; display: block; height: var(--s, 34px); width: calc(var(--s, 34px) * 1.497); background: currentColor; -webkit-mask: url(/assets/logos/adastra.svg) center / contain no-repeat; mask: url(/assets/logos/adastra.svg) center / contain no-repeat; }
@media (min-width: 761px) { .site-header:not(.float) .studio-logo, .loader-mark .studio-logo, .dialog-toolbar .studio-logo, .page-bar .studio-logo { --s: 44px; } }
.footer-id { display: flex; align-items: center; gap: 21px; }
.footer-id .studio-logo { --s: 55px; color: var(--paper); }
