/* Nabil Jabour — Senior FX TD
   Palette taken from the Massive Explosion frame: warm near-black, ember orange, smoke greys. */

@font-face {
  font-family: 'Sofia Sans Extra Condensed';
  src: url('../assets/fonts/sofia-sans-extra-condensed.woff2') format('woff2');
  font-weight: 500 900;
  font-display: swap;
}
@font-face {
  font-family: 'Sofia Sans';
  src: url('../assets/fonts/sofia-sans.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'Sofia Sans';
  src: url('../assets/fonts/sofia-sans-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../assets/fonts/jetbrains-mono.woff2') format('woff2');
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --bg: #090706;
  --bg-1: #0f0b09;
  --bg-2: #16110e;
  --bg-3: #1f1814;
  --line: rgba(255, 226, 200, 0.09);
  --line-2: rgba(255, 226, 200, 0.18);
  --fg: #f4ede5;
  --fg-2: #bdb0a3;
  --fg-3: #918478;
  --ember: #ff6b2c;
  --ember-hi: #ffb067;
  --ember-glow: rgba(255, 107, 44, 0.45);
  --flag: #4c9dff;
  --ok: #5fdc93;

  --font-display: 'Sofia Sans Extra Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --font-body: 'Sofia Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --radius: 6px;
  --radius-lg: 10px;
  --container: 1440px;
  --pad: clamp(20px, 5vw, 72px);
  --header-h: 72px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
::selection { background: var(--ember); color: #170904; }
:focus-visible { outline: 2px solid var(--ember-hi); outline-offset: 3px; border-radius: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.1em; height: 1.1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 1rem; top: 1rem; z-index: 200;
  padding: .75rem 1rem; border-radius: var(--radius);
  background: var(--fg); color: var(--bg); font-weight: 600; text-decoration: none;
  transform: translateY(-200%); transition: transform .2s;
}
.skip-link:focus { transform: none; }

.container { width: min(calc(100% - 2 * var(--pad)), var(--container)); margin-inline: auto; }
.mono { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .02em; }
.muted { color: var(--fg-3); }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: 0 1.4rem;
  border: 1px solid transparent; border-radius: 999px;
  font: 600 .95rem/1 var(--font-body); letter-spacing: .01em; text-decoration: none;
  cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .3s, transform .3s var(--ease-out);
}
.btn .icon { width: 1em; height: 1em; }
.btn-primary { background: var(--ember); color: #170904; box-shadow: 0 10px 34px -12px var(--ember-glow); }
.btn-primary:hover { background: var(--ember-hi); transform: translateY(-1px); box-shadow: 0 14px 40px -12px var(--ember-glow); }
.btn-ghost { background: rgba(255, 240, 225, .03); border-color: var(--line-2); color: var(--fg); }
.btn-ghost:hover { background: rgba(255, 240, 225, .08); border-color: rgba(255, 226, 200, .38); }
.btn-small { min-height: 44px; padding: 0 1.05rem; font-size: .88rem; background: var(--bg-3); border-color: var(--line-2); }
.btn-small:hover { border-color: var(--ember); color: var(--ember-hi); }
.btn-large { min-height: 58px; padding: 0 1.7rem; font-size: 1.02rem; }
.btn:active { transform: translateY(1px) scale(.99); }

.text-link {
  display: inline-flex; align-items: center; gap: .35rem; min-height: 44px;
  font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-2);
  text-underline-offset: .32em; text-decoration-thickness: 1px;
  transition: color .2s, text-decoration-color .2s;
}
.text-link .icon { width: .95em; height: .95em; transition: transform .3s var(--ease-out); }
.text-link:hover { color: var(--ember-hi); text-decoration-color: var(--ember); }
.text-link:hover .icon { transform: translate(2px, -2px); }
/* @mentions: a person credited in the text (or a caption: main.js setMentioned), linking to their site in a new tab */
.mention { color: var(--ember-hi); font-weight: 500; text-decoration: none; white-space: nowrap; transition: color .2s; }
.mention:hover { color: var(--fg); text-decoration: underline; text-decoration-color: var(--ember); text-underline-offset: .2em; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: border-color .35s;
}
/* the frosted bar once scrolled sits on a layer behind the header, not on the header itself: a backdrop-filter on the
   header would make it the box of the fixed mobile menu inside it (the menu then opened squeezed into the bar first) */
.site-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  transition: background-color .35s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.is-scrolled::before {
  background: rgba(9, 7, 6, .74);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 1rem; }
.brand {
  display: inline-flex; align-items: center; gap: .75rem; min-height: 44px;
  font: 800 1.5rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .03em; text-decoration: none;
}
.nav-list { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.25rem); list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: .95rem; font-weight: 500; text-decoration: none; color: var(--fg-2);
  transition: color .2s;
}
.nav-list a:hover, .nav-list a[aria-current="true"] { color: var(--fg); }
.nav-list a[aria-current="true"]:not(.nav-cta) { box-shadow: inset 0 -1px 0 var(--ember); }
/* "Hire me": a solid ember block in the logo's condensed caps (a.nav-cta: wins over the nav links' hover / current colour) */
.nav-list a.nav-cta {
  min-height: 40px; padding: .1rem 1.1rem 0; border-radius: 6px; background: var(--ember); color: #170904;
  font: 800 1.15rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .05em;
  box-shadow: 0 8px 24px -12px var(--ember-glow);
  transition: background-color .2s, box-shadow .3s, transform .3s var(--ease-out);
}
.nav-list a.nav-cta:hover { background: var(--ember-hi); color: #170904; transform: translateY(-1px); box-shadow: 0 12px 30px -12px var(--ember-glow); }
.nav-toggle {
  display: none; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line-2); border-radius: 50%; background: rgba(9, 7, 6, .5); cursor: pointer;
  position: relative; z-index: 2;
}
.nav-toggle .icon { width: 20px; height: 20px; }
.nav-menu-foot { display: none; }
/* EN | FR: the two language versions (/ and /fr/) */
.nav-lang { display: flex; align-items: center; gap: .2rem; margin: 0; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.nav-lang a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .35rem;
  text-decoration: none; color: var(--fg-3); transition: color .2s;
}
.nav-lang a:hover, .nav-lang a[aria-current="true"] { color: var(--fg); }
.nav-lang span { color: var(--fg-3); }
@media (min-width: 901px) {
  .nav-menu { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.25rem); }
}

/* ---------- background ---------- */
/* Fixed to the viewport, so the hero and the sections after it share one backdrop and never show an edge.
   Plain dark with a faint ember glow low on the right, where the explosion ignites once the hero leaves. */
.site-bg {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(ellipse 65% 45% at 64% 74%, rgba(255, 107, 44, .085) 0%, rgba(255, 107, 44, 0) 100%),
    linear-gradient(180deg, #0e0b0c 0%, var(--bg) 60%);
}
/* darkens as the hero scrolls away so the explosion glows behind the content instead of under it */
.site-bg-veil { position: absolute; inset: 0; background: var(--bg); opacity: var(--veil, .84); }
/* the demoreel behind the hero: still first, the muted loop over it once playing; JS fades the layer to black before Skillset */
.site-bg-reel { position: absolute; inset: 0; overflow: hidden; }
.site-bg-reel img, .site-bg-reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.site-bg-reel video { opacity: 0; transition: opacity 1s var(--ease-out); }
.site-bg-reel.is-playing video { opacity: 1; }
/* keeps the name and the lede readable: darker low left, where the hero text sits */
.site-bg-reel::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(9, 7, 6, .88) 0%, rgba(9, 7, 6, .35) 45%, rgba(9, 7, 6, .25) 75%, rgba(9, 7, 6, .55) 100%),
    linear-gradient(90deg, rgba(9, 7, 6, .55) 0%, rgba(9, 7, 6, 0) 60%);
}
html:not(.js) .site-bg-reel { display: none; }
/* scroll-scrubbed eclipse (from Skillset) and explosion (crossfaded over it at Credits), faded in by JS */
.site-bg-scroll { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto;
}
.hero-inner { align-self: end; padding-top: calc(var(--header-h) + 3rem); padding-bottom: clamp(1.75rem, 4vh, 3rem); }
.hero-kicker {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: .55rem;
  margin: 0; text-transform: uppercase; letter-spacing: .1em; font-size: .74rem; color: var(--fg);
}
.hero-kicker .sep { color: var(--fg-3); }
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 0 rgba(95, 220, 147, .6); animation: pulse 2.4s var(--ease-out) infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(95, 220, 147, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(95, 220, 147, 0); } }
.hero-title {
  margin: 1.1rem 0 1.4rem;
  font: 800 clamp(5.5rem, 17.5vw, 16.5rem)/.8 var(--font-display);
  text-transform: uppercase; letter-spacing: -.005em;
  color: #fbf4ec;
  text-shadow: 0 0 60px rgba(9, 7, 6, .35);
}
.hero-line { display: block; overflow: hidden; padding: .02em 0 .22em; margin-bottom: -.22em; }
.hero-line > span { display: inline-block; }
.hero-lede { max-width: 38ch; margin: 0; font-size: clamp(1.05rem, 1.35vw, 1.3rem); line-height: 1.5; color: var(--fg-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-foot {
  display: flex; justify-content: space-between; align-items: center; gap: .5rem 2rem; flex-wrap: wrap;
  padding: 1.1rem 0 1.3rem; border-top: 1px solid var(--line);
}
.hero-foot p { margin: 0; text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; color: var(--fg-2); }

/* hero entrance */
.js [data-hero-in] { opacity: 0; transform: translateY(26px); animation: hero-in 1.1s var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 250ms); }
.js .hero-line > [data-hero-in] { transform: translateY(130%); opacity: 1; animation-duration: 1.2s; }
@keyframes hero-in { to { opacity: 1; transform: none; } }

/* ---------- sections ---------- */
.section { position: relative; padding-block: clamp(3rem, 6vw, 5.5rem); }
.sec-head { max-width: 62rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.node-path {
  display: inline-flex; align-items: center; gap: .65rem; margin: 0 0 1.15rem;
  color: var(--ember-hi); font-size: .8rem;
}
.node-glyph { position: relative; width: 18px; height: 11px; border: 1.5px solid currentColor; border-radius: 3px; margin-bottom: 3px; }
.node-glyph::after { content: ''; position: absolute; left: 50%; bottom: -5px; width: 1.5px; height: 4px; background: currentColor; transform: translateX(-50%); }
.sec-title {
  margin: 0;
  font: 800 clamp(3rem, 8vw, 7rem)/.86 var(--font-display);
  text-transform: uppercase; letter-spacing: -.005em; text-wrap: balance;
}
.sec-intro { max-width: 48ch; margin: 1.25rem 0 0; font-size: clamp(1.02rem, 1.3vw, 1.2rem); color: var(--fg-2); }

/* reveal on scroll (.reveal-ready: set by main.js once it runs, so a failed script leaves everything visible;
   the transition is on .is-in only, so the initial hide is instant and never shows as a fade-out) */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(28px); }
.reveal-ready [data-reveal].is-in { opacity: 1; transform: none; transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0ms); }

