/* ==========================================================================
   Micro Grams: portfolio styles
   Home: near-black stage, one signal red, animated grain that follows the mouse.
   Project pages: when a project is opened the page takes on that project's own
   palette and fonts (set in js/projects.js).
   Colors live in three registered custom properties (--bg, --fg, --accent) so
   the browser can animate between palettes.
   ========================================================================== */

@property --bg     { syntax: "<color>"; inherits: true; initial-value: #0A0A0B; }
@property --fg     { syntax: "<color>"; inherits: true; initial-value: #EDEBE8; }
@property --accent { syntax: "<color>"; inherits: true; initial-value: #FF3B30; }

/* ==========================================================================
   SETTINGS: the only part of this file you should need to change.
   1. Change the value after the colon (keep the ; at the end).
   2. Save the file and upload it to DreamHost (replace css/style.css).
   Don't change anything else in this file.
   ========================================================================== */
:root {
  /* --- Colours --------------------------------------------------------- */
  --bg: #0A0A0B;          /* background */
  --fg: #EDEBE8;          /* main text colour */
  --accent: #FF3B30;      /* red highlight colour */

  /* --- Fonts ----------------------------------------------------------- */
  /* Font names must be fonts that are already on the site: Sora, Schibsted Grotesk,
     Fragment Mono, Bricolage Grotesque, DM Mono, Familjen Grotesk, Space Mono, Dela Gothic One */
  --display: "Sora", "Schibsted Grotesk", system-ui, sans-serif;   /* big headings */
  --body: "Schibsted Grotesk", system-ui, sans-serif;              /* body text */
  --mono: "Fragment Mono", ui-monospace, "SF Mono", Menlo, monospace; /* small labels */

  /* --- Font weights (100 = thin, 400 = normal, 600 = semibold, 800 = heavy) --- */
  --set-display-weight: 600;   /* all big headings */
  --set-intro-weight: 500;     /* the line under the homepage headline */
  --set-moves-weight: 600;     /* the highlighted word, "moves" */

  /* --- Work grid ------------------------------------------------------- */
  --set-grid-cols: 3;                                  /* columns on a laptop (2 on tablets, 1 on phones) */
  --set-grid-gap-x: clamp(14px, 1.6vw, 26px);          /* space between columns */
  --set-grid-gap-y: clamp(30px, 3.4vw, 56px);          /* space between rows */
  --set-tile-ratio: 16 / 9;                            /* shape of each video. Examples: 16 / 9, 4 / 3, 1 / 1, 4 / 5 */

  /* --- Homepage showreel ---------------------------------------------- */
  --set-reel-width: 100%;      /* how wide the showreel is. Example: 80% */
  --set-reel-max-h: 84vh;      /* how tall it can get. Example: 70vh */


  --muted: color-mix(in srgb, var(--fg) 58%, var(--bg));
  --line: color-mix(in srgb, var(--fg) 16%, var(--bg));
  --panel: color-mix(in srgb, var(--fg) 5%, var(--bg));
  --gutter: max(20px, 3.2vw);
  --maxw: 1680px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);

  transition: --bg .65s var(--ease-io), --fg .65s var(--ease-io), --accent .65s var(--ease-io);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--body); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-transform: inherit; letter-spacing: inherit; }
h1, h2, h3, p, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

.skip { position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--fg); color: var(--bg); padding: 10px 14px; transition: top .2s; }
.skip:focus { top: 12px; }

