/* Deverx Sound Studio
   The page is a screening room: slate "house" light, ivory screen light and
   one warm tungsten source. Type is one variable family (Mona Sans) whose
   width axis carries hierarchy the way film credits do: expanded titles,
   normal reading text, condensed credits. People speak in Newsreader italic. */

@font-face {
  font-family: 'Mona Sans';
  src: url(../fonts/mona-sans-latin.woff2) format('woff2');
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url(../fonts/newsreader-italic-24.woff) format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --room: #121519;
  --room-raised: #171b20;
  --dark: #040506;
  --ivory: #f2ede4;
  --ivory-2: #c7c2b9;
  --dim: #8e9298;
  --line: rgba(242, 237, 228, 0.12);
  --line-soft: rgba(242, 237, 228, 0.07);
  --tungsten: #f3a64b;

  --sans: 'Mona Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1360px;
  --col-gap: clamp(16px, 2.2vw, 32px);
  --section: clamp(104px, 13vw, 184px);
  --header-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
  background: var(--room);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  /* Film grain baked into the room itself: a texture on the background that
     scrolls with the page, under everything else. */
  background:
    linear-gradient(rgba(18, 21, 25, 0.3), rgba(18, 21, 25, 0.3)),
    url(../img/grain.webp) 0 0 / 112px 112px,
    var(--room);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

::selection { background: var(--tungsten); color: var(--room); }

:focus-visible {
  outline: 2px solid var(--tungsten);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ivory); color: var(--room); text-decoration: none; font-weight: 600;
  transition: top 0.2s;
}
.skip:focus { top: calc(12px + env(safe-area-inset-top)); }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.section { padding-block: var(--section); }

/* ---------- Type ---------- */

.h2 {
  font-size: clamp(2.5rem, 5.6vw, 5rem);
  font-weight: 580;
  font-stretch: 112%;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.lead {
  font-size: clamp(1.1875rem, 1.55vw, 1.4375rem);
  line-height: 1.5;
  color: var(--ivory-2);
  max-width: 34em;
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 52px; padding: 0 1.5rem;
  border: 0; border-radius: 999px;
  font-family: var(--sans); font-size: 1rem; font-weight: 580; font-stretch: 100%;
  letter-spacing: -0.005em; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--ivory); color: var(--room); }
.btn-primary:hover { background: #fff; }
.btn-ghost { background: transparent; color: var(--ivory); box-shadow: inset 0 0 0 1px rgba(242, 237, 228, 0.3); }
.btn-ghost:hover { background: rgba(242, 237, 228, 0.07); box-shadow: inset 0 0 0 1px rgba(242, 237, 228, 0.55); }
.btn-small { min-height: 40px; padding: 0 1.1rem; font-size: 0.9375rem; }
.btn-large { min-height: 60px; padding: 0 2rem; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn-icon { width: 0.85em; height: 0.85em; }

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top);
  transition: background-color 0.35s, box-shadow 0.35s, opacity 0.8s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(18, 21, 25, 0.76);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  box-shadow: 0 1px 0 var(--line-soft);
}
.header-bar { height: var(--header-h); display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }

.brand {
  display: block; margin-right: auto; padding-block: 2px;
  text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.brand-logo { display: block; height: 56px; width: auto; }

.nav ul { display: flex; gap: clamp(18px, 2.4vw, 34px); }
.nav a {
  position: relative; display: block; padding-block: 10px;
  font-size: 0.9375rem; font-weight: 500; color: var(--ivory-2); text-decoration: none;
  transition: color 0.2s;
}
.nav a:hover, .nav a[aria-current="true"] { color: var(--ivory); }
.nav a[aria-current="true"]::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--tungsten);
}