/* ---------- media (images + hover loops) ---------- */
.media { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--bg-2); box-shadow: 0 0 0 1px var(--line); }
.media > img, .media > video { width: 100%; height: 100%; object-fit: cover; }
.media > img { transition: transform 1.4s var(--ease-out), filter .5s; }
.media > video { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease-out); }
.media.is-playing > video { opacity: 1; }
.media-top > img, .media-top > video { object-position: 50% 15%; }
/* a clip the pointer scrubs (main.js): sideways drags are the page's on touch screens, vertical ones still scroll */
.media[data-scrub] { touch-action: pan-y; }
.media[data-full] .seq-hint-thumb { right: 1rem; bottom: 1rem; padding: .45rem .8rem; font-size: .66rem; }
.media[data-scrub]:focus-visible, .media[data-full]:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
.media[data-full] { cursor: zoom-in; } /* opens large on click (the hover pill says it scrubs too, if it does) */
.media-tag {
  position: absolute; left: 1rem; top: 1rem; z-index: 1;
  padding: .45rem .7rem; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(9, 7, 6, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--fg);
}

/* ---------- credits ---------- */
/* Each credit is a button row; its detail opens on click/tap (.is-open, in flow) and, on hover devices, as a
   floating peek under the row that takes no space, so hovering never shifts the other rows. */
.credit-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.credit-group { margin: 2.5rem 0 .9rem; font-size: .72rem; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: var(--fg-3); }
.credit-group:first-of-type { margin-top: 1.5rem; }
.credit { position: relative; border-bottom: 1px solid var(--line); }
.credit::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, var(--ember), rgba(255, 107, 44, 0) 75%);
  transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out);
}
.credit.is-open::after { transform: scaleX(1); }
.credit-row {
  display: grid; align-items: baseline; gap: 1.5rem; width: 100%; margin: 0; padding: 1.45rem 0;
  grid-template-columns: 3.4rem 6rem minmax(0, 1fr) minmax(12rem, 20rem) minmax(8rem, 12rem) 1.25rem;
  border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.credit-row:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; border-radius: 2px; }
/* the film's cover, left of the line: 2:3, centred on the row (the rest sits on the baseline) */
.credit-cover {
  grid-row: 1; align-self: center; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover;
  border-radius: 3px; background: var(--bg-2); box-shadow: 0 0 0 1px var(--line), 0 10px 22px -12px #000;
  filter: saturate(.85) brightness(.88); transition: filter .4s, transform .6s var(--ease-out);
}
.credit.is-open .credit-cover, .credit-row:focus-visible .credit-cover { filter: none; }
.credit-year { font-size: .8rem; color: var(--fg-3); }
.credit-title {
  font: 700 clamp(1.9rem, 3.5vw, 3.1rem)/.95 var(--font-display); text-transform: uppercase;
  transition: transform .6s var(--ease-out), color .3s;
}
.credit-row:focus-visible .credit-title { transform: translateX(.45rem); }
.credit-row:focus-visible .credit-title, .credit.is-open .credit-title { color: #fff; }
.credit-aka {
  display: inline-block; margin-left: .4rem; vertical-align: .35em;
  font: 400 .9rem/1 var(--font-body); text-transform: none; color: var(--fg-3);
}
.credit-meta { display: flex; flex-direction: column; gap: .15rem; font-size: .95rem; color: var(--fg-2); }
.credit-studio { color: var(--fg); font-weight: 600; }
.credit-role { justify-self: end; text-align: right; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ember-hi); }
.credit-ind { grid-column: -2; grid-row: 1; align-self: center; width: 1.1rem; height: 1.1rem; color: var(--fg-3); transition: transform .4s var(--ease-out), color .3s; }
.credit.is-open .credit-ind { transform: rotate(45deg); color: var(--ember-hi); }
.credit-static .credit-row { cursor: default; }
.credit-badge {
  display: inline-block; padding: .28rem .5rem; border-radius: 999px; border: 1px solid var(--ember);
  font: 500 .62rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ember-hi);
  background: rgba(255, 107, 44, .1); box-shadow: 0 0 12px -3px var(--ember-glow);
}
.credit-detail {
  position: absolute; z-index: 3; left: 12.4rem; right: 0; top: 100%; margin-top: -.6rem; padding: 1rem 1.25rem 1.1rem;
  display: grid; grid-template-columns: minmax(12rem, 20rem) minmax(0, 1fr); gap: 1.25rem; align-items: center;
  border: 1px solid var(--line-2); border-left: 2px solid var(--ember); border-radius: var(--radius);
  background: var(--bg-2); box-shadow: 0 18px 40px -18px #000;
  pointer-events: none; visibility: hidden; opacity: 0; transform: translateY(-.35rem);
  transition: opacity .25s, transform .35s var(--ease-out), visibility 0s .35s;
}
.credit-detail p { max-width: 62ch; margin: 0; color: var(--fg-2); }
/* the project's video, played while the peek is shown (JS); the poster stays under reduced motion / Save-Data */
.credit-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; background: #0b0807; }
.credit-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.credit-detail-label { display: block; margin-bottom: .35rem; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ember-hi); }
@media (hover: hover) {
  .credit:not(.credit-static):hover::after { transform: scaleX(1); }
  .credit:not(.credit-static):hover .credit-title { transform: translateX(.45rem); color: #fff; }
  .credit:hover .credit-cover { filter: none; }
  .credit:hover .credit-detail { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
}
/* pinned open (click/tap/keyboard): back in the flow, under its own row */
.credit.is-open .credit-detail {
  position: static; margin: 0 0 1.5rem 12.4rem; pointer-events: auto;
  visibility: visible; opacity: 1; transform: none; transition-delay: 0s;
}
.credits-foot, .tools-foot { margin: 1.5rem 0 0; }

/* ---------- work ---------- */
.card-meta { margin: 0 0 .8rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ember-hi); }
.card-title { margin: 0 0 1rem; font: 800 clamp(2.1rem, 3.4vw, 3.1rem)/.92 var(--font-display); text-transform: uppercase; text-wrap: balance; }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; margin-top: 1.4rem; }
.proj-text .card-note { margin: .9rem 0 0; font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-3); } /* a small line under the buttons */

.shots { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: .25rem 0 0; padding: 0; list-style: none; }
/* a single shot takes half the row (two columns), a strip of three gets three columns, so it has no empty slot */
.shots:has(> li:only-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shots:has(> li:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* a strip of five gets five columns; in two columns (narrow screens) its first shot spans the row */
.shots:has(> li:nth-child(5):last-child) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.shot { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: zoom-in; }
.shot-img { display: block; overflow: hidden; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); }
.shot-img img { width: 100%; aspect-ratio: 2.35 / 1; object-fit: cover; filter: saturate(.9) brightness(.82); transition: transform .9s var(--ease-out), filter .4s; }
.shot:hover .shot-img img, .shot:focus-visible .shot-img img { transform: scale(1.06); filter: none; }
.shot-cap { display: block; padding-top: .65rem; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-2); }
/* frame sequences (main.js): the scrubbed frame is drawn on a canvas over the <img>, styled like it */
.shot-img.is-scrub, .shot-img:has(.seq-canvas) { position: relative; } /* the .shot's zoom-in cursor: a click opens it large */
.shot-img .seq-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) brightness(.82); transition: transform .9s var(--ease-out), filter .4s; }
.shot:hover .shot-img .seq-canvas, .shot:focus-visible .shot-img .seq-canvas { transform: scale(1.06); filter: none; }
.seq-view { position: relative; display: block; width: fit-content; margin-inline: auto; cursor: ew-resize; touch-action: none; user-select: none; }
.seq-view img { -webkit-user-drag: none; }
.seq-view .seq-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); }
/* hover hint (main.js thumbHint): a small "‹ Scrub ›" pill on each scrubbable thumbnail, shown only while the pointer is on
   it, on computers (touch screens tap to open the viewer); the zoom-in cursor says a click opens it large */
