/* Oliver Engersand portfolio. Cobalt webcore field, Aero glass on the UI. */
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/instrument-serif-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/instrument-serif-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/space-grotesk-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/jetbrains-mono-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  /* core */
  --blue: #0E15E4;
  --blue-pure: #0301FF;
  --ink: #050871;
  --ink-2: #020045;
  --night: #0A0A0A;
  --paper: #FDFDFE;
  --panel: #E4E4E6;
  --frost: #E1ECF3;
  --sky: #9EC1E2;
  --sky-2: #8EBCE0;
  --cornflower: #4689DC;
  --chrome: #92A4C7;
  --chrome-2: #8088AF;
  --slate: #334A74;

  /* accent: burgundy, small doses only */
  --burgundy: #800020;
  --burgundy-2: #9B1D30;

  /* roles (default = light surface) */
  --bg: var(--paper);
  --bg-2: var(--frost);
  --text: var(--ink);
  --text-2: var(--ink);
  --muted: var(--slate);
  --accent: var(--blue);
  --fill: var(--blue);
  --line: rgba(5, 8, 113, .16);
  --focus: var(--blue);
  --rec: var(--burgundy-2);

  /* type */
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  /* layout */
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1360px;

  /* radii */
  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;

  /* glass */
  --glass-light: linear-gradient(180deg, rgba(255,255,255,.62), rgba(225,236,243,.45));
  --glass-light-solid: #F1F6FB;
  --glass-dark: rgba(5, 8, 113, .72);
  --glass-dark-solid: #080C91;
  --glass-blur: blur(14px) saturate(140%);
  --glass-edge: 1px solid rgba(255, 255, 255, .7);

  /* shadows */
  --shadow-glass: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 30px rgba(5,8,113,.18);
  --shadow-pop: 0 18px 50px rgba(2, 0, 69, .45);
  --shadow-btn: inset 0 -3px 8px rgba(255,255,255,.3), 0 4px 14px rgba(2,0,69,.55), 0 0 0 1px rgba(255,255,255,.35);

  /* gradients */
  --sky-grad: linear-gradient(180deg, var(--sky) 0%, var(--frost) 60%, var(--paper) 100%);
  --night-glow: radial-gradient(circle at 70% 30%, rgba(14,21,228,.35), transparent 60%);
  --chrome-text: linear-gradient(180deg, #FFFFFF 0%, #E1ECF3 46%, #9EC1E2 50%, #B9CDE8 72%, #FFFFFF 100%);
  --chrome-text-dark: linear-gradient(180deg, #FFFFFF 0%, #E1ECF3 44%, #6F7FA6 50%, #92A4C7 70%, #FFFFFF 100%);

  /* motion */
  --dur-fast: 150ms;
  --dur: 250ms;
  --dur-slow: 600ms;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

.surface--blue {
  --bg: var(--blue);
  --text: var(--paper);
  --text-2: var(--paper);
  --muted: var(--frost);
  --accent: var(--paper);
  --line: rgba(255,255,255,.22);
  --focus: var(--paper);
  background: var(--bg);
  color: var(--text);
}
.surface--night {
  --bg: var(--night);
  --text: var(--paper);
  --text-2: var(--paper);
  --muted: var(--chrome);
  --accent: var(--sky);
  --line: rgba(255,255,255,.14);
  --focus: var(--sky);
  background: var(--night-glow), var(--bg);
  color: var(--text);
}
.surface--paper { background: var(--paper); color: var(--ink); }
.surface--sky { --muted: var(--slate); background: var(--sky-grad); color: var(--ink); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.is-locked { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
em { font-style: italic; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, figure, dl, dd, ul, ol { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--blue); color: var(--paper); }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--paper); color: var(--ink); padding: .6rem 1rem;
  text-decoration: none; font-weight: 700; border-radius: var(--r-pill);
}
.skip:focus { top: .6rem; }

section[id], #photography { scroll-margin-top: 4.5rem; }

.label {
  display: flex; gap: .9rem; align-items: baseline;
  margin: 0 0 1rem;
  font: 400 .75rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}
.label__no { color: var(--accent); }

/* COMPONENTS */

.window { position: relative; border-radius: var(--r-lg); }
.window--glass {
  background: var(--glass-light-solid); color: var(--ink);
  border: var(--glass-edge); box-shadow: var(--shadow-glass);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .window--glass { background: var(--glass-light); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
}
.window--glass-dark {
  background: var(--glass-dark-solid); color: var(--paper);
  border: 1px solid rgba(255,255,255,.3); box-shadow: var(--shadow-pop);
}
.window--solid {
  background: var(--frost); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 6px 18px rgba(5,8,113,.10);
}
.surface--night .window--solid { background: #11131F; color: var(--paper); border-color: rgba(255,255,255,.14); }

@media (max-width: 760px), (prefers-reduced-transparency: reduce) {
  .window--glass { background: var(--glass-light-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-header { background: var(--glass-dark-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .window { border-radius: var(--r-md); }
}

.window__bar {
  display: flex; align-items: center; gap: .75rem; min-height: 2.1rem; padding: 0 .75rem;
  background: linear-gradient(90deg, var(--blue) 0%, #2F49D8 100%); color: var(--paper);
  border-bottom: 1px solid rgba(255,255,255,.35); box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
}
.window__title { font: 400 .72rem/1 var(--mono); letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.window__dots { display: flex; gap: .35rem; margin-left: auto; }
.window__dots i {
  width: .72rem; height: .72rem; border-radius: 50%; box-shadow: 0 0 0 1px rgba(2,0,69,.4);
  background: radial-gradient(circle at 35% 30%, #fff 0 18%, var(--sky) 45%, var(--cornflower) 100%);
}
.window__dots i:last-child { background: radial-gradient(circle at 35% 30%, #fff 0 18%, #C45A6A 40%, var(--burgundy) 100%); }
.window__meta {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .25rem 1rem; margin: 0; padding: .6rem .9rem;
  font: .72rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); background: rgba(241,246,251,.92);
}
.window__meta b { font-weight: 400; color: var(--slate); }
.window__screen { position: relative; overflow: hidden; background: #000; }

.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3rem; padding: 0 1.6rem; border-radius: var(--r-pill);
  font: 700 .98rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), filter var(--dur-fast) var(--ease);
}
.btn::before {
  content: ""; position: absolute; z-index: -1; inset: 2px 7% 52% 7%; border-radius: var(--r-pill); pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.8), rgba(255,255,255,.12));
}
.btn--bubble {
  color: var(--paper); border: 1px solid var(--ink-2); box-shadow: var(--shadow-btn); text-shadow: 0 1px 0 rgba(2,0,69,.6);
  background: linear-gradient(180deg, #3D4BFF 0%, #1A22F0 45%, #0E15E4 55%, #050871 100%);
}
.btn--glass { color: var(--paper); background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.55); box-shadow: inset 0 1px 0 rgba(255,255,255,.6); }
.btn--on-light { color: var(--ink); background: rgba(255,255,255,.7); border-color: rgba(5,8,113,.25); }
.btn--burgundy {
  color: var(--paper); border: 1px solid #3B0A12; box-shadow: var(--shadow-btn);
  background: linear-gradient(180deg, #B0303C 0%, var(--burgundy-2) 45%, var(--burgundy) 55%, #5E0F1A 100%);
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.1); }
.btn:active { transform: translateY(1px); filter: brightness(.95); }
.btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.btn .tri { width: 0; height: 0; border-left: .62rem solid currentColor; border-top: .4rem solid transparent; border-bottom: .4rem solid transparent; }
.btn--orb {
  width: 2.25rem; height: 2.25rem; margin-left: auto; padding: 0; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.6); color: var(--paper); cursor: pointer; font-size: 1.15rem; line-height: 1;
  background: radial-gradient(circle at 35% 30%, #fff 0 10%, #C45A6A 35%, var(--burgundy) 100%);
}
.btn--orb::before { content: none; }
.btn--orb:hover { background: radial-gradient(circle at 35% 30%, #fff 0 10%, #D06B7A 35%, var(--burgundy-2) 100%); filter: none; }

.play {
  position: absolute; z-index: 2; display: grid; place-items: center; width: 4.4rem; height: 4.4rem; border-radius: 50%;
  right: 1rem; bottom: 1rem;
  background: radial-gradient(circle at 35% 28%, rgba(255,255,255,.95) 0 10%, rgba(158,193,226,.75) 32%, rgba(14,21,228,.85) 72%, var(--ink) 100%);
  box-shadow: inset 0 -4px 10px rgba(255,255,255,.35), 0 6px 18px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.6);
  transition: transform var(--dur) var(--ease);
}
.play::before {
  content: ""; margin-left: .3rem;
  border-left: 1.05rem solid var(--paper); border-top: .66rem solid transparent; border-bottom: .66rem solid transparent;
  filter: drop-shadow(0 1px 1px rgba(2,0,69,.6));
}
.card__media > .play-link:hover .play,
.card__media > .play-link:focus-visible .play,
.reel__slot .play-link:hover .play,
.reel__slot .play-link:focus-visible .play { transform: scale(1.08); }

.chrome-text { color: var(--paper); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .chrome-text {
    background: var(--chrome-text); -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 2px 0 rgba(2,0,69,.55)) drop-shadow(0 10px 24px rgba(2,0,69,.35));
  }
  .chrome-text--dark { background-image: var(--chrome-text-dark); filter: drop-shadow(0 2px 0 rgba(0,0,0,.6)); }
  .chrome-text em { color: transparent; }
}
@media (forced-colors: active) {
  .chrome-text { background: none; color: CanvasText; filter: none; }
  .chrome-text em { color: CanvasText; }
}

.sparkle { position: absolute; fill: var(--paper); pointer-events: none; }
/* The 150px star at top: -16% is clipped and still hits the title-bar dots. Sit a smaller star in the right gutter, clear of the dots. */
.sparkle--xl { width: 64px; right: -6px; top: 22px; filter: drop-shadow(0 0 18px rgba(255,255,255,.7)); }
.sparkle--sm { width: 22px; left: 1.2rem; top: 46%; bottom: auto; fill: var(--sky); }
.sparkle--inline { position: static; width: 1.1rem; height: 1.1rem; fill: currentColor; }
.surface--paper .sparkle { fill: var(--blue); }
@media (prefers-reduced-motion: no-preference) {
  .sparkle--xl { animation: twinkle 4s ease-in-out infinite alternate; }
  @keyframes twinkle { to { transform: rotate(12deg) scale(.92); opacity: .8; } }
}

.hud { position: relative; }
.hud::before, .hud::after {
  content: ""; position: absolute; z-index: 3; width: 22px; height: 22px; pointer-events: none;
  border: 2px solid var(--focus); transition: translate var(--dur) var(--ease);
}
.hud::before { top: -6px; left: -6px; border-right: 0; border-bottom: 0; }
.hud::after { bottom: -6px; right: -6px; border-left: 0; border-top: 0; }
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .hud:hover::before { translate: -4px -4px; }
  .hud:hover::after { translate: 4px 4px; }
}

.tag {
  display: inline-block; padding: .28rem .55rem;
  font: 400 .7rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--paper); background: var(--night); border-radius: var(--r-xs);
}
.tag--blue { background: var(--blue); }
.tag--burgundy { background: var(--burgundy); }
.tag--sky { background: var(--sky); color: var(--night); }
.window__screen > .tag { position: absolute; z-index: 3; left: .9rem; top: .9rem; }

.scanlines { position: relative; }
.scanlines::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.12) 0 1px, transparent 1px 3px), linear-gradient(0deg, rgba(10,10,10,.5), transparent 40%);
}
.strip--checker { position: relative; }
.strip--checker::before {
  content: ""; display: block; height: 8px;
  background: repeating-conic-gradient(var(--paper) 0 25%, var(--blue) 0 50%) 0 0 / 8px 8px;
}
.halftone::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .35;
  background: radial-gradient(rgba(255,255,255,.55) 1px, transparent 1.5px) 0 0 / 7px 7px;
  -webkit-mask: linear-gradient(90deg, #000, transparent 55%);
  mask: linear-gradient(90deg, #000, transparent 55%);
}
.marquee { position: absolute; left: 0; right: 0; bottom: 0; overflow: hidden; background: var(--night); z-index: 2; }
.marquee__track { display: flex; width: max-content; }
.marquee__group {
  display: flex; flex: none; margin: 0; padding: .85rem 0 .7rem; list-style: none;
  white-space: nowrap; font: .75rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--sky);
}
.marquee__group li { flex: none; }
.marquee__group li::after { content: "\2726"; margin: 0 .9em; }
@media (prefers-reduced-motion: no-preference) {
  .marquee__track { animation: marquee 160s linear infinite; will-change: transform; }
  .page-404 .marquee__track { animation-duration: 40s; }
  @keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
}

/* Hero operator photo stays a plain blue tint until the duotone is approved. */
.tint { background: var(--blue); }
.tint img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 30% 25%;
  filter: grayscale(1) contrast(1.05) brightness(.85);
}
.tint picture { position: relative; display: block; }
.tint picture::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: rgba(14, 21, 228, .55); mix-blend-mode: multiply;
}
.duotone { background: var(--blue); overflow: hidden; }
.duotone img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.15); mix-blend-mode: screen;
}
.window--photo {
  position: absolute; left: -64px; bottom: -28px; width: 230px; margin: 0; rotate: -2.5deg; z-index: 3;
  background: var(--glass-light-solid); border: var(--glass-edge); box-shadow: var(--shadow-pop); overflow: hidden;
}
.bubble {
  position: absolute; border-radius: 50%; pointer-events: none; border: 1px solid rgba(255,255,255,.7);
  background: radial-gradient(circle at 30% 28%, #fff 0 7%, rgba(225,236,243,.55) 24%, rgba(158,193,226,.25) 55%, rgba(14,21,228,.15) 80%);
  box-shadow: inset -6px -10px 18px rgba(2,0,69,.25), inset 4px 6px 10px rgba(255,255,255,.35);
}
.hero__stage .bubble { z-index: 4; }
/* Fully below the player so they miss the face, the play orb, and the caption. */
.hero__stage .bubble--lg { width: 64px; height: 64px; right: -18px; bottom: -72px; }
.hero__stage .bubble--sm { width: 28px; height: 28px; right: 56px; bottom: -64px; }
@media (min-width: 1200px) {
  .hero__stage .bubble--lg { width: 56px; height: 56px; right: -52px; bottom: 24px; }
  .hero__stage .bubble--sm { width: 26px; height: 26px; right: -40px; bottom: 78px; }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 761px) {
  .bubble { animation: drift 9s ease-in-out infinite alternate; }
  @keyframes drift { to { transform: translateY(-14px); } }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .card:hover .card__title { animation: glitch var(--dur-fast) steps(2) 1; }
  @keyframes glitch {
    0% { text-shadow: 2px 0 var(--blue-pure), -2px 0 var(--burgundy-2); translate: 1px 0; }
    100% { text-shadow: none; translate: 0; }
  }
}

@media print {
  .marquee, .sparkle, .bubble, .scanlines::after, .site-header { display: none !important; }
  body { background: #fff; color: #000; }
}

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .85rem var(--pad); color: var(--paper);
  background: var(--glass-dark-solid);
  border-bottom: 1px solid rgba(255,255,255,.18);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  /* 0.55 over the light sections is 4.15:1. At 0.92 the blur barely shows, so the bar stays solid. */
  .site-header { background: rgba(8, 12, 145, .92); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.wordmark {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--serif); font-size: 1.6rem; text-decoration: none; color: var(--paper);
}
.site-header ul { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); list-style: none; margin: 0; padding: 0; }
.site-header nav a {
  color: var(--paper); text-decoration: none; font-size: .9375rem;
  padding-block: .25rem; border-bottom: 2px solid transparent;
}
.site-header nav a:hover, .site-header nav a[aria-current] { border-bottom-color: var(--paper); }
.nav-yt {
  font: .72rem/1 var(--mono) !important; letter-spacing: .1em; text-transform: uppercase;
  padding: .45rem .75rem !important; border: 1px solid rgba(255,255,255,.5) !important; border-radius: var(--r-pill);
  border-bottom-color: rgba(255,255,255,.5) !important;
}
.site-header :focus-visible { outline-color: var(--paper); }

/* HERO */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding: 2.2rem var(--pad) 4.6rem;
  background:
    radial-gradient(circle at 72% 38%, rgba(158,193,226,.35), transparent 42%),
    radial-gradient(circle at 10% 90%, rgba(2,0,69,.55), transparent 50%),
    var(--blue);
  color: var(--paper);
}
.hero__inner {
  position: relative; z-index: 1;
  max-width: var(--max); width: 100%; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.25rem, 3vw, 3rem); align-items: center;
}
.hud-data {
  display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: 0 0 1.15rem;
  color: var(--sky); font: 400 .6875rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase;
}
.status {
  display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1.2rem;
  padding: .4rem .9rem .4rem .55rem; border-radius: var(--r-pill);
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.45);
  color: var(--paper); font-size: 1rem;
}
.rec {
  width: .6rem; height: .6rem; border-radius: 50%; flex: none;
  background: var(--burgundy-2); box-shadow: 0 0 0 2px var(--paper);
}
@media (prefers-reduced-motion: no-preference) {
  .rec { animation: blink 1.6s ease-in-out infinite alternate; }
  @keyframes blink { to { opacity: .35; } }
}
.hero__title {
  font-family: var(--serif); font-weight: 400; margin: 0;
  font-size: clamp(4rem, 9vw, 8.6rem); line-height: .86; letter-spacing: -.02em;
}
.hero__title em { display: block; }
.hero__lede { font-size: clamp(1.125rem, 2vw, 1.35rem); max-width: 28ch; margin: 1.35rem 0 1.6rem; color: var(--paper); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__stage { position: relative; min-width: 0; }
.window--player { z-index: 1; box-shadow: var(--shadow-pop); }
.window--player.hud { overflow: visible; }
.window--player .window__bar { border-radius: var(--r-lg) var(--r-lg) 0 0; }
.window--player .window__meta { border-radius: 0 0 var(--r-lg) var(--r-lg); padding-left: 11rem; }
.hero__hit { position: absolute; inset: 0; z-index: 2; display: block; color: var(--paper); background: #000; }
.hero__hit:focus-visible { outline: none; }
.hero__hit:focus-visible::after {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 6px var(--blue);
}
.hero__hit:hover .play, .hero__hit:focus-visible .play { transform: scale(1.08); }
.hero__poster, .hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000;
}
.hero__video { opacity: 0; pointer-events: none; }
.window__screen.is-live .hero__poster { opacity: 0; }
.window__screen { aspect-ratio: 16 / 9; }
.preview-toggle {
  position: absolute; z-index: 4; top: .75rem; right: .75rem; bottom: auto;
  min-height: 2.5rem; padding: 0 .9rem; border-radius: var(--r-pill); cursor: pointer;
  border: 1px solid rgba(255,255,255,.55); background: rgba(10,10,10,.78); color: var(--paper);
  font: 400 .75rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
}
.preview-toggle[hidden] { display: none; }
.toast {
  position: fixed; left: 50%; bottom: 5rem; z-index: 50; translate: -50% 0; margin: 0;
  padding: .6rem 1rem; border-radius: var(--r-pill); background: var(--night); color: var(--paper);
  border: 1px solid var(--sky);
  font: .8rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 6px 24px rgba(0,0,0,.35);
}
.toast__address { text-transform: none; }

/* SECTIONS */
.reel, .work, .about, .contact, .cv { max-width: none; }
.reel__inner, .work__inner, .about__grid, .cv__inner {
  max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad);
}
.reel, .work, .cv { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.section-head .label { margin: 0; }
.section-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: .95; letter-spacing: -.01em;
}
.section-title em { color: var(--blue); }
.surface--night .section-title em { color: var(--sky); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .section-title.chrome-text em,
  .hero__title.chrome-text em,
  .page-intro__title.chrome-text em { color: transparent; }
}

