/* Fraunces (variable, SIL Open Font License) — local, no Google request */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("/assets/fonts/fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("/assets/fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* =========================================================
   Homie Visualz — PORTFOLIO
   Structure: production-house portfolio (project list, grid/list, credits).
   Mood: cinema (warm black, serif statements, "+" cursor, drifting archive).
   ========================================================= */
:root {
  --ink: #0f0806;            /* warm black */
  --ink-2: #1b120e;
  --paper: #f2eee7;          /* warm off-white */
  --on-ink: #f2eee7;         /* ≈17:1 on ink */
  --on-paper: #140c09;       /* ≈17:1 on paper */
  --muted-ink: #a39a91;      /* ≈7:1 on ink */
  --muted-paper: #6b625b;    /* ≈5.6:1 on paper */
  /* One typeface for the whole site: Fraunces with the "soft" axis maxed out → round, heavy, friendly serif */
  --display: "Fraunces", "Cooper Black", Georgia, serif;
  --serif: "Fraunces", "Cooper Black", Georgia, serif;
  --soft: "SOFT" 100, "WONK" 0;
  --gutter: clamp(16px, 2vw, 32px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}
/* Colour palettes to compare (preview with ?palette=mist or ?palette=ritual) */
/* A — "Mist": cool mist white + deep moss green-black (from the MG reference) */
html[data-palette="mist"] {
  --ink: #0e1814; --ink-2: #1d312b; --paper: #e4eaeb;
  --on-ink: #e4eaeb; --on-paper: #0e1814; --muted-ink: #8a97a0; --muted-paper: #4c5e5f;
}
/* B — "Ritual": soft blue-grey + warm earth brown-black (from the hands reference) */
html[data-palette="ritual"] {
  --ink: #1a130d; --ink-2: #39291e; --paper: #dde2e5;
  --on-ink: #e6e9eb; --on-paper: #1a130d; --muted-ink: #a2aab0; --muted-paper: #5b544d;
}
.theme-ink   { --bg: var(--ink);   --fg: var(--on-ink);   --muted: var(--muted-ink);   --line: color-mix(in srgb, var(--on-ink) 14%, transparent); }
.theme-paper { --bg: var(--paper); --fg: var(--on-paper); --muted: var(--muted-paper); --line: color-mix(in srgb, var(--on-paper) 14%, transparent); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--display); font-variation-settings: var(--soft); font-optical-sizing: auto; font-weight: 500;
  font-size: 1rem; line-height: 1.5; -webkit-font-smoothing: antialiased;
  transition: background 500ms ease, color 500ms ease;
  animation: page-in 650ms var(--ease) both;
}
body.is-leaving { opacity: 0; transition: opacity 320ms ease; }
@keyframes page-in { from { opacity: 0; } }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
:focus-visible { outline: 1.5px solid var(--fg); outline-offset: 4px; }
::selection { background: var(--fg); color: var(--bg); }
@media (hover: hover) and (pointer: fine) {
  body { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M12 4v16M4 12h16' stroke='%23000' stroke-width='3.5'/%3E%3Cpath d='M12 4v16M4 12h16' stroke='%23f2eee7' stroke-width='1.5'/%3E%3C/svg%3E") 12 12, crosshair; }
  a, button { cursor: inherit; }
}

/* Type */
.label { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1.35; font-variation-settings: var(--soft); }
.bracket { color: var(--muted); }
.label, .clock, .display, .c-item a { font-variant-numeric: lining-nums tabular-nums; }
.display {
  font-family: var(--display); font-variation-settings: var(--soft); font-weight: 900;
  line-height: .95; letter-spacing: -.01em; margin: 0;
}
.serif { font-family: var(--serif); font-variation-settings: var(--soft); font-weight: 800; line-height: 1.08; letter-spacing: -.005em; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--fg); color: var(--bg); padding: 10px 14px; }
.skip:focus { top: 12px; }
.grain { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; opacity: .07; mix-blend-mode: overlay; }

/* ---------- Header: logo / werk / archief / let's talk / clock ---------- */
.p-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: grid; grid-template-columns: repeat(6, 1fr); align-items: start; gap: 12px;
  padding: 12px var(--gutter); color: var(--fg);
  transition: background 300ms ease;
}
.p-header.is-scrolled { background: var(--bg); }
[data-page="archive"] .p-header { background: linear-gradient(var(--bg) 55%, transparent); padding-bottom: 28px; }
.p-header a, .p-header button { display: inline-block; padding: 6px 0 10px; }
.p-logo { display: flex; align-items: center; gap: 8px; font-weight: 900; font-variation-settings: var(--soft); letter-spacing: .01em; }
.p-logo img { width: 22px; height: auto; }
.theme-paper .p-logo img { filter: invert(1); }
.p-header nav { display: contents; }
.p-header nav a { opacity: 1; transition: opacity 200ms ease; }
.p-header nav a:hover { opacity: .55; }
.p-header nav a[aria-current="page"] { opacity: .45; }
.p-tools { grid-column: 6; justify-self: end; display: flex; gap: 18px; }
.lang [data-lang] { opacity: .45; }
html[lang="nl"] .lang [data-lang="nl"], html[lang="en"] .lang [data-lang="en"] { opacity: 1; }
.clock { font-variant-numeric: tabular-nums; padding: 6px 0 10px; }