.seq-hint { display: inline-flex; align-items: center; gap: .35rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .08em; pointer-events: none; }
.seq-hint-scrub { display: inline-flex; align-items: center; gap: .35rem; }
.seq-hint .icon { width: 1.1em; height: 1.1em; }
.seq-hint-scrub .icon { animation: seq-nudge 1.6s var(--ease-in-out) infinite; }
.seq-hint-scrub .icon:last-child { --dir: 1; }
@keyframes seq-nudge { 50% { transform: translateX(calc(var(--dir, -1) * 3px)); } }
.seq-hint-thumb {
  position: absolute; right: .5rem; bottom: .5rem; z-index: 1; padding: .22rem .55rem; font-size: .6rem; color: var(--fg);
  background: rgba(9, 7, 6, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s;
}
@media (hover: hover) { .shot:hover .seq-hint-thumb, .media[data-full]:hover .seq-hint-thumb { opacity: 1; } }
/* the scrubbable clip opened large (Massive Explosion): as big as the viewer allows, at the clip's 2.25:1 */
.seq-view.is-plain { cursor: auto; touch-action: auto; } /* a clip that isn't scrubbed: the player's own controls */
.seq-view > video:not(.seq-canvas) { display: block; width: min(calc(100vw - 2rem), 1400px, calc((100vh - 7rem) * 1920 / 854)); aspect-ratio: 1920 / 854; border-radius: var(--radius-lg); background: #000; }


/* ---------- tools ---------- */
.rating { margin: .9rem 0 0; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-2); }
.stars { margin-right: .4rem; color: var(--ember-hi); letter-spacing: .14em; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.tool {
  display: flex; align-items: center; gap: 1.1rem; height: 100%; padding: .75rem; text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-1);
  transition: border-color .25s, background-color .25s, transform .5s var(--ease-out);
}
.tool:hover { border-color: rgba(255, 107, 44, .45); background: var(--bg-2); transform: translateY(-2px); }
.tool-media { width: 92px; aspect-ratio: 1; flex: none; border-radius: var(--radius); }
.tool-body { display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.tool-title { font-weight: 600; font-size: 1.04rem; line-height: 1.25; }
.tool-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-3); }
.price { padding: .22rem .5rem; border: 1px solid var(--line-2); border-radius: 999px; color: var(--fg); }
.price-free { color: var(--ember-hi); border-color: rgba(255, 176, 103, .35); }

/* ---------- tabs (Work) ---------- */
.sec-head-tabs { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; max-width: none; }
.tabs { display: flex; flex-wrap: wrap; gap: .4rem; padding: .3rem; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(9, 7, 6, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.tab {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 1.1rem; border: 0; border-radius: 999px;
  background: none; color: var(--fg-2); font: 600 .95rem var(--font-body); cursor: pointer; transition: background-color .2s, color .2s;
}
.tab:hover { color: var(--fg); background: rgba(255, 240, 225, .06); }
.tab[aria-selected="true"] { background: var(--ember); color: #170904; }
.tab-count { font-size: .66rem; opacity: .7; }
.tab-panel:focus-visible { outline-offset: 8px; }
.tab-panel:not([hidden]) { animation: panel-in .45s var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } }
.panel-intro { max-width: 60ch; margin: 0 0 1.75rem; color: var(--fg-2); }
.panel-intro-split { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; max-width: none; }
.panel-intro-split p { margin: 0; }

/* ---------- collapsible rows ---------- */
.rows { border-top: 1px solid var(--line-2); }
.row { border-bottom: 1px solid var(--line-2); }
.row > summary {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; align-items: center; gap: 1.25rem;
  padding: 1rem .25rem; list-style: none; cursor: pointer; transition: background-color .2s;
}
.row > summary::-webkit-details-marker { display: none; }
.row > summary:hover { background: rgba(255, 240, 225, .03); }
.row > summary:hover .row-title { color: var(--ember-hi); }
.row-thumb { width: 96px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; box-shadow: 0 0 0 1px var(--line); }
.row-title { font: 800 clamp(1.5rem, 2.4vw, 2.2rem)/1 var(--font-display); text-transform: uppercase; transition: color .2s; }
.row-meta { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-2); }
.row-tags { font-size: .7rem; color: var(--fg-3); }
.row-chevron { width: 20px; height: 20px; color: var(--fg-2); transition: transform .35s var(--ease-out); }
.row[open] > summary .row-chevron { transform: rotate(180deg); color: var(--ember-hi); }
/* rows without a thumbnail (About) */
.about-rows .row > summary { grid-template-columns: minmax(0, 1fr) auto auto; }
.about-rows { margin-top: clamp(3rem, 6vw, 4.5rem); }
.row-body { padding: .25rem .25rem 1.75rem; }
.row-body.about-copy p { max-width: 62ch; }
.row[open] > :not(summary) { animation: panel-in .4s var(--ease-out); }

.proj-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1.25rem clamp(1.5rem, 3vw, 3rem); padding: .5rem .25rem 2rem; }
.proj-media { aspect-ratio: 16 / 9; }
.proj-media.media-scope { aspect-ratio: 2.35 / 1; align-self: start; }
.proj-text p { margin-top: 0; color: var(--fg-2); }
/* "What I did" in a Work row: one effect per line, the technique after it in a quieter tone */
.proj-text .credit-detail-label { margin: 1.3rem 0 .55rem; }
.proj-did { margin: 0; padding: 0; list-style: none; color: var(--fg-2); font-size: .95rem; line-height: 1.5; }
.proj-did li { padding: .3rem 0; border-top: 1px solid var(--line); }
.proj-did li:last-child { border-bottom: 1px solid var(--line); }
.proj-did-what { color: var(--fg); font-weight: 500; }
.proj-body .shots { grid-column: 1 / -1; }

/* Others: one looping clip per project (plays while the row is open), two across; the clip opens the full video */
.others-body { display: block; }
.others { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.other-media { display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; color: inherit; font: inherit; cursor: pointer; }
.other-media > img { filter: saturate(.9) brightness(.85); }
.other-media > img, .other-media > video { transition: transform 1.2s var(--ease-out), filter .4s, opacity .6s var(--ease-out); }
.other-media:hover > img, .other-media:hover > video, .other-media:focus-visible > img, .other-media:focus-visible > video { transform: scale(1.04); filter: none; }
.other-play {
  position: absolute; left: .75rem; bottom: .75rem; z-index: 1; display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .75rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(9, 7, 6, .62);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: .64rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--fg); transition: border-color .2s, color .2s, opacity .3s;
}
.other-play .icon { width: 1em; height: 1em; }
@media (hover: hover) { .other-play { opacity: 0; } .other-media:hover .other-play, .other-media:focus-visible .other-play { opacity: 1; } } /* touch screens keep it, as the tap hint */
.other-media:hover .other-play, .other-media:focus-visible .other-play { border-color: var(--ember); color: var(--ember-hi); }
.other-title { margin: 1rem 0 .35rem; font: 800 clamp(1.2rem, 1.7vw, 1.5rem)/1 var(--font-display); text-transform: uppercase; }
.other-meta { margin: 0 0 .6rem; font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ember-hi); }
.other-text { margin: 0; max-width: 54ch; color: var(--fg-2); }
/* the link to the project's own page (/work/<slug>/, scripts/build-work-v2.mjs): small, under the text */
.proj-text .proj-page, .other .proj-page { margin: 1rem 0 0; font-size: .85rem; }

/* ---------- about ---------- */
/* in order: then (the story beside the first effect), the career map, today (the portrait beside where things stand) */
.about-then, .about-now { display: grid; gap: clamp(2rem, 5vw, 5.5rem); align-items: center; }
.about-then { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.about-now { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); margin-top: clamp(3rem, 6vw, 5rem); }
.portrait { margin: 0; }
.portrait img {
  width: 100%; aspect-ratio: 768 / 860; object-fit: cover; border-radius: var(--radius-lg);
  box-shadow: 0 0 0 1px var(--line), 0 40px 90px -40px rgba(255, 107, 44, .45);
}
.portrait figcaption { margin-top: .8rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-3); }
.about-lead { margin-top: 0; font-size: clamp(1.35rem, 2.15vw, 1.95rem); line-height: 1.32; font-weight: 500; color: var(--fg); text-wrap: pretty; }
.about-copy p:not(.about-lead) { max-width: 60ch; font-size: 1.1rem; color: var(--fg-2); }
.about-copy q { color: var(--fg); font-style: italic; }
.about-copy p.about-kicker { margin: 0 0 1rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ember-hi); } /* after the paragraph rule, which it overrides */

/* the first effect, age 13 */
.first-fx { max-width: 28rem; margin: 0; justify-self: end; width: 100%; }
.first-fx-player {
  position: relative; display: block; width: 100%; aspect-ratio: 11 / 9; padding: 0; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: var(--radius); background: #000; cursor: pointer;
  box-shadow: 0 30px 70px -30px rgba(90, 120, 255, .45);
}
.first-fx-player video { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.first-fx-rec {
  position: absolute; top: .6rem; left: .7rem; display: inline-flex; align-items: center; gap: .4rem;
  font-size: .66rem; letter-spacing: .12em; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .8);
}
.first-fx-rec::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 6px #ff3b30; }
.first-fx-play {
  position: absolute; inset: 0; display: grid; place-items: center; color: #fff;
  background: rgba(0, 0, 0, .25); transition: opacity .25s;
}
.first-fx-play .icon { width: 44px; height: 44px; padding: 12px; box-sizing: content-box; border-radius: 50%; background: rgba(9, 7, 6, .6); }
.first-fx-player[aria-pressed="true"] .first-fx-play { opacity: 0; }
.first-fx-player[aria-pressed="true"]:hover .first-fx-play, .first-fx-player[aria-pressed="true"]:focus-visible .first-fx-play { opacity: .9; }
.first-fx-player[aria-pressed="false"] .first-fx-rec::before { background: var(--fg-3); box-shadow: none; }
.first-fx figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; margin-top: .7rem; font-size: .7rem; color: var(--fg-2); }

