/* ==========================================================================
   lapodini.com — main stylesheet
   Plain CSS, mobile-first. Sections follow the page order.
   ========================================================================== */

/* ---------- Fonts (self-hosted, Latin subset, variable weight) ---------- */
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-var-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  /* Colour (from the portfolio PDF). Contrast results in PLAN.md §3. */
  --bg: #0d0d0f;
  --surface: #17171a;
  --surface-2: #1d1d21;
  --line: #2a2a2e;
  --text: #f4f4f5;
  --text-2: #b4b4bc;
  --muted: #8e8e97;
  --red: #c8102e;          /* fills, rules, dots, buttons */
  --red-hover: #a50d26;
  --red-text: #ff4d5a;     /* red used as text: 5.97:1 on --bg */

  /* Type */
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --fs-display: clamp(3.25rem, 1rem + 13vw, 10.5rem);
  --fs-hero: clamp(2.9rem, min(0.9rem + 11vw, 11.5vh), 8.75rem);
  --fs-h3: clamp(1.6rem, 1.1rem + 2vw, 2.5rem);
  --fs-lead: clamp(1.35rem, 1rem + 1.6vw, 2.25rem);
  --fs-intro: clamp(1.1rem, 0.95rem + 0.6vw, 1.4rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-mono: 0.75rem;

  /* Space & layout */
  --gutter: clamp(20px, 5vw, 56px);
  --container: 1280px;
  --section-y: clamp(56px, 7vw, 104px);
  --gap: clamp(16px, 2.4vw, 32px);
  --header-h: 64px;
  --radius: 4px;
  --radius-pill: 999px;
  --grid-step: 84px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
@media (min-width: 960px) {
  :root { --header-h: 76px; }
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 8px);
  background: var(--bg);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.dock-open { padding-bottom: calc(150px + var(--safe-b)); }
img, svg, canvas, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, figure, dl, dd, ol, ul { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
strong { font-weight: 700; color: var(--text); }
::selection { background: var(--red); color: #fff; }
[hidden] { display: none !important; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--red); color: #fff;
  padding: 12px 16px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.mono {
  font-family: var(--mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}
.muted { color: var(--muted); }
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Shared studio details ---------- */
.grid-lines {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: var(--grid-step) var(--grid-step);
}
.corner {
  position: absolute; width: 18px; height: 18px; pointer-events: none;
  border-color: rgba(244,244,245,0.45); border-style: solid; border-width: 0;
}
.corner--tl { top: 16px; left: 16px; border-top-width: 1px; border-left-width: 1px; }
.corner--tr { top: 16px; right: 16px; border-top-width: 1px; border-right-width: 1px; }
.corner--bl { bottom: 16px; left: 16px; border-bottom-width: 1px; border-left-width: 1px; }

.eyebrow {
  font-family: var(--mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red-text);
  font-weight: 500;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 0 rgba(200,16,46,0.6);
}
@media (prefers-reduced-motion: no-preference) {
  .eyebrow__dot { animation: pulse 2.4s var(--ease) infinite; }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(200,16,46,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(200,16,46,0); }
  100% { box-shadow: 0 0 0 0 rgba(200,16,46,0); }
}

/* Photo frame with viewfinder brackets */
.photo { position: relative; background: var(--surface); }
.photo img { width: 100%; }
.photo::before, .photo::after {
  content: ""; position: absolute; width: 16px; height: 16px; z-index: 2; pointer-events: none;
  border: 0 solid rgba(244,244,245,0.7);
}
.photo::before { top: 10px; left: 10px; border-top-width: 1px; border-left-width: 1px; }
.photo::after { bottom: 10px; right: 10px; border-bottom-width: 1px; border-right-width: 1px; }
figure.photo > figcaption.tc-caption { padding-top: 10px; background: var(--bg); }
.tc-caption { color: var(--muted); font-size: 0.6875rem; letter-spacing: 0.14em; }
.tc { font-variant-numeric: tabular-nums; color: var(--text-2); }

/* Image placeholders (shown when a source photo is missing) */
.ph {
  display: grid; place-items: center; width: 100%;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,0.03) 14px 15px),
    var(--surface);
  border: 1px dashed var(--line);
  color: var(--muted);
  padding: 16px; text-align: center;
}
.ph__label { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.08em; }
.r-16x9 { aspect-ratio: 16 / 9; } .r-4x5 { aspect-ratio: 4 / 5; } .r-4x3 { aspect-ratio: 4 / 3; }
.r-3x4 { aspect-ratio: 3 / 4; } .r-2x3 { aspect-ratio: 2 / 3; } .r-3x2 { aspect-ratio: 3 / 2; }
.r-1x1 { aspect-ratio: 1 / 1; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 12px 22px;
  font-family: var(--mono); font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; border-radius: 0; background: none;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-hover); }
.btn--primary:active { transform: translateY(1px); }
.btn--cut {
  padding-right: 30px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}
.btn__sq { width: 9px; height: 9px; background: currentColor; display: inline-block; }
.btn--pill {
  border-radius: var(--radius-pill); background: var(--red); color: #fff;
  min-height: 44px; padding: 10px 20px; font-family: var(--sans); font-size: 0.9375rem;
  letter-spacing: 0; text-transform: none; font-weight: 600;
}
.btn--pill:hover { background: var(--red-hover); }
.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--text-2); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.link-mono {
  font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.16em;
  color: var(--text-2); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center;
}
.link-mono:hover { color: var(--red-text); }
.link-ext {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px;
  color: var(--text-2); font-size: var(--fs-small); text-decoration: none;
  border-bottom: 1px solid transparent;
}
.link-ext:hover { color: var(--red-text); }
.linklike { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }

.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center;
  border: 1px solid var(--line); background: transparent; color: var(--text);
  transition: border-color .2s var(--ease), color .2s var(--ease), background-color .2s var(--ease);
}
.icon-btn:hover { border-color: var(--red); color: #fff; background: rgba(200,16,46,0.12); }
.icon-btn svg { width: 18px; height: 18px; fill: currentColor; }
.icon-btn svg.stroke { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: square; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13,13,15,0.78);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto; padding-inline: var(--gutter);
}
.wordmark {
  font-weight: 800; letter-spacing: 0.14em; font-size: 1rem; text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap;
}
.nav { position: relative; display: none; }
.nav__list { display: flex; gap: clamp(18px, 2.4vw, 40px); list-style: none; padding: 0; }
.nav__link {
  font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-2); text-decoration: none; padding: 12px 0; display: inline-block;
  transition: color .2s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="true"] { color: var(--text); }
.nav__link[aria-current="true"] { color: var(--red-text); }
.nav__dot {
  position: absolute; top: 0; left: 0; width: 5px; height: 5px; background: var(--red);
  opacity: 0; transform: translateX(var(--dot-x, 0px));
  transition: transform .45s var(--ease), opacity .3s var(--ease);
}
.nav__dot.is-on { opacity: 1; }
.site-header__actions { display: flex; gap: 8px; }
.site-header__actions > a.icon-btn { display: none; }
@media (min-width: 560px) {
  .site-header__actions > a.icon-btn { display: inline-grid; }
}
@media (min-width: 1000px) {
  .nav { display: block; }
  .menu-btn { display: none; }
}

