:root {
  --bg: #08080a;
  --bg-2: #0f0f12;
  --fg: #ece7de;
  --dim: #a29c90;
  --line: rgba(236, 231, 222, 0.14);
  --accent: #d6a648;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1360px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── nav ─────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px var(--gutter);
  background: linear-gradient(to bottom, rgba(8,8,10,0.8), rgba(8,8,10,0));
  transition: background 0.3s;
}
.nav.solid { background: rgba(8,8,10,0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-logo { display: inline-flex; align-items: center; }
.nav-logo img { height: 92px; width: auto; transition: height 0.3s ease; filter: drop-shadow(0 2px 12px rgba(0,0,0,0.55)); }
.nav.solid .nav-logo img { height: 58px; }
.nav-links { display: flex; gap: clamp(18px, 3vw, 40px); list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--dim); transition: color 0.2s; }
.nav-links a:hover { color: var(--fg); }

/* ── hero ────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: #000;
}
.hero-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video {
  position: absolute; inset: 0; overflow: hidden;
  opacity: 0; transition: opacity 1.4s ease;
}
.hero-video.on { opacity: 1; }
.hero-video iframe {
  --w: max(100vw, 239vh);
  position: absolute; top: 50%; left: 50%;
  width: var(--w); height: calc(var(--w) * 0.5625);
  transform: translate(-50%, -50%);
  border: 0; pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(8,8,10,0.92) 0%, rgba(8,8,10,0.35) 38%, rgba(8,8,10,0) 62%),
    linear-gradient(to bottom, rgba(8,8,10,0.55) 0%, rgba(8,8,10,0) 18%);
}
.hero-inner {
  position: relative; z-index: 2; width: 100%;
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--gutter) clamp(40px, 8vh, 88px);
}
h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(3.2rem, 9vw, 8rem); line-height: 0.95; letter-spacing: -0.01em; margin: 0; }
.role { margin: 18px 0 0; font-size: clamp(0.95rem, 1.5vw, 1.15rem); color: var(--dim); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 26px; border-radius: 999px; cursor: pointer;
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--fg); background: var(--fg); color: #0a0a0b;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: transparent; color: var(--fg); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--fg); }
.btn svg { width: 14px; height: 14px; fill: currentColor; }
.now-playing { position: absolute; right: var(--gutter); bottom: clamp(40px, 8vh, 88px); z-index: 2; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); text-align: right; }
.now-playing b { display: block; color: var(--fg); font-weight: 500; letter-spacing: 0.08em; margin-top: 2px; }

/* ── sections ────────────────────────── */
section { padding: clamp(72px, 11vw, 140px) 0; border-top: 1px solid var(--line); position: relative; }
section.band { background: var(--bg-2); }
section.warm { background: #100e0b; }
section::before { content: ''; position: absolute; top: -1px; left: var(--gutter); width: 56px; height: 1px; background: var(--accent); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-size: 0.72rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.05; margin: 0 0 clamp(36px, 5vw, 64px); }

/* ── films ───────────────────────────── */
.film { margin-bottom: clamp(64px, 9vw, 120px); }
.film-rule { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--dim); }
.film-rule i { flex: 1; height: 1px; background: var(--line); }
.film-rule span:first-child { color: var(--accent); }
.frame {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  aspect-ratio: 2.39 / 1; overflow: hidden; background: #000; border-radius: 2px;
}
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(.2,.7,.2,1), filter 0.5s; }
.frame:hover img { transform: scale(1.025); filter: brightness(0.8); }
.play {
  position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(8,8,10,0.55); border: 1px solid rgba(236,231,222,0.5);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform 0.3s, background 0.3s;
}
.play svg { width: 26px; height: 26px; fill: var(--fg); margin-left: 4px; }
.frame:hover .play, .frame:focus-visible .play { transform: scale(1.08); background: rgba(8,8,10,0.75); }
.cap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 64px); margin-top: 26px; align-items: start; }
.cap h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.05; margin: 0; }
.meta { margin: 8px 0 0; font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); }
.cap p { margin: 0; color: #cfc9be; max-width: 60ch; }
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px 28px; margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.tools dt { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); }
.tools dd { margin: 3px 0 0; font-size: 0.92rem; }

.studies { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.studies .film { margin-bottom: 0; }
.studies .cap { grid-template-columns: 1fr; gap: 12px; }
.note { font-size: 0.84rem; color: var(--dim); max-width: 64ch; margin: -32px 0 48px; }

/* ── about ───────────────────────────── */
.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); }
.about p { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.6; margin: 0 0 1.1em; max-width: 44ch; }
.about-grid.has-photo { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
.about-photo img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 2px; }
.tools-label { margin-top: 36px; }
.skills { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.skills li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.98rem; }

