/* ==========================================================================
   Amnet Resources: Graymatters Podcast Hub Stylesheet
   Source: podcast.html (Amnet ContentSource Thought Leadership System)
   Hardened for Dynamic Episode Switching, Interactive SVG Sound Ring,
   Audio/Video Stage, Playlist Queue & 0px Mobile Horizontal Overflow
   ========================================================================== */

/* ---- Essential Cascade Guards ---- */
[hidden],
.qi[hidden],
.cap[hidden],
.scrim[hidden],
.play[hidden] {
  display: none !important;
}

/* Prevent horizontal overflow on root containers */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Ensure all grid and flex direct children can shrink without blowout */
.hero-grid > *,
.pgrid > *,
.stage > *,
.qwrap > *,
.fl > *,
.soc > *,
.contact-card > * {
  min-width: 0;
}

/* ---- Hero Section & Rotating Headline ---- */
.hero {
  background: var(--mist, #f2f4f7);
  border-bottom: 1px solid var(--line, #dbdee2);
  overflow: hidden;
  position: relative;
}

.hero .wrap {
  padding-top: 64px;
}

.crumbs {
  font-family: var(--mono, 'IBM Plex Mono', monospace);
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--faint, #94969d);
  margin-bottom: 44px;
  text-transform: uppercase;
}

.crumbs a {
  color: var(--faint, #94969d);
  text-decoration: none;
  transition: color .2s;
}

.crumbs a:hover {
  color: var(--accent, #ee5b42);
}

.crumbs .here {
  color: var(--ink, #1d2024);
  font-weight: 500;
}

.hero .hero-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 80px;
  align-items: center;
  padding-bottom: 64px;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.kicker i {
  width: 24px;
  height: 1px;
  background: var(--accent, #ee5b42);
  display: inline-block;
  flex-shrink: 0;
}

.kicker span {
  font-family: var(--mono, 'IBM Plex Mono', monospace);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--accent, #ee5b42);
  text-transform: uppercase;
}

.display {
  font-family: var(--serif, 'Newsreader', Georgia, serif);
  font-weight: 400;
  font-size: 74px;
  line-height: 1.02;
  letter-spacing: -.03em;
  margin: 0;
  max-width: 17ch;
  text-wrap: balance;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.rot {
  max-width: none;
}

.rot .rw-w {
  position: relative;
  display: inline-block;
  cursor: default;
  padding-bottom: 14px;
  white-space: nowrap;
}

.rot .rw-w em {
  font-style: italic;
  font-size: .86em;
  color: var(--accent, #ee5b42);
  display: inline-block;
  transition: opacity .3s, transform .3s;
}

.rot .rw-w em.out {
  opacity: 0;
  transform: translateY(8px);
}

.rot .rw-w s {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: var(--accent, #ee5b42);
  text-decoration: none;
  transition: width .05s linear;
}

.hero .lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--body, #454850);
  margin: 22px 0 0;
  max-width: 52ch;
  overflow-wrap: anywhere;
}

.hero-cta {
  margin-top: 32px;
}

.btn-accent {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  cursor: pointer;
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  background: var(--accent, #ee5b42);
  color: #fff;
  padding: 18px 36px;
  white-space: nowrap;
  text-decoration: none;
  transition: background .25s, transform .2s;
}

.btn-accent:hover {
  background: #d94b33;
  color: #fff;
}

.btn-accent.s {
  font-size: 15px;
  padding: 15px 30px;
}

/* ---- Interactive SVG Sound Ring (.sr) ---- */
.sr {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1;
  margin: 0 auto;
  cursor: crosshair;
  user-select: none;
  -webkit-user-select: none;
}

.srs {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.sr0,
.sr1,
.sr2 {
  fill: none;
  stroke: rgba(29, 32, 36, .08);
}

.sr0 {
  stroke-dasharray: 3 7;
  stroke: rgba(238, 91, 66, .35);
  transform-origin: center;
  animation: srspin 50s linear infinite;
}

@keyframes srspin {
  to {
    transform: rotate(360deg);
  }
}

.sr3 {
  fill: #fff;
  stroke: rgba(29, 32, 36, .1);
  stroke-width: 1;
}

.srp {
  fill: none;
  stroke: var(--accent, #ee5b42);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 0 100;
  transform: rotate(-90deg);
}

.sb {
  stroke: var(--ink, #1d2024);
  stroke-width: 3.2;
  stroke-linecap: round;
  transition: stroke .15s ease;
}

.sb.hot {
  stroke: var(--accent, #ee5b42);
}

.src {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--ink, #1d2024);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(29, 32, 36, .25);
  transition: background .3s, transform .3s;
  z-index: 2;
}

.src:hover,
.src:focus-visible {
  background: var(--accent, #ee5b42);
  transform: translate(-50%, -50%) scale(1.06);
}

.src svg {
  width: 34%;
  height: 34%;
  fill: #fff;
  stroke: #fff;
}

.src span {
  font-family: var(--mono, 'IBM Plex Mono', monospace);
  font-size: 10px;
  letter-spacing: .18em;
  color: #ffb3a4;
  transition: color .3s;
}

.src:hover span {
  color: #fff;
}

.srl {
  position: absolute;
  left: 50%;
  bottom: 2%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono, 'IBM Plex Mono', monospace);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--accent, #ee5b42);
  white-space: nowrap;
}

.srl b {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent, #ee5b42);
  animation: blink 1.6s ease-in-out infinite;
}

.live {
  font-family: var(--mono, 'IBM Plex Mono', monospace);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--accent, #ee5b42);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.live b {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent, #ee5b42);
  animation: blink 1.6s ease-in-out infinite;
}

@keyframes blink {
  50% {
    opacity: .25;
  }
}

/* Secondary wave animation helper */
.wave {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 150px;
  width: 100%;
  cursor: default;
}

.wave i {
  flex: 1;
  height: var(--h, 60px);
  background: #e6e7ea;
  border-radius: 2px;
  transform-origin: center;
  animation: wv var(--d, 1.2s) ease-in-out infinite alternate;
}

.wave i:nth-child(3n) {
  background: var(--accent, #ee5b42);
}

.wave:hover i {
  animation-play-state: paused;
}

@keyframes wv {
  from {
    transform: scaleY(.25);
  }
  to {
    transform: scaleY(1);
  }
}

.onair {
  background: #fff;
  border-top: 1px solid var(--line, #dbdee2);
  border-bottom: 1px solid var(--line, #dbdee2);
}

.oa {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
  padding-top: 22px;
  padding-bottom: 22px;
}

.oa-r {
  font-family: var(--serif, 'Newsreader', Georgia, serif);
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0;
  color: var(--ink, #1d2024);
  text-align: right;
}

/* ---- Episodes Section (#episodes.dark.pod) ---- */
.pod {
  padding: 64px 0 72px;
  background: var(--ink, #1d2024);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.pod .ph {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 64px;
  align-items: end;
  margin-bottom: 34px;
}

.pod .ph .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 0;
  color: var(--accent, #ee5b42);
  font-family: var(--mono, 'IBM Plex Mono', monospace);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.pod .h2 {
  color: #fff;
  max-width: 22ch;
  font-family: var(--serif, 'Newsreader', Georgia, serif);
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0;
  overflow-wrap: anywhere;
}

.pod .ph p {
  color: #c9ccd2;
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
  max-width: 46ch;
  overflow-wrap: anywhere;
}

/* 2-Column Cycle Player Stage Grid */
.pgrid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 28px;
  align-items: stretch;
}

/* Column 1: The Stage */
.stage {
  display: flex;
  flex-direction: column;
  background: #15171a;
  border: 1px solid var(--rule-dark, #2d2f36);
  min-width: 0;
}

.screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: radial-gradient(120% 90% at 20% 10%, #2c3440 0%, #15171a 60%);
}

.screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s ease, opacity .35s ease;
}

.screen.sw img {
  opacity: .15;
}

.screen:hover img {
  transform: scale(1.03);
}

.scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21, 23, 26, 0) 35%, rgba(21, 23, 26, .92) 100%);
  pointer-events: none;
}

/* Pulsing radar play button */
.play {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: none;
  background: var(--accent, #ee5b42);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 0 rgba(238, 91, 66, .55);
  animation: pulse 2.4s infinite;
  transition: transform .2s ease;
  z-index: 2;
}

.play:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.play svg {
  width: 34px;
  height: 34px;
  fill: #fff;
  margin-left: 4px;
}

.play:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 22px rgba(238, 91, 66, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(238, 91, 66, 0);
  }
}

.cap {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 1;
  pointer-events: none;
}

.cm {
  font-family: var(--mono, 'IBM Plex Mono', monospace);
  font-size: 11px;
  letter-spacing: .16em;
  color: #ffb3a4;
  text-transform: uppercase;
}

.ch {
  font-family: var(--serif, 'Newsreader', Georgia, serif);
  font-size: 30px;
  line-height: 1.15;
  color: #fff;
  max-width: 24ch;
  margin: 0;
  overflow-wrap: anywhere;
}

.screen iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 3;
}

/* Status Bar below video */
.sbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-top: 1px solid var(--rule-dark, #2d2f36);
  min-width: 0;
}

.now {
  font-family: var(--mono, 'IBM Plex Mono', monospace);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: #a3a7ae;
  text-transform: uppercase;
}

.ep-link {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--accent, #ee5b42);
  padding-bottom: 2px;
  transition: color .2s;
  white-space: nowrap;
}

.ep-link:hover {
  color: #ffb3a4;
}

/* Column 2: Playlist Queue (.qwrap) */
.qwrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.grp {
  position: relative;
  padding-left: 30px;
}

.queue.q2 {
  margin-left: 30px;
}

.queue {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* Vertical Bracket spanning grouped multi-part series */
.series {
  position: absolute;
  left: 8px;
  top: 14px;
  bottom: 14px;
  width: 12px;
  border: 1px solid #6b6e75;
  border-right: none;
  pointer-events: none;
}

.series span {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  white-space: nowrap;
  font-family: var(--mono, 'IBM Plex Mono', monospace);
  font-size: 9.5px;
  letter-spacing: .14em;
  color: #a3a7ae;
  background: var(--ink, #1d2024);
  padding: 0 6px;
  text-transform: uppercase;
}

.qi {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: start;
  text-align: left;
  background: transparent;
  border: none;
  border-top: 1px solid var(--rule-dark, #2d2f36);
  color: #c9ccd2;
  padding: 22px 18px 22px 4px;
  cursor: pointer;
  font: inherit;
  transition: background .25s, color .25s;
  overflow: hidden;
}

.q2 .qi {
  border-bottom: 1px solid var(--rule-dark, #2d2f36);
}

.qi:hover {
  background: #25282d;
  color: #fff;
}

.qi.on {
  background: #2a2d33;
  color: #fff;
}

.qi:focus-visible {
  outline: 2px solid var(--accent, #ee5b42);
  outline-offset: -2px;
}

.qn {
  font-family: var(--serif, 'Newsreader', Georgia, serif);
  font-size: 40px;
  line-height: 1;
  color: #6b6e75;
  transition: color .25s;
}

.qi.on .qn {
  color: var(--accent, #ee5b42);
}

.qt {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.qm {
  font-family: var(--mono, 'IBM Plex Mono', monospace);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: #a3a7ae;
  overflow-wrap: anywhere;
}

.qh {
  font-family: var(--serif, 'Newsreader', Georgia, serif);
  font-size: 22px;
  line-height: 1.22;
  margin: 0;
  color: inherit;
  overflow-wrap: anywhere;
}

/* 5s cycle progress bar indicator */
.qi > i {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--accent, #ee5b42);
}

.qi.on > i {
  animation: qp 5s linear forwards;
}

.pgrid.paused .qi.on > i,
.pgrid.stopped .qi.on > i {
  animation-play-state: paused;
}

.pgrid.stopped .qi.on > i {
  width: 100%;
  animation: none;
}

@keyframes qp {
  to {
    width: 100%;
  }
}

/* ---- Follow / Channels Matrix (.fol, .fl, .soc) ---- */
.fol {
  padding: 64px 0;
  background: #fff;
  border-bottom: 1px solid var(--line, #dbdee2);
}

.fl {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 64px;
  align-items: center;
}

.fl .h2 {
  font-family: var(--serif, 'Newsreader', Georgia, serif);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0 0 12px;
  color: var(--ink, #1d2024);
}

.fl p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--body, #454850);
  margin: 0;
  max-width: 40ch;
  overflow-wrap: anywhere;
}

.soc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1.5px solid var(--ink, #1d2024);
}

.soc a {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 2px 12px;
  padding: 20px 18px;
  border-bottom: 1px solid var(--line, #dbdee2);
  text-decoration: none;
  color: var(--ink, #1d2024);
  transition: background .25s;
  min-width: 0;
}

.soc a:nth-child(odd) {
  border-right: 1px solid var(--line, #dbdee2);
}

.soc a:hover {
  background: var(--mist, #f2f4f7);
}

.sn {
  font-family: var(--serif, 'Newsreader', Georgia, serif);
  font-size: 24px;
  line-height: 1.2;
}

.sh {
  grid-column: 1;
  font-family: var(--mono, 'IBM Plex Mono', monospace);
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--muted, #6b6e75);
  text-transform: uppercase;
}

.soc .ar {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  color: var(--blue, #0061a8);
  font-size: 18px;
  transition: transform .25s;
}

.soc a:hover .ar {
  transform: translate(3px, -3px);
}

/* ---- Contact Card & Band (#contact.band) ---- */
.band {
  background: var(--grey, #ebedf0);
  border-top: 1px solid var(--line, #dbdee2);
}

.contact-row {
  display: flex;
  justify-content: center;
  padding-top: 64px;
  padding-bottom: 64px;
}

.contact-card {
  width: 100%;
  max-width: 980px;
  background: #fff;
  border: 1px solid var(--line, #dbdee2);
  padding: 80px 64px;
  box-sizing: border-box;
}

.contact-card .eyebrow {
  font-family: var(--mono, 'IBM Plex Mono', monospace);
  font-size: 13px;
  letter-spacing: .16em;
  color: var(--accent, #ee5b42);
  margin-bottom: 30px;
  text-transform: uppercase;
}

.contact-card h2 {
  font-family: var(--serif, 'Newsreader', Georgia, serif);
  font-weight: 400;
  font-size: 54px;
  line-height: 1.05;
  letter-spacing: -.025em;
  margin: 0 0 22px;
  color: var(--ink, #1d2024);
  overflow-wrap: anywhere;
}

.contact-card > p {
  font-size: 20px;
  line-height: 1.55;
  color: var(--body, #454850);
  margin: 0 0 44px;
  max-width: 44ch;
  overflow-wrap: anywhere;
}

.contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line, #dbdee2);
}

.contacts .nm {
  font-size: 19px;
  font-weight: 600;
  color: var(--ink, #1d2024);
}

.contacts .rl {
  font-size: 15px;
  color: var(--muted, #6b6e75);
  margin-top: 5px;
}

.contacts a {
  display: inline-block;
  font-family: var(--mono, 'IBM Plex Mono', monospace);
  font-size: 13px;
  margin-top: 14px;
  color: var(--blue, #0061a8);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contacts a:hover {
  color: var(--accent, #ee5b42);
}

/* ---- Responsive Adaptations & Accessibility ---- */
@media (prefers-reduced-motion: reduce) {
  .wave i,
  .live b,
  .play,
  .sr0,
  .srl b {
    animation: none !important;
  }
  .qi.on > i {
    animation: none !important;
    width: 100% !important;
  }
}

@media (max-width: 1000px) {
  .hero .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .display {
    font-size: 52px;
  }
  .rot .rw-w {
    white-space: normal;
    min-height: 2.1em;
  }
  .oa {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .oa-r {
    text-align: left;
    font-size: 26px;
  }
  .wave {
    height: 110px;
  }
  .pod {
    padding: 48px 0 56px;
  }
  .pod .ph {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .pod .h2 {
    font-size: 32px;
  }
  .pgrid {
    grid-template-columns: 1fr;
  }
  .ch {
    font-size: 19px;
  }
  .cap {
    left: 18px;
    right: 18px;
    bottom: 14px;
  }
  .play {
    width: 56px;
    height: 56px;
    top: 30%;
  }
  .play svg {
    width: 26px;
    height: 26px;
  }
  .cm {
    font-size: 9.5px;
  }
  .qh {
    font-size: 19px;
  }
  .qn {
    font-size: 32px;
  }
  .qi {
    grid-template-columns: 42px 1fr;
    padding: 18px 12px 18px 4px;
  }
  .fl {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .soc {
    grid-template-columns: 1fr;
  }
  .soc a:nth-child(odd) {
    border-right: none;
  }
  .sbar {
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  .display {
    font-size: 38px;
    letter-spacing: -.02em;
  }
  .contact-card {
    padding: 44px 28px;
  }
  .contact-card h2 {
    font-size: 38px;
  }
  .contact-card > p {
    font-size: 17px;
  }
  .contacts {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .sr {
    max-width: 320px;
  }
}

@media (max-width: 480px) {
  .display {
    font-size: 32px;
  }
  .hero .wrap {
    padding-top: 36px;
  }
  .crumbs {
    margin-bottom: 24px;
  }
  .btn-accent {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
  .contact-card {
    padding: 32px 20px;
  }
  .contact-card h2 {
    font-size: 30px;
  }
  .qi {
    grid-template-columns: 36px 1fr;
    gap: 10px;
  }
  .qn {
    font-size: 26px;
  }
  .qh {
    font-size: 17px;
  }
  .sr {
    max-width: 280px;
  }
}

@media (max-width: 375px) {
  .wrap {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .display {
    font-size: 28px;
  }
  .sr {
    max-width: 260px;
  }
  .play {
    width: 48px;
    height: 48px;
  }
  .play svg {
    width: 20px;
    height: 20px;
  }
  .ch {
    font-size: 17px;
  }
  .sbar {
    padding: 10px 14px;
  }
}
