/* Volare Media console concept: full-screen footage, angular titles, menu that becomes a rail */
:root {
  --bg: #0C0D09;
  --volt: #D6FF3D;
  --lilac: #C9BAF4;
  --cream: #F4F3E8;
  --muted: rgba(244, 243, 232, 0.66);
  --faint: rgba(244, 243, 232, 0.32);
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --inset: clamp(12px, 1.8vw, 28px);
  --line: clamp(6.5rem, 21vh, 13rem);       /* the one level every section starts on: the top of the menu list and the top of the headline */
  --menu-f: clamp(2.2rem, min(5vw, 8.2vh), 4.4rem);   /* the big menu words; eight must fit a short laptop screen */
  --menu-b: clamp(4.5rem, 12vh, 8rem);                 /* how far the menu sits off the bottom of the screen */
  /* the bottom of the line under the corner headline, placed so its words sit on the same baseline as the menu's last word:
     0.172 = where the baseline sits in a menu word's row; 0.394rem = the same for the small line */
  --corner-b: calc(var(--menu-b) + var(--menu-f) * 0.172 - 0.394rem);
  --gutter: clamp(1.25rem, 4vw, 4rem);      /* the same side margin as every other page */
  --slant: 0.32em;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  height: 100svh;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: left; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 1px solid var(--lilac); outline-offset: 4px; }
::selection { background: var(--lilac); color: var(--bg); }

/* ---------- footage ---------- */
/* Work on the landing page: a grid of thin volt lines sits behind the small reel and drifts slowly.
   --grid runs from 1 (reel small) to 0 (reel full screen): the grid spreads outward and fades as the reel grows. */
.grid-bg { position: fixed; inset: -12%; pointer-events: none; opacity: calc(var(--grid, 0) * 0.55); transform: scale(calc(1 + (1 - var(--grid, 0)) * 0.45));
  --g: clamp(3.4rem, 6vw, 6rem);
  background-image: linear-gradient(to right, color-mix(in srgb, var(--volt) 60%, transparent) 1px, transparent 1px), linear-gradient(to bottom, color-mix(in srgb, var(--volt) 60%, transparent) 1px, transparent 1px);
  background-size: var(--g) var(--g);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 60%, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 60%, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 78%);
  animation: grid-drift 16s linear infinite; will-change: transform, opacity; }
@keyframes grid-drift { to { background-position: var(--g) var(--g); } }
@media (prefers-reduced-motion: reduce) { .grid-bg { animation: none; } }
#stage, .stage-fallback { position: fixed; inset: 0; width: 100%; height: 100%; }
.stage-fallback { display: none; }
.no-gl #stage { display: none; }
.no-gl .stage-fallback { display: block; }
.stage-fallback > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(0.55); opacity: 0; transition: opacity 0.6s; }
.stage-fallback > *.on { opacity: 1; }

/* ---------- sweeps: a thin volt line in front, a wide mauve band behind ---------- */
.sweeps { position: fixed; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.sweep { position: absolute; top: -20%; bottom: -20%; left: 0; opacity: 0; will-change: transform, opacity; }
.sweep--volt { width: 2px; background: var(--volt); box-shadow: 0 0 18px rgba(214, 255, 61, 0.5); }
.sweep--mauve { width: clamp(70px, 12vw, 200px); margin-left: calc(clamp(70px, 12vw, 200px) / -2); background: rgba(201, 186, 244, 0.12); border-right: 1px solid rgba(201, 186, 244, 0.6); mix-blend-mode: screen; }

/* ---------- logo: in exactly the place the inner pages' header puts it, so it does not move between pages ---------- */
.hud-top { position: fixed; z-index: 20; top: 0; left: var(--gutter); height: 4.5rem; display: flex; align-items: center; }
.logo { display: flex; padding: 0; }
.logo img { height: 1.9rem; width: auto; }

/* ---------- menu ---------- */
.menu { position: fixed; z-index: 15; left: var(--gutter); bottom: var(--menu-b); }
.menu ul { list-style: none; }
.menu li { line-height: 1; }
.menu button {
  position: relative; display: inline-block; transform-origin: 0 0;
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.035em;
  font-size: var(--menu-f); line-height: 1.06; color: var(--cream);
  margin-left: calc(var(--lsb, 0) * -1em);   /* each word starts on the same edge, whatever its first letter (set per word in console.js) */
  transition: color 0.45s var(--ease);
}
.menu button::before { /* the angular marker: mauve when you point at a word, volt on the one that's open */
  content: ""; position: absolute; left: -0.55em; top: 50%; width: 0.3em; height: 0.62em; margin-top: -0.31em;
  background: var(--lilac); transform: skewX(-24deg) scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease), background-color 0.45s var(--ease);
}
.menu button:hover { color: var(--lilac); }
.menu button:hover::before { transform: skewX(-24deg) scaleX(1); }
.menu button[aria-current="true"] { color: var(--volt); }
.menu button[aria-current="true"]::before { background: var(--volt); transform: skewX(-24deg) scaleX(1); }
/* before the script has started its animations nothing is on screen, so nothing can show and then vanish.
   (If the script never runs, everything simply appears after five seconds.) */