/* ── more + contact ──────────────────── */
.more-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.more-head + .tiles, .more-head + .novel-row { margin-bottom: clamp(40px, 6vw, 72px); }
.more-head:last-child { margin-bottom: 0; }
.more-head h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0; }
.text-link { font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; color: var(--dim); border-bottom: 1px solid var(--line); padding-bottom: 3px; transition: color 0.2s, border-color 0.2s; }
.text-link:hover { color: var(--fg); border-color: var(--accent); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
.tile { display: block; text-decoration: none; }
.tile img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; border: 1px solid var(--line); transition: filter 0.4s; }
.tile:hover img { filter: brightness(0.8); }
.tile span { display: block; margin-top: 12px; font-family: var(--serif); font-size: 1.35rem; line-height: 1.15; }
.tile em, .novel-row em { display: block; margin-top: 4px; font-family: var(--sans); font-style: normal; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); }
.novel-row { display: grid; grid-template-columns: clamp(170px, 20vw, 280px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; text-decoration: none; }
.novel-row img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 2px; border: 1px solid var(--line); }
.novel-row b { display: block; color: var(--fg); font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 3.8vw, 3rem); line-height: 1.05; margin-bottom: 14px; }
.novel-row span { color: #cfc9be; max-width: 56ch; display: block; font-size: clamp(1rem, 1.4vw, 1.15rem); }
.novel-row:hover b { color: var(--accent); }
@media (max-width: 700px) { .tiles { grid-template-columns: 1fr; } .novel-row { grid-template-columns: 130px minmax(0, 1fr); gap: 20px; } .novel-row img { width: 100%; } }
.contact { text-align: left; }
.contact-line { max-width: 46ch; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #cfc9be; margin: 0 0 28px; }
.mail { display: inline-block; font-family: var(--serif); font-size: clamp(1.8rem, 5.2vw, 4rem); line-height: 1.1; text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 6px; word-break: break-word; transition: color 0.2s; }
.mail:hover { color: var(--accent); }
.socials { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 36px 0 0; padding: 0; }
.socials a { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; color: var(--dim); border-bottom: 1px solid var(--line); padding-bottom: 4px; transition: color 0.2s, border-color 0.2s; }
.socials a:hover { color: var(--fg); border-color: var(--accent); }

/* ── lightbox ────────────────────────── */
dialog#player { border: 0; padding: 0; background: #000; width: min(94vw, 1400px); max-width: none; max-height: 92vh; overflow: visible; color: var(--fg); }
dialog#player::backdrop { background: rgba(0,0,0,0.9); }
.player-box { position: relative; aspect-ratio: 16 / 9; width: 100%; max-height: 88vh; background: #000; }
.player-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-close {
  position: absolute; top: -46px; right: 0; background: none; border: 0; cursor: pointer;
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); padding: 8px 0;
}
.player-close:hover { color: var(--fg); }
.player-title { position: absolute; top: -46px; left: 0; margin: 0; padding: 8px 0; font-family: var(--serif); font-size: 1.2rem; }

/* ── reveal ──────────────────────────── */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
.js .rv.in { opacity: 1; transform: none; }
.hero-inner > * { animation: rise 0.7s ease-out both; }
.hero-inner > *:nth-child(2) { animation-delay: 0.08s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.16s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .cap, .about-grid, .about-grid.has-photo { grid-template-columns: 1fr; }
  .about-photo { max-width: 360px; }
  .studies { grid-template-columns: 1fr; }
  .studies .film { margin-bottom: 48px; }
  .now-playing { display: none; }
  .frame { aspect-ratio: 16 / 9; }
  .play { width: 68px; height: 68px; margin: -34px 0 0 -34px; }
  .nav-links { gap: 16px; }
}
@media (max-width: 520px) {
  .nav-logo img { height: 66px; }
  .nav.solid .nav-logo img { height: 46px; }
  .nav-links a { font-size: 0.68rem; letter-spacing: 0.1em; }
  .btn { padding: 13px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js .rv { opacity: 1; transform: none; }
}
footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: clamp(40px, 6vw, 72px) 0 28px; }
.foot-grid { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(24px, 5vw, 72px); align-items: center; }
.foot-logo img { height: clamp(110px, 12vw, 150px); width: auto; }
.foot-text { margin: 0; color: #cfc9be; max-width: 44ch; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-links a { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; color: var(--dim); }
.foot-links a:hover { color: var(--fg); }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--dim); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; justify-items: start; } }

/* ── sub-pages ───────────────────────── */
.page-head { padding: clamp(150px, 18vw, 230px) 0 clamp(48px, 7vw, 88px); }
.page-head h1 { font-size: clamp(3rem, 8vw, 6.5rem); }
.page-head .lede { max-width: 52ch; margin: 24px 0 0; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: #cfc9be; }
.entry { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 80px); align-items: center; margin-bottom: clamp(64px, 9vw, 120px); scroll-margin-top: 110px; }
.entry:last-child { margin-bottom: 0; }
.entry.flip .entry-img { order: 2; }
.entry-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; border: 1px solid var(--line); }
.entry-img.tall img { aspect-ratio: 2 / 3; max-width: 420px; }
.entry-text .film-rule { margin-bottom: 20px; }
.entry-text h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.05; margin: 0; }
.entry-text p { color: #cfc9be; max-width: 54ch; margin: 16px 0 0; }
.entry-text p.meta { color: var(--dim); margin-top: 8px; }
.entry-text .btn { margin-top: 26px; }
.entry.text-only { grid-template-columns: 1fr; }
.entry.text-only .entry-text { max-width: 720px; }
@media (max-width: 860px) {
  .entry, .entry.flip { grid-template-columns: 1fr; }
  .entry.flip .entry-img { order: 0; }
  .entry-img.tall img { max-width: 300px; }
}
@media (max-width: 520px) {
  .nav { padding-left: 14px; padding-right: 14px; }
  .nav-logo img { height: 54px; }
  .nav.solid .nav-logo img { height: 46px; }
  .nav-links { gap: 11px; }
  .nav-links a { font-size: 0.6rem; letter-spacing: 0.06em; }
}