.menu-btn {
  display: none; align-items: center; gap: 10px;
  min-height: 44px; margin-right: -10px; padding: 0 10px;
  background: none; border: 0; cursor: pointer;
  font-size: 0.9375rem; font-weight: 560;
  -webkit-tap-highlight-color: transparent;
}
.menu-btn-icon { position: relative; width: 18px; height: 10px; }
.menu-btn-icon i {
  position: absolute; left: 0; right: 0; height: 1.5px; border-radius: 2px; background: currentColor;
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.menu-btn-icon i:first-child { top: 0; }
.menu-btn-icon i:last-child { top: 8.5px; }
.menu-btn[aria-expanded="true"] .menu-btn-icon i:first-child { top: 4.25px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn-icon i:last-child { top: 4.25px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(18, 21, 25, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  overflow-y: auto;
  animation: menu-in 0.35s var(--ease);
}
@keyframes menu-in { from { opacity: 0; } }
.menu-inner { display: flex; flex-direction: column; gap: 32px; padding-block: 24px 40px; min-height: 100%; }
.menu-links a {
  display: block; padding-block: 10px;
  font-size: clamp(2.25rem, 10vw, 3rem); font-weight: 580; font-stretch: 112%;
  letter-spacing: -0.03em; line-height: 1.1; text-decoration: none;
}
.menu-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: auto; color: var(--ivory-2); }
.menu-meta a { padding-block: 8px; text-decoration: none; }
.menu-open { overflow: hidden; }

@media (max-width: 880px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ---------- House lights ----------
   When the screen is centred (or the film is playing) the room dims around
   it, like a cinema before the picture starts. The reel section sits above
   this layer, everything else below it. */

.house {
  position: fixed; inset: 0; z-index: 5; pointer-events: none;
  background: var(--dark); opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.lights-down .house { opacity: 0.86; transition-duration: 1.2s; }
.lights-down .site-header { background: rgba(4, 5, 6, 0.82); box-shadow: none; }
.lights-down .site-header:not(:hover):not(:focus-within) { opacity: 0; }
@media (hover: none) {
  .lights-down .site-header { pointer-events: none; }
}

/* ---------- 1 · Hero ---------- */

.hero {
  display: flex; flex-direction: column;
  min-height: min(100svh, 1080px);
  padding-top: calc(var(--header-h) + env(safe-area-inset-top) + clamp(28px, 7vh, 104px));
  padding-bottom: clamp(40px, 7vh, 88px);
}
.hero > .wrap { flex: 1; display: flex; flex-direction: column; }
.hero-title {
  font-size: clamp(3.9rem, min(11.3vw, 17.5vh), 10.25rem);
  font-weight: 600; font-stretch: 116%;
  line-height: 0.87; letter-spacing: -0.045em;
  margin-left: -0.04em;
}
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero-title .w > span { display: inline-block; }
.hero-title .w1 { display: block; width: fit-content; }

.hero-wave {
  position: relative; height: clamp(56px, 9vh, 112px);
  margin-top: auto; pointer-events: none;
}
.hero-wave svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-wave path { fill: none; stroke-width: 1.5px; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hero-wave .w-dim path { stroke: rgba(242, 237, 228, 0.08); }
.hero-wave .w-lit path { stroke: rgba(242, 237, 228, 0.3); }
.hero-playhead {
  position: absolute; top: -14px; bottom: -14px; left: 100%; width: 1px;
  background: var(--tungsten); box-shadow: 0 0 14px rgba(243, 166, 75, 0.6);
  opacity: 0;
}

.hero-info {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  column-gap: var(--col-gap); align-items: end;
  margin-top: auto; padding-top: clamp(28px, 3.8vw, 56px);
}
.hero-sub {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 560; font-stretch: 108%;
  line-height: 1.1; letter-spacing: -0.02em;
}
.hero-by {
  margin-top: 6px;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.375rem, 2.2vw, 2rem); line-height: 1.2;
  color: var(--ivory-2);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 2.8vw, 36px); }

.credits {
  font-size: clamp(1.0625rem, 1.3vw, 1.25rem);
  font-weight: 500; font-stretch: 84%;
  line-height: 1.38; letter-spacing: 0.005em;
}
.hero-place {
  margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 0.9375rem; font-stretch: 92%; color: var(--dim);
}

@media (min-width: 1280px) {
  .hero > .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr auto; column-gap: 56px; }
  .hero-title {
    grid-column: 1; grid-row: 1;
    font-size: min(10.25rem, 17.5vh, calc((min(100vw - 2 * var(--gutter), var(--max)) - 280px) / 6.6));
  }
  .hero-info, .hero-side { display: contents; }
  .hero-wave { grid-column: 1 / -1; grid-row: 2; align-self: center; margin: 0; }
  .credits { grid-column: 2; grid-row: 1; align-self: end; margin-bottom: 0.5em; }
  .hero-main { grid-column: 1; grid-row: 3; padding-top: clamp(32px, 3.4vw, 52px); }
  .hero-place {
    grid-column: 2; grid-row: 3; align-self: end;
    margin: 0 0 14px; padding: 16px 0 0; border-top: 1px solid var(--line);
  }
  .hero-place .place-line { display: block; }
  .hero-place .place-sep { display: none; }
}

/* One orchestrated entrance: the title rises out of its line, the rest settles. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-title .w > span { transform: translateY(102%); animation: rise 1.15s var(--ease) forwards; }
  .js .hero-title .w2 > span { animation-delay: 0.09s; }
  .js .hero-title .w3 > span { animation-delay: 0.16s; }
  .js .hero-main, .js .credits, .js .hero-place { opacity: 0; animation: settle 1s 0.5s var(--ease) forwards; }
  .js .credits { animation-delay: 0.62s; }
  .js .hero-place { animation-delay: 0.74s; }
  .js .hero-wave .w-lit { animation: wave-sweep 2.8s 0.6s cubic-bezier(0.45, 0.05, 0.3, 1) both; }
  .js .hero-playhead { animation: playhead-sweep 2.8s 0.6s cubic-bezier(0.45, 0.05, 0.3, 1) both; }
}
@keyframes rise { to { transform: none; } }
@keyframes wave-sweep { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes playhead-sweep { 0% { left: 0; opacity: 1; } 90% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes settle { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- 2 · Showreel + films ---------- */

.reel { position: relative; z-index: 6; padding-top: clamp(8px, 1.6vw, 20px); padding-bottom: var(--section); }

/* The divider between the first screen and the reel: the start of a timeline. */
.reel-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 32px; row-gap: 12px;
  margin-bottom: clamp(28px, 3.4vw, 48px);
}
.reel-ruler {
  grid-column: 1 / -1; position: relative;
  height: 30px; margin-bottom: clamp(44px, 5.6vw, 84px);
  font-size: 0.75rem; font-stretch: 85%; font-variant-numeric: tabular-nums; color: var(--dim);
}
.reel-ruler span { position: absolute; left: 18px; top: 0; }
.reel-ruler::before {
  content: ''; position: absolute; left: 0; top: 0; width: 11px; height: 14px;
  background: var(--tungsten); clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%);
}
.reel-ruler::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background:
    linear-gradient(var(--line), var(--line)) 0 100% / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, rgba(242, 237, 228, 0.3) 0 1px, transparent 1px 120px) 0 100% / 100% 10px no-repeat,
    repeating-linear-gradient(90deg, rgba(242, 237, 228, 0.14) 0 1px, transparent 1px 12px) 0 100% / 100% 5px no-repeat;
}
.reel-note { padding-bottom: 0.45em; font-size: 0.9375rem; color: var(--dim); text-align: right; }