.is-loading .chapter .title, .is-loading .chapter .sub, .is-loading .menu li { opacity: 0; animation: failsafe 0.01s 5s forwards; }
@keyframes failsafe { to { opacity: 1; } }
/* intro: the menu waits behind the title card */
.is-intro .menu li { opacity: 0; }

/* rail: once a chapter is open the same words shrink to a slim list down the left */
.is-rail .menu { bottom: auto; top: var(--line); transform: none; }
/* the rail keeps the big menu's exact proportions (same spacing, line height and marker), only smaller,
   so each word shrinks into place without its letters shifting */
.is-rail .menu li + li { margin-top: 0.72rem; }
.is-rail .menu button { font-size: 0.98rem; color: var(--muted); }
.is-rail .menu button:hover { color: var(--lilac); }
.is-rail .menu button[aria-current="true"] { color: var(--volt); }

/* ---------- chapters ---------- */
.chapters { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
.chapter { position: absolute; inset: 0; pointer-events: none; }
.chapter[hidden] { display: none; }
.chapter.is-on { pointer-events: auto; }
.chapter > * { pointer-events: auto; }
.title { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.045em; line-height: 0.98; }
.title .ln { display: block; padding-bottom: 0.06em; margin-left: calc(var(--lsb, 0) * -1em); }   /* rows start on the same edge, whatever their first letter */
.ln-w { position: relative; display: inline-block; transform-origin: 0 0; }
.ln-t { display: inline-block; transform-origin: 0 60%; }
.bar { position: absolute; top: 0.02em; bottom: 0.06em; left: -0.6em; width: 0.14em; background: var(--lilac); transform: skewX(-24deg); opacity: 0; pointer-events: none; }
/* a very slow push on the open headline, like a title card */
.chapter.is-on .title { animation: push 20s var(--ease) infinite alternate; }
@keyframes push { from { scale: 1; } to { scale: 1.03; } }
.dot { color: var(--lilac); }
.sub { color: var(--muted); font-size: clamp(1rem, 1.25vw, 1.15rem); line-height: 1.5; max-width: 32rem; }
/* ---------- the link out of each chapter: the volt button with slanted ends; mauve wipes across on hover ---------- */
.more { --k: 1.05em; position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 0.8em; margin-top: 1.5rem; padding: 1em 1.9em 1em 2.1em;
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; font-size: 1.05rem; line-height: 1;
  text-decoration: none; color: var(--bg); }
.more::before { content: ""; position: absolute; inset: 0; z-index: -1; clip-path: polygon(var(--k) 0, 100% 0, calc(100% - var(--k)) 100%, 0 100%);
  background: linear-gradient(105deg, var(--lilac) 0 46%, transparent 46.2%) 100% 0 / 300% 100% no-repeat, var(--volt); transition: background-position 0.7s var(--ease); }
.more:hover::before { background-position: 0 0, 0 0; }
.more-i { display: inline-block; width: 0.5em; height: 0.5em; border-top: 2px solid currentColor; border-right: 2px solid currentColor; rotate: 45deg; transition: translate 0.5s var(--ease); }
.more:hover .more-i { translate: 0.35em 0; }
/* the slanted left end makes the button look indented, so it hangs out into the margin to sit level with the text above */
.chapter .more { margin-left: -0.95em; }

/* home title: a centred title card during the intro, then it settles bottom right */
.chapter[data-id="home"] .title { position: absolute; right: var(--gutter); bottom: calc(var(--corner-b) + var(--subh, 1.425rem) + 0.75rem); text-align: right; font-size: clamp(1.9rem, 3.6vw, 3.6rem); transform-origin: 100% 100%; }
/* the line under the corner headline sits on the same baseline as the last word of the menu across from it; the headline sits a fixed
   step above the line, however many rows the line takes (--subh is its height, kept up to date in console.js) */
.chapter[data-id="home"] .sub { position: absolute; right: var(--gutter); top: auto; bottom: var(--corner-b); text-align: right; font-size: 0.95rem; color: var(--volt);
  max-width: min(40rem, 48vw); margin-right: calc(var(--rsb, 0) * -1em); }
/* right-hand edges line up: every row of the corner headline ends on the same edge, whatever its last letter */
.chapter[data-id="home"] .title .ln { margin-left: 0; margin-right: calc((0.045 - var(--rsb, 0.045)) * 1em); }
.is-intro .chapter[data-id="home"] .title { right: 50%; bottom: 50%; transform: translate(50%, 50%); text-align: center; font-size: clamp(2.8rem, 7.4vw, 7.4rem); }
.is-intro .chapter[data-id="home"] .title .ln { margin-left: 0; margin-right: 0; }   /* centred on the opening card: no edge to line up with */
.is-intro .chapter[data-id="home"] .sub { opacity: 0; }

/* open chapters: headline beside the rail */
.chapter:not([data-id="home"]) { --left: calc(var(--gutter) + clamp(9rem, 14vw, 14rem)); }
.chapter:not([data-id="home"]) .title { position: absolute; transform-origin: 0 100%; left: var(--left); right: var(--gutter); bottom: clamp(13rem, 34vh, 20rem); font-size: clamp(2.4rem, 5.6vw, 5.8rem); }
.chapter:not([data-id="home"]) .sub,
.chapter:not([data-id="home"]) .more,
.chapter--contact .contact-big { position: absolute; left: var(--left); }
.chapter:not([data-id="home"]) .sub { bottom: clamp(8.5rem, 22vh, 13rem); }
.chapter:not([data-id="home"]) .more { bottom: clamp(5.2rem, 13vh, 8rem); }

/* contact: the phone and email in big type */
.chapter--contact .title { bottom: clamp(21rem, 56vh, 32rem) !important; font-size: clamp(1.8rem, 3.4vw, 3.4rem) !important; color: var(--muted); }
.chapter--contact .contact-big { bottom: clamp(11rem, 28vh, 17rem); display: flex; flex-direction: column; }
.contact-big a { margin-left: calc(var(--lsb, 0) * -1em); font-family: var(--font-display); font-weight: 600; letter-spacing: -0.04em; font-size: clamp(2.2rem, 5.4vw, 5.4rem); line-height: 1.04; text-decoration: none; transition: color 0.45s var(--ease); }
.contact-big a:hover { color: var(--volt); }

/* credits: a slow roll, like the end of a film */
.chapter--credits .roll { position: absolute; top: 12vh; bottom: 12vh; left: var(--left); right: var(--gutter); overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); }
.roll-inner { padding: 76vh 0; text-align: center; will-change: transform; }
.roll-head { font-size: 0.9rem; color: var(--lilac); margin: 4.5rem 0 1.6rem; }
.roll-head:first-child { margin-top: 0; }
.credits div { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; align-items: baseline; margin-bottom: 1rem; }
.credits dt { text-align: right; font-size: 0.92rem; color: var(--muted); }
.credits dd { text-align: left; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 2vw, 1.9rem); letter-spacing: -0.03em; }
.credit-list { list-style: none; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.2rem, 1.8vw, 1.7rem); letter-spacing: -0.03em; line-height: 1.55; }
.credit-list--cols { columns: 2; column-gap: 3rem; }
.roll-end { margin-top: 6rem; display: flex; justify-content: center; }
.roll-end img { height: 54px; width: auto; }

