/* Layout: left-aligned masthead with an on-air "tally light" marking the active section,
   then a 16:9 reel grid per section. Futura-family display type carries the identity. */
/* Always dark, regardless of the visitor's system setting. */
:root {
  color-scheme: dark;
  --bg: #111110;
  --surface: #1c1c1a;
  --fg: #ededea;
  --muted: #9a9993;
  --rule: #2c2c29;
  --tally: #ff4436;      /* studio tally light: the one accent */
  --poster: #262623;     /* fallback thumbnail ground */
  --poster-fg: #ededea;
  --scrim: rgba(0, 0, 0, 0.9);

  --display: "Blue Highway D", "Arial Narrow", "Futura", sans-serif;
  --body: "Jost", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

@font-face {
  font-family: "Blue Highway D";
  src: url("fonts/blue-highway-d.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1rem/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--tally); outline-offset: 3px; }

.wrap {
  max-width: 1320px;
  margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

/* Masthead */
.masthead .wrap { padding-block: clamp(32px, 6vw, 72px) 0; }
.name {
  display: inline-block;
  font: 400 clamp(2.4rem, 7vw, 5rem)/0.95 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  margin-right: -0.06em;
}
.role {
  margin: 14px 0 0;
  font: 400 0.8rem/1.4 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  margin-top: clamp(28px, 4vw, 44px);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-block: 6px;
  font: 400 1.1rem/1 var(--display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color .15s;
}
.nav a::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--rule);
  transition: background .15s, box-shadow .15s;
}
.nav a:hover { color: var(--fg); }
.nav a[aria-current="page"] { color: var(--fg); }
.nav a[aria-current="page"]::before {
  background: var(--tally);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tally) 22%, transparent);
}
.nav a.ext::before { display: none; }

/* Sections */
main { padding-block: 8px 80px; outline: none; }
.section { padding-top: clamp(36px, 5vw, 56px); }
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  text-align: center;
}
.section-head h2 {
  margin: 0;
  font: 400 clamp(1.15rem, 2.2vw, 1.5rem)/1.2 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-wrap: balance;
}
.count {
  font: 400 0.75rem/1 var(--mono);
  letter-spacing: 0.08em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.intro {
  max-width: 62ch;
  margin: -6px auto 26px;
  color: var(--muted);
  font-size: 1.02rem;
  text-align: center;
  text-wrap: balance;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 30px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 11px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  min-width: 0;
}
.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  overflow: hidden;
  background: var(--surface);
}
.thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.7,.2,1), filter .3s;
}
.thumb::after {
  /* play mark, appears on hover */
  content: "";
  position: absolute;
  left: 14px; bottom: 14px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--tally) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l9 5-9 5z' fill='white'/%3E%3C/svg%3E") center/20px no-repeat;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .2s, transform .25s;
}
.card:hover .thumb img, .card:focus-visible .thumb img { transform: scale(1.035); }
.card:hover .thumb::after, .card:focus-visible .thumb::after { opacity: 1; transform: none; }
.poster {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  padding: 16px 18px;
  background: var(--poster);
  color: var(--poster-fg);
  font: 400 1.05rem/1.2 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.title {
  font-size: 1rem;
  line-height: 1.35;
  text-wrap: pretty;
}
.card:hover .title { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Tabbed page (Other Videos): role tabs, one featured video, then the rest */
.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 40px;
  margin-top: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--rule);
}
.tab {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  min-height: 44px;
  padding: 0 0 12px;
  margin-bottom: -1px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  color: var(--muted);
  font: 400 clamp(1.15rem, 2vw, 1.4rem)/1 var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.tab:hover { color: var(--fg); }
.tab[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--tally); }
.tab .count { font-size: 0.75rem; }
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 28px;
  padding-top: clamp(28px, 4vw, 40px);
}
.feature { list-style: none; margin: 0; padding: 0; }
.feature .thumb::after { opacity: 1; transform: none; width: 56px; height: 56px; left: 20px; bottom: 20px; background-size: 26px; }
.feature .kicker {
  font: 400 0.75rem/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tally);
}
.feature .title {
  font: 400 clamp(1.4rem, 2.6vw, 2rem)/1.15 var(--display);
  letter-spacing: 0.01em;
}
.feature-side { display: grid; gap: 18px; align-content: start; list-style: none; margin: 0; padding: 0; }
.feature-side .title { font-size: 0.98rem; }
.rest { padding-top: clamp(32px, 4vw, 48px); }
.rest .grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
@media (max-width: 760px) {
  .feature-row { grid-template-columns: minmax(0, 1fr); }
  .tabs { gap: 4px 24px; }
}