.reel-stage { position: relative; }

.screen {
  position: relative; aspect-ratio: 16 / 9;
  border-radius: 6px; overflow: hidden; isolation: isolate;
  background: #000;
  box-shadow: 0 0 0 1px rgba(242, 237, 228, 0.07), 0 50px 140px -40px rgba(0, 0, 0, 0.9);
}
/* The screen throws the colours of the film on it into the dark room. */
.screen-frame { position: relative; }
.ambient { position: absolute; inset: -2% -1.5%; z-index: -1; pointer-events: none; }
.ambient img {
  width: 100%; height: 100%; object-fit: cover;
  filter: blur(64px) saturate(1.8) brightness(1.5);
  opacity: 0.5; transform: scale(1.06);
  transition: opacity 1.2s var(--ease);
}
.lights-down .ambient img { opacity: 0.85; }
.screen::before {
  content: ''; position: absolute; inset: -1px; z-index: 3; pointer-events: none;
  border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(242, 237, 228, 0.05);
}

.screen-poster {
  position: absolute; inset: 0; z-index: 1; display: block; color: var(--ivory);
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.7s var(--ease), visibility 0s;
}
/* Once YouTube's player is ready underneath, taps fall through to it. */
.screen.is-ready .screen-poster { pointer-events: none; }
.screen-poster img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--ease), opacity 0.5s;
}
.screen-poster::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(70% 70% at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.45));
}
.screen-poster:hover img,
.screen.is-ready:hover .screen-poster img { transform: scale(1.012); }