/* ---------- HOME ---------- */
.home { height: 100vh; height: 100dvh; overflow: hidden; }
.stage { position: fixed; inset: 0; background: var(--ink); }
.stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; }
.stage video.is-on, .stage .stage-img.is-on { opacity: 1; }
.stage .stage-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; }
.stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 22%, transparent), transparent 18%, transparent 82%, color-mix(in srgb, var(--ink) 22%, transparent)); pointer-events: none; }
.home-main { position: relative; z-index: 2; height: 100%; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; padding: 0 var(--gutter); }
.home-logo { grid-column: 1; align-self: center; display: grid; gap: 10px; }
.home-logo img { width: clamp(44px, 4vw, 64px); height: auto; }
.home-logo span { font-weight: 900; font-variation-settings: var(--soft); font-size: clamp(1rem, 1.4vw, 1.3rem); letter-spacing: .02em; line-height: 1; }
.home-list { grid-column: 2 / span 2; align-self: stretch; list-style: none; margin: 0; padding: 19vh 0 10vh; display: grid; align-content: space-between; }
.home-list a { display: block; padding: 4px 0; opacity: .35; transition: opacity 300ms ease; }
.home-list a.is-active, .home-list a:hover, .home-list a:focus-visible { opacity: 1; }
.home-list .bracket { color: inherit; opacity: .8; }
.home-sub { display: block; margin-top: .7em; font-size: .55em; font-weight: 700; opacity: .85; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.home-tag { grid-column: 5 / span 2; justify-self: start; align-self: center; margin: 0; font-size: clamp(1.4rem, 2.15vw, 2.3rem); line-height: 1.02; max-width: 17ch; color: #fff; }
.home-foot { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: 16px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.home-foot > :first-child { grid-column: 2; }
.home-foot-end { grid-column: 6; justify-self: end; }
.home-progress { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--on-ink); width: 0; opacity: .8; }

/* ---------- WORK ---------- */
.work-hero { padding: 120px var(--gutter) 0; min-height: 62vh; display: grid; align-content: space-between; gap: 48px; }
.work-hero .display { font-size: clamp(2.2rem, 5.6vw, 5.6rem); max-width: 18ch; }
.work-hero .serif { font-size: clamp(1.3rem, 2vw, 1.8rem); max-width: 34ch; margin: 0; }
.bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 64px var(--gutter) 12px; }
.bar-group { display: flex; gap: 16px; flex-wrap: wrap; }
.bar button[hidden] { display: none; }
.bar button { padding: 8px 0; color: var(--muted); transition: color 200ms ease; }
.bar button[aria-pressed="true"], .bar button:hover { color: var(--fg); }
/* Work grid: rows of equal height; landscape tiles are wide, vertical (9:16) tiles are narrow */
/* Work: two sections (Video on top, Photography below), each a calm, uniform grid */
.grid { padding: 0 var(--gutter); }
.grid[hidden], .list[hidden], .grid li[hidden], .list li[hidden], .w-sec[hidden] { display: none; }
.w-sec { padding: clamp(40px, 6vw, 80px) 0 clamp(72px, 9vw, 140px); }
.w-head { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 0 20px; border-top: 1px solid var(--line); padding-top: 16px; margin-bottom: clamp(24px, 3vw, 40px); }
.w-head .display { font-size: clamp(2.6rem, 6.4vw, 6rem); }
.w-head .label { padding-bottom: .9em; }
.w-land, .w-vert, .w-photo { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(28px, 3vw, 44px) clamp(10px, 1.2vw, 18px); }
.w-land { grid-template-columns: repeat(2, 1fr); }
.w-land + .w-vert { margin-top: clamp(36px, 4vw, 64px); }
.w-vert, .w-photo { grid-template-columns: repeat(4, 1fr); }
.g-land .g-media { aspect-ratio: 16 / 9; }
.g-vert .g-media { aspect-ratio: 9 / 16; }
.g-photo .g-media { aspect-ratio: 4 / 5; }
.g-media { position: relative; overflow: hidden; background: var(--ink-2); }
.g-media img, .g-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 400ms ease, transform 900ms var(--ease); }
.g-media video { opacity: 0; }
.g-item a:hover .g-media video.ready { opacity: 1; }
.g-item a:hover .g-media img { transform: scale(1.03); }
.g-meta { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding-top: 8px; }
.g-vert .g-meta, .g-photo .g-meta { grid-template-columns: 1fr auto; }
.g-meta .bracket { grid-column: 1 / -1; }