/* Cover flow (Cover Room) */
.flow { display: flex; flex-direction: column; align-items: center; }
.flow .section-head { margin-bottom: 10px; }
.pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--rule);
  border-radius: 999px;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 156px;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 400 1rem/1 var(--display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.pill .count { font-size: 0.7rem; }
.pill:hover { color: var(--fg); }
.pill[aria-selected="true"] { background: var(--fg); color: var(--bg); }
.pill[aria-selected="true"] .count { color: inherit; opacity: .7; }
.flow-stage {
  --cw: 480px;
  position: relative;
  width: 100%;
  height: calc(var(--cw) * 0.5625 + 80px);
  margin-top: 26px;
  perspective: 1600px;
  perspective-origin: 50% 40%;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  overflow: hidden;
  outline: none;
}
.flow-stage:focus-visible { box-shadow: inset 0 0 0 2px var(--tally); }
.cover {
  position: absolute;
  left: 50%;
  top: 10px;
  width: var(--cw);
  aspect-ratio: 16 / 9;
  max-width: 100%;
  margin-left: calc(var(--cw) / -2);
  padding: 0;
  border: 0;
  background: var(--surface);
  cursor: pointer;
  transition: transform .55s cubic-bezier(.2,.7,.2,1), opacity .4s;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8);
}
.cover img, .cover .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-box-reflect: below 2px linear-gradient(transparent 62%, rgba(0,0,0,.28)); }
.cover::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(17,17,16,.15), rgba(17,17,16,.6));
  transition: opacity .4s;
  pointer-events: none;
}
.cover.is-left::after { background: linear-gradient(270deg, rgba(17,17,16,.15), rgba(17,17,16,.6)); }
.cover.is-center::after { opacity: 0; }
.cover.is-hidden { opacity: 0; pointer-events: none; }
.flow-arrow {
  position: absolute;
  top: calc(10px + var(--cw) * 0.28125 - 24px);
  z-index: 50;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid #3a3a36;
  background: rgba(17,17,16,.8) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ededea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E") center/20px no-repeat;
  cursor: pointer;
}
.flow-arrow.prev { left: 0; }
.flow-arrow.next { right: 0; transform: scaleX(-1); }
.flow-arrow:disabled { opacity: .3; cursor: default; }
.flow-now { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; margin-top: 4px; }
.flow-now p { margin: 0; }
.flow-kicker { font: 400 .75rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--tally); }
.flow-artist { font: 400 clamp(1.8rem, 4vw, 2.5rem)/1 var(--display); letter-spacing: .04em; text-transform: uppercase; text-wrap: balance; }
.flow-song { font-size: 1.1rem; color: #cfcec9; }
.flow-song span { color: var(--muted); }
.flow-play {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; margin-top: 8px; padding: 0 22px;
  border: 0; border-radius: 999px;
  background: var(--tally) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4l14 8-14 8z' fill='white'/%3E%3C/svg%3E") 20px center/14px no-repeat;
  padding-left: 44px;
  color: #fff;
  font: 400 1rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer;
}
@media (max-width: 600px) {
  .pill { width: 132px; }
  .flow-arrow { display: none; }
}

/* About */
.about {
  display: grid;
  justify-items: center;
  gap: 18px;
  max-width: 62ch;
  margin-inline: auto;
  padding-top: clamp(36px, 5vw, 56px);
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.55;
  text-align: center;
  text-wrap: pretty;
}
.about p { margin: 0; }
.about-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 10px; }
.about-links a {
  font: 400 0.9rem/1 var(--display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-underline-offset: 5px;
}

/* Footer */
.foot { border-top: 1px solid var(--rule); }
.foot-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-block: 26px 40px;
  font: 400 0.75rem/1.4 var(--mono);
  letter-spacing: 0.06em;
  color: var(--muted);
}
.foot-links { display: flex; gap: 20px; }
.foot a { text-underline-offset: 3px; }

/* Viewer */
.viewer {
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  margin: 0; padding: 0;
  border: 0;
  background: var(--scrim);
  color: #f2f2ef;
}
.viewer::backdrop { background: rgba(0, 0, 0, 0.4); }
.viewer-inner {
  min-height: 100%;
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
  max-width: 1180px; margin-inline: auto;
  padding: max(56px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(32px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
.viewer-close {
  position: fixed;
  top: max(14px, env(safe-area-inset-top, 0px));
  right: max(16px, env(safe-area-inset-right, 0px));
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.28);
  background: transparent;
  color: inherit;
  font: 400 0.8rem/1 var(--display);
  letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer;
}
.viewer-close kbd { font: 400 .7rem/1 var(--mono); opacity: .6; }
.viewer-frame { position: relative; aspect-ratio: 16 / 9; max-width: 100%; background: #000; }
.viewer-frame iframe, .viewer-frame img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.viewer-meta h2 { margin: 0; font: 400 clamp(1.05rem, 2vw, 1.35rem)/1.3 var(--display); letter-spacing: .04em; }
.viewer-meta p { margin: 6px 0 0; color: rgba(242,242,239,.72); max-width: 62ch; }
.viewer-meta p:empty { display: none; }
.viewer-link {
  display: inline-block; margin-top: 12px;
  font: 400 .78rem/1 var(--mono); letter-spacing: .06em;
  color: rgba(242,242,239,.8);
  text-underline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
