/* Beyond the System — MATIS LABS podcast experience */
:root {
  --podcast-gold: #c79a55;
  --podcast-gold-deep: #8a6730;
  --podcast-paper: #f4dfb5;
  --podcast-ink: #08090d;
  --podcast-night: #07080d;
  --podcast-line: rgba(8, 9, 13, .2);
  --podcast-serif: Georgia, "Times New Roman", serif;
}

html { scroll-behavior: smooth; }
body.podcast-page { overflow-x: clip; background: #fff; color: var(--podcast-ink); }
body.podcast-page main { overflow: clip; }
body.podcast-page .container { width: min(1180px, calc(100% - 40px)); }

body.podcast-page header,
body.podcast-page header.is-hero-top,
body.podcast-page header.scrolled {
  top: 0;
  background: rgba(255, 255, 255, .97) !important;
  border-bottom: 1px solid rgba(8, 9, 13, .09) !important;
  box-shadow: 0 4px 18px rgba(8, 9, 13, .05) !important;
}

body.podcast-page .header-wordmark { display: none; }

@media (min-width: 1240px) {
  body.podcast-page header .logo { width: 360px; min-width: 360px; height: 100%; overflow: hidden; }
  body.podcast-page header .header-wordmark { display: block; width: 360px; height: 120px; margin-block: -12px; object-fit: contain; object-position: left center; }
  body.podcast-page header .logo-icon,
  body.podcast-page header .logo > span { display: none; }
  body.podcast-page header .nav-container { height: 96px; }
}

.podcast-hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 100svh;
  padding: clamp(8rem, 11vw, 10rem) 0 clamp(4rem, 7vw, 6rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.28), transparent 28%),
    linear-gradient(125deg, #d4ac6e 0%, #d0a15d 47%, #c28b42 100%);
}

.podcast-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .24;
  background-image: linear-gradient(rgba(8,9,13,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(8,9,13,.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to right, #000, transparent 72%);
}

.podcast-orbit {
  position: absolute;
  border: 1px solid rgba(8, 9, 13, .14);
  border-radius: 50%;
  pointer-events: none;
}
.podcast-orbit--one { width: 620px; height: 620px; left: -250px; bottom: -250px; }
.podcast-orbit--two { width: 920px; height: 920px; right: -640px; top: -450px; }

.podcast-flight-line {
  position: absolute;
  top: 23%;
  left: -25%;
  width: 34%;
  height: 1px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.95), transparent);
  box-shadow: 0 0 20px rgba(255,255,255,.7);
  pointer-events: none;
}

.podcast-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.podcast-cover {
  position: relative;
  width: min(100%, 530px);
  aspect-ratio: 1;
  margin: 0;
  border: 1px solid rgba(8,9,13,.18);
  background: #d2a057;
  box-shadow: 0 34px 80px rgba(70, 38, 6, .26);
  opacity: 0;
  transform: translate3d(-26vw, 12px, 0) rotate(-7deg) scale(.95);
  filter: blur(5px);
  will-change: transform, opacity, filter;
}

.podcast-cover::before {
  content: "";
  position: absolute;
  inset: -18px 18px 18px -18px;
  z-index: -1;
  border: 1px solid rgba(8,9,13,.1);
  background: rgba(255,255,255,.08);
}

.podcast-cover-image {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-image: url("img/podcast/beyond-the-system-keyart.png");
  background-repeat: no-repeat;
  background-size: 243% auto;
  background-position: 5.7% 75%;
  background-color: #d2a057;
}

