/* =================================================================
   bynexn — stylesheet (revamp, Oct 2026)

   HOW THIS FILE IS ORGANISED
   0. Font        self-hosted Archivo
   1. Tokens      colours, type sizes, spacing (change these first)
   2. Base        resets and defaults
   3. Site chrome header, footer, intro, buttons
   4. Homepage    hero, work grid, music videos, about, store, contact
   5. Project     project header, facts, media, before/after, stills
   6. Overlays    video modal, stills lightbox
   7. Motion      page transitions, reduced motion
   ================================================================= */


/* 0. FONT ---------------------------------------------------------- */
/* Archivo (SIL Open Font License, see assets/fonts/OFL.txt), self-hosted.
   One variable file covers every weight (100-900) and width (62%-125%). */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("assets/fonts/archivo-latin.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: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("assets/fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


/* Space Mono (SIL Open Font License), self-hosted: small details and the hero line */
@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("assets/fonts/space-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("assets/fonts/space-mono-700.woff2") format("woff2");
}


/* 1. TOKENS -------------------------------------------------------- */

:root {
  /* Dark is the default theme */
  --bg: #000;
  --text: #ededed;
  --muted: #8f8f8f;
  --faint: #5c5c5c;
  --line: rgba(255, 255, 255, 0.14);
  --surface: #151515;
  --accent: #ff0044;          /* bynexn pink: logo, hover, focus only */

  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "Space Mono", "Courier New", monospace;

  /* Type scale */
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.375rem, 2vw, 1.625rem);
  --step-3: clamp(1.75rem, 3.2vw, 2.5rem);
  --step-4: clamp(2.25rem, 5.4vw, 4.5rem);
  --display: clamp(3rem, 10.5vw, 9.5rem);

  /* Layout */
  --wrap: 1760px;                     /* widest the content gets on big screens */
  --gutter: clamp(20px, 4vw, 64px);    /* space at the left and right edges */
  --section: clamp(88px, 11vw, 160px);
  --header-h: 64px;

  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f4f4f2;
  --text: #0e0e0e;
  --muted: #646464;
  --faint: #a0a0a0;
  --line: rgba(0, 0, 0, 0.14);
  --surface: #e6e6e3;
  color-scheme: light;
}


/* 2. BASE ---------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, dl, dd, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.text-link {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.15s;
}
.text-link:hover { color: var(--text); }

/* Placeholder shown if an image or video file is missing */
.ph {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  color: var(--faint);
  font-size: var(--step--1);
}


/* 3. SITE CHROME --------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}
.brand img { width: auto; height: 26px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
  font-size: 0.9375rem;
  font-weight: 500;
}
.site-nav a { color: var(--muted); transition: color 0.15s; }
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--text); }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s;
}
.theme-toggle:hover { color: var(--text); }
.theme-toggle__moon { display: none; }
:root[data-theme="light"] .theme-toggle__sun { display: none; }
:root[data-theme="light"] .theme-toggle__moon { display: block; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 2px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn:hover { background: var(--accent); color: #fff; }
.btn--light { background: #fff; color: #000; }

.site-footer {
  margin-top: var(--section);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--step--1);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  padding-top: 28px;
  padding-bottom: 36px;
}
.site-footer__brand img { width: auto; height: 20px; }
.site-footer__copy { margin-right: auto; }

.social { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.social a { color: var(--muted); transition: color 0.15s; }
.social a:hover { color: var(--text); }

/* One-time logo intro (once per visit) */
.intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}
.intro--exit { transform: translateY(-100%); }
.intro img {
  width: clamp(180px, 24vw, 300px);
  animation: intro-in 0.4s ease both;
}
@keyframes intro-in { from { opacity: 0; transform: translateY(8px); } }


/* 4. HOMEPAGE ------------------------------------------------------ */