/* career as a Houdini network */
.network {
  position: relative; z-index: 2; margin-top: clamp(3rem, 6vw, 5rem); padding: clamp(1.25rem, 3vw, 2.5rem);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background-color: #0c0907;
  background-image: radial-gradient(rgba(255, 226, 200, .075) 1px, transparent 1.2px);
  background-size: 22px 22px;
}
.network-bar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; margin-bottom: 1.75rem; }
.network-label { margin: 0; font-size: .76rem; color: var(--fg-2); }
.network-hint { display: flex; align-items: baseline; gap: .35rem; margin: 0; font-size: .7rem; color: var(--fg-3); }
.net-hint-drag { display: none; }
.network.can-drag { padding-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.can-drag .net-hint-drag { display: inline; }
.net-hint-key { display: inline-grid; place-items: center; width: 1.35em; height: 1.35em; border: 1.5px solid var(--ember-hi); border-radius: 50%; color: var(--fg); line-height: 1; }
.net-reset {
  margin-left: .6rem; padding: 0; border: 0; background: none; color: var(--ember-hi);
  font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.net-reset:hover { color: var(--fg); }
html:not(.js) .network-hint, html:not(.js) .net-add { display: none; }
.net { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem clamp(1.5rem, 3vw, 3rem); margin: 0; padding: 0 0 3rem; list-style: none; }
.net-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.net-wires path { fill: none; stroke: rgba(255, 226, 200, .38); stroke-width: 1.75; stroke-linecap: round; }
.net-wires path.flow { stroke: var(--ember-hi); stroke-width: 1.75; stroke-dasharray: 2 14; stroke-linecap: round; animation: flow 1.4s linear infinite; opacity: .85; }
@keyframes flow { to { stroke-dashoffset: -16; } }
/* wire being dragged out of the freelance_OUT port (second svg, drawn above the nodes) */
.net-live { z-index: 4; pointer-events: none; }
.net-live-wire { fill: none; stroke: var(--ember-hi); stroke-width: 2; stroke-linecap: round; filter: drop-shadow(0 0 5px var(--ember-glow)); }
.net-live-end { fill: #0c0907; stroke: var(--ember-hi); stroke-width: 2; }
.network.is-wiring, .network.is-wiring * { cursor: crosshair; -webkit-user-select: none; user-select: none; }
.net-node { position: relative; z-index: 1; display: flex; }
/* staggered like a hand-laid network; a plain offset keeps every box the same height */
.net-node:nth-child(even) { top: 3rem; }
.net-box {
  position: relative; display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 0;
  border: 1px solid rgba(255, 226, 200, .16); border-radius: 8px; background: #1c1612;
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, .9);
}
/* ports sit centred on the border: input on the left, output on the right (top/bottom once the nodes stack) */
.net-box::before, .net-box::after {
  content: ''; position: absolute; top: 50%; z-index: 1; box-sizing: border-box; width: 11px; height: 11px; border-radius: 50%;
  background: #0c0907; border: 2px solid rgba(255, 226, 200, .55); transform: translate(-50%, -50%);
}
.net-box::before { left: -1px; }
.net-box::after { right: -1px; transform: translate(50%, -50%); }
.net-node:first-child .net-box::before { display: none; }
.net-top {
  display: flex; justify-content: space-between; gap: .5rem; padding: .5rem 1rem; font-size: .68rem;
  border-bottom: 1px solid var(--line); border-radius: 7px 7px 0 0; background: rgba(255, 226, 200, .045);
}
.net-name { color: var(--ember-hi); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.net-year { color: var(--fg-3); }
.net-studio { margin: .85rem 1rem 0; font: 800 1.75rem/1 var(--font-display); text-transform: uppercase; }
.net-where { margin: .3rem 1rem .5rem; font-size: .85rem; color: var(--fg-2); }
.net-note { margin: auto 1rem 1rem; padding-top: .55rem; border-top: 1px solid var(--line); font-size: .86rem; line-height: 1.4; color: var(--fg-2); }
/* the node the network ends on: warmer border, soft glow, ember header */
.is-current .net-box { border-color: rgba(255, 176, 103, .55); box-shadow: 0 0 0 1px rgba(255, 176, 103, .12), 0 18px 44px -16px var(--ember-glow); }
.is-current .net-top { border-bottom-color: rgba(255, 176, 103, .22); background: linear-gradient(90deg, rgba(255, 107, 44, .2), rgba(255, 107, 44, .04)); box-shadow: inset 0 2px 0 var(--ember); }
.is-current .net-year { color: var(--ember-hi); }
.is-current .net-box::after { display: none; }
.is-current .net-note { color: var(--fg); }
/* hover: an ember outline glow, ports lit (the dragged and added nodes keep their own shadows) */
@media (hover: hover) {
  .net-box, .net-box::before, .net-box::after { transition: border-color .25s, box-shadow .3s; }
  .net-node:not(.is-dragging) .net-box:hover {
    border-color: rgba(255, 176, 103, .6);
    box-shadow: 0 0 0 1px rgba(255, 176, 103, .22), 0 0 22px -2px rgba(255, 107, 44, .35), 0 12px 30px -14px rgba(0, 0, 0, .9);
  }
  .net-node:not(.is-dragging) .net-box:hover::before, .net-node:not(.is-dragging) .net-box:hover::after { border-color: var(--ember-hi); }
}

/* dragging (mouse & pen only: on touch the page keeps scrolling) */
.can-drag .net-box { cursor: grab; -webkit-user-select: none; user-select: none; }
.net-node.is-dragging { z-index: 3; }
.is-dragging .net-box { cursor: grabbing; box-shadow: 0 26px 50px -18px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 176, 103, .35); }
.net.is-settling .net-box { transition: transform .5s var(--ease-out); }

/* output port on the last node (drag out a wire, or click): opens the Tab menu */
.net-add {
  position: absolute; top: 50%; right: -1px; z-index: 2; display: grid; place-items: center;
  width: 24px; height: 24px; padding: 0; border: 2px solid var(--ember-hi); border-radius: 50%;
  background: #0c0907; color: var(--fg); cursor: crosshair; touch-action: none; transform: translate(50%, -50%);
  transition: background-color .2s, border-color .2s, color .2s, transform .3s var(--ease-out);
}
/* transparent hit pad: ~36px target without growing the dot */
.net-add::before { content: ''; position: absolute; inset: -7px; border-radius: 50%; }
.net-add .icon { width: 12px; height: 12px; stroke-width: 2.5; transition: transform .3s var(--ease-out); }
.net-add::after {
  content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid rgba(255, 176, 103, .6);
  animation: port-ping 2.4s var(--ease-out) infinite; pointer-events: none;
}
.net-add:hover, .net-add[aria-expanded="true"] { background: var(--ember-hi); border-color: var(--ember-hi); color: #170904; transform: translate(50%, -50%) scale(1.12); }
.net-add[aria-expanded="true"] .icon { transform: rotate(45deg); }
.net-add[aria-expanded="true"]::after, .net:has(.is-added) .net-add::after { animation: none; opacity: 0; }
.net-add:focus-visible { outline-offset: 3px; border-radius: 50%; }
@keyframes port-ping { 0% { transform: scale(.8); opacity: .9; } 70%, 100% { transform: scale(1.6); opacity: 0; } }

/* node dropped in from the Tab menu, wired below freelance_OUT */
.net-node.is-added { grid-column: 5; grid-row: 2; top: 0; margin-top: 2.5rem; animation: net-pop .55s var(--ease-out) both; }
.is-added .net-box {
  color: inherit; text-decoration: none; border-color: rgba(255, 176, 103, .6);
  box-shadow: 0 0 0 1px rgba(255, 176, 103, .15), 0 18px 40px -16px var(--ember-glow);
  transition: border-color .2s, background-color .2s;
}
.is-added .net-box:hover { border-color: var(--ember-hi); background: #221a15; }
.is-added .net-box::before { top: -1px; left: 50%; transform: translate(-50%, -50%); }
.is-added .net-box::after { display: none; }
.is-added .net-note { display: flex; align-items: center; gap: .4rem; color: var(--ember-hi); overflow-wrap: anywhere; }
.is-added .net-note .icon { width: .95em; height: .95em; flex: none; }
@keyframes net-pop { from { opacity: 0; transform: translateY(-14px) scale(.94); } }

/* Tab menu */
.net-menu {
  position: absolute; z-index: 5; width: min(17.5rem, calc(100% - 1.5rem)); padding: .35rem;
  border: 1px solid var(--line-2); border-radius: 8px; background: #15100d;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .95), 0 0 0 1px rgba(0, 0, 0, .4);
  animation: menu-in .22s var(--ease-out);
}
.net-menu[hidden] { display: none; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }
.net-menu-search { display: flex; align-items: center; gap: .55rem; padding: .5rem .6rem; border-bottom: 1px solid var(--line); color: var(--fg-3); }
.net-menu-search input { flex: 1; min-width: 0; padding: 0; border: 0; background: none; color: var(--fg); font-size: .8rem; outline: none; }
.net-menu-search input::placeholder { color: var(--fg-3); }
.net-menu-search kbd { padding: .05rem .35rem; border: 1px solid var(--line-2); border-radius: 4px; font-size: .62rem; color: var(--fg-3); }
.net-menu-group { margin: .55rem .6rem .3rem; font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-3); }
.net-menu-list { margin: 0; padding: 0; list-style: none; }
.net-menu-list li { display: flex; align-items: center; gap: .65rem; padding: .55rem .6rem; border-radius: 5px; color: var(--fg-2); cursor: pointer; }
.net-menu-list li[hidden] { display: none; }
.net-menu-list li .icon { color: var(--fg-3); }
.net-menu-list li[aria-selected="true"] { background: rgba(255, 107, 44, .14); color: var(--fg); }
.net-menu-list li[aria-selected="true"] .icon { color: var(--ember-hi); }
.net-menu-list li.is-hot { color: var(--fg); font-weight: 600; }
.net-menu-list li.is-hot .icon { color: var(--ember); }
.nm-op { margin-left: auto; font-size: .66rem; font-weight: 400; color: var(--fg-3); }
.net-menu-empty { margin: 0; padding: .6rem; font-size: .72rem; color: var(--fg-3); }

/* contact button lights up after "Hire me" */
.btn.is-ping { animation: btn-ping 1.1s var(--ease-out) 3; }
@keyframes btn-ping { from { box-shadow: 0 0 0 0 rgba(255, 107, 44, .7), 0 10px 34px -12px var(--ember-glow); } to { box-shadow: 0 0 0 18px rgba(255, 107, 44, 0), 0 10px 34px -12px var(--ember-glow); } }

/* ---------- skillset ---------- */
.skill-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2.5rem, 5vw, 5.5rem);
  margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line-2);
}
.skill {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: .3rem 1.25rem;
  padding: 1.15rem 0 1.2rem; border-top: 1px solid var(--line-2);
}
.skill-name { display: flex; align-items: baseline; gap: .6rem; font: 800 clamp(1.5rem, 2.4vw, 2.1rem)/1 var(--font-display); text-transform: uppercase; }
.skill-emoji { flex: none; width: 1.35em; font: 400 .8em/1 system-ui, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; text-align: center; position: relative; }
/* Hovering a skill makes its emoji act it out (data-fx): the glyph moves, and ::before/::after throw a spray of particles.
   Each spray is one character repeated by text-shadow (the character itself is transparent), so it moves as one piece:
   --ps/--ps2 place and colour the bits, --from/--to move the spray, the second one half a cycle later. */