/* Categories → project folders → items */
.cats { scroll-margin-top: 60px; }
@media (max-width: 800px) { .cats { scroll-margin-top: 96px; } }
.cat-filters { gap: 4px 16px; flex-basis: 100%; }
.kind-filters { gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 999px; }
.kind-filters button { padding: 6px 14px; border-radius: 999px; transition: background 200ms ease, color 200ms ease; }
.kind-filters button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.cat-n { color: var(--muted); font-size: .85em; }
.cat-count { color: var(--muted); }
.cat-body { padding: clamp(24px, 3vw, 40px) var(--gutter) clamp(48px, 7vw, 100px); }
.f-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) 12px; }
.f-grid a { display: block; }
.f-cover { aspect-ratio: 4 / 5; }
.f-grid a:hover .f-cover img { transform: scale(1.03); }
.f-grid .g-meta .bracket { color: var(--muted); }
.f-desc { margin: 0 0 clamp(24px, 3vw, 40px); max-width: 46ch; font-size: clamp(1.1rem, 1.6vw, 1.5rem); line-height: 1.3; }
.f-back { display: inline-block; padding: 8px 0 20px; color: var(--muted); transition: color 200ms ease; }
.f-back:hover { color: var(--fg); }
.f-items { list-style: none; margin: 0; padding: 0; columns: 4 220px; column-gap: 12px; }
.f-item { break-inside: avoid; margin-bottom: 12px; }
.f-item button { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--ink-2); cursor: zoom-in; overflow: hidden; }
.f-item img { display: block; width: 100%; height: auto; transition: transform 900ms var(--ease); }
.f-item video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 400ms ease; }
.f-item button:hover video.ready { opacity: 1; }
.f-item button:hover img { transform: scale(1.03); }
.f-item button:focus-visible { outline: 1.5px solid var(--fg); outline-offset: 3px; }
.f-play { position: absolute; left: 10px; bottom: 10px; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.f-cap { display: block; padding-top: 6px; color: var(--muted); }
.lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 56px var(--gutter) 64px; border: 0; background: rgba(15,8,6,.96); color: var(--on-ink); box-sizing: border-box; }
.lb::backdrop { background: rgba(15,8,6,.8); }
.lb[open] { display: grid; grid-template-rows: 1fr auto; }
.lb-stage { min-height: 0; display: grid; place-items: center; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: calc(100dvh - 140px); object-fit: contain; display: block; }
.lb-cap { margin: 14px 0 0; text-align: center; color: var(--muted-ink); }
.lb-close { position: absolute; top: 14px; right: var(--gutter); padding: 8px 0; color: var(--on-ink); }
.lb-prev, .lb-next { position: absolute; top: 50%; translate: 0 -50%; padding: 18px 10px; font-size: 1.4rem; color: var(--on-ink); opacity: .7; }
.lb-prev { left: calc(var(--gutter) - 10px); } .lb-next { right: calc(var(--gutter) - 10px); }
.lb button:hover { opacity: 1; }
@media (max-width: 1000px) { .f-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .f-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .f-items { columns: 2; column-gap: 8px; } .f-item { margin-bottom: 8px; } .lb-prev, .lb-next { display: none; } }