/* FEATURED FILM */
.reel__meta { margin: 0; color: var(--muted); font: 400 .75rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.reel__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: end; }
.reel__slot .window__bar { border-radius: var(--r-md) var(--r-md) 0 0; }
.reel__slot .play-link { display: block; position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #000; color: var(--paper); border-radius: 0 0 var(--r-md) var(--r-md); }
.reel__slot .play-link img {
  width: 100%; height: 100%; object-fit: cover; object-position: 72% 40%;
  transform: scale(1.65); transform-origin: 72% 40%;
}
.reel__slot .play { left: auto; right: 1.25rem; top: auto; bottom: 1.25rem; translate: none; width: 5rem; height: 5rem; }
.reel__logline { font-size: 1.2rem; max-width: 36ch; margin: .85rem 0 0; }
.reel__caption .section-title { margin-bottom: .5rem; }
.spec-sheet { display: grid; gap: .55rem; margin: 1.25rem 0 1.75rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.spec-sheet div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; }
.spec-sheet dt { font: .75rem/1.9 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.spec-sheet dd { margin: 0; }

/* WORK */
.grid { display: grid; gap: 1.35rem; grid-template-columns: repeat(12, 1fr); }
.card { display: flex; flex-direction: column; min-width: 0; }
.card.hud, .window.hud { overflow: visible; }
.card__media { position: relative; overflow: hidden; background: #000; border-radius: 0 0 var(--r-md) var(--r-md); }
.card__media > .play-link { position: relative; display: block; width: 100%; height: 100%; color: var(--paper); background: #000; }
.card__media img, .card__media > .play-link img { width: 100%; height: 100%; object-fit: cover; }
.films__still { object-position: 62% 50%; }
.card__media img { transition: transform var(--dur-slow) var(--ease); }
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .card:hover .card__media img { transform: scale(1.03); }
}
.card__body { padding: 1.35rem 1.4rem 1.5rem; }
.card__kicker { margin: 0 0 .45rem; color: var(--blue); font: 400 .75rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.card__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1; margin: 0 0 .7rem; color: var(--ink); }
.card__text { color: var(--ink); margin: 0; font-size: 1.0625rem; max-width: 52ch; }
.card__note { color: var(--slate); font-size: 1rem; margin: 1rem 0 0; }

.card--overlay { position: relative; }
.card--overlay .card__media { position: absolute; inset: 0; border-radius: var(--r-md); }
.card--overlay .card__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(0deg, rgba(10,10,10,.96) 0%, rgba(10,10,10,.92) 36%, rgba(10,10,10,.86) 58%, rgba(10,10,10,.55) 78%, transparent 100%);
}
.card--overlay .window__bar { position: relative; z-index: 4; border-radius: var(--r-md) var(--r-md) 0 0; }
.card--overlay .card__body { position: relative; z-index: 2; margin-top: auto; pointer-events: none; padding-bottom: 5rem; }
.card--overlay .card__title, .card--overlay .card__text { color: var(--paper); }
.card--overlay .card__kicker { color: var(--sky); text-shadow: 0 1px 2px rgba(0,0,0,.85); }

.card--films { grid-column: span 8; display: grid; grid-template-columns: 1.35fr 1fr; }
.card--films > .window__bar { grid-column: 1 / -1; border-radius: var(--r-md) var(--r-md) 0 0; }
.card--films .card__media { min-height: 16rem; border-radius: 0 0 0 var(--r-md); }
.card--films .card__body { display: flex; flex-direction: column; justify-content: center; padding: 1.5rem 1.6rem 1.7rem; }
.card--films .card__media .play { left: 1rem; bottom: 1rem; top: auto; right: auto; translate: none; }
@media (min-width: 761px) {
  .card--door .card__body,
  .card--fan .card__body { padding-bottom: 6rem; }
}
.card--pogo { grid-column: span 4; min-height: 560px; }
.card--door { grid-column: span 5; min-height: 440px; }
.card--fan { grid-column: span 3; min-height: 440px; }
.card--client {
  grid-column: span 4;
  background: var(--ink); color: var(--paper);
  --text: var(--paper); --text-2: var(--paper); --muted: var(--sky); --line: rgba(255,255,255,.18); --accent: var(--sky);
}
.card--client .window__bar { border-radius: var(--r-md) var(--r-md) 0 0; }
.card--client .card__body { display: flex; flex-direction: column; flex: 1; padding: 1.6rem 1.5rem 1.7rem; }
.card--client .card__kicker { color: var(--sky); }
.card--client .card__title, .card--client .card__text { color: var(--paper); }
.card--client .card__note { color: var(--sky); }
.client__period { font: 400 clamp(1.3rem, 2vw, 1.8rem)/1.05 var(--mono); letter-spacing: -.01em; margin: 0 0 1rem; color: var(--paper); white-space: nowrap; }
.client__period span { color: var(--sky); }
.card--photo { grid-column: span 12; display: grid; grid-template-columns: minmax(14rem, 1fr) 3fr; }
.card--photo > .window__bar { grid-column: 1 / -1; border-radius: var(--r-md) var(--r-md) 0 0; }
.card--photo .card__body { padding: 1.6rem; display: flex; flex-direction: column; justify-content: flex-end; }

.card__media > .play-link:focus-visible,
.reel__slot .play-link:focus-visible { outline: none; }
.card__media > .play-link:focus-visible::after,
.reel__slot .play-link:focus-visible::after {
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 6px var(--blue);
}
.films__name.play-link:focus-visible::after { content: none; }

.films { list-style: none; counter-reset: f; margin: 1.25rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.films li { counter-increment: f; display: grid; grid-template-columns: 2rem 1fr; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.films li::before { content: counter(f, decimal-leading-zero); font: .75rem/1.9 var(--mono); color: var(--muted); grid-row: span 2; }
.films__name { font-weight: 700; letter-spacing: .01em; text-decoration: none; justify-self: start; color: var(--ink); background: none; }
.films__name:hover { color: var(--blue); text-decoration: underline; text-underline-offset: .2em; }
.films__role { color: var(--slate); font-size: 1rem; }

.facts { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); display: grid; gap: .85rem; }
.facts div { display: grid; gap: .15rem; }
.facts dt { color: var(--muted); font: 400 .75rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.facts dd { margin: 0; }

/* PHOTOGRAPHY */
.collections { list-style: none; margin: 0; padding: .7rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.collection { position: relative; display: block; height: 100%; min-height: 420px; text-decoration: none; color: var(--paper); background: #000; border-radius: var(--r-sm); }
.collection__media, .collection__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.collection__media { overflow: hidden; border-radius: var(--r-sm); }
.collection__media.hud { position: absolute; }
.collection__media img { object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.collection::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(0deg, rgba(5,8,113,.8) 0%, transparent 50%);
}
.collection:hover img { transform: scale(1.04); }
.collection:focus-visible { outline: none; }
.collection:focus-visible::after { box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 6px var(--blue); z-index: 2; }
.collection > .tag { position: absolute; z-index: 3; left: .8rem; top: .8rem; }
.collection__info { position: absolute; z-index: 3; left: 1.1rem; right: 1.1rem; bottom: 1rem; }
.collection__title { font-family: var(--serif); font-size: clamp(1.75rem, 2.6vw, 2.4rem); line-height: 1; color: var(--paper); }

/* ABOUT */
.about { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; }
.about__portrait { margin: 0; position: relative; }
.about__portrait .duotone, .about__photo { aspect-ratio: 4 / 5; border-radius: var(--r-md); }
.about__text .section-title { margin-bottom: 1.15rem; }
.about__text p:not(.label) { max-width: 56ch; }
.about__text p + p { margin-top: 1rem; }
.tools { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.5rem 0 1.75rem; }
.tools li {
  border: 1px solid rgba(255,255,255,.3); border-radius: var(--r-xs);
  padding: .4rem .65rem; color: var(--paper);
  font: 400 .75rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
}
.collage__tag { position: absolute; z-index: 2; left: .8rem; bottom: .8rem; }
.collage__spark { width: 46px; height: 46px; right: -8px; top: -14px; fill: var(--paper); z-index: 2; }
.hero > .sparkle, .page-intro > .sparkle, .page-404 .sparkle { z-index: 2; }
.link-arrow { color: var(--blue); font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: .15rem; }
.link-arrow:hover { color: var(--ink); }

/* CONTACT */
.contact { position: relative; overflow: hidden; padding: clamp(3.5rem, 8vw, 6.5rem) var(--pad); }
.contact__panel { position: relative; z-index: 1; max-width: 960px; margin: 0 auto; }
.contact .bubble--lg { width: 86px; height: 86px; right: clamp(1rem, 3vw, 2.5rem); bottom: 1.25rem; }
.contact__body { padding: clamp(1.4rem, 3vw, 2.4rem); }
.contact__title {
  font-family: var(--serif); font-weight: 400; color: var(--ink);
  font-size: clamp(3rem, 8vw, 6.4rem); line-height: .95; letter-spacing: -.02em;
  margin: .4rem 0 1rem;
}
.contact__title em { color: var(--blue); }
.contact__text { color: var(--ink); max-width: 58ch; margin: 0 0 1.75rem; }
.contact__actions, .mail-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.contact__actions .btn { overflow-wrap: anywhere; white-space: normal; text-align: center; max-width: 100%; height: auto; padding-block: .75rem; }
.contact .bubble { z-index: 0; }

/* FOOTER */
.site-footer { color: var(--chrome); padding: 0; }
.site-footer__inner {
  max-width: var(--max); margin: 0 auto; padding: 1.4rem var(--pad) 1.8rem;
  display: flex; justify-content: space-between; gap: .75rem 1.5rem; flex-wrap: wrap; align-items: center;
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--paper); }
.badges { display: flex; gap: .4rem; }
.badges span {
  display: inline-block; border: 1px solid var(--chrome); padding: .28rem .45rem;
  font: 400 .65rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--chrome);
}

/* LIGHTBOX AND PLAYER */
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--night); color: var(--paper);
}
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop, .player::backdrop { background: rgba(2, 0, 69, .92); }
.lightbox__bar { flex: none; }
.lightbox__title { margin: 0; }
.lightbox__count { margin: 0 0 0 auto; color: var(--sky); font: 400 .75rem/1 var(--mono); letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.lightbox__close { flex: none; margin-left: .75rem; }
.lightbox__stage {
  position: relative; flex: 1; min-height: 0;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
  padding: 1rem var(--pad); touch-action: pan-y pinch-zoom;
}
.lightbox__figure { margin: 0; height: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; }
.lightbox__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lightbox__nav {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; flex: none; border-radius: 50%;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.55); color: var(--paper);
  cursor: pointer; font-size: 1.15rem; line-height: 1;
}
.lightbox__nav:hover { background: rgba(255,255,255,.28); }
.lightbox__thumbs {
  list-style: none; margin: 0; display: flex; gap: .4rem; overflow-x: auto;
  padding: .75rem var(--pad) 1rem; scrollbar-width: thin; scrollbar-color: var(--blue) transparent;
}
.lightbox__thumbs li { flex: none; }
.lightbox__thumb {
  display: block; width: 4.5rem; height: 3.25rem; padding: 0; border: 2px solid transparent; border-radius: var(--r-xs);
  background: #000; cursor: pointer; opacity: .55;
}
.lightbox__thumb img { width: 100%; height: 100%; object-fit: cover; }
.lightbox__thumb:hover { opacity: .9; }
.lightbox__thumb[aria-current="true"] { opacity: 1; border-color: var(--sky); }

.player {
  width: min(92vw, 1200px); max-width: none; max-height: 92dvh; padding: 0; border: 0;
  background: transparent; overflow: visible; color: var(--paper);
}
.player .window { max-height: 92dvh; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg); }
.player__frame { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.player__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.player__frame--tall { width: auto; height: min(78dvh, 760px); aspect-ratio: 9 / 16; margin: 0 auto; }
.player:has(.player__frame--tall) { width: min(92vw, calc(min(78dvh, 760px) * 9 / 16)); }
.player__foot {
  display: flex; justify-content: flex-end; align-items: center; gap: 1.25rem;
  margin: 0; padding: .7rem .9rem; font: .75rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; background: var(--glass-dark-solid);
}
.player__foot a, .player__close-text { color: var(--paper); }
.player__close-text {
  background: none; border: 0; padding: 0; font: inherit; letter-spacing: inherit; text-transform: inherit;
  cursor: pointer; text-decoration: underline; text-underline-offset: .2em;
}

/* ABOUT PAGE */
.page-intro {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 55svh; display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(6rem, 12vw, 8rem) 0 clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(circle at 80% 20%, rgba(158,193,226,.35), transparent 42%),
    radial-gradient(circle at 10% 90%, rgba(2,0,69,.5), transparent 48%),
    var(--blue);
  color: var(--paper);
}
.page-intro__inner { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); width: 100%; }
.page-intro__title {
  font-family: var(--serif); font-weight: 400; margin: 0;
  font-size: clamp(3.5rem, 10vw, 7.5rem); line-height: .9; letter-spacing: -.02em;
}
.page-intro__lede { font-size: clamp(1.125rem, 2vw, 1.4rem); max-width: 34ch; margin: 1.1rem 0 1.15rem; color: var(--paper); }
.about--page { align-items: start; background: var(--paper); color: var(--ink); }
.about--page .about__grid { align-items: start; }
.about__panel .about__text-body { padding: clamp(1.2rem, 2.5vw, 2rem); }
.about__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.6rem; }
.cv { background: var(--paper); color: var(--ink); }
.cv__inner { padding-top: 0; padding-bottom: 0; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline__item {
  position: relative;
  display: grid; grid-template-columns: minmax(10rem, 14rem) minmax(0, 1fr);
  gap: 1rem 2rem; padding: 1.35rem 0 1.35rem 1.6rem; border-bottom: 1px solid var(--line);
}
.timeline__item::before {
  content: ""; position: absolute; left: 0; top: 1.55rem; width: 14px; height: 14px;
  background: var(--blue);
  -webkit-mask: url("assets/spark.svg") center / contain no-repeat;
  mask: url("assets/spark.svg") center / contain no-repeat;
}
.timeline__when {
  justify-self: start; height: fit-content; margin-top: .2rem;
  padding: .28rem .55rem; border-radius: var(--r-xs);
  font: 400 .7rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--paper); background: var(--night);
}
.timeline__role { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 2.6vw, 2.25rem); line-height: 1.05; margin: 0; color: var(--ink); }
.timeline__org { margin: .3rem 0 0; color: var(--blue); }
.timeline__text { margin: .55rem 0 0; color: var(--ink); max-width: 62ch; }
.cv--split .cv__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem clamp(2rem, 6vw, 5rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.cv .tools { margin-top: .4rem; }
.cv .tools li { color: var(--ink); border-color: rgba(5,8,113,.3); background: transparent; }

/* 404 */
.page-404 { background: var(--blue); }
.page-404 .hero { min-height: 100svh; min-height: 100dvh; justify-content: center; }
.page-404 .hero__inner { display: block; max-width: 46rem; }
.page-404 .hero__title { font-size: clamp(6rem, 22vw, 13rem); line-height: .8; margin: .6rem 0 .8rem; }
.page-404 .hero__lede { margin-bottom: 1.6rem; }
.page-404 .sparkle--a { width: 90px; left: 6%; top: 12%; }
.page-404 .sparkle--b { width: 36px; right: 18%; top: 22%; fill: var(--sky); }
.page-404 .sparkle--c { width: 54px; left: 22%; bottom: 18%; }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .card--films { grid-column: span 12; }
  .card--pogo { grid-column: span 6; }
  .card--fan { grid-column: span 6; min-height: 520px; }
  .card--door { grid-column: span 12; }
  .card--client { grid-column: span 12; }
  .card--photo { grid-template-columns: 1fr; }
  .collection { min-height: 320px; }
  .window--player .window__meta { padding-left: 10.5rem; }
  .window--photo { width: 190px; left: -36px; }
}
@media (max-width: 760px) {
  .wordmark { font-size: 1.25rem; }
  .site-header ul { gap: .85rem; }
  .sparkle--sm, .bubble, .window--photo { display: none; }
  .sparkle--xl { width: 64px; right: -8px; top: -6px; }
  .hud-data { padding-right: 3.25rem; }
  .hero { min-height: 0; padding: 1.15rem var(--pad) 3.3rem; justify-content: flex-start; }
  .hero__inner { grid-template-columns: 1fr; gap: 1.15rem; }
  .hero__title { font-size: clamp(3.4rem, 15vw, 5rem); }
  .hero__actions .btn { flex: 1 1 auto; }
  .window--player .window__meta { padding-left: .9rem; }
  .hud::before, .hud::after { width: 14px; height: 14px; }
  .hud::before { top: -4px; left: -4px; }
  .hud::after { bottom: -4px; right: -4px; }
  .reel__grid, .about__grid, .card--films, .card--photo { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .card--films, .card--pogo, .card--door, .card--fan, .card--client, .card--photo { grid-column: auto; }
  .card--films .card__media { min-height: 0; aspect-ratio: 16 / 9; border-radius: 0; }
  .card--pogo, .card--fan { min-height: 0; aspect-ratio: 4 / 5; }
  .card--door { min-height: 0; aspect-ratio: 4 / 5; }
  .play { width: 3.5rem; height: 3.5rem; }
  .reel__slot .play { width: 3.6rem; height: 3.6rem; }
  .collections { grid-template-columns: 1fr 1fr; padding: .7rem; }
  .collections li:first-child { grid-column: span 2; }
  .collection { min-height: 0; aspect-ratio: 4 / 5; }
  .collections li:first-child .collection { aspect-ratio: 3 / 2; }
  .about__portrait { max-width: 420px; }
  .page-intro { min-height: 0; }
  .timeline__item, .cv--split .cv__inner { grid-template-columns: 1fr; }
  .lightbox__stage { grid-template-columns: 1fr; padding: .5rem .75rem; }
  .lightbox__nav { position: absolute; z-index: 2; bottom: 1rem; }
  .lightbox__nav--prev { left: 1rem; }
  .lightbox__nav--next { right: 1rem; }
  .lightbox__thumb { width: 3.5rem; height: 2.6rem; }
}
@media (max-width: 420px) {
  .sparkle--inline { display: none; }
  .wordmark { font-size: 1.05rem; }
  .site-header { gap: .4rem; padding-inline: .8rem; }
  .site-header ul { gap: .55rem; }
  .site-header nav a { font-size: .8125rem; }
  .nav-yt { padding: .4rem .5rem !important; letter-spacing: .06em; }
}

/* Phones and reduced transparency: solid panels, no blur. Kept last so it wins over the header support rule. */
@media (max-width: 760px), (prefers-reduced-transparency: reduce) {
  .window--glass, .site-header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .window--glass { background: var(--glass-light-solid); }
  .site-header { background: var(--glass-dark-solid); }
}

/* Gradient text is clipped to the line box. Padding keeps descenders inside the paint, and the negative margin gives that space back. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero__title.chrome-text,
  .section-title.chrome-text,
  .page-intro__title.chrome-text {
    padding-bottom: .16em;
    margin-bottom: -.16em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }
  .about__text .section-title.chrome-text { margin-bottom: calc(1.15rem - .16em); }
  .hero__title.chrome-text em {
    padding-bottom: .14em;
    margin-bottom: -.14em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }
}


/* ==== Work section depth background (parallax) ==== */
/* Every layer moves SLOWER than the page: far 0.35x, mid 0.55x, near 0.75x, cards 1x. */
.work { position: relative; isolation: isolate; overflow: clip; }
.work__inner { position: relative; z-index: 1; }
.work-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; contain: strict; }
.work-bg__layer { position: absolute; left: 0; right: 0; top: 0; height: 100%; }
.work-bg__layer > * { position: absolute; display: block; }
.work-bg__far { --s: .35; }
.work-bg__mid { --s: .55; }
.work-bg__near { --s: .75; }