.skill-glyph { display: inline-block; transform-origin: var(--o, 50% 60%); }
.skill-emoji::before, .skill-emoji::after {
  content: var(--pc, '•'); position: absolute; left: 50%; top: 50%;
  font: 400 .45em/1 system-ui, sans-serif; color: transparent; text-shadow: var(--ps);
  opacity: 0; pointer-events: none; transform: translate(-50%, -50%);
}
.skill-emoji::after { text-shadow: var(--ps2); }
@media (hover: hover) {
  .skill:hover .skill-glyph { animation: var(--fx) var(--dur, 1.2s) var(--ease-in-out) infinite; }
  .skill:hover .skill-emoji::before, .skill:hover .skill-emoji::after { animation: fx-spray var(--dur, 1.2s) ease-out infinite; }
  .skill:hover .skill-emoji::after { animation-delay: calc(var(--dur, 1.2s) / 2); }
}
@keyframes fx-spray {
  0% { opacity: 0; transform: translate(-50%, -50%) var(--from, scale(.4)); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) var(--to, scale(1.3)); }
}
/* fire flickers, embers rise */
[data-fx="pyro"] {
  --fx: fx-flicker; --dur: .9s; --o: 50% 90%;
  --ps: -.5em -1.4em 1px #ffb067, .6em -2em 1px #ff6b2c, .1em -1em 1px #ffd27a;
  --ps2: .8em -1.2em 1px #ff8a3d, -.8em -2.2em 1px #ffb067, .2em -2.6em 1px #ff6b2c;
  --from: translateY(.8em) scale(.6); --to: translateY(-.8em) scale(1);
}
/* blast pops and shakes, debris flies out */
[data-fx="destruction"] {
  --fx: fx-shake; --dur: .9s; --pc: '◆';
  --ps: -1.5em -1em 0 #d9c8b8, 1.6em -.6em 0 #ff8a3d, -1.2em 1.2em 0 #a8978a, 1.3em 1.3em 0 #d9c8b8;
  --ps2: 0 -1.8em 0 #ff6b2c, -1.9em .2em 0 #bfae9f, 1.9em .3em 0 #a8978a, .3em 1.8em 0 #ff8a3d;
  --from: scale(.3); --to: scale(1.5) rotate(30deg);
}
/* wave rocks, droplets splash up */
[data-fx="liquids"] {
  --fx: fx-wave; --dur: 1.4s; --o: 50% 80%;
  --ps: .9em -1.1em 0 #8fd3ff, 1.5em -.4em 0 #c9ecff, -1em -.9em 0 #5fb6f0;
  --ps2: 1.3em -1.5em 0 #c9ecff, -1.4em -.3em 0 #8fd3ff, .3em -1.8em 0 #5fb6f0;
  --from: translateY(.5em) scale(.5); --to: translateY(-.4em) scale(1.1);
}
/* sparkles twinkle and spin out */
[data-fx="particles"] {
  --fx: fx-twinkle; --dur: 1.2s; --pc: '✦';
  --ps: -1.6em -1.2em 0 #fff2c4, 1.7em -1.1em 0 #ffd77a, 1.4em 1.2em 0 #fff, -1.3em 1.3em 0 #ffd77a;
  --ps2: 0 -2em 0 #ffd77a, 2.1em .1em 0 #fff2c4, -2.1em 0 0 #fff, .2em 2em 0 #fff2c4;
  --from: scale(.5); --to: scale(1.2) rotate(25deg);
}
/* the wand swishes from its handle, glitter comes off the tip (top right) */
[data-fx="magic"] {
  --fx: fx-wand; --dur: 1.3s; --o: 20% 85%; --pc: '✦';
  --ps: 1em -1.3em 0 #ffd77a, 1.8em -.6em 0 #ff9ad5, 1.5em -2em 0 #fff;
  --ps2: 2.2em -1.4em 0 #c7a6ff, .6em -2.1em 0 #ffd77a, 2.4em -.2em 0 #ff9ad5;
  --from: translate(-.2em, .2em) scale(.4); --to: translate(.3em, -.3em) scale(1.1);
}
/* fog breathes and drifts */
[data-fx="atmospherics"] {
  --fx: fx-drift; --dur: 2.4s; --pc: '●';
  --ps: -1.6em -.4em 3px rgba(235, 228, 220, .85), -.6em .6em 4px rgba(235, 228, 220, .7), -1.2em -1.2em 3px rgba(235, 228, 220, .6);
  --ps2: -1.8em .4em 4px rgba(235, 228, 220, .75), -.4em -.9em 3px rgba(235, 228, 220, .7), -1em 1.2em 3px rgba(235, 228, 220, .55);
  --from: translateX(-.4em) scale(.8); --to: translateX(1.6em) scale(1.3);
}
/* the spool swings on its thread */
[data-fx="cloth"] { --fx: fx-swing; --dur: 1.6s; --o: 50% 0%; --pc: none; }
/* the brick bounces, blocks drop onto it */
[data-fx="procedural"] {
  --fx: fx-stack; --dur: 1s; --o: 50% 100%; --pc: '■';
  --ps: -.55em -1.6em 0 #e8a07a, .55em -1.6em 0 #c97a55;
  --ps2: 0 -2.5em 0 #e8a07a;
  --from: translateY(-.8em) scale(.7); --to: translateY(.1em) scale(1);
}
/* the palette tilts through hues, paint splatters */
[data-fx="lookdev"] {
  --fx: fx-paint; --dur: 2s;
  --ps: -1.4em -1em 0 #ff6b6b, 1.5em -1em 0 #ffd166, 1.4em 1.1em 0 #4cc9f0;
  --ps2: -1.5em 1em 0 #95e06c, 0 -1.8em 0 #c77dff, 1.9em 0 0 #ff9ad5;
  --from: scale(.3); --to: scale(1.3);
}
/* the hammer strikes, sparks fly */
[data-fx="tools"] {
  --fx: fx-hammer; --dur: .9s; --o: 30% 75%; --pc: '✦';
  --ps: -1.2em .9em 0 #ffb067, -.4em 1.5em 0 #ff6b2c, -1.7em .2em 0 #ffd27a;
  --ps2: 1.2em .9em 0 #ffb067, .4em 1.5em 0 #ffd27a, 1.7em .2em 0 #ff6b2c;
  --from: scale(.3); --to: scale(1.2);
}
/* the clapper snaps shut, film frames fly off */
[data-fx="comfyui"] {
  --fx: fx-clap; --dur: 1.1s; --o: 15% 40%; --pc: '▮';
  --ps: 1.4em -1.1em 0 #ffd77a, 1.9em -.2em 0 #ff8a3d, 1.2em .9em 0 #c7a6ff;
  --ps2: 2em -1.2em 0 #c7a6ff, 1.5em .4em 0 #ffd77a, 2.3em .9em 0 #ff8a3d;
  --from: translateX(-.3em) scale(.4); --to: translateX(.6em) scale(1.1);
}
/* the robot bobs, thinking, code sparks pop around its head */
[data-fx="ai-tools"] {
  --fx: fx-bob; --dur: 1.3s; --o: 50% 100%; --pc: '✦';
  --ps: -1.4em -1.3em 0 #8fd3ff, 1.5em -1.1em 0 #c7a6ff, 0 -2em 0 #fff;
  --ps2: -1.8em -.3em 0 #c7a6ff, 1.9em -.4em 0 #8fd3ff, .6em -2.1em 0 #8fd3ff;
  --from: scale(.4); --to: scale(1.2);
}
@keyframes fx-clap { 0%, 55%, 100% { transform: none; } 15% { transform: rotate(-14deg); } 30% { transform: rotate(5deg) scale(1.08); } 42% { transform: rotate(-2deg); } }
@keyframes fx-bob { 0%, 100% { transform: none; } 25% { transform: translateY(-3px) rotate(-7deg); } 50% { transform: translateY(0) rotate(0); } 75% { transform: translateY(-2px) rotate(6deg); } }
@keyframes fx-flicker { 0%, 100% { transform: none; } 25% { transform: scale(.94, 1.08) skewX(-3deg); } 50% { transform: scale(1.05, .95) skewX(2deg); } 75% { transform: scale(.97, 1.06) skewX(-2deg); } }
@keyframes fx-shake { 0%, 75%, 100% { transform: none; } 12% { transform: scale(1.2) rotate(-6deg); } 28% { transform: translate(2px, -1px) rotate(5deg) scale(1.06); } 44% { transform: translate(-2px, 1px) rotate(-3deg); } 60% { transform: translate(1px, 0) rotate(1deg); } }
@keyframes fx-wave { 0%, 100% { transform: rotate(-7deg) translateX(-1px); } 50% { transform: rotate(7deg) translate(1px, -1px); } }
@keyframes fx-twinkle { 0%, 100% { transform: none; filter: none; } 40% { transform: scale(1.15) rotate(12deg); filter: brightness(1.3); } 70% { transform: scale(.95) rotate(-4deg); } }
@keyframes fx-wand { 0%, 100% { transform: none; filter: none; } 20% { transform: rotate(-16deg); } 45% { transform: rotate(10deg); filter: drop-shadow(0 0 6px rgba(255, 215, 122, .75)); } 65% { transform: rotate(-5deg); } 80% { transform: rotate(2deg); } }
@keyframes fx-drift { 0%, 100% { transform: translateX(-2px); opacity: .75; filter: blur(.4px); } 50% { transform: translateX(3px); opacity: 1; filter: none; } }
@keyframes fx-swing { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }
@keyframes fx-stack { 0%, 100% { transform: none; } 30% { transform: translateY(-5px) scale(.94, 1.06); } 52% { transform: scale(1.1, .9); } 70% { transform: scale(.98, 1.02); } }
@keyframes fx-paint { 0%, 100% { transform: rotate(-6deg); filter: none; } 50% { transform: rotate(6deg); filter: hue-rotate(35deg) saturate(1.25); } }
@keyframes fx-hammer { 0%, 75%, 100% { transform: none; } 35% { transform: rotate(-24deg); } 52% { transform: rotate(9deg); } 64% { transform: rotate(-2deg); } }
.skill-sub { grid-column: 1; padding-left: calc(clamp(1.5rem, 2.4vw, 2.1rem) * 1.08 + .6rem); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-2); }
.skill-score { grid-column: 2; grid-row: 1 / span 2; align-self: center; display: flex; align-items: center; gap: .85rem; }
.skill-dots { display: flex; gap: .4rem; }
.skill-val { min-width: 2.2em; font-size: .78rem; text-align: right; color: var(--fg-2); }
.skill[data-level="5"] .skill-val { color: var(--ember-hi); }
.skill-dots i { width: .7rem; height: .7rem; border-radius: 50%; border: 1.5px solid var(--fg-3); opacity: .55; }
/* a skill's rating is its data-level: the first N dots light up */
.skill[data-level="1"] i:nth-child(-n+1),
.skill[data-level="2"] i:nth-child(-n+2),
.skill[data-level="3"] i:nth-child(-n+3),
.skill[data-level="4"] i:nth-child(-n+4),
.skill[data-level="5"] i:nth-child(-n+5) { border-color: var(--ember); background: var(--ember); box-shadow: 0 0 10px -1px var(--ember-glow); opacity: 1; }