.list { list-style: none; margin: 0; padding: 8px var(--gutter) 120px; }
.list a { display: block; padding: 6px 0 14px; }
.list .display { font-size: clamp(2rem, 5.2vw, 5rem); transition: opacity 250ms ease; }
.list:hover a .display { opacity: .35; }
.list a:hover .display, .list a:focus-visible .display { opacity: 1; }
.l-meta { display: flex; gap: 40px; margin-top: 4px; }
.preview { position: fixed; left: 0; top: 0; z-index: 40; width: 300px; aspect-ratio: 16 / 10; pointer-events: none; overflow: hidden; scale: 0; transition: scale 300ms var(--ease); }
.preview.is-on { scale: 1; }
.preview.is-portrait { width: 190px; aspect-ratio: 9 / 16; }
.preview img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none) { .preview { display: none; } }

/* ---------- PROJECT ---------- */
.proj { padding: 110px var(--gutter) 80px; }
.row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; padding: 0 0 clamp(64px, 10vw, 140px); }
.row > .label:first-child { padding-top: 6px; }
.proj-title { font-size: clamp(2.4rem, 5.2vw, 5rem); }
.proj-intro, .proj-about, .proj-deliv { margin: 0; font-size: clamp(1.4rem, 2.4vw, 2.3rem); }
.proj-video { margin: 0 calc(var(--gutter) * -1) clamp(64px, 10vw, 140px); aspect-ratio: 16 / 9; max-height: 86vh; width: calc(100% + var(--gutter) * 2); background: var(--ink-2); }
.proj-video video { width: 100%; height: 100%; object-fit: cover; }
.proj-video.is-film { aspect-ratio: auto; max-height: none; background: #000; }
.proj-video.is-photo { aspect-ratio: auto; max-height: none; background: #000; display: grid; place-items: center; }
.proj-video.is-photo img { max-height: 88vh; width: auto; max-width: 100%; }
.proj-video.is-film video { height: auto; max-height: 92vh; object-fit: contain; margin: 0 auto; }
.credits { display: grid; grid-template-columns: auto 1fr; gap: 2px 48px; margin: 0; }
.credits dd { margin: 0; }
.stills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0 clamp(64px, 10vw, 140px); }
.stills img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.stills.is-portrait { grid-template-columns: repeat(6, 1fr); }
.stills.is-portrait img { aspect-ratio: 9 / 16; }
.more .display { font-size: clamp(2rem, 5vw, 4.6rem); }

/* ---------- ARCHIVE (drifting columns) ---------- */
.arc { height: 100vh; height: 100dvh; overflow: hidden; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 5vw, 96px); padding: 0 var(--gutter); }
.arc-col { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 28px; animation: up 70s linear infinite; }
.arc-col.down { animation-name: down; animation-duration: 80s; }
.arc-col.slow { animation-duration: 95s; }
.arc-col:hover, .arc-col:focus-within { animation-play-state: paused; }
@keyframes up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes down { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.arc-item { display: grid; grid-template-columns: 2.4em 1fr; align-items: start; }
.arc-item:nth-child(4n+2) a { width: 72%; }
.arc-item:nth-child(4n+3) a { width: 86%; margin-left: auto; }
.arc-item:nth-child(4n) a { width: 64%; margin-left: 12%; }
.arc-item a { position: relative; display: block; overflow: hidden; }
.arc-item img { width: 100%; height: auto; object-fit: cover; transition: filter 400ms ease; }
.arc-item a:hover img, .arc-item a:focus-visible img { filter: brightness(.5); }
.arc-item.is-portrait a { width: 58%; }
.arc-item.is-portrait:nth-child(odd) a { margin-left: auto; margin-right: 8%; }
.arc-item .t { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; opacity: 0; transition: opacity 250ms ease; }
.arc-item a:hover .t, .arc-item a:focus-visible .t { opacity: 1; }
.arc-num { color: var(--muted); }
.arc-foot { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 3; }

/* ---------- CONTACT ---------- */
.contact { padding: clamp(96px, 14vw, 180px) var(--gutter) 60px; display: grid; gap: 56px; }
.contact > .label { margin: 0 0 -40px; }
.contact .display.big { font-size: clamp(1.7rem, 3.9vw, 3.9rem); max-width: 22ch; }
.c-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 24px; }
.c-item .label { display: block; margin-bottom: 6px; color: var(--muted); }
.c-item .display { font-size: clamp(1.3rem, 2.6vw, 2.8rem); overflow-wrap: break-word; }
.c-item a.display:hover { opacity: .6; }
.c-socials { display: grid; grid-template-columns: auto auto; gap: 8px 48px; justify-content: start; }
.c-socials a { padding: 4px 0; }
.c-socials a:hover { opacity: .6; }
.c-about { margin: 0; font-size: clamp(1.3rem, 2vw, 1.8rem); max-width: 40ch; }