/* Hero: full-bleed reel with a live timecode */
.hero {
  position: relative;
  height: min(calc(100svh - var(--header-h)), 940px);
  min-height: 520px;
  overflow: hidden;
  background: #000;
  color: #fff;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.35) 42%,
    rgba(0, 0, 0, 0) 68%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: end;
  align-items: end;
  gap: 24px 40px;
  height: 100%;
  padding-bottom: clamp(32px, 7vh, 72px);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: clamp(24px, 3vw, 36px);
}
.hero__link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.hero__link:hover { color: #fff; }

.hero__tc {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.hero__rec {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: rec 2s steps(1, end) infinite;
}
@keyframes rec { 50% { opacity: 0.25; } }

/* Section scaffolding */
.section { padding-top: var(--section); }
.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: clamp(28px, 3.5vw, 48px);
}
.section__title {
  font-size: var(--step-3);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
/* Two-column layout: heading left, content right */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 20px clamp(24px, 5vw, 80px);
  align-items: start;
}
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split__body > p { max-width: 62ch; }
.split__body > p + p { margin-top: 1em; }
.lead {
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.split__body > .lead + p { margin-top: 1.2em; }

.fact-list { margin-top: 40px; border-top: 1px solid var(--line); }
.fact-list > div {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) 3fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.fact-list dt { color: var(--muted); }

/* Selected work */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(44px, 5vw, 80px) clamp(16px, 2vw, 28px);
}
.work-item { display: block; }
.work-item__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface);
}
.work-item__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.work-item__text {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 16px;
  margin-top: 14px;
}
.work-item__title {
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  transition: color 0.15s;
}
.work-item:hover .work-item__title { color: var(--accent); }
.work-item__year {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.work-item__meta,
.work-item__role {
  grid-column: 1 / -1;
  font-size: var(--step--1);
}
.work-item__meta { margin-top: 4px; color: var(--text); }
.work-item__role { color: var(--muted); }

/* Music video credits */
.credits {
  width: 100%;
  border-collapse: collapse;
}
.credits th {
  padding: 0 16px 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--step--1);
  font-weight: 500;
  text-align: left;
}
.credits td {
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.credits tbody tr { cursor: pointer; }
.credits tbody tr:hover td { background: color-mix(in srgb, var(--text) 4%, transparent); }
.credits__media { width: 128px; }
.credits__thumb {
  width: 112px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface);
}
.credits__title {
  padding: 0;
  border: 0;
  background: none;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.15s;
}
.credits tbody tr:hover .credits__title { color: var(--accent); }
.credits__artist { color: var(--text); }
.credits__role { color: var(--muted); }
.credits__watch {
  width: 1%;
  white-space: nowrap;
  color: var(--muted);
  font-size: var(--step--1);
}
.credits__watch svg { display: inline-block; vertical-align: -1px; margin-right: 8px; }
.credits tbody tr:hover .credits__watch { color: var(--text); }

/* Store (home teaser and store page) */
.store-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 28px clamp(28px, 5vw, 80px);
  align-items: center;
}
.store-featured__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface);
}
.store-featured__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.slides-btn {
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}
.slides-btn:hover { background: rgba(0, 0, 0, 0.8); }
.slides-btn--prev { left: 12px; }
.slides-btn--next { right: 12px; }
.slides-dots {
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  display: flex;
  justify-content: center;
}
.slides-dot {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.slides-dot::before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  margin: auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}
.slides-dot.is-active::before { background: #fff; }

.store-featured__info .label { color: var(--muted); font-size: var(--step--1); }
.store-featured__title {
  margin-top: 6px;
  font-size: var(--step-3);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.store-featured__price { margin-top: 10px; font-size: var(--step-1); }
.store-featured__list { margin-top: 24px; border-top: 1px solid var(--line); }
.store-featured__list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.buy-btn {
  display: inline-flex;
  align-items: center;
  height: 50px;
  margin-top: 28px;
  padding: 0 24px;
  border-radius: 2px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}
.buy-btn:hover { background: var(--text); color: var(--bg); }
.store-featured__trust { margin-top: 12px; color: var(--muted); font-size: var(--step--1); }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px clamp(16px, 2vw, 28px);
}
.shop-card { position: relative; display: block; }
.shop-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.shop-card__media img { width: 100%; height: 100%; object-fit: cover; }
.shop-card__info { margin-top: 12px; }
.shop-card__info h3 { font-size: var(--step-0); font-weight: 600; }
.shop-card:hover h3 { color: var(--accent); }
.shop-card__price { color: var(--muted); font-size: var(--step--1); }
.shop-card__price s { margin-right: 6px; }
.shop-card__badge {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 1;
  padding: 3px 8px;
  border-radius: 2px;
  background: #fff;
  color: #000;
  font-size: 0.75rem;
  font-weight: 600;
}
.shop-card__badge--sale { background: var(--accent); color: #fff; }

/* Contact */
.contact__intro { margin-top: 14px; max-width: 40ch; color: var(--muted); }
.contact__email {
  display: inline-block;
  margin-top: 28px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  transition: color 0.15s, border-color 0.15s;
}
.contact__email:hover { color: var(--accent); border-color: var(--accent); }
.contact__email + .social { margin-top: 28px; }

.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: var(--step--1);
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--text);
  font: inherit;
  transition: border-color 0.15s;
}
.field input:focus,
.field textarea:focus { border-color: var(--text); outline: none; }
.field textarea { min-height: 160px; resize: vertical; }
.form__hp { position: absolute; left: -9999px; }
.form__submit { justify-self: start; }
.form__status { min-height: 1.5em; font-size: var(--step--1); color: var(--muted); }
.form__status.ok { color: var(--text); }
.form__status.err { color: var(--accent); }