.about-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 5vw, 5.5rem); margin-top: clamp(3.5rem, 6vw, 5rem); }
.press { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.press a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem 1rem; padding: 1rem 0;
  border-bottom: 1px solid var(--line); text-decoration: none; transition: color .2s;
}
.press a > span:first-child { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.press a > span:nth-child(2) { font-weight: 500; }
.press a .icon { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--fg-2); transition: transform .3s var(--ease-out), color .2s; }
.press a:hover > span:nth-child(2) { color: var(--ember-hi); }
.press a:hover .icon { transform: translate(3px, -3px); color: var(--ember-hi); }

/* ---------- contact ---------- */
.contact { isolation: isolate; overflow: hidden; padding-bottom: clamp(4rem, 8vw, 6rem); }
.contact-glow {
  position: absolute; left: 50%; bottom: -55vw; z-index: -1; width: 130vw; height: 90vw; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 107, 44, .26), rgba(255, 90, 30, .08) 55%, transparent 75%);
  pointer-events: none;
}
/* the ask and the email on the left; the facts and the links, small and quiet, on the right (stacked on narrow screens) */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(16rem, 1fr); gap: 2.5rem clamp(3rem, 7vw, 7rem); align-items: end; }
.contact .sec-head { margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.contact-title { max-width: 15ch; font-size: clamp(3rem, 7.6vw, 7.5rem); }
.contact-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.btn-icon { width: 58px; padding: 0; } /* the copy button: icon only, its label is for screen readers */
.facts { margin: 0; }
.facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .85rem 0; border-top: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-3); }
.facts dd { margin: 0; text-align: right; color: var(--fg); }
.socials { display: flex; flex-wrap: wrap; gap: 0 1.15rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.socials a {
  display: inline-flex; align-items: center; min-height: 36px;
  font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; text-decoration: none; color: var(--fg-2);
  transition: color .2s;
}
.socials a:hover { color: var(--ember-hi); }

/* ---------- footer ---------- */
.site-footer { padding: 1.75rem 0 2.25rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--fg-2); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem; }
.footer-inner p { margin: 0; }
.footer-links { display: flex; gap: 1.5rem; }

/* ---------- viewer ---------- */
.viewer {
  width: min(calc(100vw - 2rem), 1400px); max-width: none; max-height: none; margin: auto; padding: 0;
  border: 0; background: transparent; color: var(--fg); overflow: visible;
}
.viewer::backdrop { background: rgba(5, 4, 3, .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.viewer[open] { animation: viewer-in .45s var(--ease-out); }
@keyframes viewer-in { from { opacity: 0; transform: translateY(16px) scale(.985); } }
.viewer-inner { display: flex; flex-direction: column; gap: .75rem; }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.viewer-title { margin: 0; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-2); }
.viewer-close {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line-2); border-radius: 50%; background: var(--bg-2); cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.viewer-close:hover { border-color: var(--ember); background: var(--bg-3); }
.viewer-close .icon { width: 20px; height: 20px; }
.viewer-stage {
  position: relative; width: min(100%, calc((100vh - 7rem) * 16 / 9)); aspect-ratio: 16 / 9; margin-inline: auto;
  overflow: hidden; border-radius: var(--radius-lg); background: #000; box-shadow: 0 0 0 1px var(--line);
}
.viewer-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.viewer-stage > video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; object-fit: contain; }
.viewer-stage.is-image { width: auto; aspect-ratio: auto; background: transparent; box-shadow: none; }
.viewer-stage.is-image img { width: auto; max-width: 100%; max-height: calc(100vh - 7rem); margin-inline: auto; border-radius: var(--radius-lg); }