.screen-play {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
}
.screen-play-ring {
  display: grid; place-items: center;
  width: clamp(64px, 7.4vw, 96px); aspect-ratio: 1; border-radius: 50%;
  background: rgba(18, 21, 25, 0.38);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(242, 237, 228, 0.55);
  transition: background-color 0.3s, color 0.3s, transform 0.4s var(--ease), box-shadow 0.3s;
}
.screen-play-ring svg { width: 30%; height: 30%; margin-left: 6%; }
.screen-play-label {
  max-width: 80%; text-align: center;
  font-size: 0.875rem; font-weight: 500; font-stretch: 90%; letter-spacing: 0.01em;
  color: var(--ivory); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}
.screen-poster:hover .screen-play-ring,
.screen.is-ready:hover .screen-play-ring,
.screen-poster:focus-visible .screen-play-ring { background: var(--ivory); color: var(--room); transform: scale(1.06); }
.screen-poster:focus-visible { outline-offset: -4px; }

.screen.is-loading .screen-play-ring { animation: breathe 1.1s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: inset 0 0 0 1px var(--tungsten), 0 0 0 10px rgba(243, 166, 75, 0.12); } }

.screen-player { position: absolute; inset: 0; z-index: 0; }
.screen-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.screen.is-live .screen-player { z-index: 2; }
.screen.is-live .screen-poster { opacity: 0; visibility: hidden; transition: opacity 0.7s var(--ease), visibility 0s 0.7s; }
.screen.is-slow .screen-play-label { display: block; }

.now-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px;
  min-height: 40px; margin-top: 16px;
}
.now { font-size: 1rem; }
.now-title { font-weight: 620; }
.now-kind { color: var(--dim); margin-left: 0.35em; }
.now-time {
  display: inline-block; margin-left: 0.5em; padding: 1px 7px; border-radius: 5px;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.8125rem; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; color: var(--ivory-2);
  vertical-align: 1px;
}

.films-title { margin-top: clamp(40px, 5vw, 64px); font-size: 1rem; font-weight: 620; }

/* Close: stops the film, turns the house lights back up and returns to the poster. */
.now-close {
  display: none; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 16px 0 12px; border: 0; border-radius: 999px;
  background: rgba(242, 237, 228, 0.08); color: var(--ivory);
  box-shadow: inset 0 0 0 1px rgba(242, 237, 228, 0.22);
  font-size: 0.9375rem; font-weight: 560; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.now-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.now-close:hover { background: var(--ivory); color: var(--room); box-shadow: none; }
.reel.is-live .now-close { display: inline-flex; animation: close-in 0.4s var(--ease); }
@keyframes close-in { from { opacity: 0; transform: translateY(4px); } }

.films {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 24px);
  margin-top: 16px;
}
.film {
  display: block; text-decoration: none; color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.film-thumb {
  position: relative; display: block; aspect-ratio: 16 / 9;
  border-radius: 4px; overflow: hidden; background: #000;
}
.film-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.8; filter: saturate(0.85);
  transition: opacity 0.35s, filter 0.35s, transform 0.8s var(--ease);
}
.film-thumb::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(242, 237, 228, 0.08);
  transition: box-shadow 0.3s;
}
.film:hover .film-thumb img { opacity: 0.9; filter: none; transform: scale(1.03); }
.film.is-active .film-thumb img { opacity: 1; filter: none; }
.film.is-active .film-thumb::after { box-shadow: inset 0 0 0 1.5px var(--tungsten); }

