/* Jessica Scowcroft — site styles
   Palette: studio grey / ink / tally red (program) / tally amber (preview)
   Type: Bricolage Grotesque (display), IBM Plex Sans (body), IBM Plex Mono (rundown data) */

:root {
  --bg: #EDEEF0;
  --bg-2: #E3E5E8;
  --surface: #FFFFFF;
  --ink: #101214;
  --ink-2: #3A3E44;
  --muted: #6A6F77;
  --line: #C9CCD1;
  --line-2: #DDE0E4;
  --red: #E0332B;
  --red-ink: #B8241D;
  --amber: #F0A32E;
  --amber-ink: #8E5A0A;
  --focus: #1D5FD6;
  --wave: #1E56B5;
  --wave-ink: #164390;

  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 77.5rem;
  --radius: 0.1875rem;
}

:root[data-theme="dark"] {
  --bg: #0E1013;
  --bg-2: #14171B;
  --surface: #181B20;
  --ink: #ECEDEF;
  --ink-2: #C3C6CB;
  --muted: #8B9099;
  --line: #2C3138;
  --line-2: #22262C;
  --red: #F04A42;
  --red-ink: #FF6A62;
  --amber: #F5B24C;
  --amber-ink: #F5B24C;
  --focus: #6C9BFF;
  --wave: #4C8DFF;
  --wave-ink: #7FAEFF;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
@media (min-width: 1440px) { html { font-size: min(calc(16px + (100vw - 1440px) * 0.006), 22px); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 0.1875rem;
}

h1, h2, h3 { font-family: var(--display); margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.02; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

.mono, .eyebrow, .slot, .tc, .tally, .clock, .field label, .tag {
  font-family: var(--mono);
  font-size: 0.7812rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.eyebrow { color: var(--muted); display: flex; align-items: center; gap: 0.75rem; }
.eyebrow::before { content: ""; width: 1.75rem; height: 2px; background: var(--red); }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(0.625rem);
  border-bottom: 1px solid var(--line-2);
}
.site-head .wrap {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem; height: 4rem;
}
.wordmark { font-family: var(--display); font-weight: 800; letter-spacing: -0.01em; text-decoration: none; font-size: 1.125rem; white-space: nowrap; display: flex; align-items: center; gap: 0.75rem; }
.wordmark .tally { color: var(--red); }
.tally { display: inline-flex; align-items: center; gap: 0.4375rem; }
.tally::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; animation: tally 2.4s steps(1) infinite; }
@keyframes tally { 0%, 70% { opacity: 1; } 71%, 100% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .tally::before { animation: none; } }

.nav { display: flex; gap: 0.375rem; justify-content: center; }
.nav a { text-decoration: none; padding: 0.5rem 0.75rem; font-size: 0.9375rem; color: var(--ink-2); border-radius: var(--radius); }
.nav a:hover { color: var(--ink); background: var(--bg-2); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }

.head-tools { display: flex; align-items: center; gap: 0.875rem; }
.clock { color: var(--muted); font-variant-numeric: tabular-nums; }
.theme-btn {
  appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  width: 2.25rem; height: 2.25rem; border-radius: 50%; cursor: pointer; display: grid; place-items: center; padding: 0;
}
.theme-btn:hover { border-color: var(--ink); }
.theme-btn svg { width: 1rem; height: 1rem; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }

.menu-btn { display: none; }

@media (max-width: 980px) { .clock { display: none; } }
@media (max-width: 900px) { .nav a { font-size: 0.7188rem; padding: 0.375rem 0.5625rem; letter-spacing: .06em; } .site-head .wrap { gap: 0.75rem; } }
@media (max-width: 640px) {
  .site-head .wrap { grid-template-columns: auto 1fr; height: 3.625rem; }
  .head-tools { grid-row: 1; grid-column: 2; justify-self: end; }
  .nav { display: none; grid-row: 2; grid-column: 1 / -1; flex-direction: column; padding: 0.25rem 0 0.75rem; gap: 2px; }
  .nav.open { display: flex; }
  .site-head .wrap:has(.nav.open) { height: auto; }
  .nav a { font-size: 0.8125rem; padding: 0.625rem 0.75rem; }
  .menu-btn { display: inline-grid; place-items: center; }
}

/* ---------- intro (who she is) ---------- */
.intro { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 6vw, 5rem); }
.intro .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.75rem, 4vw, 4rem); align-items: end; }
.intro h1 { font-size: clamp(2.875rem, 6.2vw, 5.25rem); font-weight: 800; margin-top: 1.125rem; letter-spacing: -0.03em; }
.intro .lede { font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); color: var(--ink-2); margin-top: 1.375rem; max-width: 46ch; }
.intro .actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.875rem; }
.intro .frame { position: relative; aspect-ratio: 4 / 3; border-radius: 0.375rem; overflow: hidden; background: var(--bg-2); }
.intro .frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.intro .lower-third { left: 1.25rem; bottom: 1.25rem; }
@media (max-width: 900px) {
  .intro { padding-top: 1.75rem; }
  .intro .wrap { grid-template-columns: 1fr; gap: 2.25rem; }
  .intro .frame { order: -1; aspect-ratio: 3 / 2; }
  .intro .eyebrow { font-size: 0.7188rem; letter-spacing: .04em; gap: 0.625rem; }
  .intro .eyebrow::before { width: 1.375rem; flex: 0 0 auto; }
  .intro h1 { margin-top: 0.875rem; line-height: 0.98; }
  .intro .lede { margin-top: 1.25rem;  max-width: 60ch; }
}