/* ---------- ABOUT (on the contact page) ---------- */
.ab { padding: 120px var(--gutter) 0; }
.ab-title { font-size: clamp(1.8rem, 4.4vw, 4.4rem); max-width: 15ch; margin-top: 10px; }
.ab-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-top: clamp(56px, 8vw, 110px); align-items: start; }
.ab-photo { grid-column: 1 / span 5; margin: 0; }
.ab-photo img { width: 100%; height: auto; filter: grayscale(1) contrast(1.05); }
.ab-photo figcaption { margin-top: 10px; }
.ab-text { grid-column: 7 / span 6; display: grid; gap: 22px; }
.ab-text .serif { margin: 0; font-size: clamp(1.25rem, 1.9vw, 1.85rem); max-width: 30ch; }
.ab-rules { list-style: none; margin: 28px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.ab-rules li { display: grid; grid-template-columns: 3em 1fr; }
.ab-disc { margin: 6px 0 0; }
.clients { padding: clamp(96px, 14vw, 180px) var(--gutter) 0; }
.client-list { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 .45em; font-size: clamp(1.6rem, 4.2vw, 4.2rem); line-height: 1.08; }
.client-list li::after { content: " ·"; color: var(--muted); }
.client-list li:last-child::after { content: ""; }
/* client logos: one ink tone, optically balanced heights */
.client-logos { --lh: clamp(24px, 2.8vw, 42px); list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; gap: clamp(30px, 4vw, 56px) clamp(20px, 3vw, 48px); }
.client-logos li { display: flex; align-items: center; min-width: 0; }
.client-logos img { display: block; width: auto; max-width: 100%; height: var(--lh); object-fit: contain; object-position: left center; opacity: .8; transition: opacity 250ms ease; }
.client-logos li:hover img { opacity: 1; }
.cl-four img { height: calc(var(--lh) * 1.25); }
.cl-croyez img { height: calc(var(--lh) * .5); }
.cl-1-amsterdam img { height: calc(var(--lh) * 1.05); }
.cl-life-after-football img { height: calc(var(--lh) * .32); }
.cl-malelions img { height: calc(var(--lh) * 1.5); }
.cl-j-lindeberg img { height: calc(var(--lh) * 1.2); }
.cl-inti-amar img { height: calc(var(--lh) * .45); }
@media (max-width: 900px) { .client-logos { --lh: 30px; grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Instagram strip */
.ig { padding: clamp(96px, 14vw, 180px) var(--gutter) 0; }
.ig[hidden] { display: none; }
.ig-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.ig-head a { padding: 10px 0; transition: opacity 200ms ease; }
.ig-head a:hover { opacity: .6; }
.ig-grid { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(6px, .8vw, 12px); }
.ig-grid a { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--line); }
.ig-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 600ms cubic-bezier(.2,.7,.2,1), opacity 300ms ease; }
.ig-grid a:hover img { transform: scale(1.04); opacity: .85; }
.ig-grid a:focus-visible { outline: 1.5px solid var(--fg); outline-offset: 3px; }
.ig-tag { position: absolute; left: 8px; bottom: 8px; color: var(--on-ink); text-shadow: 0 1px 6px rgba(0,0,0,.6); }
@media (max-width: 900px) { .ig-grid { grid-template-columns: repeat(3, 1fr); } }
@media (prefers-reduced-motion: reduce) { .ig-grid img { transition: none; } .ig-grid a:hover img { transform: none; } }
.c-motto { margin: 0; align-self: end; font-size: clamp(1.5rem, 2.8vw, 2.6rem); }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) and (min-width: 721px) {
  .w-vert, .w-photo { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .p-header { grid-template-columns: repeat(3, 1fr); row-gap: 0; }
  .p-header .clock { display: none; }
  .p-tools { grid-column: 3; grid-row: 1; }
  .p-logo { grid-column: 1 / span 2; grid-row: 1; }
  .p-header > span:first-child { display: none; }
  .p-header nav a { grid-row: 2; }
  .c-item .display { font-size: 5.4vw; }
  .home-main { grid-template-columns: 1fr; align-content: center; gap: 36px; padding-top: 90px; }
  .home-logo, .home-list, .home-tag { grid-column: 1; justify-self: start; }
  .home-logo { order: -2; grid-template-columns: auto auto; align-items: center; justify-content: start; gap: 12px; }
  .home-logo img { width: 40px; }
  .home-list { gap: 22px; padding: 0; align-content: start; align-self: auto; }
  .home-foot { grid-template-columns: 1fr 1fr; row-gap: 4px; }
  .home-foot > :first-child { grid-column: 1; }
  .home-foot > a[href^="mailto"], .home-foot > a[href^="https://wa"] { display: none; }
  .home-foot-end { grid-column: 2; }
  .home-main { padding-top: 120px; padding-bottom: 70px; gap: 26px; }
  .home-tag { font-size: 1.35rem; }
  .home-tag { order: -1; }
  .w-land { grid-template-columns: 1fr; }
  .w-vert, .w-photo { grid-template-columns: repeat(2, 1fr); }
  .w-head { grid-template-columns: 1fr auto; }
  .w-head > .label:first-child { display: none; }
  .row { grid-template-columns: 1fr; gap: 14px; }
  .stills { grid-template-columns: 1fr 1fr; }
  .stills.is-portrait { grid-template-columns: repeat(3, 1fr); }
  .c-grid { grid-template-columns: 1fr; }
  .ab-photo, .ab-text { grid-column: 1 / -1; }
  .ab-grid { grid-template-columns: 1fr; gap: 36px; }
  .arc { grid-template-columns: repeat(2, 1fr); }
  .arc-col:nth-child(3) { display: none; }
  .arc-item { grid-template-columns: 1fr; }
  .arc-num { display: none; }
}
@media (hover: none) { .arc-foot { display: none; } }
@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  .arc-col { animation: none; }
  .arc { height: auto; overflow: visible; padding-top: 100px; }
}