.film-time {
  position: absolute; right: 8px; bottom: 8px;
  padding: 3px 7px; border-radius: 5px;
  background: rgba(4, 5, 6, 0.74);
  font-size: 0.75rem; font-weight: 560; line-height: 1.3; letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums; color: var(--ivory);
}
.film-text { display: block; margin-top: 12px; }
.film-title { display: block; font-size: 1rem; font-weight: 600; line-height: 1.3; }
.film-kind { display: block; margin-top: 2px; font-size: 0.875rem; font-stretch: 90%; color: var(--dim); }
.film.is-active .film-title::before {
  content: ''; display: inline-block; width: 7px; height: 7px; margin: 0 8px 0.12em 0;
  border-radius: 50%; background: var(--tungsten); vertical-align: middle;
  box-shadow: 0 0 10px rgba(243, 166, 75, 0.7);
}

/* The screen opens up as it comes into view (where the browser can tie
   animation to scroll; elsewhere it simply sits at full size). */
@supports (animation-timeline: view()) {
  @media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
    .screen-frame {
      animation: screen-open linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 42%;
    }
    @keyframes screen-open {
      from { transform: scale(0.93); }
      to { transform: none; }
    }
  }
}

/* ---------- 3 · From Edit to Final Mix ---------- */

.mix { padding-top: 0; }
.mix-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap); row-gap: clamp(56px, 7vw, 104px);
  align-items: center;
}
.mix-copy { grid-column: 1 / span 5; }
.mix-copy .lead { margin-top: clamp(20px, 2.4vw, 32px); }
.session { grid-column: 7 / -1; }

.session {
  --lw: 104px;
  --mw: 14px;
  --p: 0;
  position: relative;
  padding: 18px clamp(16px, 1.8vw, 24px) 16px;
  border-radius: 10px;
  background: var(--room-raised);
  box-shadow: inset 0 0 0 1px var(--line-soft), 0 30px 80px -40px rgba(0, 0, 0, 0.8);
}
.session-ruler {
  position: relative;
  display: flex; justify-content: space-between; align-items: flex-end;
  height: 30px; margin-left: calc(var(--lw) + 12px); margin-right: calc(var(--mw) + 12px); padding-bottom: 10px;
  font-size: 0.75rem; font-stretch: 85%; font-variant-numeric: tabular-nums;
  color: var(--dim);
}
.session-ruler::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background:
    repeating-linear-gradient(90deg, rgba(242, 237, 228, 0.28) 0 1px, transparent 1px 10%) 0 0 / 100% 6px no-repeat,
    repeating-linear-gradient(90deg, rgba(242, 237, 228, 0.13) 0 1px, transparent 1px 2%) 0 3px / 100% 3px no-repeat;
}
.session-tc { color: var(--tungsten); font-weight: 560; letter-spacing: 0.02em; }

.session-body { position: relative; }
.lane {
  display: grid; grid-template-columns: var(--lw) minmax(0, 1fr) var(--mw); column-gap: 12px; align-items: center;
  height: 50px; border-bottom: 1px solid var(--line-soft);
}
.lane-name { font-size: 0.8125rem; font-weight: 500; font-stretch: 86%; color: var(--ivory-2); }
.lane-wave { position: relative; display: block; height: 100%; }
.lane-wave svg { position: absolute; left: 0; top: 7px; width: 100%; height: calc(100% - 14px); overflow: visible; }
.lane-wave .w-dim { fill: rgba(242, 237, 228, 0.15); }
.lane-wave .w-lit { fill: rgba(242, 237, 228, 0.72); clip-path: inset(0 calc(100% - var(--p) * 100%) 0 0); }
.lane-mix { height: 64px; margin-top: 10px; border-bottom: 0; border-top: 1px solid var(--line); }
.lane-mix .lane-name { color: var(--ivory); font-weight: 620; }
.lane-mix .w-dim { fill: rgba(243, 166, 75, 0.16); }
.lane-mix .w-lit { fill: var(--tungsten); }