/* ---------- phones ---------- */
@media (max-width: 760px) {
  /* a phone with its browser bars showing is short: the words size to the height as well as the width, so the menu never climbs into the title */
  .menu { left: var(--gutter); bottom: clamp(2.6rem, 9vh, 7.5rem); }
  .menu button { font-size: clamp(1.5rem, min(9.4vw, 5.2vh), 2.8rem); }
  /* with a chapter open the words stay a list down the left, under the logo: never a bar across the top */
  .is-rail .menu { top: 4.7rem; bottom: auto; transform: none; left: var(--gutter); }
  .is-rail .menu li + li { margin-top: 0.34rem; }
  .is-rail .menu button { font-size: 0.77rem; }
  /* the headline sits under the logo and the menu at the foot, with the picture between them */
  .chapter[data-id="home"] { --tf: clamp(2.2rem, 10vw, 3rem); --lines: 2; --tt: max(6.6rem, 15vh); }
  .chapter[data-id="home"]:has(.title--page) { --tf: clamp(1.9rem, 8.6vw, 2.6rem); --lines: 3; }
  .chapter[data-id="home"] .title { right: var(--gutter); left: var(--gutter); bottom: auto; top: var(--tt); text-align: left; font-size: var(--tf); transform-origin: 0 0; }
  .chapter[data-id="home"] .sub { right: var(--gutter); left: var(--gutter); bottom: auto; top: calc(var(--tt) + var(--lines) * 1.04 * var(--tf) + 0.9rem); text-align: left; max-width: none; margin-right: 0; }
  .chapter[data-id="home"] .title .ln { margin-right: 0; margin-left: calc(var(--lsb, 0) * -1em); }
  .is-intro .chapter[data-id="home"] .title { top: 50%; left: 50%; right: auto; bottom: auto; transform: translate(-50%, -50%); width: calc(100% - 2 * var(--gutter)); text-align: center; font-size: clamp(2.6rem, 12vw, 3.6rem); }
  .chapter:not([data-id="home"]) { --left: var(--gutter); }
  .chapter:not([data-id="home"]) .title { bottom: 15.5rem; font-size: clamp(2.2rem, 10vw, 3rem); }
  .chapter:not([data-id="home"]) .sub { bottom: 8rem; right: var(--gutter); font-size: 0.98rem; }
  .chapter:not([data-id="home"]) .more { bottom: 4.6rem; }
  .chapter .more { margin-left: -0.5em; }
  .chapter--contact .title { bottom: 18.5rem !important; font-size: 1.5rem !important; }
  .chapter--contact .contact-big { bottom: 12rem; }
  .contact-big a { font-size: clamp(1.7rem, 8vw, 2.4rem); }
  .chapter--credits .roll { top: 13vh; bottom: 9vh; }
  .credits div { grid-template-columns: 1fr; gap: 0.2rem; text-align: center; margin-bottom: 1.4rem; }
  .credits dt, .credits dd { text-align: center; }
  .credit-list--cols { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .roll-inner { padding: 2rem 0; }
  .chapter.is-on .title { animation: none; }
  .chapter--credits .roll { overflow-y: auto; }
}

/* ---------- moving to an inner page: the new page wipes in on the slant ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.55s var(--ease) both; }
::view-transition-new(root) { animation: vt-in 0.8s var(--ease) both; }
@keyframes vt-out { to { opacity: 0.2; } }
@keyframes vt-in { from { clip-path: polygon(0 0, 0 0, -28% 100%, 0 100%); } to { clip-path: polygon(0 0, 128% 0, 100% 100%, 0 100%); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }

/* ---------- inner pages: the same console, with a page's own chapters ---------- */
/* a chapter can hold more than a headline: its pieces stack up from the bottom left, beside the rail */
.stack { position: absolute; left: var(--left); right: var(--gutter); top: var(--line); display: flex; flex-direction: column; align-items: flex-start; gap: clamp(1rem, 2.4vh, 1.7rem); }
.chapter:not([data-id="home"]) .stack .title,
.chapter:not([data-id="home"]) .stack .sub { position: static; }
.chapter:not([data-id="home"]) .stack .more { position: relative; left: auto; bottom: auto; }   /* relative, not static: the button's volt shape is drawn against it */
/* one headline size on every page; the small lift lines its capitals up with the first word of the menu list */
.chapter:not([data-id="home"]) .stack .title { font-size: clamp(2.2rem, min(5.2vw, 9vh), 5.4rem); max-width: 20ch; margin-top: -0.1em; }
.chapter--contact .stack .title { max-width: none; margin-top: 0; }
.chapter--contact .stack .contact-big { position: static; }
.stack .sub { max-width: 44rem; }   /* about 75 characters a line: wide enough that a full paragraph and a list share one screen */
.stack .more { margin-top: 0.5rem; }
.points { list-style: none; }
.points li { margin-left: calc(var(--lsb, 0) * -1em); font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; font-size: clamp(1.25rem, 2.1vw, 2rem); line-height: 1.24; color: var(--cream); width: fit-content; }
.shots { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.8rem, 1.6vw, 1.5rem); width: 100%; max-width: 72rem; }   /* every row of pictures or tiles ends on the same right-hand mark */
.shots .project-name { margin-top: 0.6rem; font-size: clamp(1rem, 1.35vw, 1.3rem); }
.shots .project-shot i { width: 3.4rem; height: 2.1rem; clip-path: polygon(0.64rem 0, 100% 0, calc(100% - 0.64rem) 100%, 0 100%); }
.shots .project-shot i::after { border-left-width: 0.7rem; border-top-width: 0.42rem; border-bottom-width: 0.42rem; margin-left: 0.14rem; }
/* a section with more to read than the screen holds scrolls inside itself; its last lines fade out to show there is more */
.stack { max-height: calc(100svh - var(--line) - 2.6rem); }
.stack > * { flex-shrink: 0; }
.stack.is-long { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; margin-left: -1.4rem; padding-left: 1.4rem; padding-bottom: 3.2rem;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 3rem), transparent); mask-image: linear-gradient(#000 calc(100% - 3rem), transparent); }
.stack.is-long::-webkit-scrollbar { display: none; }
.stack .sub + .sub { margin-top: -0.4rem; }
/* a plain line of credit under the text (who sponsored what), with a partner's logo beside it if there is one */
.credit-line { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem 1.4rem; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; font-size: clamp(1rem, 1.3vw, 1.2rem); color: var(--cream); }
.credit-line img { height: 2.3rem; width: auto; display: block; }
/* a link inside one of these lines: same words, a volt underline */
.credit-line a, .stack .sub a { color: inherit; text-decoration: underline; text-decoration-color: var(--volt); text-decoration-thickness: 2px; text-underline-offset: 0.22em; transition: color 0.45s var(--ease); }
.credit-line a:hover, .stack .sub a:hover { color: var(--volt); }
/* the organisations we support: logo, name and a line each; each opens its section */
.orgs { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.2rem, 2.6vw, 2.6rem); width: 100%; max-width: 72rem; }
.org { display: block; width: 100%; text-align: left; color: inherit; }
.org-logo { display: block; height: clamp(2.8rem, 5vw, 4.2rem); width: auto; max-width: 100%; object-fit: contain; object-position: left; margin-bottom: 0.9rem; }
.org .project-name { margin-top: 0; font-size: clamp(1.15rem, 1.7vw, 1.6rem); }
a.org { text-decoration: none; }   /* a tile that links to that event's films */
button.org:hover .project-name, a.org:hover .project-name { color: var(--volt); }
.shots .project-note, .org .project-note { font-size: 0.92rem; }
/* pictures that are not videos (websites we built): the same row, no play mark */
.shots--pics { grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 72rem; }
.shots--pics .project-shot { aspect-ratio: 16 / 10; }
.shots--pics .project-shot img { object-position: top; }
.shots--pics .project-name { font-size: clamp(0.95rem, 1.15vw, 1.15rem); }
a.project, span.project { color: inherit; text-decoration: none; }
/* the contact form: plain fields on the picture, square, with the same volt button */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.4rem; width: 100%; max-width: 40rem; }
.form-field { display: grid; gap: 0.3rem; }
.form-field--wide, .form-notice, .form > .more { grid-column: 1 / -1; }
.form-field span { font-size: 0.85rem; color: var(--muted); }
.form-field em { font-style: normal; opacity: 0.7; }
.form input, .form textarea { font: inherit; color: var(--cream); background: rgba(12, 13, 9, 0.5); border: 0; border-bottom: 1px solid rgba(244, 243, 232, 0.4);
  padding: 0.6rem 0.7rem; border-radius: 0; width: 100%; outline: none; resize: none; transition: border-color 0.45s var(--ease); }