/* 5. PROJECT PAGES ------------------------------------------------- */

.project-header { padding-top: clamp(28px, 4vw, 56px); }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: var(--step--1);
  transition: color 0.15s;
}
.back-link:hover { color: var(--text); }

/* The big condensed title is the signature type moment */
.project-title {
  margin-top: clamp(18px, 2.5vw, 32px);
  font-size: var(--display);
  font-weight: 800;
  font-stretch: 70%;
  line-height: 0.88;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  overflow-wrap: break-word;
  text-wrap: balance;
}
.page-intro { margin-top: 20px; max-width: 52ch; color: var(--muted); }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px 32px;
  margin-top: clamp(28px, 4vw, 52px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}
.facts dt { color: var(--muted); font-size: var(--step--1); }
.facts dd { margin-top: 4px; }

.block { padding-top: clamp(64px, 8vw, 120px); }
.block--main { padding-top: clamp(32px, 4vw, 56px); }
.block__title {
  margin-bottom: 20px;
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.split > .block__title { margin-bottom: 0; }
.block__sub {
  margin: 32px 0 14px;
  color: var(--muted);
  font-size: var(--step-0);
  font-weight: 500;
}
.block__title + .block__sub { margin-top: 0; }
.block__hint { margin: -10px 0 20px; color: var(--muted); font-size: var(--step--1); }

.media { background: var(--surface); }
.media iframe,
.media video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  object-fit: cover;
}
.video-pair {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.media iframe.photo__video--tall { aspect-ratio: 9 / 16; }

/* Before / after slider */
.compare {
  --pos: 50%;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface);
  user-select: none;
  -webkit-user-select: none;
}
.compare--wide { aspect-ratio: 1920 / 860; }
.compare__before,
.compare__after { position: absolute; inset: 0; }
.compare__before { z-index: 1; }
.compare__after {
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.compare__before > img, .compare__before > video, .compare__before > .ph,
.compare__after > img, .compare__after > video, .compare__after > .ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.compare__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  z-index: 3;
  width: 2px;
  margin-left: -1px;
  background: #fff;
  pointer-events: none;
}
.compare__handle span {
  position: absolute;
  top: 50%; left: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-size: 1rem;
  font-weight: 600;
  transform: translate(-50%, -50%);
}
.compare__badge {
  position: absolute;
  bottom: 12px;
  z-index: 1;
  padding: 4px 9px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
  pointer-events: none;
}
.compare__badge--after { left: 12px; }
.compare__badge--before { right: 12px; }
.compare__range {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}

/* Stills and asset grids */
.stills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.stills-grid--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stills-grid--single { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stills-grid + .stills-grid { margin-top: 8px; }
.stills-grid--single + .stills-grid { margin-top: 16px; }
.stills-grid img,
.stills-grid video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface);
}
.stills-grid img[data-full] { cursor: zoom-in; transition: opacity 0.15s; }
.stills-grid img[data-full]:hover { opacity: 0.85; }