/* Scroll level meter (page progress) */
.meter { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.meter__fill {
  display: block; height: 100%; width: 100%;
  transform-origin: 0 50%; transform: scaleX(var(--progress, 0));
  background: linear-gradient(90deg, var(--red) 0 78%, #ff7a1a 88%, #ffd21a 100%);
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 10px, transparent 10px 12px);
  mask: repeating-linear-gradient(90deg, #000 0 10px, transparent 10px 12px);
}

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 70; background: rgba(13,13,15,0.98);
  padding: env(safe-area-inset-top, 0px) 0 var(--safe-b);
}
.menu__inner { height: 100%; display: flex; flex-direction: column; padding: 0 var(--gutter) 32px; }
.menu__top { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.menu__list { list-style: none; padding: 24px 0; margin: 0; flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.menu__list a {
  display: flex; align-items: baseline; gap: 16px; text-decoration: none;
  font-size: clamp(2.2rem, 10vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; text-transform: uppercase;
  padding: 6px 0; border-bottom: 1px solid var(--line);
}
.menu__list a .mono { color: var(--red-text); }
.menu__foot { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex; flex-direction: column; justify-content: flex-end;
  border-bottom: 1px solid var(--line);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media picture, .hero__media img, .hero__media .ph { width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 50% 40%; filter: grayscale(0.25) contrast(1.05); }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(13,13,15,0.55), rgba(13,13,15,0.62) 40%, rgba(13,13,15,0.94) 82%, var(--bg)),
    linear-gradient(to right, rgba(13,13,15,0.75), rgba(13,13,15,0.15));
}
.hero__content { position: relative; padding-top: clamp(28px, 6vh, 80px); padding-bottom: 16px; }
.hero__title {
  margin: 18px 0 20px; font-size: var(--fs-hero); line-height: 0.9; font-weight: 900; letter-spacing: -0.045em;
}
.hero__line { display: block; white-space: nowrap; }
.hero__sub { max-width: 44ch; font-size: var(--fs-intro); color: var(--text); line-height: 1.45; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 24px; }
.hero__tc {
  position: absolute; right: var(--gutter); top: 24px; color: var(--muted); font-size: 0.6875rem;
  display: none;
}
@media (min-width: 700px) { .hero__tc { display: block; } }

/* EQ / spectrum */
.eq {
  position: relative; height: clamp(150px, 24vh, 250px); margin: 8px 0 0;
  touch-action: pan-y;
}
.eq__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.eq__nodes { position: absolute; inset: 0; }
.eq__node {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%; background: transparent; border: 0; padding: 0;
  touch-action: none; cursor: grab;
  transform: translate(var(--x, 0px), var(--y, 0px));
}
.eq__node::before {
  content: ""; position: absolute; inset: 15px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--red-text);
  transition: transform .15s var(--ease), background-color .15s var(--ease);
}
.eq__node:hover::before, .eq__node.is-active::before, .eq__node:focus-visible::before { transform: scale(1.35); background: var(--red); }
.eq__node:focus-visible { outline-offset: -6px; }
.eq__node.is-dragging { cursor: grabbing; }
.eq__readout {
  position: absolute; left: 0; top: 0; padding: 4px 8px; white-space: nowrap; pointer-events: none;
  border: 1px solid var(--line); background: rgba(13,13,15,0.85); color: var(--text);
  font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: none;
  transform: translate(var(--x, 0px), var(--y, 0px));
}
.eq__transport { position: absolute; right: var(--gutter); top: -8px; display: flex; gap: 8px; }
.eq__btn {
  min-height: 44px; padding: 8px 14px; background: rgba(13,13,15,0.75); border: 1px solid var(--line); color: var(--text);
}
.eq__btn[aria-pressed="true"] { border-color: var(--red); color: var(--red-text); }
.eq__transport { align-items: center; flex-wrap: wrap; justify-content: flex-end; z-index: 2; }
.eq__label { color: var(--muted); font-size: 0.625rem; margin-right: 4px; }
.eq__btn { cursor: pointer; transition: border-color .2s var(--ease), color .2s var(--ease); }
.eq__btn:hover { border-color: var(--muted); }
.eq__btn.is-loading { opacity: 0.6; }
@media (max-width: 599px) { .eq__label { display: none; } .eq__btn { padding: 8px 10px; font-size: 0.625rem; } }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: var(--section-y); border-bottom: 1px solid var(--line); }
.section::before {
  content: ""; position: absolute; inset: 0 0 auto; height: min(520px, 70%); pointer-events: none; z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: var(--grid-step) var(--grid-step);
  -webkit-mask: linear-gradient(to bottom, #000, transparent);
  mask: linear-gradient(to bottom, #000, transparent);
}
.section { isolation: isolate; }
.section__head { margin-bottom: clamp(36px, 5vw, 64px); max-width: 980px; }
.display {
  font-size: var(--fs-display); font-weight: 900; line-height: 0.86; letter-spacing: -0.05em;
  margin: 14px 0 28px; overflow-wrap: anywhere;
}
.section--contact .display { font-size: clamp(3rem, 0.8rem + 9vw, 8rem); }
.lead { font-size: var(--fs-lead); line-height: 1.2; font-weight: 500; max-width: 22ch; letter-spacing: -0.015em; }
.intro { font-size: var(--fs-intro); color: var(--text-2); max-width: 52ch; line-height: 1.55; }
.prose p { color: var(--text-2); }
.prose p + p { margin-top: 1.1em; }
.subhead { color: var(--muted); margin: 40px 0 18px; font-weight: 500; }
.h3 { font-size: var(--fs-h3); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.subsection-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px;
  padding-bottom: 16px; margin: clamp(48px, 6vw, 80px) 0 28px; border-bottom: 1px solid var(--line);
}
.subsection-head:first-of-type { margin-top: 0; }

/* ---------- About ---------- */
.about { display: grid; gap: clamp(28px, 5vw, 72px); align-items: start; }
.about__portrait { max-width: 520px; }
.about__bio { font-size: 1.125rem; max-width: 60ch; }
@media (min-width: 900px) {
  .about { grid-template-columns: 5fr 7fr; }
  .about__bio { padding-top: 8px; font-size: 1.1875rem; }
}

/* Lecturer quotes (About) */
.testimonials { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 14px; }
.testimonial figure { height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; padding: 24px 24px 22px; border: 1px solid var(--line); border-left: 2px solid var(--red); background: rgba(23,23,26,0.6); }
.testimonial blockquote p { font-size: 1.0625rem; line-height: 1.5; color: var(--text); font-style: italic; }
.testimonial figcaption { display: grid; gap: 4px; }
.testimonial__name { font-weight: 700; }
.testimonial__role { color: var(--muted); font-size: 0.625rem; }
@media (min-width: 900px) { .testimonials { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--red);
  padding: 22px; transition: transform .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease);
}
.card:hover { transform: translateY(-3px); background: var(--surface-2); }
.card__kicker { color: var(--muted); margin-bottom: 10px; }
.card__title { font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.card__text { color: var(--text-2); font-size: var(--fs-small); margin-top: 6px; }
.card__note { color: var(--muted); margin-top: 10px; font-size: 0.625rem; }
.card--badge { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.card__badge { width: 84px; height: auto; flex: none; }
.card--badge picture { flex: none; }
.card--photo { padding: 0; display: grid; grid-template-columns: 42% 1fr; overflow: hidden; }
.card--photo picture, .card--photo img { height: 100%; object-fit: cover; }
.card--photo .card__body { padding: 22px; }
@media (min-width: 1000px) {
  .snapshot { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Film ---------- */
.credit { display: grid; align-items: start; gap: clamp(24px, 4vw, 56px); padding-block: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line); }
.credit:first-of-type { border-top: 0; padding-top: 0; }
.credit__poster { max-width: 360px; }
.credit__aside { display: grid; gap: 22px; align-content: start; max-width: 360px; }
.credit__aside .credit__poster { max-width: none; }
.credit__quote { border-left: 2px solid var(--red); padding-left: 18px; color: var(--text-2); font-size: var(--fs-small); line-height: 1.6; }
.credit__quote p { font-style: italic; }
.credit__quote p + p { margin-top: 0.9em; }
.credit__quote-link { color: var(--text); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.credit__quote-link:hover { color: var(--red-text); }
.credit__quote figcaption { margin-top: 14px; color: var(--muted); font-size: 0.625rem; }
.credit__meta { color: var(--red-text); margin-bottom: 10px; }
.credit__title { font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem); font-weight: 900; letter-spacing: -0.035em; line-height: 1; }
.credit__title em, .release__title em, .trailer__title em { font-style: normal; }
h4.credit__title { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); }
.credit__role { font-size: 1.125rem; font-weight: 600; margin: 14px 0 6px; }
.credit__text { color: var(--text-2); max-width: 56ch; margin-bottom: 20px; }
@media (min-width: 800px) {
  .credit { grid-template-columns: minmax(220px, 4fr) 8fr; }
}

.press { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.press figure { background: var(--surface); border: 1px solid var(--line); }
.press picture { overflow: hidden; }
.press img { transition: transform .5s var(--ease); }
.press__item:hover img { transform: scale(1.03); }
.press figcaption { padding: 12px; display: grid; gap: 2px; font-size: var(--fs-small); }
.press figcaption .mono { color: var(--muted); font-size: 0.625rem; }
@media (min-width: 640px) { .press { grid-template-columns: repeat(4, 1fr); } }

.bts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bts__main { grid-column: 1 / -1; }
.bts > .photo:not(.bts__main):not(.bts__tall) { align-self: start; }
/* Studio shot: tall portrait cropped low so the console stays in frame */
.bts__tall img { height: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 78%; }
@media (min-width: 800px) {
  /* Love, Eros: the text column stretches to the poster + quote column,
     and the studio shot grows down to fill it */
  .credit--alt { align-items: stretch; }
  .credit--alt .credit__body { display: flex; flex-direction: column; }
  .credit--alt .bts { flex: 1; grid-template-rows: auto 1fr; }
  .bts__tall { min-height: 0; }
  .bts__tall img { position: absolute; inset: 0; aspect-ratio: auto; }
  .bts__tall { min-height: clamp(240px, 26vw, 420px); }
}

.strip {
  display: grid; gap: 6px 20px; padding: 20px 22px; margin-top: clamp(32px, 4vw, 56px);
  border: 1px solid var(--line); background: var(--surface);
}
.strip__label { color: var(--red-text); }
.strip__title { font-weight: 700; }
.strip__date { color: var(--muted); }
.strip__text { color: var(--text-2); font-size: var(--fs-small); }
@media (min-width: 900px) {
  .strip { grid-template-columns: auto auto auto 1fr; align-items: baseline; }
}

/* ---------- Music ---------- */
.roles {
  display: inline-flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 32px; padding: 18px 22px;
  border: 1px solid var(--line); background: rgba(23,23,26,0.6); text-transform: none;
}
.roles__label { color: var(--muted); text-transform: uppercase; }
.roles__list { color: var(--red-text); letter-spacing: 0.1em; font-size: 0.8125rem; }

.studio { display: grid; gap: clamp(14px, 2vw, 20px); }
.studio__feature { display: grid; gap: clamp(14px, 2vw, 20px); align-items: start; }
.studio__album { display: grid; gap: 20px; align-content: start; }
.studio__album .credit__title { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); font-weight: 900; letter-spacing: -0.035em; }
.studio__album-body > * + * { margin-top: 8px; }
.studio__album-body .link-ext { margin-top: 14px; }
.studio__strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
.studio__strip .photo img { aspect-ratio: 3 / 4; object-fit: cover; }
.studio__nic { grid-column: 1 / -1; }
.studio > *, .studio__feature > *, .studio__strip > *, .about > *, .live > *, .contact > *, .credit > * { min-width: 0; }
@media (min-width: 600px) and (max-width: 959px) {
  .studio__album { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}
@media (min-width: 960px) {
  .studio__feature { grid-template-columns: 7fr 4fr; }
  .studio__strip { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.3fr); }
  .studio__nic { grid-column: auto; align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; }
}

.releases-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.releases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 14px; counter-reset: rel; }
.release--featured { grid-column: 1 / -1; }
.release__title { font-size: 1.125rem; font-weight: 700; margin-top: 14px; letter-spacing: -0.01em; line-height: 1.25; }
.release--featured .release__title { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); font-weight: 900; letter-spacing: -0.03em; }
.release__meta { color: var(--muted); margin-top: 6px; font-size: 0.625rem; }
.release__role { color: var(--text-2); font-size: var(--fs-small); margin-top: 4px; }
@media (min-width: 700px) {
  .releases { grid-template-columns: repeat(3, 1fr); }
  .release--featured { grid-column: span 2; grid-row: span 2; }
}
@media (min-width: 1100px) {
  .releases { grid-template-columns: repeat(4, 1fr); }
}

/* Playable cover */
.cover {
  position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line);
  background: var(--surface); overflow: hidden; text-align: left;
}
.cover img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .6s var(--ease), filter .4s var(--ease); }
.cover::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,13,15,0.85), transparent 55%);
  opacity: 0; transition: opacity .3s var(--ease);
}
.cover__num { position: absolute; top: 10px; left: 12px; z-index: 2; color: rgba(244,244,245,0.85); text-shadow: 0 1px 2px rgba(0,0,0,0.6); }
.cover__tag {
  position: absolute; top: 10px; right: 10px; z-index: 2; background: var(--red); color: #fff;
  padding: 4px 8px; font-size: 0.625rem;
}
.cover__play, .cover__now {
  position: absolute; left: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 10px; background: var(--red); color: #fff;
  opacity: 0; transform: translateY(6px); transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.cover__now { background: rgba(13,13,15,0.85); border: 1px solid var(--red); }
.cover:hover img, .cover:focus-visible img { transform: scale(1.04); }
.cover:hover::after, .cover:focus-visible::after, .cover.is-playing::after { opacity: 1; }
.cover:hover .cover__play, .cover:focus-visible .cover__play { opacity: 1; transform: none; }
.cover.is-playing { border-color: var(--red); }
.cover.is-playing .cover__play { opacity: 0; }
.cover.is-playing .cover__now { opacity: 1; transform: none; }
.cover.is-loading .cover__play { opacity: 1; transform: none; }
@media (hover: none) {
  .cover__play { opacity: 1; transform: none; padding: 5px 8px; font-size: 0.625rem; }
  .cover.is-playing .cover__play { opacity: 0; }
}
.cover--small .cover__play, .cover--small .cover__now { left: 6px; bottom: 6px; padding: 4px 6px; font-size: 0.5625rem; gap: 5px; }

.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.bars i { width: 3px; height: 100%; background: var(--red-text); transform-origin: bottom; transform: scaleY(0.4); }
@media (prefers-reduced-motion: no-preference) {
  .cover.is-playing .bars i { animation: level 0.9s ease-in-out infinite; }
  .cover.is-playing .bars i:nth-child(2) { animation-duration: 0.7s; animation-delay: -0.2s; }
  .cover.is-playing .bars i:nth-child(3) { animation-duration: 1.1s; animation-delay: -0.5s; }
  .cover.is-playing .bars i:nth-child(4) { animation-duration: 0.8s; animation-delay: -0.35s; }
}
@keyframes level {
  0%, 100% { transform: scaleY(0.3); }
  25% { transform: scaleY(1); }
  50% { transform: scaleY(0.55); }
  75% { transform: scaleY(0.85); }
}

/* ---------- Live ---------- */
.live { display: grid; gap: clamp(28px, 5vw, 72px); align-items: start; }
.timeline { list-style: none; padding: 0; margin: 0 0 32px; border-left: 1px solid var(--line); }
.timeline__item { position: relative; padding: 0 0 36px 28px; }
.timeline__item::before {
  content: ""; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; background: var(--red);
}
.timeline__date { color: var(--red-text); }
.timeline__title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); font-weight: 800; letter-spacing: -0.03em; margin-top: 8px; line-height: 1.1; }
.timeline__org { color: var(--muted); margin-top: 4px; }
.timeline__text { color: var(--text-2); margin-top: 12px; max-width: 56ch; }
.live__photo { max-width: 520px; }
@media (min-width: 900px) {
  .live { grid-template-columns: 7fr 5fr; }
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.chip {
  border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 7px 14px;
  font-size: 0.875rem; color: var(--text); background: var(--surface);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.chip:hover { border-color: var(--red); transform: translateY(-1px); }

/* ---------- Re-Sound ---------- */
.trailers { display: grid; gap: clamp(20px, 3vw, 28px); }
@media (min-width: 820px) { .trailers { grid-template-columns: repeat(3, 1fr); } }
.trailer { display: grid; gap: 8px; text-decoration: none; }
.trailer__thumb { display: block; overflow: hidden; border: 1px solid var(--line); }
.trailer__thumb img { aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s var(--ease), filter .4s var(--ease); filter: saturate(0.85); }
.trailer__play {
  position: absolute; left: 50%; top: 50%; z-index: 3; transform: translate(-50%, -50%) scale(0.96);
  background: var(--red); color: #fff; padding: 10px 16px; opacity: 0.92;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.trailer:hover .trailer__thumb img, .trailer:focus-visible .trailer__thumb img { transform: scale(1.04); filter: none; }
.trailer:hover .trailer__play, .trailer:focus-visible .trailer__play { transform: translate(-50%, -50%) scale(1.04); opacity: 1; }
.trailer__title { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.02em; margin-top: 8px; }
.trailer__meta { color: var(--muted); font-size: 0.625rem; }
.disclaimer { color: var(--muted); margin-top: 32px; text-transform: none; letter-spacing: 0.04em; }

/* ---------- Contact ---------- */
.contact { display: grid; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (min-width: 960px) { .contact { grid-template-columns: 7fr 5fr; } }
.form { position: relative; background: var(--surface); border: 1px solid var(--line); padding: clamp(24px, 4vw, 48px); display: grid; gap: 22px; }
.form .corner { top: 12px; left: 12px; }
.field { display: grid; gap: 10px; }
.field__label { color: var(--muted); }
.field__input {
  width: 100%; min-height: 50px; padding: 12px 14px; font-size: 16px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 0; color: var(--text);
  transition: border-color .2s var(--ease);
  -webkit-appearance: none; appearance: none;
}
select.field__input {
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px;
}
textarea.field__input { resize: vertical; min-height: 160px; line-height: 1.5; }
.field__input:hover { border-color: #3a3a40; }
.field__input:focus { border-color: var(--red); outline: none; box-shadow: 0 0 0 1px var(--red); }
.field__input[aria-invalid="true"] { border-color: var(--red-text); }
.field__error { color: var(--red-text); font-size: var(--fs-small); }
.form .btn { justify-self: start; }
.form__privacy { color: var(--muted); font-size: 0.875rem; }
.form__live:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form.is-sending .btn { opacity: 0.6; pointer-events: none; }

.form-status { display: none; padding: 18px 20px; margin-bottom: 18px; border: 1px solid var(--line); border-left: 3px solid; }
.form-status--ok { border-left-color: #3ccf7a; background: rgba(60,207,122,0.06); }
.form-status--err { border-left-color: var(--red); background: rgba(200,16,46,0.08); }
.form-status:target, .form-status.is-visible { display: block; }

.contact__intro { font-size: var(--fs-intro); color: var(--text-2); line-height: 1.5; }
.contact__list { list-style: none; padding: 0; margin: 28px 0; border-top: 1px solid var(--line); }
.contact__list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.contact__list a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; font-weight: 600; }
.contact__list a:hover { color: var(--red-text); }
.toolkit__label { margin: 18px 0 10px; font-size: 0.625rem; }

/* ---------- Footer ---------- */
.site-footer { padding: 32px 0 calc(32px + var(--safe-b)); color: var(--muted); font-size: var(--fs-small); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 4px 24px; list-style: none; padding: 0; }
.site-footer a { min-height: 44px; display: inline-flex; align-items: center; }
.site-footer a:hover, .site-footer .linklike:hover { color: var(--text); }

/* ---------- Spotify dock ---------- */
.dock {
  position: fixed; z-index: 60;
  left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px));
  bottom: calc(12px + var(--safe-b) + var(--consent-h, 0px));
  max-width: 560px; margin-inline: auto;
  transition: bottom .3s var(--ease);
}
.dock__inner {
  display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--red);
  padding: 8px; box-shadow: 0 18px 48px rgba(0,0,0,0.55);
}
.dock__player { min-height: 80px; border-radius: 12px; overflow: hidden; background: #121214; }
.dock__player iframe { display: block; width: 100%; border: 0; }
.dock__note { color: var(--muted); font-size: 0.625rem; text-align: center; margin-top: 6px; text-shadow: 0 1px 2px #000; }

/* ---------- Trailer modal ---------- */
.modal {
  padding: 0; border: 0; background: transparent; color: var(--text);
  width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: 100dvh; margin: 0;
}
.modal::backdrop { background: rgba(5,5,6,0.92); }
.modal[open] { display: grid; place-items: center; }
.modal__inner {
  width: min(100% - 24px, calc((100dvh - 150px) * 16 / 9), 1400px);
  padding-bottom: var(--safe-b);
}
.modal__bar, .modal__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; }
.modal__bar .mono { color: var(--red-text); }
.modal__frame { position: relative; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line); }
.modal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Consent banner ---------- */
.consent {
  position: fixed; z-index: 65; left: 0; right: 0; bottom: 0;
  padding: 18px var(--gutter) calc(18px + var(--safe-b));
  background: var(--surface); border-top: 2px solid var(--red);
  display: grid; gap: 14px; align-items: center;
}
.consent[hidden] { display: none; }
.consent__text { color: var(--text-2); font-size: var(--fs-small); max-width: 70ch; }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 760px) {
  .consent { grid-template-columns: 1fr auto; }
  .consent__actions { min-width: 280px; }
}

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Simple pages (privacy, 404) ---------- */
.page { padding-block: clamp(56px, 10vw, 120px); }
.page .display { font-size: clamp(2.6rem, 1rem + 8vw, 6rem); }
.page .prose { max-width: 68ch; }
.page .prose h2 { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.01em; margin: 2.2em 0 0.6em; color: var(--text); }
.page .prose ul { color: var(--text-2); padding-left: 1.2em; }
.page .prose li + li { margin-top: 0.4em; }
.page .prose a { color: var(--text); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .js .reveal { opacity: 1; transform: none; }
}
