:root {
  --ground: #1b1b1b;
  --panel: #252525;
  --rule: #3b3b3b;
  --gold-hi: #f3e38f;
  --gold: #d1ac55;
  --gold-lo: #9a6b2c;
  --white: #ffffff;
  --display: "Archivo", "Arial Narrow", sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
}

* { box-sizing: border-box; }

html { background: var(--ground); }

body {
  margin: 0;
  background: var(--ground);
  color: var(--white);
  font: 400 1.125rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; border-radius: 4px; }

.gold {
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 55%, var(--gold-lo) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--gold);
  -webkit-text-fill-color: transparent;
}

h1, h2 {
  font-family: var(--display);
  font-variation-settings: "wdth" 118;
  font-weight: 760;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 4.8vw, 4.25rem); line-height: 1.02; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); line-height: 1.08; }

p { margin: 0; max-width: 62ch; }

/* header */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px var(--gutter);
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }

.brand span {
  font-family: var(--display);
  font-variation-settings: "wdth" 112;
  font-weight: 700;
  font-size: 1.25rem;
  white-space: nowrap;
  color: var(--gold);
}

.top-link { font-size: 1rem; text-underline-offset: 4px; }

/* hero */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: end;
  min-height: clamp(520px, 80vh, 780px);
  padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(48px, 6vw, 80px);
}

.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 30%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(27, 27, 27, 0.96) 0%, rgba(27, 27, 27, 0.82) 34%, rgba(27, 27, 27, 0) 62%),
    linear-gradient(0deg, var(--ground) 0%, rgba(27, 27, 27, 0) 28%),
    linear-gradient(180deg, var(--ground) 0%, rgba(27, 27, 27, 0) 14%);
}

.hero-copy { display: grid; gap: 20px; max-width: 38rem; }
.hero-copy h1 { margin-bottom: 8px; }

.hero-tag {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(48px, 6vw, 80px);
  max-width: 17rem;
  padding: 10px 14px;
  border-left: 3px solid var(--gold);
  background: rgba(27, 27, 27, 0.82);
  font-size: 0.95rem;
  line-height: 1.4;
  text-decoration: none;
}

.hero-tag:hover { background: rgba(27, 27, 27, 0.95); }

/* listen */

.listen {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "copy console" "fine console";
  column-gap: clamp(32px, 5vw, 80px);
  row-gap: 24px;
  padding: clamp(32px, 4vw, 56px) var(--gutter) clamp(56px, 8vw, 104px);
}

.listen-copy { grid-area: copy; }
.console { grid-area: console; scroll-margin-top: 24px; }
.fine { grid-area: fine; align-self: end; font-size: 0.95rem; max-width: 46ch; }

/* console */

.console {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 10px;
}

.lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }

.line {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  text-align: left;
  padding: 12px 12px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--white);
  font: inherit;
  cursor: pointer;
}

.line:hover { border-color: var(--rule); }
.line[aria-pressed="true"] { background: var(--ground); border-color: var(--gold-lo); }

.lamp {
  grid-row: 1;
  align-self: center;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4a4a4a;
}

.line[aria-pressed="true"] .lamp { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.console.is-playing .line[aria-pressed="true"] .lamp { animation: ring 1.4s ease-in-out infinite; }

@keyframes ring {
  50% { background: var(--gold-hi); box-shadow: 0 0 18px var(--gold-hi); }
}

.line-name { font-family: var(--display); font-variation-settings: "wdth" 112; font-weight: 700; font-size: 1.1rem; }
.line-note { grid-column: 1 / -1; font-size: 0.9rem; line-height: 1.35; margin-top: 4px; }

.deck {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 10px 10px;
}

.play {
  flex: none;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 60%, var(--gold-lo));
  color: var(--ground);
  cursor: pointer;
}

.play svg { width: 28px; height: 28px; fill: currentColor; }
.play .i-pause { display: none; }
.console.is-playing .play .i-pause { display: block; }
.console.is-playing .play .i-play { display: none; }

.scrub { flex: 1; min-width: 0; }

.scrub input { width: 100%; accent-color: var(--gold); margin: 0; }

.times {
  display: flex;
  justify-content: space-between;
  font-family: var(--display);
  font-variation-settings: "wdth" 112;
  font-weight: 600;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}