.form input:focus, .form textarea:focus { border-color: var(--volt); }
.form ::placeholder { color: rgba(244, 243, 232, 0.35); }
.form > .more { justify-self: start; cursor: pointer; }
.form-notice { color: var(--volt); font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.form-notice[hidden] { display: none; }
/* an inner page's own headline sits in the corner the way "Videos made with intention." does; it runs a little longer, so a little smaller */
.chapter[data-id="home"] .title--page { font-size: clamp(1.7rem, 3vw, 3rem); }
/* when the page opens, that headline is in the centre of the screen, big */
.is-intro .chapter[data-id="home"] .title--page { font-size: clamp(2.4rem, 6.4vw, 6.6rem); }
@media (max-width: 760px) {
  /* on a phone the menu list sits above the section, so the section starts just under it, at the same spot on every section of the page */
  .stack { left: var(--gutter); top: calc(4.4rem + var(--n, 7) * 1.34rem + 1rem); gap: 0.85rem; }
  .chapter:not([data-id="home"]) .stack .title { margin-top: 0; }
  .chapter:not([data-id="home"]) .stack .title { font-size: clamp(1.9rem, 8.4vw, 2.6rem); }
  .stack .sub { font-size: 0.98rem; }
  .points li { font-size: clamp(1rem, 2.8vh, 1.2rem); }
  /* thumbnails size to the height of the phone too, so a row of videos never climbs into the menu */
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: min(100%, 40vh); gap: 0.6rem 0.8rem; }
  .shots .project-name { font-size: 0.92rem; margin-top: 0.35rem; }
  .shots--pics { max-width: 100%; }
  .chapter[data-id="home"] .title--page { font-size: var(--tf); }
  .is-intro .chapter[data-id="home"] .title--page { font-size: clamp(2rem, 9.6vw, 3rem); }
  .stack { max-height: calc(100svh - (4.4rem + var(--n, 7) * 1.34rem + 1rem) - 1.6rem); }
  .orgs { grid-template-columns: 1fr; gap: 0.9rem; }
  .org { display: grid; grid-template-columns: 4.6rem 1fr; column-gap: 0.9rem; align-items: start; }
  .org-logo { grid-row: span 2; height: auto; width: 100%; margin: 0.15rem 0 0; }
  .shots .project-note, .org .project-note { font-size: 0.85rem; margin-top: 0.2rem; }
  .credit-line img { height: 1.9rem; }
  .shots--pics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shots--pics .project-name { font-size: 0.82rem; margin-top: 0.35rem; }
  .form { gap: 0.55rem 0.8rem; }
  .form input, .form textarea { padding: 0.45rem 0.6rem; }
  .form-field span { font-size: 0.78rem; }
}