.playhead-track { position: absolute; top: -8px; bottom: 0; left: calc(var(--lw) + 12px); right: calc(var(--mw) + 12px); pointer-events: none; }
.meter { display: flex; justify-content: flex-end; gap: 3px; height: 24px; }
.lane-mix .meter { height: 34px; }
.meter i { position: relative; width: 5px; height: 100%; border-radius: 1px; overflow: hidden; background: rgba(242, 237, 228, 0.1); }
.meter i::after {
  content: ''; position: absolute; inset: 0;
  transform-origin: 50% 100%; transform: scaleY(var(--lvl, 0));
  background: linear-gradient(to top, rgba(242, 237, 228, 0.8) 72%, var(--tungsten));
  transition: transform 0.14s linear;
}
.lane-mix .meter i::after { background: linear-gradient(to top, var(--tungsten) 74%, #ff7a45); }
.playhead {
  position: absolute; top: 0; bottom: 0; left: calc(var(--p) * 100%);
  width: 1px; background: var(--tungsten);
  box-shadow: 0 0 14px rgba(243, 166, 75, 0.55);
}
.playhead::before {
  content: ''; position: absolute; top: 0; left: -5px; width: 11px; height: 9px;
  background: var(--tungsten); clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.session-foot {
  display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px;
  font-size: 0.8125rem; font-weight: 560; font-stretch: 88%;
}
.session-foot span { padding: 5px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--ivory-2); }

.points {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 36px;
}
.points li { padding-top: 20px; border-top: 1px solid var(--line); }
.points h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.points p { margin-top: 10px; font-size: 0.9688rem; line-height: 1.55; color: var(--dim); }

/* ---------- 4 · How It Works ---------- */

.process { padding-top: 0; }
.steps {
  position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--col-gap);
  margin-top: clamp(44px, 5.5vw, 80px);
}
/* A timeline ruler under the steps: fine ticks, one marker per step. */
.steps::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 14px;
  background:
    linear-gradient(var(--line), var(--line)) 0 100% / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, rgba(242, 237, 228, 0.2) 0 1px, transparent 1px 14px) 0 100% / 100% 6px no-repeat;
}
.step { position: relative; padding-top: 44px; padding-right: 8px; }
.step::before {
  content: ''; position: absolute; left: 0; top: 0; width: 12px; height: 15px;
  background: var(--tungsten); clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%);
}
.step-no { font-size: 0.875rem; font-weight: 620; font-variant-numeric: tabular-nums; color: var(--tungsten); letter-spacing: 0.02em; }
.step h3 {
  margin-top: 10px;
  font-size: clamp(1.3125rem, 1.7vw, 1.625rem); font-weight: 580; font-stretch: 106%;
  line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance;
}
.step p { margin-top: 14px; color: var(--ivory-2); max-width: 22em; }

/* ---------- 7 · Testimonials ---------- */

.voices { padding-top: 0; }
.quote blockquote p { font-family: var(--serif); font-style: italic; font-weight: 400; text-wrap: pretty; }
.quote-lead { margin-top: clamp(44px, 5.5vw, 80px); max-width: 1100px; }
.quote-lead blockquote p {
  font-size: clamp(1.5rem, 2.55vw, 2.3rem); line-height: 1.3; letter-spacing: -0.012em;
  text-indent: -0.42em;
}
.quote figcaption { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.quote-lead figcaption { margin-top: 32px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--room-raised); flex: none; }
.who { display: flex; flex-direction: column; line-height: 1.35; }
.who-name { font-weight: 620; font-size: 1rem; }
.who-role { font-size: 0.9063rem; font-stretch: 92%; color: var(--dim); }
.who-role a { color: var(--ivory-2); text-underline-offset: 3px; text-decoration-color: rgba(242, 237, 228, 0.35); }
.who-role a:hover { color: var(--ivory); }

.quotes {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(48px, 5vw, 72px) var(--col-gap);
  margin-top: clamp(64px, 8vw, 112px);
}
.quotes .quote { padding-top: 28px; border-top: 1px solid var(--line); max-width: 36em; }
.quotes blockquote p { font-size: clamp(1.1875rem, 1.45vw, 1.3125rem); line-height: 1.5; color: var(--ivory); text-indent: -0.38em; }


/* ---------- 8 · About ---------- */

.about { padding-top: 0; }
.about-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap); align-items: center;
}
.about-copy { grid-column: 4 / span 6; grid-row: 1; padding-inline: clamp(0px, 1.6vw, 28px); }
.about-copy .lead { margin-top: 24px; }
.about-copy .h2 + .lead { margin-top: clamp(24px, 2.8vw, 36px); }

