/* kngoart.com — dark, lean, image-first */
:root {
  --bg: #0c0c0b;
  --bg-2: #141412;
  --fg: #e8e5de;
  --muted: #8b877e;
  --line: #2a2926;
  --pad: clamp(18px, 4vw, 56px);
  --gap: clamp(14px, 2vw, 28px);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --track: 0.14em;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* smooth scrolling only for jumps within a page (site.js adds the class once the page has loaded),
   so arriving from another page at /#work lands on the grid straight away instead of gliding down from the top */
html.smooth-scroll { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 300 15px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { a:hover { color: #fff; } }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3 { font-weight: 400; margin: 0; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.label { font-size: 11px; font-weight: 500; letter-spacing: var(--track); text-transform: uppercase; color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--fg); color: var(--bg); padding: 6px 10px; z-index: 99; }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }

/* header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; justify-content: space-between; align-items: center;
  padding: 20px var(--pad); font-size: 11px; font-weight: 500; letter-spacing: var(--track); text-transform: uppercase;
  background: linear-gradient(to bottom, rgba(12,12,11,.75), rgba(12,12,11,0)); transition: background .3s; }
.site-header.is-solid { background: rgba(12,12,11,.92); backdrop-filter: blur(8px); }
.site-header nav { display: flex; gap: clamp(16px, 3vw, 36px); }
.site-header nav a { color: rgba(232,229,222,.55); transition: color .25s, text-shadow .25s; }
/* current page (Work / About): a slight glow; hover glows more, so it still reads as a change */
.site-header nav a[aria-current="page"] { color: rgba(240,238,232,.92); text-shadow: 0 0 8px rgba(255,255,255,.28); }
@media (hover: hover) and (pointer: fine) { .site-header nav a:hover { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,.5); } }
.site-header .lang { color: var(--muted); }

/* hero */
.hero { position: relative; height: 86vh; height: 86svh; min-height: 460px; overflow: hidden; background: #000; }
.hero-media, .hero-slide, .hero-video { position: absolute; inset: 0; }
.hero-slide { opacity: 0; transition: opacity 1.8s ease; }
.hero-slide.is-on { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 7s linear; }
.hero-slide.is-on img { transform: scale(1); }
.hero-video { width: 100%; height: 100%; object-fit: cover; border: 0; pointer-events: none; }
iframe.hero-video { width: 177.78vh; height: 56.25vw; min-width: 100%; min-height: 100%; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,12,11,.85) 0%, rgba(12,12,11,0) 45%); pointer-events: none; }
.hero-text { position: absolute; z-index: 2; left: var(--pad); bottom: clamp(28px, 6vh, 64px); max-width: 640px; }
.hero-text .hero-title { font-size: clamp(26px, 3.4vw, 44px); font-weight: 300; letter-spacing: 0.02em; line-height: 1.15; }
.hero-text .hero-title span { display: block; margin-top: 10px; font-size: 11px; font-weight: 500; letter-spacing: var(--track); text-transform: uppercase; color: rgba(232,229,222,.8); }
.hero-text p { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.hero-cue { position: absolute; z-index: 2; right: var(--pad); bottom: clamp(28px, 6vh, 64px); width: 22px; height: 38px; border: 1px solid rgba(232,229,222,.4); border-radius: 12px; }
.hero-cue span { position: absolute; left: 50%; top: 8px; width: 2px; height: 7px; margin-left: -1px; background: var(--fg); border-radius: 2px; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* work grid */
.work { padding: clamp(36px, 6vw, 72px) var(--pad) clamp(60px, 8vw, 110px); scroll-margin-top: 40px; }
.work-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 14px; margin-bottom: clamp(18px, 3vw, 32px); }
.filters { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.filters button { font-size: 11px; font-weight: 500; letter-spacing: var(--track); text-transform: uppercase; color: var(--muted); padding: 4px 0; border-bottom: 1px solid transparent; }
@media (hover: hover) and (pointer: fine) { .filters button:hover { color: var(--fg); } }
.filters button.is-on { color: var(--fg); border-color: var(--fg); }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2.4vw, 34px) var(--gap); }
.card { display: block; }
.card[hidden] { display: none; }
.card-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.2,1), opacity .4s; opacity: .92; }
@media (hover: hover) and (pointer: fine) { .card:hover .card-img img { transform: scale(1.03); opacity: 1; } }
.card-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 12px; }
.card-meta h2 { font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.card-meta span { font-size: 12px; color: var(--muted); text-align: right; white-space: nowrap; }

/* project */
.page-project main, .page-about main { padding-top: 84px; }
.project { padding: 0 var(--pad) 80px; }
.project-head { padding: clamp(24px, 5vw, 56px) 0 clamp(18px, 3vw, 28px); }
.project-head h1 { font-size: clamp(26px, 3.6vw, 46px); font-weight: 300; letter-spacing: 0.01em; line-height: 1.15; }
.meta { margin-top: 10px; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.meta span { margin: 0 6px; opacity: .6; }
.player { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.player img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s ease; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* starting a film: the player loads behind the cover, then fades in */
.player.is-loading iframe { opacity: 0; transition: opacity .4s ease; }
.player.is-playing iframe { opacity: 1; }
.player.is-loading .play { pointer-events: none; }
.play-label { font-weight: inherit; }
.play span { transition: background .3s, transform .15s ease, border-color .2s; }
.play span::after { transition: opacity .2s; }
.play:active span { transform: scale(.92); }                                  /* pressed */
/* loading: cover dims, the triangle gives way to a spinning arc, label reads "Loading" */
.player.is-loading img { opacity: .45 !important; }
.player.is-loading .play span { border-color: rgba(232,229,222,.18); transform: scale(.92); }
.player.is-loading .play span::after { opacity: 0; }
.player.is-loading .play span::before { content: ''; position: absolute; inset: -1px; border-radius: 50%;
  border: 1.5px solid transparent; border-top-color: var(--fg); animation: play-spin .8s linear infinite; }
@keyframes play-spin { to { transform: rotate(360deg); } }
.play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 11px; font-weight: 500; letter-spacing: var(--track); text-transform: uppercase; }
.play span { width: 64px; height: 64px; border: 1px solid rgba(232,229,222,.7); border-radius: 50%; position: relative; transition: background .3s; }
.play span::after { content: ''; position: absolute; left: 26px; top: 21px; border-left: 15px solid var(--fg); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
@media (hover: hover) and (pointer: fine) { .play:hover span { background: rgba(232,229,222,.12); } }
.player.is-static img { opacity: 1; }
/* several videos on one project: one player shown at a time + a row of thumbnails to switch */
.player[hidden] { display: none; }
/* switching videos slides them like a carousel (site.js); the stage clips what's outside it while they move */
.reel-stage { position: relative; }
.reel-stage.is-sliding { overflow: hidden; }
.reel-nav { display: flex; align-items: flex-start; gap: 12px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.reel-nav::-webkit-scrollbar { display: none; }
.reel-count { flex: none; align-self: center; margin-right: 6px; font-size: 11px; font-weight: 300; letter-spacing: .08em; color: var(--muted); font-variant-numeric: tabular-nums; }
.reel-count b { font-weight: 600; color: var(--fg); }
.reel-item { flex: none; width: clamp(128px, 15vw, 200px); text-align: left; opacity: .5; transition: opacity .25s; cursor: pointer; }
.reel-item.is-on { opacity: 1; }
.reel-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; outline: 1px solid transparent; outline-offset: 2px; transition: outline-color .25s; }
.reel-item.is-on .reel-thumb { outline-color: rgba(232,229,222,.7); }
.reel-thumb img { width: 100%; height: 100%; object-fit: cover; }
.reel-label { display: block; margin-top: 8px; font-size: 11px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reel-label b { font-weight: 600; margin-right: 8px; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .reel-item:hover { opacity: .85; } .reel-item.is-on:hover { opacity: 1; } }
/* film cover: full brightness, dims a little on hover (or keyboard focus on Play) */
@media (hover: hover) and (pointer: fine) { .player:hover img { opacity: .72; } }
.player:has(.play:focus-visible) img { opacity: .72; }
.nofilm { position: absolute; left: 16px; bottom: 6px; font-size: 12px; color: rgba(232,229,222,.75); }
.prose { max-width: 680px; color: #cfccc4; }
.summary { margin: 36px 0 0; }
.stills, .bts, .credits { margin-top: clamp(56px, 8vw, 100px); }
.stills .label, .bts .label, .credits .label { display: block; margin-bottom: 18px; }
.stills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.still { display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); cursor: zoom-in; }
.still img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s, filter .35s ease; }
/* hover: the photo lights up a touch (brighter, a little richer) instead of dimming */
@media (hover: hover) and (pointer: fine) { .still:hover img { filter: brightness(1.12) saturate(1.06); } }
.bts-cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.bts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.bts-grid .still { aspect-ratio: 3 / 2; }
.credits p { max-width: 900px; font-size: 13px; color: var(--muted); line-height: 1.9; }
.next { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-top: clamp(64px, 9vw, 120px); padding-top: 28px; border-top: 1px solid var(--line); }
.next .back { font-size: 12px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.next-link { text-align: right; font-size: clamp(18px, 2.2vw, 26px); font-weight: 300; }
.next-link .label { display: block; margin-bottom: 4px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.94); display: flex; align-items: center; justify-content: center; padding: 4vw; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-close { position: absolute; top: 14px; right: 22px; font-size: 30px; font-weight: 200; color: var(--fg); }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); padding: clamp(24px, 5vw, 56px) var(--pad) 0; align-items: start; }
.about-portrait { position: sticky; top: 96px; }
.about-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-text h1 { font-size: clamp(24px, 3vw, 38px); font-weight: 300; line-height: 1.2; margin-bottom: 28px; }
.about-text .prose { font-size: 16px; }
.gear { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.gear .label { display: block; margin-bottom: 6px; }
.about-bts { padding: clamp(70px, 9vw, 130px) var(--pad) 0; }
.about-bts-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.about-bts-head p { margin: 0; max-width: 520px; font-size: 13px; color: var(--muted); }
.about-bts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.about-bts-grid figure { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-2); }
.about-bts-grid img { width: 100%; height: 100%; object-fit: cover; }
.contact { padding: clamp(70px, 9vw, 130px) var(--pad) clamp(70px, 9vw, 120px); }
.contact .label { display: block; margin-bottom: 40px; }

/* footer */
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 28px; padding: 26px var(--pad) 34px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.site-footer .social { display: flex; gap: 18px; }
.notfound { min-height: 60vh; display: grid; place-content: center; text-align: center; padding-top: 80px; }
.notfound h1 { font-size: 64px; font-weight: 200; }

@media (max-width: 760px) {
  body { font-size: 14px; }
  .grid, .stills-grid { grid-template-columns: 1fr; }
  .bts-cols, .about { grid-template-columns: 1fr; }
  .about-portrait { position: static; }
  .about-bts-grid { grid-template-columns: repeat(2, 1fr); }
  /* phones: same as big screens, title left and CATEGORY · LOCATION right on one line; a long title wraps on the left */
  .card-meta h2, .card-meta span { line-height: 1.35; }
  .card-meta span { flex: none; }
  .hero-cue { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* odd number of stills: first one runs full width so the grid ends evenly */

/* ===== Typography: weight contrast (bold / regular / light) ===== */
b, strong { font-weight: 600; }
i { font-style: normal; }
.label { font-weight: 600; color: #a29e94; }
.wordmark { letter-spacing: 0.16em; }
.wordmark b { font-weight: 700; }
.wordmark i { font-weight: 300; color: rgba(232,229,222,.7); }
.site-header nav a { font-weight: 500; }
.hero-text .hero-title { font-weight: 200; }
.hero-text .hero-title .name { display: block; font-size: clamp(34px, 5vw, 68px); line-height: 1.02; letter-spacing: -0.01em; }
.hero-text .hero-title .name b { font-weight: 700; }
.hero-text .hero-title .name i { font-weight: 200; }
.hero-text .hero-title .role { display: block; margin-top: 14px; font-size: 11px; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; color: rgba(232,229,222,.85); }
.hero-text p { font-weight: 300; }
.filters button { font-weight: 500; }
.filters button.is-on { font-weight: 700; }
.card-meta h2 { font-weight: 700; letter-spacing: 0.06em; }
.card-meta span { font-weight: 300; }
.card-meta span b { font-weight: 500; color: #b9b5ac; }
.project-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.project-head h1 { font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; font-size: clamp(28px, 4.2vw, 56px); line-height: 1.02; }
.meta { font-weight: 300; letter-spacing: 0.08em; }
.meta b { font-weight: 600; color: var(--fg); }
.meta i { font-weight: 400; color: rgba(232,229,222,.85); }   /* role: between the bold category and the muted location */
.copy-link { flex: none; font-size: 11px; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; color: var(--muted); padding: 8px 0; border-bottom: 1px solid var(--line); }
.copy-link.is-done { color: var(--fg); border-color: var(--fg); }
@media (hover: hover) and (pointer: fine) { .copy-link:hover { color: var(--fg); border-color: var(--fg); } }
.prose strong { color: #fff; }
.about-text h1 { font-weight: 200; }
.about-text h1 strong { font-weight: 700; }
.next-link { font-weight: 200; }
.next-link .label { font-weight: 600; }
.credits p { font-weight: 300; }

/* ===== Project drawer (iOS 6 folder style) ===== */
.drawer { grid-column: 1 / -1; position: relative; margin: calc(clamp(18px, 2.4vw, 34px) * -0.55) calc(var(--pad) * -1) 0;
  height: 0; overflow: hidden; transition: height .55s cubic-bezier(.3,.8,.25,1); }
.drawer-inner { position: relative; background: #070707;
  box-shadow: inset 0 14px 18px -12px rgba(0,0,0,.95), inset 0 -14px 18px -12px rgba(0,0,0,.95);
  border-top: 1px solid #000; border-bottom: 1px solid #1f1e1c; }
.drawer-notch { position: absolute; top: 0; width: 0; height: 0; margin-left: -12px; border: 12px solid transparent; border-top-color: var(--bg); transition: left .4s cubic-bezier(.3,.8,.25,1); z-index: 2; }
.drawer .project { padding-top: 8px; padding-bottom: 48px; opacity: 0; transform: translateY(-10px); transition: opacity .35s .15s, transform .45s .1s cubic-bezier(.3,.8,.25,1); }
.drawer.is-open .project { opacity: 1; transform: none; }
.drawer .next { display: none; }
.drawer-bar { position: absolute; top: 18px; right: var(--pad); z-index: 3; display: flex; gap: 22px; align-items: center; }
.drawer-bar a, .drawer-bar button { font-size: 11px; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .drawer-bar a:hover, .drawer-bar button:hover { color: var(--fg); } }
.drawer-bar .x { font-size: 26px; font-weight: 200; line-height: 1; letter-spacing: 0; color: var(--fg); }
.drawer .project-head { padding-top: 56px; }
.card.is-active .card-img img { opacity: 1; }
.grid.has-active .card:not(.is-active) .card-img img { opacity: .45; }
@media (hover: hover) and (pointer: fine) { .grid.has-active .card:not(.is-active):hover .card-img img { opacity: .9; } }
.drawer-loading { padding: 80px var(--pad); color: var(--muted); font-size: 12px; letter-spacing: var(--track); text-transform: uppercase; }
@media (max-width: 760px) {
  .project-head { flex-direction: column; align-items: flex-start; }
  .drawer { margin-top: -14px; }
}

/* finishing: stronger folder notch + hero legibility */
.drawer-inner { background: #040404; }
.drawer-notch { margin-left: -16px; border-width: 16px; }
.hero::after { background: linear-gradient(to top, rgba(12,12,11,.92) 0%, rgba(12,12,11,.55) 28%, rgba(12,12,11,0) 60%); }
.hero-text .hero-title .name { text-transform: uppercase; letter-spacing: 0.01em; margin-top: 0; color: var(--fg); }

/* hero title can be an <h1> (home) or <p> (project links) */
.hero-text .hero-title { margin: 0; color: var(--fg); }

/* ===== stronger focus on the selected project ===== */
.card .card-img img, .card .card-meta { transition: opacity .45s ease, filter .45s ease; }
.grid.has-active .card:not(.is-active) .card-img img { opacity: .28; filter: grayscale(.7); }
.grid.has-active .card:not(.is-active) .card-meta { opacity: .3; }
@media (hover: hover) and (pointer: fine) { .grid.has-active .card:not(.is-active):hover .card-img img { opacity: .75; filter: none; } }
@media (hover: hover) and (pointer: fine) { .grid.has-active .card:not(.is-active):hover .card-meta { opacity: .8; } }
/* selected thumbnail lifts slightly instead of an outline */
.card .card-img { transition: transform .45s cubic-bezier(.22,.61,.36,1), box-shadow .45s ease; }
.card.is-active .card-img { transform: translateY(-6px) scale(1.03); box-shadow: 0 14px 28px -10px rgba(0,0,0,.85); }
.card.is-active .card-meta h2 { color: #fff; }

/* smooth, subtle hover zoom (eases in slowly, settles back gently) */
.card .card-img img {
  transform: scale(1.001);
  transition: transform .45s cubic-bezier(.22,.61,.36,1), opacity .35s ease, filter .35s ease;
  will-change: transform;
  backface-visibility: hidden;
}
@media (hover: hover) and (pointer: fine) { .card:hover .card-img img { transform: scale(1.045); } }
.card .card-meta { transition: opacity .35s ease; }

/* ===== smoother motion (drawer is animated by JS on one timeline with the scroll) ===== */
html { overflow-anchor: none; }              /* stop the browser "correcting" scroll mid-animation */
.drawer { transition: none; will-change: height; }
.drawer .project { opacity: 1; transform: none; transition: none; }
.drawer-body { transition: opacity .32s ease, transform .45s cubic-bezier(.22,.61,.36,1); }
.drawer.is-fading .drawer-body { opacity: 0; transform: translateY(-8px); transition: opacity .17s ease, transform .17s ease; }
.drawer-notch { transition: none; }
.drawer.is-ready .drawer-notch { transition: left .45s cubic-bezier(.22,.61,.36,1); }
.card.is-loading { cursor: progress; }

/* filters: crossfade between the old and new layout (JS lays a fading copy of the old grid on top) */
.grid { position: relative; }
.grid.is-crossfading { overflow: clip; transition: height .42s cubic-bezier(.4,0,.2,1); }
.grid.is-crossfading > .card { transition: opacity .42s ease; }
.grid-ghost { position: absolute; top: 0; left: 0; width: 100%; margin: 0; pointer-events: none; transition: opacity .42s ease; }

/* lightbox fades in/out and crossfades between stills */
.lightbox { opacity: 0; transition: opacity .26s ease; }
.lightbox.is-on { opacity: 1; }
.lightbox img { transition: opacity .25s ease, transform .35s cubic-bezier(.22,.61,.36,1); transform: scale(.985); }
.lightbox.is-on img { transform: none; }
.lightbox img.is-loading { opacity: 0; }

/* hover zoom: GPU-friendly */
.card-img { transform: translateZ(0); }
.card.is-active .card-img { transform: translateY(-6px) scale(1.03); }

/* lighter, see-through header once scrolled (frosted glass + hairline so it still reads as a header) */
.site-header { transition: background .35s ease, backdrop-filter .35s ease, -webkit-backdrop-filter .35s ease, box-shadow .35s ease; }
.site-header.is-solid {
  background: rgba(12,12,11,.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: 0 1px 0 rgba(232,229,222,.07);
}

/* closing = fade, not fold */
.drawer { transition: opacity .24s ease; }
.drawer.is-closing { opacity: 0; }
.grid .card { transition: opacity .24s cubic-bezier(.2,.7,.3,1); }
.grid .card.is-veiled { opacity: 0; transition: none; }

/* projects without a video open straight on the stills */
.stills.is-first { margin-top: 8px; }

/* credits: light roles, bold names (as on the old site) */
.credits p { color: var(--muted); font-weight: 300; }
.credits .role { font-weight: 300; }
.credits b { font-weight: 600; color: var(--fg); }

/* stills sit edge to edge, no gaps */
.stills-grid { gap: 0; }
.stills-grid .still { padding: 0; border: 0; }
.stills-grid .still img { display: block; }

/* behind the scenes: notes first, then photos laid out like the stills — 2 across, edge to edge, all 16:9 */
.bts-cols { display: block; }
.bts-cols .prose { margin-bottom: clamp(24px, 3vw, 36px); }
.bts-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
.bts-grid .still { aspect-ratio: 16 / 9; padding: 0; border: 0; }
.bts-grid .still img { display: block; }
.about-bts-grid figure { aspect-ratio: 16 / 9; }
@media (max-width: 760px) { .bts-grid { grid-template-columns: 1fr; } }

/* BTS notes span the full content width, aligned with the photos and other sections */
.bts .prose { max-width: none; font-size: clamp(15px, 0.6vw + 10px, 20px); line-height: 1.7; }

/* text blocks on project pages sit in one centred reading column (spans the page on screens up to 1280px wide; on wider screens it is capped at ~100 characters per line and centred).
   The Behind the scenes label lines up with the left edge of that column.
   On small screens the page padding gives the side margins. */
.project { --read: none; }
@media (min-width: 1280px) { .project { --read: calc(56 * clamp(15px, 0.6vw + 10px, 20px)); } }
.project .summary,
.project .bts .prose,
.project .bts .label { max-width: var(--read); margin-left: auto; margin-right: auto; }
/* credits run the full page width, left-aligned with the stills */
.project .credits p { max-width: none; }
.project .bts .prose { margin-bottom: clamp(28px, 4vw, 48px); }

/* stills + BTS photos: 3 across on large screens (1280px+), 2 across on everything smaller, phones included */
.stills-grid, .bts-grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .stills-grid, .bts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .stills-grid, .bts-grid { grid-template-columns: repeat(3, 1fr); } }

/* portfolio gallery: slim side margins that grow gently with the screen */
.work { --work-pad: clamp(12px, 2.5vw + 4px, 64px); padding-left: var(--work-pad); padding-right: var(--work-pad); }
.work .drawer { margin-left: calc(var(--work-pad) * -1); margin-right: calc(var(--work-pad) * -1); }

/* ===== About: original kngoart.com layout — dimmed full-bleed photo, text left, two stills right ===== */
.page-about main { padding-top: 0; }
.about { position: relative; display: block; padding: 0; isolation: isolate; overflow: hidden; }
.about-bg { position: absolute; inset: 0; z-index: -1; }
.about-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 33% 44%; }
.about-bg::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .6); }
.about-inner { display: grid; grid-template-columns: minmax(0, 13fr) minmax(0, 10fr); gap: clamp(28px, 4vw, 64px); align-items: start;
  padding: clamp(110px, 12vw, 170px) var(--pad) clamp(70px, 9vw, 130px); max-width: 1680px; margin: 0 auto; }
.about-text h1 { font-size: clamp(26px, 2.4vw, 44px); font-weight: 400; line-height: 1.25; color: #e0e0db; margin-bottom: clamp(22px, 2.4vw, 36px); }
.about-text h1 strong { font-weight: 700; color: #fff; }
.about-text .prose { max-width: none; font-size: clamp(16px, 0.55vw + 11px, 21px); line-height: 1.8; font-weight: 300; color: #fff; }
.about-text .prose p { margin-bottom: 1.05em; }
.about-text .prose strong { font-weight: 700; color: #fff; }
.about .gear { margin: 0; padding: 0; border: 0; color: #fff; font-size: clamp(16px, 0.55vw + 11px, 21px); line-height: 1.8; font-weight: 300; }
.about-side { display: grid; gap: clamp(8px, 0.8vw, 14px); margin-top: clamp(0px, 1vw, 12px); }
.about-side figure { margin: 0; }
.about-side .about-still { padding: 0; border: 0; aspect-ratio: auto; height: auto; background: none; }
.about-side .about-still img { display: block; height: auto; object-fit: initial; }
.about-side img { width: 100%; height: auto; }
@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; padding-top: 104px; }
  .about-side { margin-top: 8px; }
}

/* ===== drawer background: the open project's thumbnail, blurred and dimmed =====
   A fixed, screen-sized layer inside the drawer, clipped to the drawer's shape, so it stays put while you scroll the project. */
.drawer-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: #040404; }
.bd-layer { position: absolute; inset: -100px; background: center / cover no-repeat; filter: blur(4px); opacity: 0; transition: opacity .8s ease-in-out; }
.bd-layer.is-on { opacity: .2; }
.drawer-inner { z-index: 1; background: transparent; }

/* the notch is a real cutout in the drawer, so the page shows through it */
@property --notch-x { syntax: '<length>'; inherits: false; initial-value: 50vw; }
.drawer { clip-path: polygon(0 0, calc(var(--notch-x) - 16px) 0, var(--notch-x) 16px, calc(var(--notch-x) + 16px) 0, 100% 0, 100% 100%, 0 100%); }
.drawer.is-ready { transition: opacity .24s ease, --notch-x .45s cubic-bezier(.22,.61,.36,1); }
.drawer-notch { display: none; }

/* big screens: the film (thumbnail + video) gets side margins instead of running edge to edge;
   max 1500px wide, never taller than ~78% of the screen, centred. Phones/tablets unchanged.
   --ar is each film's own shape (set by the build); films without one use the default 16:9. */
@media (min-width: 1280px) {
  .project .player { max-width: min(100%, 1500px, calc(78vh * var(--ar, 16 / 9))); margin-left: auto; margin-right: auto; }
  /* centred when it fits; when it doesn't (many videos) it scrolls from the first one (justify-content: center would cut off the start) */
  .project .reel-nav > :first-child { margin-left: auto; }
  .project .reel-nav > :last-child { margin-right: auto; }
}


/* header: the logo at the top of pages with the slideshow, crossfading into the name as you scroll down it.
   --wm (0 → 1) is set by site.js from the scroll position: 0 = the slideshow's big name reaches the header, 1 = header turns solid.
   The short transition only smooths out mouse-wheel steps. The logo floats, so the header keeps its height. */
.wordmark { position: relative; }
.wm-logo { position: absolute; left: 0; top: 50%; width: 34px; height: 34px; translate: 0 -50%; color: var(--fg);
  opacity: 0; pointer-events: none; transition: opacity .3s linear; }
.wm-name { transition: opacity .3s linear; }
.site-header.has-hero .wm-logo { opacity: calc(1 - var(--wm, 0)); }
.site-header.has-hero .wm-name { opacity: var(--wm, 0); }
.site-header.has-hero:not(.wm-past) .wm-logo { pointer-events: auto; }
/* …and the frosted glass comes in over the same stretch of scroll (--wm), instead of switching at one point:
   tint, blur and hairline all scale with --wm, and the top gradient fades out as the glass comes in.
   The blur sits on the header itself: the header is its own view-transition layer, which stops a blur on a
   child (::after) from seeing the page behind it. Pages without the slideshow keep the on/off switch. */
.site-header.has-hero, .site-header.has-hero.is-solid {
  background: rgba(12,12,11, calc(.6 * var(--wm, 0)));
  -webkit-backdrop-filter: blur(calc(14px * var(--wm, 0))) saturate(calc(1 + .15 * var(--wm, 0)));
  backdrop-filter: blur(calc(14px * var(--wm, 0))) saturate(calc(1 + .15 * var(--wm, 0)));
  box-shadow: 0 1px 0 rgba(232,229,222, calc(.07 * var(--wm, 0)));
  transition: background .3s linear, backdrop-filter .3s linear, -webkit-backdrop-filter .3s linear, box-shadow .3s linear;
}
.site-header.has-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(12,12,11,.75), rgba(12,12,11,0)); opacity: calc(1 - var(--wm, 0)); transition: opacity .3s linear; }
@media (prefers-reduced-motion: reduce) { .site-header.has-hero, .site-header.has-hero::before { transition: none; } }
@media (prefers-reduced-motion: reduce) { .wm-logo, .wm-name { transition: none; } }

/* Contact (About page): the tagline as the headline on the left, labelled details on the right; one column on phones */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-title { font-weight: 300; font-size: clamp(32px, 4vw, 52px); line-height: 1.1; letter-spacing: -0.01em; color: var(--fg); margin: 0; max-width: 11em; }
.contact-list { margin: 0; }
.contact-list > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.contact-list > div:last-child { border-bottom: 1px solid var(--line); }
.contact-list dt { font-size: 11px; font-weight: 500; letter-spacing: var(--track); text-transform: uppercase; color: var(--muted); padding-top: 5px; }
.contact-list dd { margin: 0; font-size: 18px; line-height: 1.4; color: var(--fg); overflow-wrap: anywhere; }
.contact-list dd span { color: var(--muted); }
.contact-list a { color: inherit; text-decoration: none; transition: opacity .2s; }
@media (hover: hover) and (pointer: fine) { .contact-list a:hover { opacity: .6; } }
.contact-list .arrow { color: var(--muted); }
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-list > div { grid-template-columns: 96px 1fr; }
}
/* bigger screens: keep the Contact block to a centred column instead of spanning the full width */
@media (min-width: 1024px) {
  .contact .label, .contact-grid { max-width: 1100px; margin-left: auto; margin-right: auto; }
  .contact-grid { grid-template-columns: 1.2fr 1fr; }
}

/* Behind the scenes on project pages: the heading + text sit balanced between the stills above and the photos below
   (same --bts-space on both sides); 24px between the heading and the text; no stacked margin from the last paragraph */
.project .bts { --bts-space: clamp(40px, 4.5vw, 64px); margin-top: var(--bts-space); }
.bts .prose > :last-child { margin-bottom: 0; }
.project .bts .bts-cols > .prose { margin-bottom: var(--bts-space); }
.bts .label { margin-bottom: 1.5rem; }

/* moving between pages (Work ↔ About, language switch): a short crossfade instead of a blank cut.
   The header is its own layer, so it stays put while the page underneath changes. */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
/* staged instead of a straight crossfade (two pages overlapping read as a double exposure):
   the old page fades out quickly, then the new one fades in while settling 10px up; the dark backdrop shows for a beat in between */
::view-transition { background: var(--bg); }
::view-transition-old(root) { animation: vt-out .18s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vt-in .34s cubic-bezier(.22, .61, .36, 1) .1s both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
::view-transition-group(site-header), ::view-transition-old(site-header), ::view-transition-new(site-header) { animation-duration: .3s; animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ===== About: "From set" album (every BTS photo, read from the project folders) ===== */
.album-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.album .still { position: relative; aspect-ratio: 3 / 2; padding: 0; border: 0; }
/* Dec 1, 2026: full width (edge to edge), no gaps, justified rows. Each photo's flex share = its aspect ratio,
   so every photo in a row gets the same height and keeps its own shape (landscape and portrait mixed).
   The ::after filler stops a short last row from being stretched huge. */
.about-bts .album { margin: 0 calc(-1 * var(--pad)); }
.album .album-grid { display: flex; flex-wrap: wrap; gap: 0; --row: clamp(150px, 19vw, 340px); }
.album .album-grid::after { content: ''; flex-grow: 999; flex-basis: calc(var(--row) * 2); }
.album .album-grid .still { flex-grow: calc(var(--r) * 100); flex-basis: calc(var(--row) * var(--r)); aspect-ratio: var(--r); overflow: hidden; }
.album .album-grid .still img { width: 100%; height: 100%; object-fit: cover; }
.album:not(.is-open) .album-grid .is-extra { display: none; }
.album .album-more { margin-left: auto; margin-right: auto; }
.album .still img { display: block; transition: opacity .3s, filter .35s ease, transform .45s ease; }
@media (hover: hover) and (pointer: fine) { .album .still:hover img { opacity: 1; transform: scale(1.045); } }
.album-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; text-align: left; font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--fg); background: linear-gradient(transparent, rgba(0,0,0,.6)); opacity: 0; transition: opacity .3s; pointer-events: none; }
.album .still:focus-visible .album-cap { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .album .still:hover .album-cap { opacity: 1; } }
.album:not(.is-open) .is-extra { display: none; }
.album.is-open .is-extra { animation: album-in .5s ease both; }
@keyframes album-in { from { opacity: 0; } }
.album-more { display: block; margin: 28px auto 0; padding: 11px 22px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--fg); transition: border-color .25s, background .25s; }
@media (hover: hover) and (pointer: fine) { .album-more:hover { border-color: var(--muted); background: rgba(255,255,255,.04); } }
@media (max-width: 1023px) { .album-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .album-grid { grid-template-columns: repeat(2, 1fr); gap: 4px; } .album-cap { display: none; } }
@media (max-width: 760px) { .album .album-grid { gap: 0; --row: 120px; } }
.lb-cap { position: absolute; left: 0; right: 0; bottom: calc(var(--strip-h, 0px) + 22px); margin: 0; text-align: center; font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: pre; pointer-events: none; }
.lb-cap:empty { display: none; }
/* lightbox arrows (prev / next) */
.lb-nav { position: absolute; top: 50%; z-index: 2; width: 52px; height: 52px; margin-top: -26px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: rgba(232,229,222,.75); cursor: pointer; transition: color .25s, background .25s; }
.lb-nav svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.lb-prev { left: max(8px, 1.2vw); }
.lb-next { right: max(8px, 1.2vw); }
@media (hover: hover) and (pointer: fine) { .lb-nav:hover { color: #fff; background: rgba(255,255,255,.06); } }
.lightbox.is-single .lb-nav { display: none; }
.lightbox { touch-action: pan-y; }
@media (min-width: 761px) { .lightbox { padding-left: max(4vw, 76px); padding-right: max(4vw, 76px); } }
/* phones: arrows sit over the photo's edges, on a soft dark disc so they stay readable */
@media (max-width: 760px) { .lb-nav { width: 42px; height: 42px; margin-top: -21px; background: rgba(0,0,0,.35); color: rgba(232,229,222,.9); } .lb-nav svg { width: 20px; height: 20px; } .lb-prev { left: 6px; } .lb-next { right: 6px; } }

/* About: scrolling clients line and booking note */
.clients { max-width: 1680px; margin: 0 auto; padding-top: clamp(32px, 3.5vw, 48px); }   /* same column as the text and photos above */
.clients .label { display: block; margin: 0 var(--pad) 8px; }
.clients + .about-bts { padding-top: clamp(40px, 4.5vw, 64px); }
/* two identical copies, each wider than the screen, slide exactly their own width, so the loop is seamless; --n (names per copy) keeps the speed steady */
.marquee { display: flex; overflow: hidden; margin: 0 var(--pad); padding: 4px 0; font-size: clamp(15px, 1.25vw, 18px); font-weight: 300; line-height: 1.6;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent); }
.marquee-group { flex: none; display: flex; justify-content: space-around; min-width: 100%; margin: 0; padding: 0; list-style: none;
  animation: marquee calc(var(--n) * 3.2s) linear infinite; }
.marquee-group li { display: flex; align-items: center; white-space: nowrap; }
.marquee-group li::after { content: "·"; color: var(--muted); padding: 0 .7em; }
.marquee a { color: inherit; text-decoration: none; transition: opacity .25s; }
@keyframes marquee { to { transform: translate3d(-100%, 0, 0); } }
/* keyboard: stop the motion and let the line scroll to the focused name */
.marquee:has(:focus-visible) { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
.marquee:has(:focus-visible) .marquee-group { animation: none; }
.contact-note { margin: 22px 0 0; max-width: 30em; font-size: 14px; line-height: 1.7; color: var(--muted); }
/* mouse: the line keeps moving; the name under the pointer stands out */
@media (hover: hover) and (pointer: fine) {
  .marquee:hover a { opacity: .45; }
  .marquee a:hover { opacity: 1; }
}
/* reduced motion: no scrolling, all names listed once */
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-group { flex-wrap: wrap; justify-content: flex-start; width: 100%; }
  .marquee-group[aria-hidden], .marquee-group li.is-repeat, .marquee-group li:nth-last-child(1 of :not(.is-repeat))::after { display: none; }
}

/* lightbox thumbnail strip (Dec 1, 2026): the photo's own set along the bottom, current one lit; scrolls sideways */
.lightbox { --strip-h: 64px; padding-bottom: calc(var(--strip-h) + 4vw + 34px); }
.lightbox.is-single { --strip-h: 0px; }
.lightbox.is-single .lb-strip { display: none; }
.lb-strip { position: absolute; left: 0; right: 0; bottom: 14px; height: var(--strip-h); display: flex; gap: 6px; padding: 0 max(16px, 50vw - 600px); overflow-x: auto; scrollbar-width: none; cursor: default; }
.lb-strip::-webkit-scrollbar { display: none; }
.lb-thumb { flex: none; height: 100%; padding: 0; border: 0; opacity: .4; transition: opacity .25s; outline: 1px solid transparent; outline-offset: -1px; }
.lb-thumb img { height: 100%; width: auto; display: block; max-width: 160px; object-fit: cover; }
.lb-thumb.is-on { opacity: 1; outline-color: rgba(232,229,222,.85); }
@media (hover: hover) and (pointer: fine) { .lb-thumb:hover { opacity: .8; } .lb-thumb.is-on:hover { opacity: 1; } }
@media (max-width: 760px) { .lightbox { --strip-h: 48px; } .lb-strip { gap: 4px; } }
.lb-strip > :first-child { margin-left: auto; }   /* centred when the set fits, scrolls from the first one when it doesn't */
.lb-strip > :last-child { margin-right: auto; }
/* lightbox: the outgoing photo while the next one slides in (site.js) */
.lightbox .lb-ghost { position: fixed; margin: 0; max-width: none; max-height: none; object-fit: contain; transform: none; transition: none; pointer-events: none; z-index: 1; }