/* ---------- our work: the reel frame, then the projects ---------- */
/* the footage canvas and the "Play reel" label share one transform (set by the script), so the label rides the frame */
#stage, .reel { transform-origin: 50% 85%; will-change: transform; }
.chapter--work { --left: calc(var(--gutter) + clamp(9rem, 14vw, 14rem)); }
.chapter:not([data-id="home"]) .work-intro { bottom: auto; top: var(--line); margin-top: -0.1em; font-size: clamp(2rem, 3.6vw, 3.6rem); }
.chapter > .reel { position: fixed; inset: 0; z-index: 11; display: grid; place-items: center; pointer-events: none; }
.reel-play { display: flex; align-items: center; gap: 0.3em; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.04em;
  font-size: clamp(3rem, 11.5vw, 12rem); line-height: 1; color: var(--cream); opacity: 0; pointer-events: none; text-shadow: 0 0.02em 0.5em rgba(12, 13, 9, 0.35); }
.reel.is-live .reel-play { pointer-events: auto; }
.reel-play i { display: grid; place-items: center; width: 1.2em; height: 0.74em; background: var(--volt); clip-path: polygon(0.22em 0, 100% 0, calc(100% - 0.22em) 100%, 0 100%); transition: background-color 0.45s var(--ease); }
.reel-play i::after { content: ""; border-left: 0.26em solid var(--bg); border-top: 0.16em solid transparent; border-bottom: 0.16em solid transparent; margin-left: 0.05em; }
.reel-play:hover i { background: var(--lilac); }
/* while the big frame sits under the rail, the rail's words go full strength with a soft shadow so they stay readable */
.over-reel .menu button { color: var(--cream); text-shadow: 0 0 14px rgba(12, 13, 9, 0.8); }
.over-reel .menu button[aria-current="true"] { color: var(--volt); }