/* Denis on the left of the text, looking left; Dalel on the right. */
.founders { display: contents; }
.founder:first-child { grid-column: 1 / span 3; grid-row: 1; }
.founder:last-child { grid-column: 10 / span 3; grid-row: 1; }
.founder { align-self: start; }
/* The portraits carry their own light: a warm, grainy halo behind each head,
   baked into the image so it looks the same in every browser. */
.founder-photo {
  aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden;
  background: #16110e;
  box-shadow: 0 0 0 1px rgba(242, 237, 228, 0.06);
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; }
.founder-name { font-weight: 620; }
.founder-role { font-size: 0.9375rem; line-height: 1.4; color: var(--dim); }

/* ---------- 9 · Final CTA ---------- */

.cta { padding-top: 0; position: relative; isolation: isolate; }
.cta::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(52% 58% at 14% 42%, rgba(243, 166, 75, 0.1), transparent 72%);
}
.cta .wrap { padding-top: var(--section); border-top: 1px solid var(--line); }
.cta-title {
  font-size: clamp(2.9rem, 7.3vw, 7.25rem);
  font-weight: 600; font-stretch: 114%;
  line-height: 0.92; letter-spacing: -0.045em;
  margin-left: -0.04em;
  text-wrap: balance;
}
.cta .lead { margin-top: clamp(24px, 3vw, 40px); max-width: 30em; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px clamp(28px, 4vw, 56px); margin-top: clamp(32px, 4vw, 52px); }
.channels { display: flex; flex-wrap: wrap; gap: 20px clamp(28px, 3.4vw, 48px); }
.channels a { display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.channel-name { font-weight: 620; width: fit-content; }
.channel-name, .footer-col a {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.35s var(--ease), color 0.2s;
}
.channels a:hover .channel-name, .footer-col a:hover { background-size: 100% 1px; }
.channel-detail { font-size: 0.9375rem; color: var(--dim); transition: color 0.2s; }
.channels a:hover .channel-detail { color: var(--ivory); }

/* ---------- 10 · Footer ---------- */

.site-footer {
  padding-top: clamp(56px, 7vw, 88px);
  padding-bottom: calc(clamp(32px, 4vw, 48px) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); column-gap: var(--col-gap); row-gap: 32px; }
.footer-brand p { color: var(--dim); }
.footer-logo { display: block; width: auto; height: 96px; margin: 0 0 18px -6px; }
.footer-brand .footer-name { color: var(--ivory); font-weight: 650; font-stretch: 110%; font-size: 1.0625rem; margin-bottom: 6px; }
.footer-col li + li { margin-top: 6px; }
.footer-col a { color: var(--ivory-2); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--ivory); }
.footer-legal { grid-column: 1 / -1; margin-top: clamp(24px, 4vw, 48px); color: var(--dim); font-size: 0.875rem; }

/* ---------- Mentorship page ---------- */

.page-hero {
  padding-top: calc(var(--header-h) + env(safe-area-inset-top) + clamp(40px, 10vh, 120px));
  padding-bottom: var(--section);
}
.page-title {
  font-size: clamp(3rem, 8.2vw, 7.5rem);
  font-weight: 600; font-stretch: 116%;
  line-height: 0.9; letter-spacing: -0.045em;
  margin-left: -0.04em; text-wrap: balance;
}
.page-hero .hero-by { margin-top: 14px; }
.page-intro {
  margin-top: clamp(28px, 3vw, 40px); max-width: 36em;
  font-size: clamp(1.1875rem, 1.6vw, 1.5rem); line-height: 1.5; color: var(--ivory-2);
  text-wrap: pretty;
}
.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 32px;
  margin-top: clamp(64px, 8vw, 112px);
}
.facts li { padding-top: 20px; border-top: 1px solid var(--line); }
.facts h2 { font-size: clamp(1.25rem, 1.7vw, 1.5rem); font-weight: 600; font-stretch: 106%; line-height: 1.2; letter-spacing: -0.015em; }
.facts p { margin-top: 8px; color: var(--dim); }

.learn { padding-top: 0; }
.learn-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 64px) var(--col-gap); margin-top: clamp(44px, 5.5vw, 80px);
}
.learn-item { padding-top: 24px; border-top: 1px solid var(--line); max-width: 34em; }
.learn-item h3 { font-size: clamp(1.375rem, 2vw, 1.75rem); font-weight: 580; font-stretch: 106%; line-height: 1.15; letter-spacing: -0.02em; }
.learn-item p { margin-top: 14px; color: var(--ivory-2); }