/* ---------- hero (thesis + rundown) ---------- */
.hero { border-top: 1px solid var(--line-2); }
.hero .thesis { font-size: clamp(1.875rem, 3.4vw, 2.875rem); font-weight: 800; max-width: 22ch; margin-top: 1.125rem; }
.hero .thesis em { font-style: normal; color: var(--red); }
.hero { padding: clamp(2rem, 5vw, 4rem) 0; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 { font-size: clamp(2.75rem, 6.4vw, 5.5rem); font-weight: 800; max-width: 12ch; margin-top: 1.125rem; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lede { font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); color: var(--ink-2); max-width: none; margin-top: 1rem; }
.hero .actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 2.125rem; }

.btn {
  display: inline-flex; align-items: center; gap: 0.625rem; text-decoration: none; font-weight: 600; font-size: 0.9375rem;
  padding: 0.8125rem 1.25rem; border-radius: var(--radius); border: 1px solid var(--ink); color: var(--ink); background: transparent;
  cursor: pointer; font-family: var(--body); transition: transform .12s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:hover { background: var(--red-ink); border-color: var(--red-ink); color: #fff; }
.btn svg { width: 0.875rem; height: 0.875rem; }

/* ---------- rundown board (signature) ---------- */
.rundown { background: var(--surface); border: 1px solid var(--line); border-radius: 0.375rem; overflow: hidden; }
.rundown-head {
  display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.rundown-head .title { font-family: var(--mono); font-size: 0.7812rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.rundown-head .tally { color: var(--red); }
.rundown table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 0.8125rem; }
.rundown .cols { display: grid; grid-template-columns: 2.75rem 1fr 3.875rem; gap: 0.75rem; padding: 0.5rem 0.875rem; font-family: var(--mono); font-weight: 500; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; font-size: 0.6875rem; border-bottom: 1px solid var(--line-2); }
.rundown .cols span:last-child { text-align: right; }
.rundown td { padding: 0; border-bottom: 1px solid var(--line-2); }
.rundown tbody tr:last-child td { border-bottom: 0; }
.rundown tbody a { display: grid; grid-template-columns: 2.75rem 1fr 3.875rem; align-items: center; gap: 0.75rem; padding: 0.8125rem 0.875rem; text-decoration: none; color: var(--ink); }
.rundown tbody tr { opacity: 0; transform: translateY(0.375rem); animation: cue .5s ease forwards; }
.rundown tbody tr:nth-child(1) { animation-delay: .10s; }
.rundown tbody tr:nth-child(2) { animation-delay: .22s; }
.rundown tbody tr:nth-child(3) { animation-delay: .34s; }
.rundown tbody tr:nth-child(4) { animation-delay: .46s; }
.rundown tbody tr:nth-child(5) { animation-delay: .58s; }
.rundown tbody tr:nth-child(6) { animation-delay: .70s; }
@keyframes cue { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rundown tbody tr { animation: none; opacity: 1; transform: none; } }
.rundown tbody a:hover { background: var(--bg-2); }
.rundown .slot { color: var(--muted); }
.rundown .slug { font-family: var(--body); font-weight: 600; font-size: 0.9375rem; letter-spacing: 0; text-transform: none; }
.rundown .slug small { display: block; font-weight: 400; color: var(--muted); font-size: 0.8125rem; }
.rundown .tc { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.rundown tr.live .slot { color: var(--red); font-weight: 600; }
.rundown tr.live a { box-shadow: inset 0.1875rem 0 0 var(--red); }
.rundown tr.next a { box-shadow: inset 0.1875rem 0 0 var(--amber); }
.rundown-foot { padding: 0.625rem 0.875rem; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 0.7188rem; color: var(--muted); display: flex; justify-content: space-between; letter-spacing: .04em; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
}

/* ---------- photo band with lower third ---------- */
.band { position: relative; margin: 0 0 clamp(3rem, 8vw, 6rem); }
.band .frame { position: relative; width: 100%; height: clamp(22.5rem, 62vw, 78vh); overflow: hidden; background: var(--bg-2); }
.band img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.lower-third {
  position: absolute; left: var(--gutter); bottom: clamp(1.25rem, 4vw, 2.75rem);
  display: grid; grid-template-columns: auto 1fr; gap: 0; max-width: min(35rem, 90%);
}
.lower-third .bar { width: 0.625rem; background: var(--red); }
.lower-third .text { background: #0F1114; color: #fff; padding: 0.75rem 1.125rem 0.75rem 1rem; }
.lower-third .name { font-family: var(--display); font-weight: 800; font-size: clamp(1.125rem, 2.2vw, 1.625rem); letter-spacing: -0.01em; line-height: 1.1; }
.lower-third .role { font-family: var(--mono); font-size: 0.75rem; letter-spacing: .08em; text-transform: uppercase; color: #C9CCD1; margin-top: 0.25rem; }

/* ---------- sections ---------- */
.section { padding: clamp(2.5rem, 6vw, 5rem) 0; border-top: 1px solid var(--line-2); }
.section.flush { border-top: 0; padding-top: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); flex-wrap: wrap; }
.section h2 { font-size: clamp(1.875rem, 3.6vw, 3rem); }
.section .eyebrow { margin-bottom: 0.875rem; }

.bio { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.bio .copy { font-size: 1.125rem; color: var(--ink-2); }
.bio .copy p:first-of-type { font-size: clamp(1.25rem, 2vw, 1.5rem); color: var(--ink); font-weight: 500; line-height: 1.4; }
.facts { border-top: 2px solid var(--ink); margin: 0.375rem 0 0; }
.facts div { display: grid; grid-template-columns: 6.875rem 1fr; gap: 0.875rem; padding: 0.875rem 0; border-bottom: 1px solid var(--line-2); }
.facts dt { font-family: var(--mono); font-size: 0.75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 0.1875rem; }
.facts dd { margin: 0; font-weight: 500; }
.facts dd small { display: block; color: var(--muted); font-weight: 400; font-size: 0.875rem; }
@media (max-width: 860px) { .bio { grid-template-columns: 1fr; } }
.skills-row { display: flex; flex-wrap: wrap; gap: 0.75rem 3rem; margin: clamp(1.25rem, 3vw, 2rem) 0 0; padding-top: 0.75rem; border-top: 2px solid var(--ink); }
.skills-row > div { flex: 0 1 auto; }
.skills-row dt { font-family: var(--mono); font-size: 0.7188rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.skills-row dd { margin: 0; font-weight: 500; font-size: 1rem; white-space: nowrap; }
@media (max-width: 700px) { .skills-row dd { white-space: normal; } }

/* ---------- reels carousel ---------- */
.carousel { padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.carousel-tabs { display: flex; gap: 0.375rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.ctab { appearance: none; background: none; border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 0.9375rem; color: var(--ink-2); padding: 0.625rem 0.875rem 0.75rem; display: inline-flex; align-items: center; gap: 0.625rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ctab .slot { color: var(--muted); font-size: 0.75rem; }
.ctab:hover { color: var(--ink); }
.ctab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--red); }
.ctab[aria-selected="true"] .slot { color: var(--red); }
.carousel-body { display: block; }
.carousel-stage { position: relative; display: grid; grid-template-columns: 1fr minmax(0, 45rem) 1fr; align-items: center; column-gap: 1.25rem; }
.carousel-stage .player { grid-column: 2; }
.carousel-stage .controls { grid-column: 3; justify-self: start; }
.carousel-stage .controls { display: flex; align-items: center; gap: 0.25rem; }
@media (max-width: 1100px) { .carousel-stage { grid-template-columns: 1fr; } .carousel-stage .player, .carousel-stage .controls { grid-column: 1; } .carousel-stage .controls { justify-self: end; margin-top: 0.625rem; } }
.carousel-stage .counter { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 0.75rem; letter-spacing: .02em; margin: 0 0.25rem; white-space: nowrap; }
.carousel-stage .controls { flex-wrap: nowrap; }
.slides { margin-top: clamp(0.875rem, 2vw, 1.375rem); }
.player { position: relative; aspect-ratio: 16 / 9; background: #0F1114; border-radius: 0.375rem; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 0 0 0.25rem var(--surface), 0 0 0 0.3125rem var(--line); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cbtn { appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); width: 2.5rem; height: 2.5rem; border-radius: 50%; cursor: pointer; display: grid; place-items: center; padding: 0; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.cbtn:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.cbtn svg { width: 1.125rem; height: 1.125rem; }
.cbtn:disabled { opacity: .28; cursor: default; pointer-events: none; }
.slide[hidden] { display: none; }
.slide { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.recent { display: block; }
.recent[hidden] { display: none; }
.slide-head { margin-bottom: 0.875rem; }
.slide .slide-head .eyebrow { margin: 0 0 0.75rem; line-height: 1.4; }
.slide-body .details-label { font-size: clamp(1.375rem, 2.2vw, 1.75rem); margin: calc(0.7812rem * 1.4 + 0.75rem) 0 0.5rem; }
.slide-body .details-label + p { margin-top: 0; }
.slide-lead { color: var(--ink-2); font-size: 1rem; line-height: 1.6; max-width: none; margin-top: 0.875rem; }
@media (max-width: 800px) { .slide { grid-template-columns: 1fr; gap: 0.75rem; } .slide-body .details-label { margin-top: 1rem; } }
.recent { padding: clamp(1.75rem, 4vw, 3rem) 0 0; border-top: 1px solid var(--line-2); }

.slide-head h3 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); }
.slide-head .tag { display: inline-block; margin-top: 0.5rem; color: var(--muted); }
.slide-body { min-width: 0; }
.slide-body p { color: var(--ink-2); max-width: none; font-size: 1rem; line-height: 1.6; }
.slide.is-active .slide-body { animation: fadein .3s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(0.25rem); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .slide.is-active .slide-body { animation: none; } }
.note { border-left: 0.1875rem solid var(--amber); padding: 0.625rem 1rem; color: var(--ink-2); background: var(--surface); font-size: 0.9375rem; border-radius: 0 var(--radius) var(--radius) 0; }


/* ---------- experience ---------- */
.timeline { border-top: 2px solid var(--ink); }
.job { display: grid; grid-template-columns: 12.5rem minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 4rem); padding: clamp(1.625rem, 3.5vw, 2.75rem) 0; border-bottom: 1px solid var(--line-2); }
.job .when { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: .04em; color: var(--muted); padding-top: 0.375rem; font-variant-numeric: tabular-nums; }
.job .when b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 0.25rem; }
.job h3 { font-size: clamp(1.375rem, 2.2vw, 1.875rem); }
.job .org { color: var(--ink-2); font-weight: 500; margin: 0.375rem 0 1rem; }
.job ul { margin: 0; padding-left: 1.125rem; color: var(--ink-2); }
.job li { margin-bottom: 0.5rem; padding-left: 0.25rem; }
.job li::marker { color: var(--red); }
.job.current h3::after { content: "Now"; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--red); padding: 0.1875rem 0.4375rem; border-radius: 2px; margin-left: 0.75rem; vertical-align: middle; }
@media (max-width: 760px) { .job { grid-template-columns: 1fr; gap: 0.5rem; } }

/* ---------- contact ---------- */
body:has(.contact-page) { height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
body:has(.contact-page) .site-foot { display: none; }
.contact-page { flex: 1; min-height: 0; display: flex; }
.contact-page .section { flex: 1; min-height: 0; padding: clamp(1rem, 2.5vh, 2.25rem) 0; display: flex; align-items: center; }
@media (max-height: 560px), (max-width: 860px) { body:has(.contact-page) { height: auto; overflow: auto; } body:has(.contact-page) .site-foot { display: flex; } }
.contact-page .section > .wrap { width: 100%; }
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.contact h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.contact .contact-intro { font-size: 1.125rem; color: var(--ink-2); margin: 0.875rem 0 1.375rem; max-width: 48ch; }
.form { display: grid; gap: 0.875rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.875rem; }
.field { display: grid; gap: 0.5rem; }
.field label { color: var(--muted); }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.75rem 0.875rem; width: 100%;
}
.field input:focus, .field textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 0.1875rem color-mix(in srgb, var(--focus) 20%, transparent); }
.field textarea { min-height: 7.5rem; resize: vertical; }
.form .foot { display: flex; align-items: center; gap: 1.125rem; flex-wrap: wrap; }
.form .status { font-size: 0.875rem; color: var(--muted); }
.form .status.err { color: var(--red-ink); }
.form .status.ok { color: var(--ink); }
.alt { margin-top: 1.375rem; padding-top: 1rem; border-top: 1px solid var(--line-2); color: var(--ink-2); font-size: 0.9375rem; line-height: 1.7; }
.alt a { font-weight: 600; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } .contact .portrait { max-width: 26.25rem; } .form .row { grid-template-columns: 1fr; } }

/* ---------- CTA strip ---------- */
.cta { background: var(--ink); color: var(--bg); padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
:root[data-theme="dark"] .cta { background: var(--surface); color: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; }
.cta h2 { font-size: clamp(1.75rem, 3.2vw, 2.625rem); max-width: 20ch; }
.cta .btn { border-color: currentColor; color: inherit; }
.cta .btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
@media (max-width: 700px) { .cta .wrap { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-foot { padding: 1.75rem 0; border-top: 1px solid var(--line-2); color: var(--muted); font-size: 0.875rem; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap; align-items: center; }
.site-foot a { color: var(--ink-2); text-decoration: none; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }
.site-foot .links { display: flex; gap: 1.25rem; }
.site-foot .mono { font-size: 0.7188rem; }

.page-title { padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(0.75rem, 2vw, 1.25rem); }
.page-title h1 { margin-top: 0; }
.page-title h1 { font-size: clamp(2.125rem, 4.4vw, 3.5rem); font-weight: 800; }
.page-title .lede { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); color: var(--ink-2); max-width: 56ch; margin-top: 1rem; }
.page-title .lede.one-line { max-width: none; }

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

/* ---------- reels page: compact ---------- */
.reels-page .page-title { padding: clamp(0.875rem, 2vh, 1.75rem) 0 clamp(0.5rem, 1.5vh, 1rem); }
.reels-page .page-title h1 { font-size: clamp(1.875rem, 4vh, 3rem); }
.reels-page .carousel { padding-bottom: clamp(0.75rem, 2vh, 1.75rem); }
.reels-page .carousel-tabs { margin-bottom: clamp(0.625rem, 1.6vh, 1rem); }
.reels-page .carousel-stage { grid-template-columns: 1fr minmax(0, clamp(30rem, calc((100vh - 26.875rem) * 16 / 9), 56.25rem)) 1fr; }
.reels-page .slides { margin-top: clamp(0.625rem, 1.8vh, 1.25rem); }
.reels-page .cta { padding: clamp(1.75rem, 4vw, 2.75rem) 0; margin-top: clamp(1.25rem, 3vw, 2.5rem) !important; }
@media (max-width: 1100px) { .reels-page .carousel-stage { grid-template-columns: 1fr; } .reels-page .carousel-stage .player { width: clamp(26.25rem, calc((100vh - 26.875rem) * 16 / 9), 56.25rem); max-width: 100%; justify-self: center; } .reels-page .carousel-stage .controls { justify-self: center; margin-top: 0.5rem; } }

/* ---------- experience: TV guide ---------- */
.guide-wrap { padding: clamp(1rem, 2.5vw, 2rem) 0 clamp(2rem, 5vw, 3.5rem); }
.guide { background: var(--surface); border: 1px solid var(--line); border-radius: 0.5rem; overflow: hidden; }
.guide-head { display: grid; grid-template-columns: 13.75rem 1fr; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.guide-corner { padding: 0.625rem 0.75rem; display: flex; align-items: center; }
.guide-corner .tally { white-space: nowrap; }
.guide-corner .tally { color: var(--red); }
.guide-years { display: grid; grid-template-columns: repeat(40, 1fr); font-family: var(--mono); font-size: 0.75rem; letter-spacing: .08em; color: var(--muted); }
.guide-years span { padding: 0.625rem 0.625rem; border-left: 1px solid var(--line); }
.guide-row { display: grid; grid-template-columns: 13.75rem 1fr; border-bottom: 1px solid var(--line-2); }
.guide-row:last-child { border-bottom: 0; }
.channel { display: flex; align-items: center; gap: 0.75rem; padding: 0.875rem 1rem; border-right: 1px solid var(--line); }
.ch { font-family: var(--display); font-weight: 800; font-size: 1.125rem; letter-spacing: -0.02em; width: 2.75rem; min-width: 2.75rem; height: 2.75rem; padding: 0; border-radius: 0.5rem; background: var(--bg-2); color: var(--ink); border: 1px solid var(--line); display: grid; place-items: center; }
.ch.small { font-size: 0.875rem; letter-spacing: 0; }
.ch-name { font-weight: 600; font-size: 0.9375rem; line-height: 1.25; }
.ch-name small { display: block; font-weight: 400; color: var(--muted); font-size: 0.7812rem; margin-top: 2px; }
.lane { display: grid; grid-template-columns: repeat(40, 1fr); grid-auto-rows: minmax(3.25rem, auto); gap: 0.375rem 0; padding: 0.5rem 0;
  background-image: repeating-linear-gradient(to right, var(--line-2) 0 1px, transparent 1px calc(100% / 40)); }
.lane.two { grid-template-rows: auto auto; }
.block { appearance: none; border: 1px solid var(--line); text-align: left; cursor: pointer; font: inherit; color: var(--ink); background: var(--bg-2); box-shadow: inset 0.1875rem 0 0 var(--ink-2); border-radius: 0.25rem; margin: 0 0.1875rem; padding: 0.5rem 0.5rem 0.5rem 0.6875rem; display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; overflow: hidden; transition: transform .12s ease, box-shadow .12s ease; }
.block:hover { transform: translateY(-1px); }
.block:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.block.is-selected { outline: none; border-width: 2px; border-color: var(--ink); background: var(--surface); box-shadow: none; padding: 0.375rem 0.5rem 0.375rem 0.625rem; }
.block.school.is-selected { background: var(--surface); border-color: var(--amber); color: var(--ink); }
.block.on-now { background: var(--red); color: #fff; border-color: var(--red); box-shadow: none; }
.block.on-now .block-title::before { content: "● "; font-size: 0.625rem; vertical-align: 2px; }
.block.school { background: var(--amber); color: #1a1408; border-color: var(--amber); box-shadow: none; }
.block-title { font-weight: 700; font-size: 0.875rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.block-when { font-family: var(--mono); font-size: 0.6562rem; letter-spacing: 0; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: clip; }


.now-playing { margin-top: 1.25rem; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-left: 0.375rem solid var(--red); border-radius: 0.5rem; padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2.25rem); }
.np-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.625rem; }
.np-tally { color: var(--red); }
.now-playing.is-school { border-left-color: var(--amber); }
.now-playing.is-school .np-tally, .now-playing.is-school li::marker { color: var(--amber-ink); }
.np-station { color: var(--muted); }
.now-playing h2 { font-size: clamp(1.625rem, 3vw, 2.375rem); }
.np-when { color: var(--muted); margin: 0.375rem 0 1rem; }
.now-playing ul { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.5rem; font-size: 1.0312rem; max-width: 70ch; }
.now-playing li::marker { color: var(--red); }
.now-playing.flash { animation: npflash .35s ease; }
@keyframes npflash { from { opacity: .4; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .now-playing.flash { animation: none; } .block:hover { transform: none; } }
.toolkit { padding-top: 0; border-top: 0; }
.toolkit .skills-row { margin-top: 0; }

@media (max-width: 860px) {
  .guide-head { display: none; }
  .guide-row { grid-template-columns: 1fr; }
  .channel { border-right: 0; border-bottom: 1px dashed var(--line-2); }
  .lane { display: flex; flex-direction: column; gap: 0.375rem; padding: 0.625rem 0.75rem; background-image: none; }
  .block { margin: 0; }
  .block-title, .block-when { white-space: normal; }
}

/* ---------- experience: layout ---------- */
.exp-page .page-title { padding: clamp(1.25rem, 3vh, 2rem) 0 0; }
.exp-page .title-row { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap; }
.exp-page .page-title h1 { font-size: clamp(2.125rem, 4.4vw, 3.5rem); }
.exp-page .skills-row { margin-top: 1rem; padding-top: 0.625rem; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1.35fr); gap: 0.5rem 2rem; }
.exp-page .skills-row > div:last-child { justify-self: end; }
.exp-page .skills-row > div { text-align: left; min-width: 0; }
@media (max-width: 900px) { .exp-page .skills-row { grid-template-columns: 1fr; } .exp-page .skills-row > div:last-child { justify-self: start; } }
.exp-page .skills-row dd { font-size: 0.9062rem; }
.exp-page .skills-row dt { font-size: 0.6875rem; }
.exp-page .guide-wrap { padding: clamp(1.125rem, 2.5vw, 1.75rem) 0 clamp(2rem, 4vw, 3.5rem); }
.guide-layout .now-playing { margin-top: 1rem; padding: clamp(1.125rem, 2.5vw, 1.625rem) clamp(1.25rem, 3vw, 1.875rem); }
.guide-layout .now-playing h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.guide-layout .now-playing ul { font-size: 1rem; gap: 0.375rem; max-width: none; columns: 2; column-gap: 2.5rem; }
.guide-layout .now-playing li { break-inside: avoid; }
.guide-layout .np-when { margin: 0.25rem 0 0.75rem; }
.guide-head, .guide-row { grid-template-columns: 12.5rem 1fr; }
.channel { padding: 0.75rem 0.875rem; gap: 0.625rem; }
.ch { width: 3.25rem; min-width: 3.25rem; height: 2.25rem; font-size: 0.875rem; letter-spacing: 0; border-radius: 0.375rem; }
.ch-name { font-size: 0.9062rem; }
.lane { grid-auto-rows: minmax(3rem, auto); padding: 0.4375rem 0; }
.block { padding: 0.4375rem 0.5625rem 0.4375rem 0.6875rem; }
.guide-corner { gap: 0.5rem; justify-content: space-between; }
.guide-corner .hint { font-family: var(--body); font-size: 0.75rem; font-weight: 700; color: #fff; background: var(--ink); padding: 0.1875rem 0.5rem; border-radius: 62.4375rem; white-space: nowrap; }
.exp-page .cta { padding: clamp(1.5rem, 3vw, 2.5rem) 0; }
@media (max-width: 760px) { .guide-layout .now-playing ul { columns: 1; } }

/* ---------- WAVE blue: brand accent alongside tally red ---------- */
.channel.wave .ch { background: var(--wave); color: #fff; border-color: var(--wave); }
.block.on-now { background: var(--wave); border-color: var(--wave); }
.block.on-now .block-title::before { color: var(--red); }
.block.on-now.is-selected { background: var(--surface); border-color: var(--wave); color: var(--ink); }
.block.on-now.is-selected .block-title::before { color: var(--red); }
.now-playing.is-wave { border-left-color: var(--wave); }
.now-playing.is-wave .np-station { color: var(--wave-ink); }
.job.current h3::after { background: var(--wave); }
.rundown tr.live a { box-shadow: inset 0.1875rem 0 0 var(--wave); }
.rundown tr.live .slot { color: var(--wave); }
.facts div:first-child dd { color: var(--wave-ink); }
.site-foot a:hover, .alt a:hover, .note a:hover { color: var(--wave); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--wave); }
.intro .eyebrow::before, .hero .eyebrow::before { background: var(--wave); }

/* channel colors */
.channel.komu .ch { background: #C8102E; color: #fff; border-color: #C8102E; }
.channel.mba .ch { background: #5BA8E0; color: #fff; border-color: #5BA8E0; }
.channel.mu .ch { background: #F1B82D; color: #111; border-color: #F1B82D; }
.guide-row:has(.channel.komu) .block:not(.is-selected) { box-shadow: inset 0.1875rem 0 0 #C8102E; }
.guide-row:has(.channel.komu) .block.is-selected { border-color: #C8102E; }
.guide-row:has(.channel.mba) .block:not(.is-selected) { box-shadow: inset 0.1875rem 0 0 #5BA8E0; }
.guide-row:has(.channel.mba) .block.is-selected { border-color: #5BA8E0; }

/* ---------- contact: teleprompter ---------- */
.contact { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.prompter { border: 1px solid var(--line); border-radius: 0.625rem; overflow: hidden; background: #0B0C0E; color: #fff; }
.prompter-top, .prompter-foot { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 0.5625rem 0.875rem; font-size: 0.6875rem; color: #F2F3F5; background: #14161A; }
.prompter-top { border-bottom: 1px solid #23262C; }
.prompter-foot { border-top: 1px solid #23262C; justify-content: flex-end; }
.prompter-top .tally { color: var(--red); }
.prompter-screen { position: relative; aspect-ratio: 4 / 3; max-height: calc(100vh - 4rem - 10rem); overflow: hidden; padding: 0 clamp(1.25rem, 3vw, 2.75rem); }
.prompter-screen::before, .prompter-screen::after { content: ""; position: absolute; left: 0; right: 0; height: 22%; z-index: 2; pointer-events: none; }
.prompter-screen::before { top: 0; background: linear-gradient(#0B0C0E, rgba(11,12,14,0)); }
.prompter-screen::after { bottom: 0; background: linear-gradient(rgba(11,12,14,0), #0B0C0E); }
.prompter-line { display: none; }
.prompter-copy { position: absolute; left: clamp(1.25rem, 3vw, 2.75rem); right: clamp(1.25rem, 3vw, 2.75rem); top: 30%; transition: transform .25s ease; }
.pr-cue { font-family: var(--mono); color: var(--amber); font-size: clamp(0.875rem, 1.4vw, 1.125rem); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 .5em; }
.pr-body { font-family: var(--display); font-weight: 700; font-size: clamp(1.375rem, 2.6vw, 2.375rem); line-height: 1.25; letter-spacing: -0.01em; text-transform: uppercase; margin: 0; word-break: break-word; }
@media (prefers-reduced-motion: reduce) { .prompter-copy { transition: none; } }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; font-size: 0.8438rem; font-weight: 500; border: 1px solid var(--line); background: var(--surface); padding: 0.375rem 0.625rem 0.375rem 0.375rem; border-radius: 62.4375rem; color: var(--ink); }
.chip:hover { border-color: var(--wave); color: var(--wave); }
.chip-k { font-family: var(--mono); font-size: 0.6562rem; letter-spacing: .08em; text-transform: uppercase; background: var(--bg-2); border-radius: 62.4375rem; padding: 0.1875rem 0.5rem; color: var(--muted); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } .prompter { max-width: 38.75rem; } }

/* home: trim space under the bio now that the CTA band is gone */
#producer.section { padding-bottom: clamp(2.5rem, 6vw, 5rem); }

/* reel poster: our own play button instead of YouTube's overlay chrome */
.poster { appearance: none; border: 0; padding: 0; margin: 0; cursor: pointer; position: absolute; inset: 0; width: 100%; height: 100%; background: #0F1114; display: block; }
.poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster .play-btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; transition: transform .15s ease; }
.poster .play-btn svg { width: 1.875rem; height: 1.875rem; margin-left: 0.25rem; }
.poster:hover .play-btn { transform: translate(-50%, -50%) scale(1.06); }
.poster:focus-visible { outline: 0.1875rem solid var(--focus); outline-offset: -0.1875rem; }
.player iframe[hidden] { display: none; }

body:has(.reels-page) .site-foot { display: none; }

/* ---------- reels: newsroom software layout (iNEWS / ENPS style) ---------- */
.reels-page .page-title { padding: clamp(0.625rem, 1.5vh, 1.125rem) 0 clamp(0.375rem, 1vh, 0.625rem); }
.reels-page .page-title h1 { font-size: clamp(1.625rem, 3.2vh, 2.25rem); }
.reels-page .carousel { padding-bottom: 0.75rem; }
.reels-page .carousel-stage { display: grid; grid-template-columns: minmax(18.75rem, 23.75rem) minmax(0, 1fr) auto; align-items: stretch; column-gap: 0.875rem; }
.rd { grid-column: 1; border: 1px solid var(--line); border-radius: 0.375rem; background: var(--surface); overflow: hidden; display: flex; flex-direction: column; font-family: var(--mono); }
.rd-title { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0.75rem; background: var(--bg-2); border-bottom: 1px solid var(--line); font-size: 0.6875rem; letter-spacing: .06em; color: var(--muted); }
.rd-title .tally { font-size: 0.6875rem; }
.rd-title .tally { color: var(--red); }
.rd-head, .rd-row { display: grid; grid-template-columns: 2.75rem 1fr 3.875rem 3.875rem; gap: 0.5rem; align-items: center; padding: 0.4375rem 0.75rem; font-size: 0.75rem; }
.rd-head { color: var(--muted); letter-spacing: .06em; text-transform: uppercase; font-size: 0.6875rem; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--line); background: var(--bg); }
.rd-row { appearance: none; border: 0; border-bottom: 1px solid var(--line-2); background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; font: inherit; font-family: var(--mono); font-size: 0.7812rem; }
.rd-row:hover { background: var(--bg-2); }
.rd-row[aria-selected="true"] { background: #FFF4C2; color: #111; }
:root[data-theme="dark"] .rd-row[aria-selected="true"] { background: #3A3210; color: var(--ink); }
.rd-row .slot { color: var(--muted); font-size: 0.75rem; }
.rd-row[aria-selected="true"] .slot { color: var(--red); font-weight: 700; }
.rd-slug { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-type, .rd-status { font-size: 0.6875rem; color: var(--muted); }
.rd-row[aria-selected="true"] .rd-status { color: var(--red); font-weight: 700; }
.rd-row:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.reels-page .carousel-stage .player { grid-column: 2; width: 100%; max-width: 100%; align-self: center; justify-self: stretch; }
.reels-page .carousel-stage .controls { grid-column: 3; justify-self: start; align-self: center; margin-top: 0; flex-direction: column; gap: 0.375rem; }
.reels-page .carousel-stage .player { box-shadow: none; border: 1px solid var(--line); }
.reels-page .slides { margin-top: 0.75rem; }
.script-pane { border: 1px solid var(--line); border-radius: 0.375rem; background: var(--surface); }
.script-bar { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 0.5rem 0.875rem; background: var(--bg-2); border-bottom: 1px solid var(--line); font-size: 0.6875rem; color: var(--muted); }
.script-bar .tally { color: var(--red); }
.reels-page .slide { padding: 1rem 1.125rem 1.125rem; gap: clamp(1.25rem, 3vw, 3rem); }
.reels-page .slide-body p, .reels-page .slide-lead { font-size: 0.9375rem; line-height: 1.5; }
.reels-page .slide-head h3, .reels-page .slide-body .details-label { font-size: clamp(1.25rem, 2vw, 1.5rem); }
@media (max-width: 1000px) {
  .reels-page .carousel-stage { grid-template-columns: 1fr; row-gap: 0.75rem; }
  .rd, .reels-page .carousel-stage .player, .reels-page .carousel-stage .controls { grid-column: 1; }
  .reels-page .carousel-stage .controls { flex-direction: row; justify-self: end; }
}

/* rundown fills its column like a real grid */
.rd-fill { flex: 1; background-image: repeating-linear-gradient(to bottom, transparent 0 2.125rem, var(--line-2) 2.125rem 2.1875rem); background-position: 0 -1px; }
.rd-foot { display: flex; justify-content: space-between; padding: 0.4375rem 0.75rem; font-size: 0.6562rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--bg-2); border-top: 1px solid var(--line); }
.reels-page .carousel-stage { align-items: stretch; }
.rd { height: 100%; }

/* rundown status: NEXT at rest, READY on hover, ON AIR when selected */
.rd-row:not([aria-selected="true"]):hover .rd-status { color: var(--ink); }

.reels-page .carousel { padding-top: clamp(0.875rem, 2vh, 1.5rem); }

/* ---------- nav: channel buttons ---------- */
.nav { gap: 0.25rem; }
.nav a { display: inline-flex; align-items: center; font-family: var(--mono); font-size: 0.7812rem; letter-spacing: .08em; text-transform: uppercase; padding: 0.4375rem 0.75rem; border: 1px solid transparent; border-radius: 0.25rem; color: var(--ink-2); }
.nav a:hover { background: var(--bg-2); border-color: var(--line); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--wave); border-color: var(--wave); color: #fff; box-shadow: none; border-radius: 0.25rem; }


body:has(.exp-page) .site-foot { display: none; }
@media (max-width: 860px) { .prompter-screen { aspect-ratio: 16 / 10; max-height: 22rem; } }
@media (max-width: 800px) { .reels-page .slide { gap: 0.25rem; } .reels-page .slide-head { margin-bottom: 0.25rem; } .reels-page .slide-body .details-label { margin-top: 0.75rem; } }