.transcript {
  position: relative;
  list-style: none;
  margin: 8px 0 0;
  padding: 8px 12px 40px;
  height: 21rem;
  overflow-y: auto;
  scroll-behavior: smooth;
  border-top: 1px solid var(--rule);
  scrollbar-color: var(--rule) transparent;
}

.transcript li {
  padding: 10px 12px;
  border-left: 3px solid transparent;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s;
}

.transcript li:hover { background: rgba(255, 255, 255, 0.04); }
.transcript li.now { background: rgba(209, 172, 85, 0.14); border-left-color: var(--gold); }

.transcript .who {
  display: block;
  font-family: var(--display);
  font-variation-settings: "wdth" 112;
  font-weight: 700;
  font-size: 0.95rem;
}

.transcript .agent .who { color: var(--gold); }

/* bands */

.band {
  padding: clamp(56px, 8vw, 104px) var(--gutter);
  border-top: 1px solid var(--rule);
}

.band h2 { margin-bottom: 14px; }
.lead { margin-bottom: 36px; }

.roster {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 5vw, 80px);
}

.roster a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}

.roster b {
  font-family: var(--display);
  font-variation-settings: "wdth" 112;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--gold);
}

.roster a:hover b { color: var(--gold-hi); text-decoration: underline; text-underline-offset: 5px; }
.roster .for { align-self: center; font-size: 0.95rem; }
.roster .does { grid-column: 1 / -1; }

.control {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.control .lead { margin-bottom: 0; }

.quote { margin: 0; padding-left: 24px; border-left: 3px solid var(--gold); }

.quote blockquote {
  margin: 0 0 12px;
  font-family: var(--display);
  font-variation-settings: "wdth" 112;
  font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.2;
}

.quote figcaption { font-size: 1rem; margin-bottom: 14px; }

.text-btn, .text-link {
  font: 700 1rem/1.4 var(--body);
  color: var(--gold-hi);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
}

.steps li { counter-increment: step; display: grid; gap: 8px; align-content: start; }

.steps li::before {
  content: counter(step);
  font-family: var(--display);
  font-variation-settings: "wdth" 125;
  font-weight: 800;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--gold-lo);
}

.steps b {
  font-family: var(--display);
  font-variation-settings: "wdth" 112;
  font-size: 1.35rem;
  color: var(--gold);
}

/* finale */

.finale {
  display: grid;
  justify-items: start;
  gap: 18px;
  padding: clamp(64px, 9vw, 120px) var(--gutter);
  border-top: 1px solid var(--rule);
}

.cta {
  display: inline-block;
  margin-top: 8px;
  padding: 16px 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 60%, var(--gold-lo));
  color: var(--ground);
  font: 700 1.1rem/1 var(--body);
  text-decoration: none;
}

.cta:hover { filter: brightness(1.08); }

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding: 28px var(--gutter) 40px;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
}

/* phone */

@media (max-width: 900px) {
  .hero { min-height: 0; padding-top: 0; }
  .hero-media { position: relative; inset: auto; margin: 0 calc(var(--gutter) * -1) 24px; height: 62vw; }
  .hero-media img { object-position: 78% 25%; }
  .hero-media::after {
    background:
      linear-gradient(0deg, var(--ground) 0%, rgba(27, 27, 27, 0) 40%),
      linear-gradient(180deg, var(--ground) 0%, rgba(27, 27, 27, 0) 12%);
  }
  .hero-tag { position: static; margin-top: 24px; max-width: none; }
  .listen { grid-template-columns: 1fr; grid-template-areas: "copy" "console" "fine"; }
  .control { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .lines { grid-template-columns: 1fr; }
  .line { grid-template-columns: auto auto 1fr; align-items: center; padding: 10px 12px; }
  .line-note { grid-column: 3; margin: 0; }
  .transcript { height: 18rem; }
  .roster { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .top-link { display: none; }
  .hero-media { height: 82vw; }
  .hero-media img { object-position: 86% 20%; }
}

@media (prefers-reduced-motion: reduce) {
  .console.is-playing .line[aria-pressed="true"] .lamp { animation: none; }
  .transcript { scroll-behavior: auto; }
  .transcript li { transition: none; }
}