.podcast-intro { position: relative; max-width: 650px; }
.podcast-index { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.5rem; color: rgba(8,9,13,.68); font: 700 .6rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.podcast-index i { width: 34px; height: 1px; background: rgba(8,9,13,.35); }

.podcast-intro h1 { margin: 0; line-height: .78; letter-spacing: -.075em; }
.podcast-intro h1 span { display: block; opacity: 0; transform: translateY(56px); }
.podcast-title-main { font-family: var(--font-heading); font-size: clamp(5rem, 9.4vw, 9rem); font-weight: 700; }
.podcast-title-script { margin: .14em 0 .2em .07em; color: #fff; font-family: var(--podcast-serif); font-size: clamp(4rem, 8.1vw, 7.7rem); font-style: italic; font-weight: 400; letter-spacing: -.075em; }
.podcast-lead { max-width: 610px; margin: 2.2rem 0 0; color: rgba(8,9,13,.84); font-size: clamp(1rem, 1.45vw, 1.2rem); line-height: 1.65; opacity: 0; transform: translateY(22px); }

.podcast-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; opacity: 0; transform: translateY(18px); }
.podcast-button { display: inline-flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 1.3rem; padding: .75rem 1.15rem; border: 1px solid rgba(8,9,13,.25); border-radius: 4px; text-decoration: none; font-size: .83rem; font-weight: 800; transition: transform .2s ease, background .2s ease, color .2s ease; }
.podcast-button:hover { transform: translateY(-2px); }
.podcast-button--primary { background: var(--podcast-ink); color: #fff; }
.podcast-button--secondary { color: var(--podcast-ink); background: rgba(255,255,255,.13); }

.podcast-signal { display: flex; height: 45px; align-items: center; gap: 6px; margin-top: 2.4rem; opacity: .55; }
.podcast-signal i { width: 2px; height: 10px; background: rgba(8,9,13,.65); transform-origin: center; }
.podcast-signal i:nth-child(2n) { height: 23px; }
.podcast-signal i:nth-child(3n) { height: 34px; }

.podcast-wave-rail {
  --rail-progress: 0%;
  --rail-energy: .58;
  position: fixed;
  top: 112px;
  right: 7px;
  bottom: 18px;
  z-index: 18;
  width: 52px;
  pointer-events: none;
  opacity: .9;
}
.podcast-wave-rail::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(transparent, rgba(138,109,51,.4) 8%, rgba(138,109,51,.4) 92%, transparent);
}
.podcast-wave-rail-bars {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: repeat(76, 1fr);
  align-items: center;
  mask-image: linear-gradient(transparent, #000 5%, #000 95%, transparent);
}
.podcast-wave-rail-bars b {
  display: block;
  justify-self: center;
  width: 100%;
  height: 1.5px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 1%, #b58a3f 24%, #fff1be 50%, #b58a3f 76%, transparent 99%);
  box-shadow: 0 0 8px rgba(255,234,172,.72);
  opacity: var(--rail-energy);
  transform: scaleX(.16);
  transform-origin: center;
  transition: transform .09s linear, opacity .09s linear;
}
.podcast-wave-rail-progress {
  position: absolute;
  top: var(--rail-progress);
  left: 50%;
  width: 9px;
  height: 9px;
  border: 2px solid #fff7df;
  border-radius: 50%;
  background: #b18435;
  box-shadow: 0 0 0 4px rgba(177,132,53,.16), 0 0 14px rgba(255,235,177,.95);
  transform: translate(-50%,-50%);
  transition: top .14s linear;
}

.podcast-ready .podcast-cover { opacity: 1; transform: translate3d(0,0,0) rotate(0) scale(1); filter: none; transition: opacity .58s ease, filter .75s ease, transform 1.05s cubic-bezier(.16,1,.3,1); }
.podcast-ready .podcast-intro h1 span { opacity: 1; transform: none; transition: opacity .6s ease, transform .9s cubic-bezier(.16,1,.3,1); }
.podcast-ready .podcast-intro h1 span:nth-child(2) { transition-delay: .11s; }
.podcast-ready .podcast-lead { opacity: 1; transform: none; transition: opacity .65s .25s ease, transform .75s .25s ease; }
.podcast-ready .podcast-actions { opacity: 1; transform: none; transition: opacity .65s .36s ease, transform .75s .36s ease; }
.podcast-ready .podcast-flight-line { animation: podcast-flight 1.15s .04s cubic-bezier(.18,.72,.22,1) both; }
.podcast-ready .podcast-signal i { animation: podcast-signal 1.8s ease-in-out infinite alternate; }
.podcast-ready .podcast-signal i:nth-child(2n) { animation-delay: -.55s; }
.podcast-ready .podcast-signal i:nth-child(3n) { animation-delay: -.95s; }

.podcast-purpose { padding: clamp(5rem, 9vw, 9rem) 0; background: #fff; }
.podcast-section-head { display: grid; grid-template-columns: .65fr 1.45fr .9fr; gap: 2.4rem; align-items: start; }
.podcast-section-head > span,
.podcast-format-copy > span { color: var(--podcast-gold-deep); font: 800 .62rem/1.3 var(--font-mono); letter-spacing: .09em; text-transform: uppercase; }
.podcast-section-head h2,
.podcast-format-copy h2 { margin: 0; color: var(--podcast-ink); font-family: var(--font-heading); font-size: clamp(2.8rem, 5vw, 5rem); line-height: .94; letter-spacing: -.06em; }
.podcast-section-head p,
.podcast-format-copy p { margin: .2rem 0 0; color: #5d6270; line-height: 1.75; }

.podcast-topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(3.5rem, 6vw, 6rem); border: 1px solid #dfe2e8; }
.podcast-topic-grid article { min-height: 310px; padding: 1.8rem; background: linear-gradient(145deg,#fff,#f8f8fa); }
.podcast-topic-grid article + article { border-left: 1px solid #dfe2e8; }
.podcast-topic-grid b { color: #a47c34; font: 800 .64rem/1 var(--font-mono); }
.podcast-topic-grid span { display: block; margin-top: 4rem; color: #7a8292; font: 700 .59rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.podcast-topic-grid h3 { max-width: 310px; margin: .8rem 0 0; color: var(--podcast-ink); font-size: 1.42rem; line-height: 1.17; letter-spacing: -.035em; }

.podcast-format { padding: clamp(5rem, 9vw, 9rem) 0; background: #f1f2f5; }
.podcast-format-grid { display: grid; grid-template-columns: .83fr 1.17fr; gap: clamp(3rem, 7vw, 7rem); align-items: center; }
.podcast-format-copy p { max-width: 570px; margin-top: 1.7rem; }
.podcast-format-console { overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 20px; background: #090b12; box-shadow: 0 35px 75px rgba(9,11,18,.18); }
.podcast-console-top { display: flex; justify-content: space-between; padding: 1rem 1.2rem; border-bottom: 1px solid rgba(255,255,255,.1); color: #8690a3; font: 700 .56rem/1 var(--font-mono); letter-spacing: .08em; }
.podcast-console-top b { color: #d9bb77; }
.podcast-format-row { display: grid; grid-template-columns: 125px 1fr; gap: 1rem; padding: 1.35rem 1.2rem; }
.podcast-format-row + .podcast-format-row { border-top: 1px solid rgba(255,255,255,.1); }
.podcast-format-row strong { color: #d8bd7d; font: 800 .65rem/1.3 var(--font-mono); }
.podcast-format-row span { color: #d5dae4; font-size: .86rem; line-height: 1.5; }
.podcast-wave { height: 78px; border-top: 1px solid rgba(255,255,255,.1); background: repeating-linear-gradient(90deg, transparent 0 10px, rgba(215,185,118,.68) 11px 13px, transparent 14px 20px); mask-image: linear-gradient(to bottom, transparent, #000 35%, #000 65%, transparent); opacity: .45; }

.podcast-launch { padding: clamp(6rem, 11vw, 11rem) 0; background: var(--podcast-night); text-align: center; }
.podcast-launch-inner { max-width: 940px; }
.podcast-launch-label { color: #d2b36e; font: 800 .62rem/1 var(--font-mono); letter-spacing: .11em; }
.podcast-launch h2 { margin: 1.2rem 0 1.4rem; color: #fff; font-size: clamp(3.3rem, 7.4vw, 7rem); line-height: .93; letter-spacing: -.065em; }
.podcast-launch p { max-width: 730px; margin: 0 auto; color: #aeb6c5; font-size: 1rem; line-height: 1.75; }
.podcast-actions--center { justify-content: center; opacity: 1; transform: none; }
.podcast-button--light { background: #d0aa64; color: #090a0d; border-color: #d0aa64; }
.podcast-button--ghost { color: #fff; border-color: rgba(255,255,255,.28); }

.podcast-footer { padding: 2.6rem 0; background: #000 !important; border-top: 1px solid rgba(255,255,255,.1); }
.podcast-footer-inner { display: grid; grid-template-columns: 270px 1fr auto; gap: 2rem; align-items: center; }
.podcast-footer-brand { display: block; width: 250px; }
.podcast-footer-brand img { display: block; width: 100%; height: auto; }
.podcast-footer p { margin: 0; color: #9ca5b6; font: 700 .62rem/1 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; }
.podcast-footer nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.podcast-footer nav a { color: #d7dbe3; font-size: .75rem; text-decoration: none; }

.podcast-reveal { opacity: 0; transform: translateY(42px); transition: opacity .75s ease, transform .9s cubic-bezier(.16,1,.3,1); }
.podcast-reveal.is-visible { opacity: 1; transform: none; }
.podcast-title-lines { overflow: hidden; }
.podcast-title-lines > span {
  position: relative;
  display: block;
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transform: translateY(42px);
  transition: opacity .45s ease, clip-path .95s cubic-bezier(.16,1,.3,1), transform .95s cubic-bezier(.16,1,.3,1);
}
.podcast-title-lines > span::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: .03em;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(185,138,72,.9), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.15s .45s cubic-bezier(.16,1,.3,1);
}
.podcast-reveal.is-visible .podcast-title-lines > span { opacity: 1; clip-path: inset(0); transform: none; }
.podcast-reveal.is-visible .podcast-title-lines > span:nth-child(2) { transition-delay: .11s; }
.podcast-reveal.is-visible .podcast-title-lines > span::after { transform: scaleX(1); }
.podcast-title-lines--center > span::after { left: 18%; right: 18%; }

@keyframes podcast-flight {
  0% { opacity: 0; transform: translateX(0) skewX(-28deg); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translateX(410%) skewX(-28deg); }
}

@keyframes podcast-signal { from { transform: scaleY(.55); } to { transform: scaleY(1.18); } }

@media (max-width: 1239px) {
  body.podcast-page header .logo { width: auto; min-width: auto; height: auto; overflow: visible; }
  body.podcast-page header .header-wordmark { display: none; }
  body.podcast-page header .logo-icon { display: block; }
  body.podcast-page header .logo > span { display: inline; }
}

@media (max-width: 980px) {
  .podcast-hero { min-height: auto; }
  .podcast-hero-grid,
  .podcast-section-head,
  .podcast-format-grid { grid-template-columns: 1fr; }
  .podcast-cover { max-width: 600px; justify-self: center; }
  .podcast-topic-grid { grid-template-columns: 1fr; }
  .podcast-topic-grid article { min-height: 0; }
  .podcast-topic-grid article + article { border-left: 0; border-top: 1px solid #dfe2e8; }
  .podcast-topic-grid span { margin-top: 2rem; }
  .podcast-footer-inner { grid-template-columns: 1fr; }
  .podcast-wave-rail { display: none; }
}

@media (max-width: 620px) {
  body.podcast-page .container { width: min(100% - 28px, 1180px); }
  .podcast-hero { padding-top: 6.7rem; }
  .podcast-hero-grid { gap: 2.8rem; }
  .podcast-cover { width: calc(100% - 14px); }
  .podcast-title-main { font-size: clamp(4.1rem, 23vw, 6.2rem); }
  .podcast-title-script { font-size: clamp(3.5rem, 19vw, 5.2rem); }
  .podcast-section-head h2,
  .podcast-format-copy h2 { font-size: clamp(2.55rem, 13vw, 4rem); }
  .podcast-format-row { grid-template-columns: 1fr; }
  .podcast-actions { flex-direction: column; }
  .podcast-button { width: 100%; }
  .podcast-footer nav { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .podcast-cover,
  .podcast-intro h1 span,
  .podcast-lead,
  .podcast-actions,
  .podcast-reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .podcast-flight-line,
  .podcast-signal i { animation: none !important; }
  .podcast-wave-rail-bars b { transform: scaleX(.32); transition: none; }
  .podcast-wave-rail-progress { top: 0; transition: none; }
  .podcast-title-lines > span { opacity: 1; clip-path: none; transform: none; transition: none; }
}