/* ---------- scroll reveal (visible by default; JS opts in) ---------- */
.js .rv:not(.in) { opacity: 0; transform: translateY(28px); }
.rv { transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
@media (prefers-reduced-motion: reduce) { .js .rv:not(.in) { opacity: 1; transform: none; } }

/* ---------- grain (js/grain.js) ---------- */
.grain { position: fixed; inset: 0; z-index: 80; pointer-events: none; overflow: hidden; }
.grain-layer { position: absolute; inset: -50%; background-repeat: repeat; animation: grain .9s steps(1) infinite; will-change: transform; }
.grain-base .grain-layer { opacity: .06; }
[data-page="project"] .grain-base .grain-layer { opacity: .06; }
.grain-hot { opacity: 0; transition: opacity .6s ease;
  -webkit-mask-image: radial-gradient(circle var(--r, 240px) at var(--mx, -999px) var(--my, -999px), #000 0%, transparent 100%);
          mask-image: radial-gradient(circle var(--r, 240px) at var(--mx, -999px) var(--my, -999px), #000 0%, transparent 100%); }
.grain-hot .grain-layer { opacity: .13; animation-duration: .5s; }
[data-page="project"] .grain-hot .grain-layer { opacity: .13; }
.grain-glow { position: fixed; inset: 0; z-index: 79; pointer-events: none; opacity: 0; transition: opacity .6s ease;
  background: radial-gradient(circle 144px at var(--mx, -999px) var(--my, -999px), color-mix(in srgb, var(--accent) 4%, transparent), transparent 72%); }
@keyframes grain {
  /* small jumps: the layer is 50% bigger than the screen on every side, so its edge never shows */
  0%, 100% { transform: translate(0, 0); } 10% { transform: translate(-2%, -4%); } 20% { transform: translate(-6%, 2%); }
  30% { transform: translate(3%, -8%); } 40% { transform: translate(-2%, 9%); } 50% { transform: translate(-7%, 4%); }
  60% { transform: translate(8%, 0); } 70% { transform: translate(0, 6%); } 80% { transform: translate(2%, 10%); } 90% { transform: translate(-5%, 4%); }
}
}
@media (prefers-reduced-motion: reduce) { .grain-layer { animation: none; } .grain-hot, .grain-glow { display: none; } }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .4s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-block: 16px; }
.brand { display: block; height: 30px; aspect-ratio: 2.34; color: var(--fg); transition: transform .4s var(--ease); }
/* the logo is used as a mask so it takes whatever color the page is using; swap assets/logo.svg to change it */
.brand i { display: block; width: 100%; height: 100%; background: currentColor; -webkit-mask: url("../assets/logo.svg") center / contain no-repeat; mask: url("../assets/logo.svg") center / contain no-repeat; }
.brand:hover { transform: translateY(-2px) rotate(-1.5deg); }
.nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); grid-column: 3; justify-self: end; }
.nav a { position: relative; padding-block: 6px; color: var(--muted); transition: color .3s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.head-right { justify-self: end; display: flex; align-items: center; gap: 12px; }
.status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 50% { box-shadow: 0 0 0 6px transparent; } }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--accent); color: var(--accent); border-radius: 3px; transition: background .3s, color .3s; }
.btn:hover { background: var(--accent); color: var(--bg); }
@media (max-width: 860px) { .status { display: none; } }
@media (max-width: 720px) {
  .site-header .wrap { grid-template-columns: auto 1fr; }
  .nav { justify-self: end; gap: 18px; }
  .head-right { display: none; }
}