.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 120; margin: 0; padding: .7rem 1.1rem;
  border-radius: 999px; background: var(--fg); color: var(--bg); font-size: .76rem;
  transform: translate(-50%, calc(100% + 2rem)); opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform .45s var(--ease-out), opacity .3s, visibility .45s;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .credit-row { grid-template-columns: 3.2rem 5.5rem minmax(0, 1fr) minmax(10rem, 15rem) 1.25rem; }
  .credit-role { grid-column: 4; grid-row: 2; justify-self: start; text-align: left; margin-top: -.75rem; }
  .credit-cover { grid-row: 1 / span 2; }
  .credit-detail { left: 11.7rem; grid-template-columns: minmax(10rem, 16rem) minmax(0, 1fr); }
  .credit.is-open .credit-detail { margin-left: 11.7rem; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .nav-toggle { display: grid; }
  .nav-menu {
    position: fixed; inset: 0; z-index: 1;
    display: flex; flex-direction: column; justify-content: center; gap: 2.5rem;
    padding: calc(var(--header-h) + 1rem) var(--pad) 2rem;
    background: var(--bg); /* solid: a simple fade, nothing blurred behind it */
    opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s;
  }
  .site-header.is-open .nav-menu { opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; align-items: flex-start; gap: .1rem; }
  .nav-list a { font: 800 clamp(2.8rem, 13vw, 4.4rem)/1.05 var(--font-display); text-transform: uppercase; color: var(--fg); }
  .nav-list a[aria-current="true"]:not(.nav-cta) { box-shadow: none; color: var(--ember-hi); }
  .nav-list a.nav-cta { min-height: 44px; padding: 0; border-radius: 0; background: none; box-shadow: none; color: var(--ember); font: 800 clamp(2.8rem, 13vw, 4.4rem)/1.05 var(--font-display); letter-spacing: normal; }
  .nav-list a.nav-cta:hover { background: none; box-shadow: none; transform: none; color: var(--ember-hi); }
  .nav-menu-foot { display: block; margin: 0; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; color: var(--fg-3); }
  .nav-lang { margin-left: -.35rem; } /* the links' padding: the text lines up with the big links */
  .site-header.is-open { border-color: transparent; }
  .site-header.is-open::before { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .brand { position: relative; z-index: 2; }

  .shots, .shots:has(> li:nth-child(3):last-child), .shots:has(> li:nth-child(5):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shots:has(> li:nth-child(5):last-child) > li:first-child { grid-column: 1 / -1; }
  .about-then, .about-now { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .first-fx { justify-self: start; }
  .portrait { max-width: 30rem; }
  .net { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; max-width: 24rem; padding-bottom: 0; }
  .net-node:nth-child(even) { top: 0; margin-left: 2.5rem; }
  .net-box::before, .net-box::after { top: auto; left: 50%; right: auto; transform: translate(-50%, -50%); }
  .net-box::before { top: -1px; }
  .net-box::after { bottom: -1px; transform: translate(-50%, 50%); }
  .net-add { top: auto; bottom: -1px; left: 50%; right: auto; transform: translate(-50%, 50%); }
  .net-add:hover, .net-add[aria-expanded="true"] { transform: translate(-50%, 50%) scale(1.12); }
  .net-node.is-added { grid-column: auto; grid-row: auto; margin-top: 0; }
}

@media (max-width: 700px) {
  .contact-actions .btn-primary { flex: 1; }
  .contact-linkedin { flex-basis: 100%; } /* its own row under the email */
  .others { grid-template-columns: minmax(0, 1fr); }
  .row > summary { grid-template-columns: auto minmax(0, 1fr) auto; gap: .9rem; }
  .row-tags, .row-meta { display: none; }
  .about-rows .row > summary { grid-template-columns: minmax(0, 1fr) auto; }
  .row-thumb { width: 72px; }
  .proj-body { grid-template-columns: minmax(0, 1fr); }
  .tabs { width: 100%; }
  .tab { flex: 1; justify-content: center; padding: 0 .8rem; font-size: .9rem; }
  body { font-size: 1rem; }
  .hero-title { font-size: clamp(5rem, 27vw, 9rem); }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-foot { justify-content: flex-start; }
  .hero-kicker { gap: .4rem; font-size: .68rem; letter-spacing: .05em; }
  .credit-row { grid-template-columns: 3.6rem minmax(0, 1fr) auto 1.25rem; gap: .45rem 1rem; padding: 1.25rem 0; }
  .credit-cover { grid-row: 1 / span 3; grid-column: 1; align-self: start; }
  .credit-year { grid-row: 1; grid-column: 2; }
  .credit-role { grid-row: 1; grid-column: 3; justify-self: end; text-align: right; margin-top: 0; }
  .credit-ind { grid-row: 1; grid-column: 4; }
  .credit-title { grid-column: 2 / -1; font-size: clamp(1.9rem, 9vw, 2.6rem); }
  .credit-aka { display: block; margin: .35rem 0 0; vertical-align: baseline; }
  .credit-meta { grid-column: 2 / -1; flex-direction: row; flex-wrap: wrap; gap: .1rem .75rem; }
  .credit-detail { left: 0; grid-template-columns: minmax(0, 1fr); gap: .9rem; }
  .credit.is-open .credit-detail { margin: 0 0 1.25rem; }
  .tool-grid { grid-template-columns: minmax(0, 1fr); }
  .about-cols { grid-template-columns: minmax(0, 1fr); }
  .skill-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal], .js [data-hero-in], .js .hero-line > [data-hero-in] { opacity: 1; transform: none; animation: none; }
  .net-wires path.flow, .net-add::after { display: none; }
  .skill-emoji::before, .skill-emoji::after { display: none; }
}

/* ---------- credits as a poster grid (.credits-grid on the section; remove the class to get the list back) ---------- */
/* Each credit is a card: cover on top, then year/badge, title, format · studio and role. Its "What I did" (video +
   text) covers the poster on hover, or when pinned with a click/tap, so the grid never reflows. Last in the file so it
   wins over the list's responsive rules. */
.credits-grid .credit-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: 2.25rem 1.25rem;
  border-top: 0;
}
.credits-grid .credit { border-bottom: 0; }
.credits-grid .credit::after { display: none; }
.credits-grid .credit-row {
  display: grid; align-items: start; gap: .3rem .75rem; padding: 0; height: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "cover cover" "year ind" "title title" "meta meta" "role role";
  grid-template-rows: auto auto auto 1fr auto;
}
.credits-grid .credit-cover {
  grid-area: cover; align-self: start; margin-bottom: .65rem; border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--line), 0 18px 34px -18px #000;
}
.credits-grid .credit-year { grid-area: year; align-self: center; }
.credits-grid .credit-ind { grid-area: ind; align-self: center; width: 1rem; height: 1rem; }
.credits-grid .credit-title { grid-area: title; font-size: clamp(1.35rem, 1.7vw, 1.7rem); line-height: 1; }
.credits-grid .credit-aka { display: block; margin: .3rem 0 0; vertical-align: baseline; font-size: .8rem; }
.credits-grid .credit-meta { grid-area: meta; flex-direction: row; flex-wrap: wrap; gap: 0 .6rem; font-size: .85rem; }
.credits-grid .credit-role { grid-area: role; justify-self: start; text-align: left; margin: .2rem 0 0; font-size: .66rem; }
.credits-grid .credit-row:focus-visible .credit-title { transform: none; }
/* hover preview: the video fills the poster, cropped vertical (16:9 in the side panel), and a hint; the text is in the side panel (JS) */
.credits-grid .credit-detail,
.credits-grid .credit.is-open .credit-detail {
  position: absolute; z-index: 3; inset: 0 0 auto 0; margin: 0; padding: 0;
  display: flex; flex-direction: column; justify-content: center; aspect-ratio: 2 / 3; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: rgb(9, 7, 6); box-shadow: 0 22px 44px -16px #000;
  pointer-events: none; /* clicks reach the card */
}
.credits-grid .credit:not(.is-open) .credit-detail { visibility: hidden; opacity: 0; transform: translateY(.35rem); }
.credits-grid .credit-media { flex: 1; width: 100%; aspect-ratio: auto; border-radius: 0; }
/* a dark fade at the bottom keeps the "What I did" summary readable over the video */
.credits-grid .credit-detail::before {
  content: ''; position: absolute; inset: auto 0 0; z-index: 1; height: 40%; pointer-events: none;
  background: linear-gradient(to top, rgba(9, 7, 6, .9), rgba(9, 7, 6, 0));
}
.credits-grid .credit-detail p { display: none; }
/* a credit whose visuals aren't public: a note in place of the video */
.credit-private { display: grid; place-items: center; padding: 1rem; text-align: center; background: radial-gradient(ellipse at 50% 120%, rgba(255, 107, 44, .22), rgba(255, 107, 44, 0) 70%), #0b0807; }
.credits-grid .credit-detail .credit-private-note,
.credit-private-note { display: block; margin: 0; font-size: .82rem; line-height: 1.35; color: var(--fg); }
.credit-private-note span { display: block; margin-top: .25rem; color: var(--ember-hi); }
/* the hover card's summary: a small "What I did" title, then the FX in a few words (the full text is in the side panel) */
.credit-did { display: none; }
.credits-grid .credit-did {
  position: absolute; left: .9rem; right: .9rem; bottom: .85rem; z-index: 2;
  display: flex; flex-direction: column; gap: .35rem;
}
.credit-did-label { font-size: .62rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ember-hi); }
.credit-did-fx { font: 700 1.05rem/1.1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; color: var(--fg); text-wrap: balance; }
@media (hover: hover) {
  .credits-grid .credit:not(.credit-static):hover .credit-title { transform: none; }
  /* the preview rises with the cover, so no edge of the poster shows around it */
  .credits-grid .credit:hover .credit-detail { visibility: visible; opacity: 1; transform: translateY(-.2rem); transition-delay: 0s; }
  .credits-grid .credit:hover .credit-cover { transform: translateY(-.2rem); }
}
@media (max-width: 900px) {
  .credits-grid .credit-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem .9rem; }
  .credits-grid .credit-title { font-size: clamp(1.15rem, 5vw, 1.45rem); }
  .credits-grid .credit-meta { font-size: .78rem; }
}

/* ---------- credit panel: side panel from the right (bottom sheet on small screens) ---------- */
.credit-panel {
  position: fixed; inset: 0 0 0 auto; width: min(46rem, 48vw); height: 100%; max-width: none; max-height: none;
  margin: 0 0 0 auto; padding: 0; border: 0; border-left: 1px solid var(--line-2);
  background: var(--bg-2); color: var(--fg); box-shadow: -30px 0 60px -30px #000;
  overflow-y: auto; overscroll-behavior: contain;
}
.credit-panel::backdrop { background: rgba(5, 4, 3, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.credit-panel[open] { animation: panel-in .5s var(--ease-out); }
.credit-panel[open]::backdrop { animation: backdrop-in .4s ease-out; }
.credit-panel.is-closing { animation: panel-out .26s ease-in forwards; }
.credit-panel.is-closing::backdrop { animation: backdrop-out .26s ease-in forwards; }
@keyframes panel-in { from { transform: translateX(100%); } }
@keyframes panel-out { to { transform: translateX(100%); } }
@keyframes backdrop-in { from { opacity: 0; } }
@keyframes backdrop-out { to { opacity: 0; } }
.credit-panel-inner {
  display: flex; flex-direction: column; gap: 1.6rem; min-height: 100%;
  padding: 1.25rem clamp(1.25rem, 3vw, 2.5rem) 2.75rem;
}
.credit-panel-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.credit-panel-count { margin: 0; font-size: .72rem; letter-spacing: .14em; color: var(--fg-3); }
.credit-panel-nav { display: flex; gap: .5rem; }
/* 1920x854 (2.25:1), the format of the credit clips; a 16:9 one is cropped top and bottom */
.credit-panel-media {
  position: relative; aspect-ratio: 1920 / 854; overflow: hidden; border-radius: var(--radius-lg);
  background: #000; box-shadow: 0 0 0 1px var(--line), 0 24px 50px -24px #000;
}
.credit-panel-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.credit-panel-media.is-private video { display: none; }
.credit-panel-private {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .9rem; padding: 1.5rem; text-align: center;
  background: radial-gradient(ellipse at 50% 115%, rgba(255, 107, 44, .25), rgba(255, 107, 44, 0) 65%), #0b0807;
}
.credit-panel-private[hidden] { display: none; }
.credit-panel-private p { max-width: 34ch; margin: 0; font-size: 1.05rem; line-height: 1.55; color: var(--fg); }
.credit-panel-private .credit-detail-label { margin: 0; font-size: .7rem; color: var(--ember-hi); }
.credit-panel-head { display: grid; grid-template-columns: 4.75rem minmax(0, 1fr); gap: 1.25rem; align-items: center; }
.credit-panel-cover {
  width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--line), 0 12px 26px -14px #000;
}
.credit-panel-meta { margin: 0 0 .5rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ember-hi); }
.credit-panel-title { margin: 0; font: 700 clamp(2rem, 3.3vw, 3.1rem)/.95 var(--font-display); text-transform: uppercase; }
.credit-panel-title .credit-aka { display: block; margin: .45rem 0 0; vertical-align: baseline; }
.credit-panel-sub { margin: .6rem 0 0; font-size: .95rem; color: var(--fg-2); }
.credit-panel-body { padding-top: 1.4rem; border-top: 1px solid var(--line); }
.credit-panel-body .credit-detail-label { margin: 0 0 .7rem; }
.credit-panel-text { max-width: 60ch; margin: 0; font-size: 1.1rem; line-height: 1.65; color: var(--fg); }
/* breakdowns under the text (a credit's <template data-cp-extra>): scrubbable shots, two across */
.credit-panel-extra { margin-top: 2rem; }
.credit-panel-extra[hidden] { display: none; }
/* the breakdown: two across; with an odd count the first one takes the full width */
/* (ul.shots and .credit-panel: to win over the Work strips' 3- and 5-across rules, which match these lists too) */
.credit-panel .credit-panel-extra ul.shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.credit-panel-extra .shots > li { grid-column: auto; min-width: 0; }
.credit-panel-extra .shots:has(> li:nth-child(odd):last-child) > li:first-child { grid-column: 1 / -1; }
.credit-panel-inner.is-swapping > :not(.credit-panel-bar) { animation: panel-swap .35s var(--ease-out); }
@keyframes panel-swap { from { opacity: 0; transform: translateX(.75rem); } }
/* ---------- contact panel (cpn): the credit panel's shell, narrower ---------- */
/* who (portrait, name, open to projects) → the ask → the email card (copy built in) and LinkedIn → three fact tiles
   (with the time in Brussels) → the other links as pills; an ember glow at the bottom */