/* =========================================================
   MOBILE (≤ 720px) — compact header, readable home, tighter rhythm
   ========================================================= */
@media (max-width: 720px) {
  :root { --gutter: 18px; --hdr: 88px; }

  /* Header: row 1 = logo + language, row 2 = navigation; solid so content never shows through */
  .p-header {
    grid-template-columns: 1fr auto; grid-template-areas: "logo tools" "nav nav";
    gap: 0 12px; padding: 8px var(--gutter) 4px; background: var(--bg);
    border-bottom: 1px solid transparent; transition: border-color 300ms ease, background 300ms ease;
  }
  .p-header.is-scrolled { border-bottom-color: var(--line); }
  .p-header .p-logo { grid-area: logo; display: flex; align-items: center; gap: 9px; padding: 8px 0; font-size: .8rem; }
  .p-header .p-logo img { width: 20px; }
  .p-tools { grid-area: tools; grid-column: auto; grid-row: auto; align-self: center; }
  .p-header .lang { padding: 8px 0 8px 12px; }
  .p-header nav { grid-area: nav; display: flex; justify-content: space-between; gap: 12px; }
  .p-header nav a { grid-row: auto; padding: 8px 0 10px; white-space: nowrap; }
  [data-page="archive"] .p-header { background: var(--bg); padding-bottom: 4px; }

  /* Home: header sits over the film, one row (nav + language) */
  .home .p-header { grid-template-areas: "nav tools"; background: transparent; border: 0; padding-top: 10px; }
  .home .p-header nav { justify-content: flex-start; gap: 16px; }
  .p-header .lang { white-space: nowrap; }
  .home .p-header a, .home .p-header button { text-shadow: 0 1px 10px rgba(0,0,0,.45); }

  /* Home: darker scrim on the film so all text stays readable */
  .stage::after {
    background: linear-gradient(180deg, rgba(15,8,6,.62) 0%, rgba(15,8,6,.28) 30%, rgba(15,8,6,.28) 48%, rgba(15,8,6,.86) 100%);
  }
  .home-main {
    display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 0;
    padding: 76px var(--gutter) 64px;
  }
  .home-logo { order: 0; align-self: flex-start; margin-bottom: 22px; gap: 12px; }
  .home-logo img { width: 36px; }
  .home-logo span { font-size: 1rem; }
  .home-tag { order: 1; align-self: flex-start; font-size: 1.55rem; line-height: 1.05; max-width: 15ch; text-shadow: 0 2px 18px rgba(0,0,0,.45); }
  .home-sub { font-size: .52em; margin-top: .8em; max-width: 30ch; line-height: 1.35; }
  .home-list { order: 2; margin-top: auto; align-self: stretch; gap: 0; padding: 0; display: block; width: 100%; border-top: 1px solid rgba(242,238,231,.22); }
  .home-list li { border-bottom: 1px solid rgba(242,238,231,.14); }
  .home-list a { padding: 11px 0; opacity: .78; font-size: .74rem; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
  .home-list a .bracket { display: inline; opacity: .7; }
  .home-list a br { display: none; }
  .home-list a .bracket::before { content: " "; }
  .home-list a.is-active { opacity: 1; }
  .home-foot { bottom: 18px; }

  /* Work */
  .work-hero { padding: calc(var(--hdr) + 28px) var(--gutter) 0; min-height: 0; gap: 22px; }
  .work-hero .display { font-size: 2.35rem; line-height: .98; }
  .work-hero .serif { font-size: 1.2rem; line-height: 1.25; color: var(--muted); }
  .bar { padding: 40px var(--gutter) 8px; row-gap: 14px; }
  .cat-filters { gap: 0 14px; }
  .cat-filters button { padding: 7px 0; }
  .cats { scroll-margin-top: calc(var(--hdr) + 8px); }
  .w-sec { padding: 32px 0 64px; }
  .w-head .display { font-size: 2.4rem; }
  .w-land, .w-vert, .w-photo { gap: 26px 10px; }
  .f-grid { gap: 24px 10px; }
  .g-meta { gap: 0 8px; padding-top: 7px; font-size: .7rem; }
  .f-desc { font-size: 1.1rem; }
  .list .display { font-size: 2rem; }

  /* Project */
  .proj { padding: calc(var(--hdr) + 28px) var(--gutter) 56px; }
  .row { padding-bottom: 48px; gap: 10px; }
  .proj-title { font-size: 2.35rem; line-height: .98; }
  .proj-intro, .proj-about, .proj-deliv { font-size: 1.25rem; line-height: 1.25; }
  .proj-video { margin-bottom: 48px; }
  .stills { gap: 6px; margin-bottom: 48px; }
  .credits { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 16px; }
  .credits dt { color: var(--muted); }
  .more .display { font-size: 1.9rem; }
  .l-meta { gap: 24px; }

  /* Archive */
  .arc { padding-top: var(--hdr); gap: 14px; }
  .arc-col { gap: 16px; }

  /* About & contact */
  .ab { padding: calc(var(--hdr) + 28px) var(--gutter) 0; }
  .ab-title { font-size: 2.1rem; line-height: 1; }
  .ab-grid { margin-top: 32px; gap: 28px; }
  .ab-text .serif { font-size: 1.15rem; line-height: 1.35; }
  .clients, .ig { padding-top: 80px; }
  .client-logos { --lh: 26px; gap: 30px 20px; }
  .contact { padding: 80px var(--gutter) 48px; gap: 36px; }
  .contact > .label { margin: 0 0 -24px; }
  .contact .display.big { font-size: 1.9rem; line-height: 1.02; }
  .c-grid { gap: 28px; }
  .c-item .display { font-size: 1.35rem; }
  .c-item .c-socials { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; color: var(--fg); }
  .c-socials a { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .c-motto { font-size: 1.6rem; }

  /* Lightbox: easy-to-hit close button */
  .lb { padding: 56px 12px 56px; }
  .lb-close { padding: 12px 0; }
}
@media (max-width: 720px) and (max-height: 760px) {
  .home-main { padding-top: 64px; padding-bottom: 56px; }
  .home-logo { margin-bottom: 14px; }
  .home-logo img { width: 30px; }
  .home-list a { padding: 8px 0; }
}
@media (max-width: 720px) and (max-height: 640px) {
  .home-logo { display: none; }
}
@media (max-width: 400px) {
  .p-header nav a, .p-header .lang, .home-list a { font-size: clamp(.62rem, 3.05vw, .74rem); }
  .home .p-header nav { gap: clamp(10px, 3.4vw, 16px); }
}