/* ---------- home hero ---------- */
.hero { padding-top: clamp(96px, 13vh, 130px); padding-bottom: clamp(48px, 7vw, 100px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4.4vw, 80px); align-items: end; }
.hero h1 { font-family: var(--display); font-weight: var(--set-display-weight); font-size: clamp(38px, 6.2vw, 104px); line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; max-width: 15ch; }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .16em; margin-bottom: -.16em; }
.hero h1 .w > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; animation-delay: calc(.1s * var(--i) + .1s); }
.hero h1 em { font-style: normal; color: var(--accent); }
@keyframes rise { to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero h1 .w > span { transform: none; animation: none; } }
.hero-copy { margin-top: clamp(24px, 3vw, 44px); display: grid; gap: 14px; max-width: 46ch; }
.hero-copy p { font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); }
.hero-copy .mono { color: var(--fg); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* framed reel */
.reel-wrap { display: grid; gap: 10px; min-width: 0; }
.reel-frame { position: relative; border: 1px solid var(--line); padding: clamp(8px, 1.1vw, 16px); }
.reel-frame > .tick { position: absolute; width: 9px; height: 9px; border: 0 solid var(--accent); }
.reel-frame > .tick.a { left: -1px; top: -1px; border-width: 2px 0 0 2px; }
.reel-frame > .tick.b { right: -1px; top: -1px; border-width: 2px 2px 0 0; }
.reel-frame > .tick.c { left: -1px; bottom: -1px; border-width: 0 0 2px 2px; }
.reel-frame > .tick.d { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; }
.reel-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #050506; isolation: isolate; }
.reel-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.reel-lines .spin { transform-box: fill-box; transform-origin: center; animation: spin 70s linear infinite; }
.reel-lines .spin.rev { animation-duration: 110s; animation-direction: reverse; }
.reel-lines line, .reel-lines circle.ring { stroke: #EDEBE8; stroke-opacity: .22; fill: none; vector-effect: non-scaling-stroke; }
.reel-lines circle.dot { fill: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .reel-lines .spin { animation: none; } }
.reel-play { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; color: #EDEBE8; }
.reel-play span { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; background: rgba(10,10,11,.55); border: 1px solid rgba(237,235,232,.3); border-radius: 99px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .3s, border-color .3s, color .3s; }
.reel-play svg { width: 11px; height: 11px; color: var(--accent); transition: color .3s; }
.reel-play:hover span { background: var(--accent); border-color: var(--accent); color: #0A0A0B; }
.reel-play:hover svg { color: #0A0A0B; }
.reel-cap { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.reel-cap b { font-weight: 400; color: var(--fg); font-variant-numeric: tabular-nums; }

/* ---------- showreel hero: inside the page width, text laid over the video ---------- */
.reel-hero { position: relative; width: 100%; aspect-ratio: 16 / 9; max-width: var(--set-reel-width); margin-inline: auto; max-height: var(--set-reel-max-h); min-height: 420px; overflow: hidden; isolation: isolate; background: #000; cursor: pointer; border-radius: 4px; box-shadow: 0 0 0 1px var(--line); }
.reel-hero:focus-within { box-shadow: 0 0 0 2px var(--accent); }
.reel-video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
/* scrim: darkens the bottom and left so the text always reads */
.reel-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(10,10,11,.9) 0%, rgba(10,10,11,.55) 42%, rgba(10,10,11,.1) 80%), linear-gradient(to right, rgba(10,10,11,.5), transparent 65%); }
.hero-over { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; pointer-events: none;
  padding: clamp(20px, 3.4vw, 52px); padding-bottom: clamp(60px, 7vw, 96px); display: grid; gap: clamp(14px, 1.6vw, 22px); text-shadow: 0 1px 22px rgba(0,0,0,.55); }
.hero-over h1 { font-family: var(--display); font-weight: var(--set-display-weight); font-size: clamp(34px, 5.4vw, 88px); line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; max-width: 18ch; color: var(--fg); }
.hero-over h1 em { font-style: normal; color: var(--accent); font-weight: var(--set-moves-weight); display: inline-block; }
.hero-over .hero-copy { margin-top: 0; max-width: 46ch; }
.hero-over .hero-copy p { color: color-mix(in srgb, var(--fg) 82%, transparent); font-weight: var(--set-intro-weight); }
.hero-over .hero-copy .mono { color: var(--fg); }
.reel-bar { position: absolute; left: 0; right: 0; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: clamp(14px, 1.6vw, 22px) clamp(20px, 3.4vw, 52px); color: #EDEBE8; text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.reel-watch { pointer-events: auto; display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; background: rgba(10,10,11,.6); color: #EDEBE8; border: 1px solid rgba(237,235,232,.45); border-radius: 3px; text-shadow: none; transition: border-color .3s, color .3s, background .3s; }
.reel-watch::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.reel-watch:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 720px) {
  .reel-hero { aspect-ratio: 4 / 5; max-height: none; min-height: 0; }
  .hero-over h1 { font-size: clamp(34px, 9.6vw, 56px); }
}

/* full-screen player, opened by clicking the reel */
.reel-full { position: fixed; inset: 0; z-index: 300; background: #000; display: grid; }
.reel-full[hidden] { display: none; }
.reel-full-video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.reel-close { position: absolute; z-index: 2; top: max(16px, env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px));
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(10,10,11,.7); color: #EDEBE8;
  border: 1px solid rgba(237,235,232,.4); border-radius: 3px; transition: border-color .3s, color .3s; }
.reel-close:hover { border-color: var(--accent); color: var(--accent); }
.reel-close kbd { font: inherit; opacity: .6; }
@media (max-width: 720px) { .reel-close kbd { display: none; } }
html.reel-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .reel-hero { cursor: pointer; } }

/* ---------- scenes ---------- */
.scene-host { position: relative; overflow: hidden; }
.scene-canvas, .scene-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- work grid ---------- */
.band { background: var(--panel); }
.work { padding-block: clamp(56px, 8vw, 120px); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(24px, 3.4vw, 48px); }
.section-head h2 { font-family: var(--display); font-weight: var(--set-display-weight); font-size: clamp(30px, 3.8vw, 56px); letter-spacing: -.035em; line-height: 1; }
.section-head h2 sup { font-family: var(--mono); font-weight: 400; font-size: 13px; letter-spacing: .05em; margin-left: 8px; color: var(--accent); vertical-align: top; position: relative; top: .5em; }
.section-head p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button { padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.filters button:hover { transform: translateY(-2px); border-color: var(--fg); color: var(--fg); }
.filters button[aria-pressed="true"] { background: var(--accent); color: #0A0A0B; border-color: var(--accent); }

.grid { display: grid; grid-template-columns: repeat(var(--set-grid-cols), minmax(0, 1fr)); gap: var(--set-grid-gap-y) var(--set-grid-gap-x); }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid { grid-template-columns: minmax(0, 1fr); } }
.tile { display: grid; gap: 12px; align-content: start; min-width: 0; transition: opacity .4s, transform .5s var(--ease); }
.tile.is-out { opacity: 0; transform: scale(.96); pointer-events: none; }
.tile[hidden] { display: none; }
.tile-media { position: relative; aspect-ratio: var(--set-tile-ratio); overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .35s; }
.tile-media .inner { position: absolute; inset: 0; transition: transform 1.1s var(--ease); }
.tile:hover .tile-media, .tile:focus-visible .tile-media { box-shadow: 0 0 0 1px var(--accent); }
.tile:hover .tile-media .inner, .tile:focus-visible .tile-media .inner { transform: scale(1.04); }
.live { position: absolute; left: 10px; top: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; background: rgba(10,10,11,.6); color: #EDEBE8; border-radius: 2px; font-size: 10px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s ease-in-out infinite; }
.tile h3 { font-weight: 400; font-size: clamp(18px, 1.6vw, 24px); letter-spacing: -.015em; line-height: 1.15; transition: color .3s; }
.tile:hover h3 { color: var(--accent); }
.tile-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.tile-meta span:last-child { white-space: nowrap; }

/* ---------- about ---------- */
.about { padding-block: clamp(56px, 8vw, 120px); border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); }
.about-grid .lead { display: grid; gap: 1.1em; font-family: var(--display); font-weight: var(--set-display-weight); font-size: clamp(22px, 2.6vw, 38px); line-height: 1.2; letter-spacing: -.03em; max-width: 30ch; }
.about-grid .lead p + p { font-family: var(--body); font-weight: 400; font-size: 17px; line-height: 1.5; letter-spacing: 0; color: var(--muted); max-width: 46ch; }
.services { margin-top: clamp(28px, 4vw, 56px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; max-width: 760px; }
.services li { padding-block: 14px; border-top: 1px solid var(--line); transition: padding-left .4s var(--ease), color .3s; }
.services li:hover { padding-left: 10px; color: var(--accent); }
@media (max-width: 860px) { .about-grid { grid-template-columns: minmax(0, 1fr); } .services { grid-template-columns: minmax(0, 1fr); } }

.marquee { margin-top: clamp(40px, 6vw, 88px); overflow: hidden; border-block: 1px solid var(--line); padding-block: 18px; }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: var(--display); font-weight: 300; font-size: clamp(28px, 4vw, 60px); letter-spacing: -.035em; line-height: 1; padding-right: .6em; white-space: nowrap; }
.marquee span::after { content: "✶"; color: var(--accent); margin-left: .6em; font-size: .6em; vertical-align: .12em; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee { overflow-x: auto; } .marquee-track { animation: none; } }

/* ---------- contact ---------- */
.contact { padding-block: clamp(56px, 8vw, 120px) clamp(32px, 5vw, 64px); border-top: 1px solid var(--line); }
.contact .eyebrow { color: var(--muted); }
.mail { display: inline-flex; flex-wrap: wrap; margin-top: 18px; font-family: var(--display); font-weight: var(--set-display-weight); font-size: clamp(24px, 5.6vw, 96px); letter-spacing: -.04em; line-height: 1.3; overflow-wrap: anywhere; }
.mail .ch { display: inline-block; position: relative; overflow: hidden; height: 1.3em; }
.mail .ch span { display: block; transition: transform .6s var(--ease); transition-delay: calc(var(--i) * 18ms); }
.mail .ch span + span { position: absolute; left: 0; top: 100%; color: var(--accent); }
.mail:hover .ch span, .mail:focus-visible .ch span { transform: translateY(-100%); }
.contact-row { margin-top: clamp(28px, 4vw, 56px); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.contact-row ul { display: flex; gap: 22px; flex-wrap: wrap; }
.contact-row a, .copy { position: relative; padding-block: 4px; }
.contact-row a::after, .copy::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.contact-row a:hover::after, .copy:hover::after { transform: scaleX(1); transform-origin: left; }

footer { padding-block: 22px 28px; border-top: 1px solid var(--line); color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
footer .brand { height: 22px; color: var(--fg); }

/* ---------- project page ---------- */
.p-hero { padding-top: clamp(112px, 17vh, 190px); padding-bottom: clamp(28px, 4vw, 56px); }
.p-hero .eyebrow { color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.p-hero .eyebrow a:hover { color: var(--accent); }
.p-hero h1 { margin-top: 18px; font-family: var(--display); font-weight: var(--set-display-weight); font-size: clamp(46px, 12vw, 216px); line-height: .92; letter-spacing: -.04em; text-wrap: balance; overflow-wrap: anywhere; }
.p-hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .24em; }
.p-hero h1 .w > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; animation-delay: calc(.1s * var(--i) + .25s); }
@media (prefers-reduced-motion: reduce) { .p-hero h1 .w > span { transform: none; animation: none; } }
.p-summary { margin-top: clamp(4px, 1vw, 12px); max-width: 40ch; font-size: clamp(18px, 1.8vw, 24px); line-height: 1.35; }
.meta { margin-top: clamp(28px, 4vw, 56px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.meta dt { color: var(--muted); margin-bottom: 6px; }
.meta dd { font-size: 16px; }
@media (max-width: 760px) { .meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.player { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; isolation: isolate; background: color-mix(in srgb, var(--fg) 10%, var(--bg)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--fg) 16%, transparent); }
.player > .scene-host { position: absolute; inset: 0; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 4; }
.play { position: absolute; left: 16px; bottom: 16px; z-index: 3; display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px 11px 14px; background: var(--fg); color: var(--bg); border-radius: 99px; transition: transform .4s var(--ease), background .3s, color .3s; }
.play svg { width: 14px; height: 14px; }
.play:hover { transform: translateY(-3px); background: var(--accent); color: var(--bg); }
.player .tag { position: absolute; right: 14px; top: 12px; z-index: 3; padding: 4px 8px; background: color-mix(in srgb, var(--bg) 80%, transparent); border-radius: 3px; }

.story { padding-block: clamp(44px, 7vw, 110px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); }
.story .label { color: var(--muted); }
.story .text { display: grid; gap: 1em; font-size: clamp(20px, 2.2vw, 30px); line-height: 1.28; letter-spacing: -.015em; max-width: 36ch; }
.credits { margin-top: clamp(28px, 4vw, 56px); max-width: 520px; font-size: 15px; }
.credits div { display: flex; justify-content: space-between; gap: 16px; padding-block: 10px; border-top: 1px solid var(--line); }
.credits dt { color: var(--muted); }
@media (max-width: 860px) { .story { grid-template-columns: minmax(0, 1fr); } }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 28px); }
.gallery .player { aspect-ratio: 4 / 3; }
@media (max-width: 760px) { .gallery { grid-template-columns: minmax(0, 1fr); } }

.next { display: block; margin-top: clamp(56px, 9vw, 130px); padding-block: clamp(48px, 8vw, 120px); background: var(--n-bg); color: var(--n-fg); position: relative; overflow: hidden; }
.next .wrap { display: grid; gap: 18px; }
.next .mono { opacity: .7; }
.next b { display: block; font-family: var(--n-display); font-weight: 400; font-size: clamp(44px, 11vw, 190px); line-height: .92; letter-spacing: -.04em; transition: transform .8s var(--ease); overflow-wrap: anywhere; }
.next:hover b { transform: translateX(1.2vw); }
.next .arrow { display: inline-block; color: var(--n-accent); transition: transform .8s var(--ease); }
.next:hover .arrow { transform: translateX(.2em); }

/* ---------- cursor + page wipe ---------- */
/* keyframe pointer over videos (js/keyframe-cursor.js) */
.kf-cursor { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; visibility: hidden; will-change: transform; }
.kf-cursor.on { visibility: visible; }
.kf-cursor path { fill: var(--accent); stroke: #0A0A0B; stroke-width: 1.4; stroke-linejoin: round; }
.has-kf-cursor .tile-media, .has-kf-cursor .tile-media *, .has-kf-cursor .reel-media, .has-kf-cursor .reel-media *, .has-kf-cursor .reel-hero, .has-kf-cursor .reel-hero *, .has-kf-cursor .player, .has-kf-cursor .player * { cursor: none; }

.wipe { position: fixed; inset: 0; z-index: 200; pointer-events: none; background: var(--wipe, var(--bg)); clip-path: circle(0 at var(--x, 50%) var(--y, 50%)); }
.wipe.cover { clip-path: circle(150vmax at var(--x, 50%) var(--y, 50%)); }
.wipe.leaving { transition: clip-path .75s var(--ease-io); }
.wipe.arrive { clip-path: none; opacity: 1; transition: opacity .6s .05s var(--ease); }
.wipe.arrive.go { opacity: 0; }

/* ---------- about page (own page) ---------- */
.about-page { padding-block: clamp(120px, 14vw, 180px) clamp(40px, 6vw, 80px); }
.about-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: stretch; }
.about-photo { margin: 0; position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: color-mix(in srgb, var(--fg) 6%, var(--bg)); box-shadow: 0 0 0 1px var(--line); }
.about-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 73% 40%; }
.photo-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.about-text { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.about-text .lead { flex: 1; display: flex; flex-direction: column; gap: 1.1em; font-family: var(--display); font-weight: var(--set-display-weight); font-size: clamp(22px, 2.6vw, 38px); line-height: 1.2; letter-spacing: -.03em; max-width: none; }
.about-text .lead p:last-child { margin-top: auto; }
.about-text .lead p + p { font-family: var(--body); font-weight: 400; font-size: 17px; line-height: 1.5; letter-spacing: 0; color: var(--muted); max-width: none; }
.back { margin-top: clamp(40px, 6vw, 80px); }
.back a { color: var(--muted); transition: color .3s; }
.back a:hover { color: var(--accent); }
@media (max-width: 860px) { .about-top { grid-template-columns: minmax(0, 1fr); align-items: start; } .about-photo { max-width: 420px; } }

/* work grid: column 2 sits a little lower, so the reels are not perfectly in line */

/* footer social links: small and quiet */
.foot-social { display: inline-flex; gap: 14px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.foot-social a { color: var(--muted); transition: color .3s; }
.foot-social a:hover { color: var(--accent); }