.projects { position: absolute; left: 0; right: 0; top: 0; visibility: hidden; will-change: transform;
  padding: clamp(5.5rem, 13vh, 8.5rem) var(--gutter) clamp(4rem, 10vh, 7rem) var(--left); }
.project-grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.2rem, 4.5vw, 4.5rem) clamp(1.5rem, 3vw, 3rem); }
.project { display: block; width: 100%; }
.project-shot { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #14160F; }
.project-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.project:hover .project-shot img, .project:focus-visible .project-shot img { transform: scale(1.04); }
.project-shot i { position: absolute; inset: 0; margin: auto; width: 5rem; height: 3.1rem; display: grid; place-items: center; background: var(--volt);
  clip-path: polygon(0.95rem 0, 100% 0, calc(100% - 0.95rem) 100%, 0 100%); transition: background-color 0.45s var(--ease); }
.project-shot i::after { content: ""; border-left: 1rem solid var(--bg); border-top: 0.6rem solid transparent; border-bottom: 0.6rem solid transparent; margin-left: 0.2rem; }
.project:hover .project-shot i { background: var(--lilac); }
.project-name { display: block; margin-top: 1rem; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.035em; font-size: clamp(1.5rem, 2.4vw, 2.3rem); line-height: 1.08; transition: color 0.45s var(--ease); }
.project:hover .project-name { color: var(--volt); }
.project-note { display: block; margin-top: 0.4rem; color: var(--muted); font-size: 1rem; line-height: 1.45; }
.chapter:not([data-id="home"]) .projects .more { position: relative; left: auto; bottom: auto; margin-top: clamp(3rem, 7vw, 5rem); }

/* ---------- player: the reel or a project, with sound ---------- */
.player { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(12, 13, 9, 0.95);
  padding: clamp(4rem, 9vh, 6rem) var(--gutter) var(--gutter); opacity: 0; transition: opacity 0.5s var(--ease); }
.player.is-open { opacity: 1; }
.player[hidden] { display: none; }
.player-box { width: min(100%, calc((100svh - 9rem) * 16 / 9)); aspect-ratio: 16 / 9; background: #000; }
.player-box video, .player-box iframe { display: block; width: 100%; height: 100%; border: 0; }
.player-close { position: absolute; top: 1.35rem; right: var(--gutter); font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: -0.02em; color: var(--cream); transition: color 0.45s var(--ease); }
.player-close:hover { color: var(--volt); }
/* the demo reel: our own file, nothing on screen but the picture. The line and Close fade out when the pointer rests. */
.player--clean { padding: clamp(1rem, 2.4vw, 2.2rem); background: var(--bg); }      /* solid, so nothing of the page shows around the picture */
.player--clean .player-box { position: relative; width: min(100%, calc((100svh - 2 * clamp(1rem, 2.4vw, 2.2rem)) * 16 / 9)); }
.player--clean video { cursor: pointer; }
.player--clean video:focus { outline: none; }
.player--clean:not(.is-awake) { cursor: none; }
.player--clean:not(.is-awake) video { cursor: none; }
.player-line { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; display: flex; align-items: flex-end; cursor: pointer; }
.player-line::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(244, 243, 232, 0.25); }
.player-line i { position: relative; display: block; width: 100%; height: 2px; background: var(--volt); transform: scaleX(0); transform-origin: left; }
.player--clean .player-close { z-index: 1; text-shadow: 0 0 12px rgba(12, 13, 9, 0.9); }
.player--clean .player-close, .player--clean .player-line { opacity: 0; transition: opacity 0.5s var(--ease), color 0.45s var(--ease); }
.player--clean.is-awake .player-close, .player--clean.is-awake .player-line { opacity: 1; }

/* while the project list scrolls, a soft dark band keeps the logo (and, on phones, the rail) clear of what passes underneath */
body::before { content: ""; position: fixed; top: 0; left: 0; right: 0; height: 5.5rem; z-index: 12; pointer-events: none;
  background: linear-gradient(var(--bg) 62%, rgba(12, 13, 9, 0)); opacity: 0; transition: opacity 0.5s var(--ease); }
body.in-list::before { opacity: 1; }

@media (max-width: 760px) {
  body::before { height: 8rem; background: linear-gradient(var(--bg) 78%, rgba(12, 13, 9, 0)); }
  .chapter--work { --left: var(--gutter); }
  .chapter:not([data-id="home"]) .work-intro { top: calc(4.4rem + var(--n, 7) * 1.34rem + 1rem); margin-top: 0; font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .projects { padding-top: 8rem; }
  .project-grid { grid-template-columns: minmax(0, 1fr); }
}