.credit-panel.cpn {
  width: min(32rem, 92vw);
  background: radial-gradient(ellipse at 50% 112%, rgba(255, 107, 44, .22), rgba(255, 107, 44, 0) 58%), var(--bg-2);
}
.cpn .credit-panel-inner { gap: 1.35rem; }
.cpn-status { display: inline-flex; align-items: center; gap: .55rem; margin: 0; font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: var(--fg-2); }
.cpn-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #5bd38a; box-shadow: 0 0 8px rgba(91, 211, 138, .8); }
.cpn-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid rgba(91, 211, 138, .55); animation: cpn-pulse 2.2s ease-out infinite; }
@keyframes cpn-pulse { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.cpn-who { display: flex; align-items: center; gap: 1rem; margin-top: .6rem; }
.cpn-face { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; box-shadow: 0 0 0 1px var(--line-2), 0 0 0 4px rgba(255, 107, 44, .14); }
.cpn-name { margin: 0; font: 800 1.6rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.cpn-role { margin: .4rem 0 0; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ember-hi); }
.cpn-ask { padding-top: .4rem; }
.cpn-title { margin: 0; max-width: 13ch; font: 800 clamp(2.5rem, 4.2vw, 3.6rem)/.9 var(--font-display); text-transform: uppercase; text-wrap: balance; }
.cpn-intro { margin: .8rem 0 0; color: var(--fg-2); }
.cpn-label { display: inline-flex; align-items: center; gap: .45rem; margin: 0; font-size: .64rem; text-transform: uppercase; letter-spacing: .12em; color: var(--fg-3); }
.cpn-label .icon { width: 1.05em; height: 1.05em; }
/* the email card: the whole card writes an email; the copy button sits inside it on the right */
.cpn-email {
  position: relative; display: flex; align-items: stretch; margin-top: .4rem;
  border-radius: var(--radius-lg); background: var(--ember); color: #170904;
  box-shadow: 0 14px 40px -16px var(--ember-glow); transition: background-color .2s, transform .3s var(--ease-out);
}
.cpn-email:hover { background: var(--ember-hi); transform: translateY(-1px); }
.cpn-email.is-ping { animation: btn-ping 1.1s var(--ease-out) 3; }
.cpn-email-link { flex: 1; display: flex; flex-direction: column; gap: .45rem; padding: 1.05rem 1.2rem; color: inherit; text-decoration: none; border-radius: inherit; }
.cpn-email-link .cpn-label { color: rgba(23, 9, 4, .7); }
.cpn-address { font: 700 clamp(1.15rem, 2vw, 1.35rem)/1.1 var(--font-body); letter-spacing: -.005em; overflow-wrap: anywhere; }
.cpn-copy {
  display: grid; place-items: center; width: 56px; flex: none; padding: 0; border: 0; border-left: 1px solid rgba(23, 9, 4, .18);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0; background: transparent; color: inherit; cursor: pointer; transition: background-color .2s;
}
.cpn-copy:hover { background: rgba(23, 9, 4, .1); }
.cpn-copy .icon { width: 20px; height: 20px; }
.cpn-linkedin { width: 100%; min-height: 50px; }
/* three small tiles */
.cpn-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: .4rem 0 0; }
.cpn-facts > div { padding: .8rem .85rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 240, 225, .025); }
.cpn-facts dt { margin-bottom: .45rem; font-size: .6rem; text-transform: uppercase; letter-spacing: .1em; color: var(--fg-3); }
.cpn-facts dd { margin: 0; font-size: .92rem; line-height: 1.3; color: var(--fg); }
.cpn-facts .cpn-time { margin-top: .35rem; font-size: .62rem; letter-spacing: .06em; color: var(--ember-hi); }
.cpn-links { display: flex; flex-direction: column; gap: .7rem; margin-top: auto; padding-top: .6rem; }
.cpn-socials { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.cpn-socials a {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 .85rem; border: 1px solid var(--line-2); border-radius: 999px;
  font-size: .82rem; text-decoration: none; color: var(--fg-2); transition: color .2s, border-color .2s;
}
.cpn-socials a:hover { color: var(--ember-hi); border-color: var(--ember); }
/* narrow: one tile per row, the label on the left, the value (and the time under it) on the right */
@media (max-width: 480px) {
  .cpn-facts { grid-template-columns: minmax(0, 1fr); }
  .cpn-facts > div { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; column-gap: 1rem; }
  .cpn-facts dt { grid-row: 1 / span 2; margin: 0; }
  .cpn-facts dd { grid-column: 2; text-align: right; }
}
@media (max-width: 900px) {
  .credit-panel {
    inset: auto 0 0 0; width: 100%; height: auto; max-height: 92vh; max-height: 92svh; margin: auto 0 0;
    border-left: 0; border-top: 1px solid var(--line-2); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .credit-panel[open] { animation-name: sheet-in; }
  .credit-panel.is-closing { animation-name: sheet-out; }
  .credit-panel-inner { gap: 1.25rem; padding-bottom: 2rem; }
  .credit-panel-head { grid-template-columns: 3.75rem minmax(0, 1fr); gap: 1rem; }
  .credit-panel-text { font-size: 1.02rem; }
  .credit-panel.cpn { width: 100%; }
}
@keyframes sheet-in { from { transform: translateY(100%); } }
@keyframes sheet-out { to { transform: translateY(100%); } }

/* ---------- inner pages: privacy notice (privacy/, fr/confidentialite/) and project pages (work/<slug>/, fr/work/<slug>/,
   generated by scripts/build-work-v2.mjs). No background film there: the plain page colour ---------- */
.sec-actions { margin: 2.5rem 0 0; }
.legal { max-width: 46rem; }
.legal-meta { margin: 1.5rem 0 0; font-size: .8rem; color: var(--fg-2); }
.legal h2 { margin: 2.75rem 0 .8rem; font: 800 clamp(1.5rem, 3vw, 2rem)/1 var(--font-display); text-transform: uppercase; }
.legal p, .legal li { color: var(--fg-2); }
.legal ul { margin: 0 0 1em; padding-left: 1.2rem; }
.legal li + li { margin-top: .5rem; }
.legal .mono { overflow-wrap: anywhere; }

.section.project { padding-top: calc(var(--header-h) + clamp(2rem, 4vw, 3rem)); } /* below the fixed site header */
.project-top { margin: 0 0 2.5rem; font-size: .8rem; color: var(--fg-2); }
.project-head { max-width: 62rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.project-head .card-meta { margin: 1.5rem 0 0; }
.project-head .sec-intro { max-width: 62ch; }
.project-head .credit-detail-label { margin: 1.75rem 0 .55rem; }
.project-head .proj-did { max-width: 46rem; }
.project-head .card-note { margin: .9rem 0 0; font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-3); }
/* the project's film: the homepage's own clip block (.proj-media or .other-media: main.js plays it while on screen, a click
   opens the full film large); the "Watch" pill stays visible, it is the only hint here that the clip opens */
.project-film .other-play { opacity: 1; }
.project-shots h2, .project-cta h2 { margin: clamp(3rem, 6vw, 5rem) 0 1.25rem; font: 800 clamp(1.5rem, 3vw, 2rem)/1 var(--font-display); text-transform: uppercase; }
/* the shots: the homepage's .shot buttons (main.js plays, scrubs and opens them), two across, the full caption under each */
.project-shot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.project-shot-text { margin: .35rem 0 0; max-width: 60ch; font-size: .9rem; color: var(--fg-2); }
.project-cta { max-width: 46rem; }
.project-cta p { color: var(--fg-2); }
@media (max-width: 700px) { .project-shot-grid { grid-template-columns: minmax(0, 1fr); } }
