/* Film Stock: darkroom ground, bone type, tungsten accent. One long linear cut. */
:root {
  --bg: #14110f;       /* darkroom */
  --raise: #1c1815;    /* frames */
  --ink: #ece3d4;      /* bone */
  --body: #d9cfbf;     /* running text */
  --mut: #a39684;      /* faded print */
  --acc: #d9a050;      /* tungsten */
  --line: #2e2722;

  --display: "Bodoni Moda", Georgia, serif;
  --text: "Hanken Grotesk", system-ui, sans-serif;
  --gutter: max(16px, 5vw);
  --max: 1240px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg); color: var(--ink);
  font-family: var(--text); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--acc); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }

.skip { position: absolute; left: var(--gutter); top: -100px; z-index: 10; padding: .5rem .75rem; background: var(--ink); color: var(--bg); }
.skip:focus { top: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: clamp(520px, 80vh, 880px); display: grid; align-content: space-between; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; filter: saturate(.85) contrast(1.05); }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgb(20 17 15 / .96) 0%, rgb(20 17 15 / .8) 34%, rgb(20 17 15 / .1) 72%),
    linear-gradient(0deg, var(--bg) 0%, transparent 34%),
    linear-gradient(180deg, rgb(20 17 15 / .7) 0%, transparent 16%);
}
.nav {
  position: relative; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: calc(22px + env(safe-area-inset-top, 0px)) var(--gutter) 22px;
  font-size: 14.5px;
}
.nav a { text-decoration: none; }
.nav nav { display: flex; gap: 26px; }
.nav nav a:hover { color: var(--acc); }
.hero-copy { position: relative; padding: 0 var(--gutter) 56px; display: grid; gap: 22px; }

.big-name { font-family: var(--display); font-weight: 400; font-size: clamp(56px, 10vw, 148px); line-height: .92; letter-spacing: -.01em; }
.sub { font-weight: 300; font-size: clamp(19px, 2vw, 26px); line-height: 1.38; max-width: 30ch; text-wrap: pretty; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 26px; font-size: 14.5px; font-weight: 500; color: var(--acc); }
.meta a { text-decoration: none; }
.meta a:hover { text-decoration: underline; }

/* ---------- Blocks ---------- */
.block { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(64px, 11vh, 120px) var(--gutter) 0; }
.split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 40px; }
.split > .label { padding-top: 10px; }
.label { font-family: var(--text); font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--acc); }
.label.centered { text-align: center; margin-bottom: 30px; }

.lead { font-family: var(--display); font-size: clamp(24px, 3vw, 34px); line-height: 1.28; text-wrap: pretty; max-width: 34ch; }
.prose { display: grid; gap: 1.1em; max-width: 62ch; margin-top: 28px; color: var(--body); }

/* Today */
.today-band { margin-top: clamp(64px, 11vh, 120px); border-block: 1px solid var(--line); padding: 34px var(--gutter); }
.today-band .split { max-width: var(--max); margin: 0 auto; }
.today { display: grid; gap: 6px; }
.today p { font-family: var(--display); font-size: clamp(20px, 2.2vw, 26px); line-height: 1.3; }
.today .small { font-family: var(--text); font-size: 15.5px; color: var(--mut); }

/* Experience: set like end credits, role left of the gutter, name right */
.xp-wrap { max-width: 860px; margin: 0 auto; }
.roll { display: grid; gap: .9em; }
.roll > div { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; align-items: baseline; }
.roll dt { text-align: right; color: var(--mut); font-weight: 300; font-size: 15.5px; }
.roll dd { font-family: var(--display); font-size: 19px; line-height: 1.3; }
.roll dd small { display: block; margin-top: 2px; font-family: var(--text); font-size: 13.5px; color: var(--mut); font-variant-numeric: tabular-nums; }

/* Media */
.frames { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.frame { display: grid; gap: 10px; align-content: start; }
.still {
  position: relative; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden;
  background: radial-gradient(120% 90% at 30% 20%, #2a231d 0%, var(--raise) 60%);
  background-size: cover; background-position: center;
  border: 1px solid var(--line); border-radius: 2px;
}
.still::before { content: ""; position: absolute; inset: 9%; border: 1px dashed rgb(163 150 132 / .22); }
.still-state { position: absolute; right: 10px; bottom: 8px; padding: 1px 6px; font-size: 12px; color: var(--mut); background: var(--raise); border-radius: 2px; }
.frame h3 { font-family: var(--display); font-weight: 500; font-size: 19px; line-height: 1.25; }
.frame p { font-size: 14.5px; color: var(--mut); }

.is-live .still { cursor: pointer; }
.is-live .still::before { display: none; }
.is-live .still-state { background: var(--ink); color: var(--bg); }
.is-live .still:hover .still-state { background: var(--acc); }

.credits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 56px; }
.credits h3 { margin-bottom: 10px; font-size: 13px; font-weight: 500; color: var(--acc); }
.credits li { padding: 7px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.4; }
.credits li span { display: block; color: var(--mut); font-size: 13px; }

/* Contact */
.contact { padding-bottom: clamp(72px, 12vh, 130px); display: grid; gap: 18px; }
.mail { font-family: var(--display); font-size: clamp(34px, 6.4vw, 84px); line-height: 1; overflow-wrap: anywhere; }
.mail a { text-decoration-thickness: 2px; text-underline-offset: .14em; }
.contact-links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15.5px; }

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  padding: 22px var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line); color: var(--mut); font-size: 13.5px;
}

/* Inline player: the still swaps for the embed in place */
.still iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.still.playing { border-color: transparent; background: #000; }
.still.playing::before, .still.playing .still-state { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .nav nav { display: none; }
  .hero-bg::after { background: linear-gradient(0deg, var(--bg) 0%, rgb(20 17 15 / .8) 50%, rgb(20 17 15 / .25) 100%); }
  .credits { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .frames { grid-template-columns: minmax(0, 1fr); }
  .roll > div { grid-template-columns: minmax(0, 1fr); }
  .roll dt { text-align: left; }
  .roll dd { order: -1; }
}

/* Keep hero text on the same left edge as the sections below */
.nav, .hero-copy { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; }
.hero-copy > * { max-width: 900px; }
.hero-copy .sub { max-width: 30ch; }

/* Bodoni below headline size: use the small optical cut so hairlines hold up on dark */
.lead, .today p:not(.small), .roll dd, .frame h3 {
  font-optical-sizing: none;
  font-variation-settings: "opsz" 9;
  font-weight: 500;
}
.mail { font-optical-sizing: none; font-variation-settings: "opsz" 28; }

/* Lead piece spans the full width of the media column */
.frame.feature { grid-column: 1 / -1; }
.frame.feature h3 { font-size: clamp(22px, 2.4vw, 28px); }