/* Previous / next project */
.pager {
  margin-top: var(--section);
  border-top: 1px solid var(--line);
}
.pager__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-top: 28px;
}
.pager__link { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pager__link--next { align-items: flex-end; text-align: right; }
.pager__dir { color: var(--muted); font-size: var(--step--1); }
.pager__name {
  font-size: clamp(1.5rem, 4.4vw, 3.5rem);
  font-weight: 800;
  font-stretch: 70%;
  line-height: 0.95;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  transition: color 0.15s;
}
.pager__link:hover .pager__name { color: var(--accent); }
.pager + .site-footer { margin-top: clamp(64px, 8vw, 112px); }


/* 6. OVERLAYS ------------------------------------------------------ */

/* Video modal (showreel and music videos) */
.vmodal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(12px, 4vw, 48px);
}
.vmodal[hidden] { display: none; }
.vmodal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
}
.vmodal__panel {
  position: relative;
  width: min(1100px, 100%);
  max-height: 100%;
  overflow-y: auto;
  background: var(--bg);
  overscroll-behavior: contain;
}
.vmodal__frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.vmodal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vmodal__close {
  position: absolute;
  top: 8px; right: 8px;
  z-index: 2;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.vmodal__close:hover { background: var(--accent); }
.vmodal__meta { padding: 22px clamp(18px, 3vw, 32px) 28px; }
.vmodal__title { font-size: var(--step-2); font-weight: 600; line-height: 1.2; }
.vmodal__desc { margin-top: 10px; color: var(--muted); }
.vmodal__desc[hidden], .vmodal__crew[hidden] { display: none; }
.vmodal__crew { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.crew__title { margin-bottom: 14px; color: var(--muted); font-size: var(--step--1); font-weight: 500; }
.crew__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px 28px;
}
.crew__label { color: var(--muted); font-size: var(--step--1); }
.crew__names { margin-top: 4px; font-size: 0.9375rem; line-height: 1.5; }
.crew__names .is-me { color: var(--accent); font-weight: 600; }

/* Stills lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(0, 0, 0, 0.95);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox__stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 60px 16px;
  overscroll-behavior: contain;
}
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox.is-zoomed .lightbox__stage { align-items: flex-start; justify-content: flex-start; padding: 0; }
.lightbox.is-zoomed .lightbox__img { max-width: none; max-height: none; margin: auto; cursor: zoom-out; }
.lightbox__btn {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.lightbox__btn:hover,
.lightbox__btn:focus-visible { border-color: var(--accent); color: var(--accent); outline: none; }
.lightbox__btn[hidden] { display: none; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__count {
  position: absolute;
  top: 24px; left: 18px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
}


/* 7. MOTION -------------------------------------------------------- */

/* Smooth cross-fade between pages (Safari 18.2+, Chrome 126+). The header stays put. */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out 0.18s ease both; }
::view-transition-new(root) { animation: vt-in 0.3s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }


/* RESPONSIVE ------------------------------------------------------- */

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .store-featured { grid-template-columns: 1fr; }
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .work-grid { grid-template-columns: 1fr; }
  .stills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stills-grid--single { grid-template-columns: 1fr; }
  .video-pair { grid-template-columns: 1fr; }
  .video-pair .media:has(.photo__video--tall) { max-width: 360px; }
  .form__row { grid-template-columns: 1fr; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__tc { padding-bottom: 0; }

  /* Credits table becomes a stacked list */
  .credits thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .credits, .credits tbody, .credits tr, .credits td { display: block; }
  .credits tbody { border-top: 1px solid var(--line); }
  .credits tr {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    column-gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .credits td { padding: 0; border: 0; }
  .credits tbody tr:hover td { background: none; }
  .credits__media { grid-row: 1 / span 3; width: auto; }
  .credits td:nth-child(2) { align-self: end; }
  .credits td:nth-child(2), .credits__artist, .credits__role { grid-column: 2; }
  .credits__artist, .credits__role { font-size: var(--step--1); }
  .credits td.credits__watch { display: none; }
}

@media (max-width: 480px) {
  :root { --header-h: 56px; }
  .brand img { height: 22px; }
  .site-nav { gap: 13px; font-size: 0.875rem; }
  .site-footer__copy { flex-basis: 100%; order: 3; }
}

@media (max-width: 360px) {
  .site-nav { gap: 10px; font-size: 0.8125rem; }
  .brand img { height: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  @view-transition { navigation: none; }
}


/* ===== tweaks 2026-10-15 ===== */

/* Hero line in Space Mono, as on the original landing page */
.hero__intro {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 1.05vw, 1rem);
  line-height: 1.9;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero__actions { margin-top: clamp(20px, 2.4vw, 28px); }

/* Space Mono for the small details */
.hero__tc,
.work-item__year,
.work-item__meta,
.work-item__role,
.credits th,
.credits__role,
.credits__watch,
.facts dt,
.fact-list dt,
.pager__dir,
.back-link,
.block__hint,
.site-footer__copy,
.store-featured__info .label,
.store-featured__trust,
.field label,
.compare__badge,
.lightbox__count {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.work-item__meta,
.work-item__role,
.credits__role,
.facts dt,
.fact-list dt { font-size: 0.8125rem; }

/* Music videos: bigger, sharper thumbnails */
.credits__media { width: 212px; }
.credits__thumb { width: 192px; }
@media (max-width: 760px) {
  .credits tr { grid-template-columns: 136px minmax(0, 1fr); }
  .credits__thumb { width: 136px; }
}


/* ===== text blocks aligned right 2026-10-15 ===== */
/* Text chunks next to a heading (About, About the project):
   the block sits against the right edge and the text is justified,
   so both the left and right sides of the paragraph form a clean line. */
@media (min-width: 901px) {
  .split__body { width: 100%; max-width: 72ch; margin-left: auto; }
}
.split__body > p {
  max-width: none;
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
}
/* On phones the column is narrow, so keep normal left-aligned text */
@media (max-width: 600px) {
  .split__body > p { text-align: left; -webkit-hyphens: manual; hyphens: manual; }
}


/* ===== lightbox zoom 2026-10-15 ===== */
/* Scroll / pinch / buttons zoom the still (up to 4x); drag to move around */
.lightbox__stage { overflow: hidden; touch-action: none; }
.lightbox__img {
  transform-origin: center center;
  will-change: transform;
  cursor: zoom-in;
}
.lightbox__img.is-animating { transition: transform 0.22s ease; }
.lightbox.is-zoomed .lightbox__stage { align-items: center; justify-content: center; padding: 60px 16px; }
.lightbox.is-zoomed .lightbox__img { max-width: 100%; max-height: 100%; margin: 0; cursor: grab; }
.lightbox.is-dragging .lightbox__img { cursor: grabbing; }

.lightbox__zoom {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lightbox__zoom .lightbox__btn { position: static; transform: none; }
.lightbox__btn:disabled { opacity: 0.35; cursor: default; border-color: rgba(255, 255, 255, 0.25); color: #fff; }
.lightbox__level {
  min-width: 48px;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.lightbox__hint {
  position: absolute;
  left: 18px;
  bottom: 28px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  pointer-events: none;
}
.lightbox.is-zoomed .lightbox__hint { opacity: 0; }

@media (max-width: 600px) {
  .lightbox__zoom { display: none; }          /* phones: pinch instead */
  .lightbox__hint { left: 0; right: 0; bottom: 76px; text-align: center; }
}


/* ===== hero name 2026-10-15 ===== */
/* "NEON I" above the timecode, same style as the hero line, right-aligned */
.hero__side {
  justify-self: end;
  text-align: right;
}
.hero__name {
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 1.05vw, 1rem);
  line-height: 1.9;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero__side .hero__tc { justify-content: flex-end; }


/* ===== bigger touch targets 2026-10-15 ===== */
/* The nav and footer links are small text by design. These invisible
   pads give each one a 44px tall tap area on a phone without moving
   anything on the page. */
.site-nav a,
.social a,
.back-link,
.site-footer__brand { position: relative; }
.site-nav a::after,
.social a::after,
.back-link::after,
.site-footer__brand::after {
  content: "";
  position: absolute;
  left: -6px;
  right: -6px;
  top: 50%;
  height: 44px;
  transform: translateY(-50%);
}
@media (hover: hover) and (pointer: fine) {
  .site-nav a::after,
  .social a::after,
  .back-link::after,
  .site-footer__brand::after { display: none; }
}