.enrol { padding-top: 0; }
.enrol-panel {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px var(--col-gap);
  padding: clamp(28px, 4vw, 56px); border-radius: 10px;
  background: var(--room-raised); box-shadow: inset 0 0 0 1px var(--line-soft);
}
.enrol-label { font-size: 1.125rem; font-weight: 560; color: var(--ivory-2); }
.enrol-figure { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 14px; }
.enrol-amount { font-size: clamp(4rem, 9vw, 8rem); font-weight: 600; font-stretch: 116%; line-height: 0.9; letter-spacing: -0.045em; }
.enrol-term { font-size: 1.25rem; color: var(--ivory-2); }
.enrol-list { border-top: 1px solid var(--line-soft); }
.enrol-list li { position: relative; padding: 14px 0 14px 28px; border-bottom: 1px solid var(--line-soft); }
.enrol-list li::before {
  content: ''; position: absolute; left: 2px; top: calc(14px + 0.8em); width: 12px; height: 1.5px; background: var(--tungsten);
}
.enrol-note { margin-top: 20px; color: var(--dim); }
.enrol-body .btn { margin-top: 28px; }

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .points { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .mix-copy, .session { grid-column: 1 / -1; }
  .session { max-width: 760px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
  .steps::before { display: none; }
  .step { border-top: 1px solid var(--line); padding-top: 40px; }
  .step::before { top: -1px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .about-grid { row-gap: 48px; }
  .about-copy { grid-column: 1 / -1; grid-row: auto; max-width: 40em; padding-inline: 0; }
  .founders {
    grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(12px, 2vw, 24px); max-width: 720px;
  }
  .founder:first-child, .founder:last-child { grid-column: auto; grid-row: auto; }
}

@media (max-width: 820px) {
  .films { grid-template-columns: 1fr; gap: 0; margin-top: 14px; border-top: 1px solid var(--line-soft); }
  .film {
    display: grid; grid-template-columns: 128px minmax(0, 1fr); align-items: center; gap: 16px;
    padding-block: 12px; border-bottom: 1px solid var(--line-soft);
  }
  .film-text { margin-top: 0; }
  .points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quotes { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .learn-grid, .enrol-panel { grid-template-columns: 1fr; }
}

@media (max-width: 719px) {
  :root { --header-h: 60px; }
  .brand-logo { height: 46px; }
  .hero-wave { display: none; }
  .hero-title { font-size: min(18.5vw, 6.4rem); line-height: 0.9; }
  .hero-title .w { display: block; width: fit-content; }
  .hero-info { grid-template-columns: 1fr; row-gap: 40px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .credits { font-size: 1.125rem; }

  /* the screen runs edge to edge on phones */
  .reel > .wrap { padding-inline: 0; }
  .reel .reel-head, .reel .now-bar, .reel .playlist { margin-inline: max(var(--gutter), env(safe-area-inset-left)); }
  .reel-head { grid-template-columns: 1fr; }
  .reel-note { text-align: left; padding-bottom: 0; }
  .screen { border-radius: 0; box-shadow: none; }
  .screen-play-label { display: none; }

  .session { --lw: 84px; margin-inline: calc(-1 * var(--gutter) / 2); padding-inline: 14px; }
  .lane { height: 42px; }
  .lane-mix { height: 54px; }
  .points { grid-template-columns: 1fr; row-gap: 28px; }

  .steps { grid-template-columns: 1fr; row-gap: 0; margin-top: 36px; border-left: 1px solid var(--line); }
  .step { border-top: 0; padding: 0 0 40px 28px; }
  .step:last-child { padding-bottom: 0; }
  .step::before { left: -6px; top: 2px; }
  .step h3 { margin-top: 6px; }

  .quote-lead blockquote p { font-size: 1.4375rem; }
  .founders { column-gap: 12px; }
  .founder-role { font-size: 0.875rem; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .enrol-body .btn { width: 100%; }
}

@media (max-width: 380px) {
  .film { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