/* Far: cobalt grid strongest in the gutters, halftone corners, perspective floor, outline numeral */
.work-bg__grid {
  inset: 0;
  background:
    linear-gradient(rgba(14,21,228,.14) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(14,21,228,.14) 1px, transparent 1px) 0 0 / 48px 48px;
  -webkit-mask: linear-gradient(90deg, #000, #000 6%, rgba(0,0,0,.3) 20%, rgba(0,0,0,.3) 80%, #000 94%, #000);
          mask: linear-gradient(90deg, #000, #000 6%, rgba(0,0,0,.3) 20%, rgba(0,0,0,.3) 80%, #000 94%, #000);
}
.work-bg__dots {
  inset: 0; opacity: .85;
  background: radial-gradient(rgba(14,21,228,.28) 1px, transparent 1.6px) 0 0 / 9px 9px;
  -webkit-mask: radial-gradient(circle at 100% 8%, #000, transparent 32%), radial-gradient(circle at 0% 92%, #000, transparent 30%);
          mask: radial-gradient(circle at 100% 8%, #000, transparent 32%), radial-gradient(circle at 0% 92%, #000, transparent 30%);
}
.work-bg__floor {
  left: -10%; right: -10%; bottom: 0; height: 360px; transform-origin: 50% 100%;
  transform: perspective(520px) rotateX(62deg);
  background:
    linear-gradient(rgba(14,21,228,.22) 1px, transparent 1px) 0 0 / 64px 40px,
    linear-gradient(90deg, rgba(14,21,228,.22) 1px, transparent 1px) 0 0 / 64px 40px;
  -webkit-mask: linear-gradient(transparent, #000 70%); mask: linear-gradient(transparent, #000 70%);
}
.work-bg__numeral {
  right: -3vw; top: 30%; font: 400 clamp(12rem, 24vw, 22rem)/.8 var(--serif);
  color: transparent; -webkit-text-stroke: 1.5px rgba(14,21,228,.16); letter-spacing: -.04em;
}

/* Mid: soft cobalt and sky orbs plus a chrome ring, in the gutters */
.work-bg__orb { border-radius: 50%; width: 46vw; aspect-ratio: 1; max-width: 760px; }
.work-bg__orb--a { left: -24vw; top: 8%; background: radial-gradient(circle, rgba(70,137,220,.34), rgba(158,193,226,.18) 38%, transparent 68%); }
.work-bg__orb--b { right: -26vw; top: 44%; background: radial-gradient(circle, rgba(14,21,228,.26), rgba(70,137,220,.12) 40%, transparent 68%); }
.work-bg__orb--c { left: 30%; bottom: -18vw; width: 40vw; background: radial-gradient(circle, rgba(158,193,226,.30), transparent 66%); }
.work-bg__ring {
  left: -90px; top: 50%; width: 260px; aspect-ratio: 1; border-radius: 50%; opacity: .5;
  background: radial-gradient(circle, transparent 54%, #fff 56%, #92A4C7 60%, #334A74 63%, #E1ECF3 67%, #92A4C7 70%, transparent 72%);
}

/* Near: sparkles, brackets, data labels, a tick ruler */
.work-bg__spark { fill: var(--blue); opacity: .8; width: 22px; height: 22px; }
.work-bg__spark--1 { left: calc(var(--pad) * .35); top: 22%; }
.work-bg__spark--2 { right: calc(var(--pad) * .3); top: 41%; width: 30px; height: 30px; opacity: .6; }
.work-bg__spark--3 { left: calc(var(--pad) * .45); top: 68%; width: 14px; height: 14px; }
.work-bg__spark--4 { right: calc(var(--pad) * .5); top: 84%; width: 16px; height: 16px; opacity: .65; }
.work-bg__spark--big { right: -34px; top: 10%; width: 120px; height: 120px; opacity: .22; }
.work-bg__bracket { width: 28px; height: 28px; border: 1.5px solid rgba(14,21,228,.45); }
.work-bg__bracket--tl { left: 14px; top: 18px; border-right: 0; border-bottom: 0; }
.work-bg__bracket--br { right: 14px; bottom: 18px; border-left: 0; border-top: 0; }
.work-bg__tag {
  font: .625rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(14,21,228,.62);
  writing-mode: vertical-rl; white-space: nowrap;
}
.work-bg__tag--l { left: calc(var(--pad) * .4); top: 8%; transform: rotate(180deg); }
.work-bg__tag--r { right: calc(var(--pad) * .4); top: 56%; }
.work-bg__tag--b { left: calc(var(--pad) * .4); top: 78%; transform: rotate(180deg); }
.work-bg__ruler {
  right: calc(var(--pad) * .42); top: 24%; width: 7px; height: 14%;
  background: repeating-linear-gradient(180deg, rgba(14,21,228,.4) 0 1px, transparent 1px 8px);
  -webkit-mask: linear-gradient(transparent, #000 20%, #000 80%, transparent); mask: linear-gradient(transparent, #000 20%, #000 80%, transparent);
}

/* Static scanline ticks on the section edges */
.work-bg__edge {
  position: absolute; left: 0; right: 0; height: 8px; opacity: .55;
  background: repeating-linear-gradient(90deg, var(--blue) 0 2px, transparent 2px 7px);
  -webkit-mask: linear-gradient(90deg, #000, transparent 22%, transparent 78%, #000); mask: linear-gradient(90deg, #000, transparent 22%, transparent 78%, #000);
}
.work-bg__edge--top { top: 0; }
.work-bg__edge--bottom { bottom: 0; }

/* Live parallax sizing. Each layer becomes the band of itself that can ever be seen:
   height = s*H + (1-s)*100vh, centred on the section. Across the section's view range it then
   travels (1-s)*(100vh + H), which makes it move at exactly s times the scroll speed.
   The travel is written in terms of the layer's own height L: A = (1-s)/(2s)*L + (1-s)(2s-1)/(2s)*100vh. */
.work-bg--live .work-bg__layer {
  top: calc((1 - var(--s)) * (100% - 100vh) / 2);
  height: calc(var(--s) * 100% + (1 - var(--s)) * 100vh);
  will-change: transform;
}
@media (prefers-reduced-motion: no-preference) and (min-width: 761px) {
  @supports (animation-timeline: view()) {
    .work { view-timeline: --work block; }
    .work-bg { --live: 1; }
    .work-bg .work-bg__layer {
      top: calc((1 - var(--s)) * (100% - 100vh) / 2);
      height: calc(var(--s) * 100% + (1 - var(--s)) * 100vh);
      will-change: transform;
      --a: calc((1 - var(--s)) / (2 * var(--s)) * 100% + (1 - var(--s)) * (2 * var(--s) - 1) / (2 * var(--s)) * 100vh);
      animation: work-depth linear both; animation-timeline: --work; animation-range: cover;
    }
    @keyframes work-depth {
      from { transform: translate3d(0, calc(var(--a) * -1), 0); }
      to { transform: translate3d(0, var(--a), 0); }
    }
  }
}

/* Mobile: static and lighter, gutters are too narrow for labels */
@media (max-width: 760px) {
  .work-bg .work-bg__layer { top: 0; height: 100%; will-change: auto; transform: none !important; animation: none; }
  .work-bg__orb--b, .work-bg__orb--c, .work-bg__ring, .work-bg__numeral, .work-bg__floor,
  .work-bg__tag, .work-bg__ruler, .work-bg__spark--2, .work-bg__spark--3, .work-bg__spark--4, .work-bg__bracket { display: none !important; }
  .work-bg__orb--a { width: 90vw; left: -45vw; top: 4%; }
  .work-bg__grid { -webkit-mask: linear-gradient(#000, transparent 18%, transparent 82%, #000); mask: linear-gradient(#000, transparent 18%, transparent 82%, #000); }
  .work-bg__spark--1 { left: auto; right: 4px; top: 34%; width: 12px; height: 12px; }
  .work-bg__spark--big { right: -44px; top: 46%; width: 90px; height: 90px; }
}

/* Keep the section heading on a clean paper halo so text contrast is unchanged */
.work .section-head { position: relative; }
.work .section-head::before {
  content: ""; position: absolute; inset: -.5rem -.75rem; z-index: -1; pointer-events: none;
  background: var(--paper); border-radius: 1.5rem; box-shadow: 0 0 28px 20px var(--paper);
}
