/* ============================================
   Johns Media — brand tokens
   Colors are placeholders (from the logo: black/white).
   Swap --accent once your brand colors are locked in.
   ============================================ */
:root {
  --bg: #0a0a0a;
  --bg-alt: #131313;
  --surface: #1a1a1a;
  --border: #2a2a2a;
  --text: #f5f5f5;
  --text-dim: #a3a3a3;
  --accent: #e8ff3c; /* TODO: replace with real brand accent color */
  --accent-text: #0a0a0a;
  --radius: 14px;
  --max-width: 1180px;
  /* Show colors, sampled straight from each show's cover art */
  --backstage-accent: #a5322f;
  --backstage-tint: #f0ddcc;
  --family-accent: #2b89e0;
  --family-tint: #f0ddcc;
  /* TODO: replace with the real Adobe "Obviously" family name once the Typekit kit is linked in index.html */
  --font-display: "Anton", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 96px 0;
}

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 12px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0;
}

h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head p {
  color: var(--text-dim);
  font-size: 17px;
  margin-top: 12px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand img {
  height: 40px;
  width: auto;
  transition: transform 0.25s ease;
}

.brand:hover img {
  transform: scale(1.06) rotate(-2deg);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dim);
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a.active {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 120px;
  padding-bottom: 96px;
  text-align: center;
}

.hero .eyebrow {
  display: block;
  text-align: center;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 84px);
  line-height: 0.98;
}

.hero p {
  max-width: 560px;
  margin: 24px auto 36px;
  color: var(--text-dim);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-logo {
  position: relative;
  margin: 64px auto 0;
  max-width: 520px;
}

.hero-logo img {
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

/* A soft light sweep animated across the logo mark, masked to its exact
   letterforms so it reads as a shine rather than a generic glow. */
.hero-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(232, 255, 60, 0.9) 48%,
    rgba(255, 255, 255, 0.95) 52%,
    transparent 65%
  );
  background-size: 260% 100%;
  -webkit-mask-image: url("assets/logo-white.png");
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-image: url("assets/logo-white.png");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  animation: logo-shine 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes logo-shine {
  0% {
    background-position: 200% 0;
  }
  35%,
  100% {
    background-position: -60% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo::after {
    animation: none;
    display: none;
  }
}

/* ---------- Podcasts ---------- */
.podcasts {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.platform-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.platform-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 18px 10px 14px;
  border-radius: 100px;
  color: #fff;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.platform-links a svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.platform-links a:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.platform-spotify {
  background: #1db954;
}

.platform-apple {
  background: linear-gradient(135deg, #f452ff 0%, #832bc1 100%);
}

.platform-youtube {
  background: #ff0000;
}

/* ---- Individual show section ---- */
.show {
  border-top: 1px solid var(--border);
  padding-bottom: 96px;
}

.show-marquee {
  overflow: hidden;
  background: var(--show-accent);
  padding: 10px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 22s linear infinite;
}

.marquee-track span {
  white-space: nowrap;
  padding-right: 32px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #0a0a0a;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.show-poster {
  position: relative;
  display: flex;
  align-items: center;
  gap: 45px;
  flex-wrap: wrap;
  background: var(--show-tint);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 60px 50px;
  margin: 50px 0 50px;
}

.show-poster-art {
  flex: 0 0 auto;
  width: 225px;
  height: 225px;
  border-radius: 15px;
  overflow: hidden;
  border: 4px solid rgba(10, 10, 10, 0.2);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.show-poster-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.show-poster-text {
  flex: 1 1 320px;
}

.show-tag {
  display: inline-block;
  font-size: 15px;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  background: var(--show-accent);
  padding: 6px 15px;
  border-radius: 100px;
  margin-bottom: 23px;
}

.show-poster h3 {
  font-size: clamp(60px, 11.25vw, 135px);
  line-height: 0.85;
  color: var(--show-accent);
  text-shadow: 6px 6px 0 #0a0a0a;
  transform: skewY(-2deg);
  transform-origin: left;
  margin-bottom: 5px;
}

.show-poster .show-hosts {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 21px;
  color: #0a0a0a;
  margin-top: 20px;
}

#johns-family .show-poster h3 {
  font-size: clamp(50px, 9.5vw, 115px);
}

.show-badge {
  position: absolute;
  top: 40px;
  right: 40px;
  width: 135px;
  height: 135px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff, #cfe0ec 45%, #fff);
  border: 3px solid rgba(10, 10, 10, 0.15);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transform: rotate(-10deg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
}

.show-badge span {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.15;
  color: var(--show-accent);
}

.show-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.module-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--show-accent);
  margin-bottom: 14px;
}

.show-info p {
  color: var(--text-dim);
  font-size: 16px;
  margin-bottom: 20px;
}

.youtube-frame {
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  border: 3px solid var(--show-accent);
  background: #000;
}

.youtube-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.youtube-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-dim);
  font-size: 14px;
  text-align: center;
  padding: 24px;
  background: repeating-linear-gradient(
    45deg,
    #1a1a1a,
    #1a1a1a 10px,
    #171717 10px,
    #171717 20px
  );
}

.play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--show-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.ig-carousel {
  display: flex;
  align-items: center;
  gap: 12px;
}

.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex: 0 0 200px;
  aspect-ratio: 4 / 5;
  scroll-snap-align: start;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 13px;
  text-align: center;
  padding: 16px;
  background: repeating-linear-gradient(
    45deg,
    #1a1a1a,
    #1a1a1a 10px,
    #171717 10px,
    #171717 20px
  );
}

.carousel-slide .ig-icon {
  font-size: 22px;
  color: var(--show-accent);
}

/* Instagram enforces a hard 326px minimum width on its own embed and won't
   render narrower — so instead of fighting that, we let it render at its
   native size inside .ig-embed-scale, then scale that whole box down and
   clip the outer box to the smaller footprint we actually want. JS sets
   --ig-embed-height once Instagram reports the real (unscaled) height. */
.carousel-slide--embed {
  --ig-scale: 0.72;
  --ig-embed-height: 600px;
  flex-basis: 235px;
  min-width: 235px;
  max-width: 235px;
  height: calc(var(--ig-embed-height) * var(--ig-scale));
  aspect-ratio: auto;
  padding: 0;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  background: none;
  display: block;
}

.ig-embed-scale {
  width: 326px;
  transform: scale(var(--ig-scale));
  transform-origin: top left;
}

.carousel-slide--embed iframe {
  border-radius: 10px !important;
}

.carousel-btn {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.carousel-btn:hover {
  border-color: var(--show-accent);
  color: var(--show-accent);
}

/* ---------- Merch ---------- */
.merch {
  background: var(--backstage-accent);
}

.merch-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.merch-text .eyebrow {
  color: #fff;
  opacity: 0.7;
}

.merch-text h2 {
  color: #fff;
}

.merch-text p {
  color: #fff;
  opacity: 0.85;
  font-size: 17px;
  margin-top: 12px;
  max-width: 480px;
}

.merch-cta {
  background: #0a0a0a;
  color: #fff;
  flex: 0 0 auto;
}

.merch-cta:hover {
  background: #1a1a1a;
}

.merch-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.merch-loading {
  grid-column: 1 / -1;
  color: #fff;
  opacity: 0.85;
  font-size: 15px;
}

.merch-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px 20px;
  border: 1px dashed rgba(10, 10, 10, 0.3);
  border-radius: var(--radius);
}

.merch-empty p {
  color: #fff;
  font-size: 16px;
  margin: 0 0 18px;
}

.merch-empty .btn-secondary {
  background: #0a0a0a;
  color: #fff;
  border-color: #0a0a0a;
}

.merch-card {
  display: block;
  background: #0a0a0a;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  transition: transform 0.15s ease;
}

.merch-card:hover {
  transform: translateY(-4px);
}

.merch-card-image {
  aspect-ratio: 1 / 1;
  background: #141414;
}

.merch-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.merch-card-info {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.merch-card-title {
  font-weight: 700;
  font-size: 14px;
}

.merch-card-price {
  font-size: 13px;
  color: var(--text-dim);
}

/* Persistent shop tab, fixed to the right edge, visible on every scroll position */
.shop-tab {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 60;
  background: var(--backstage-accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 18px 10px;
  border-radius: 10px 0 0 10px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  box-shadow: -4px 4px 16px rgba(0, 0, 0, 0.35);
  transition: padding 0.15s ease;
}

.shop-tab:hover {
  padding-right: 16px;
}

/* Campaign photos sit in the Instagram carousel at the same height as the
   scaled-down Instagram cards, keeping their natural aspect ratio. */
.carousel-slide--image {
  flex: 0 0 auto;
  height: 443px;
  aspect-ratio: auto;
  padding: 0;
  background: none;
  display: block;
  overflow: hidden;
}

.carousel-slide--image img {
  height: 100%;
  width: auto;
  max-width: none;
  display: block;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.service-card .num {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.service-card h3 {
  font-size: 22px;
  margin: 16px 0 12px;
}

.service-card p {
  color: var(--text-dim);
  font-size: 15px;
  margin-bottom: 20px;
}

.service-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.service-card li {
  font-size: 14px;
  color: var(--text-dim);
  padding-left: 20px;
  position: relative;
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 2px;
  background: var(--accent);
}

.services-cta {
  text-align: center;
  margin-top: 40px;
}

/* ---------- Services page: capabilities ---------- */
.services-hero {
  padding-bottom: 64px;
}

.capabilities {
  padding-top: 0;
}

.capability {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

.capability:last-child {
  border-bottom: 1px solid var(--border);
}

.capability-head .num {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}

.capability-head h3 {
  font-size: 30px;
}

.capability-body p {
  color: var(--text-dim);
  font-size: 17px;
  margin: 0 0 24px;
  max-width: 640px;
}

.capability-points {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 32px;
}

.capability-points li {
  font-size: 15px;
  color: var(--text);
  padding-left: 20px;
  position: relative;
}

.capability-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 2px;
  background: var(--accent);
}

.tool-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tool-tags span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 12px;
}

/* ---------- Deliverables ---------- */
.deliverables {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.deliverables-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.deliverable {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px 18px 44px;
  font-size: 15px;
  font-weight: 600;
  position: relative;
}

.deliverable::before {
  content: "✓";
  position: absolute;
  left: 18px;
  top: 17px;
  color: var(--accent);
  font-weight: 800;
}

/* ---------- Process ---------- */
.process {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.process-step {
  padding: 24px 0;
  border-top: 2px solid var(--border);
}

.process-step .step-index {
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}

.process-step h4 {
  font-size: 17px;
  margin: 0 0 8px;
}

.process-step p {
  color: var(--text-dim);
  font-size: 14px;
  margin: 0;
}

/* ---------- Workspace ---------- */
.workspace-art {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.workspace-art img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ---------- Stats ---------- */
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.stat .value {
  font-size: 32px;
  font-weight: 800;
  color: #1db954;
}

.stat .label {
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ---------- About (outro) ---------- */
.about-outro {
  border-top: 1px solid var(--border);
}

.about-outro-inner {
  max-width: 700px;
}

.about-outro-inner p {
  color: var(--text-dim);
  font-size: 17px;
  margin: 16px 0;
}

.about-outro-inner .btn-secondary {
  margin-top: 8px;
}

/* ---------- Contact ---------- */
.contact {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 64px;
  text-align: center;
}

.contact h2 {
  margin-bottom: 16px;
}

.contact p {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 480px;
  margin: 0 auto 32px;
}

.contact-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-dim);
}

.footer-brand img {
  height: 18px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.footer-social {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-social a {
  text-decoration: none;
  font-size: 14px;
  color: var(--text-dim);
}

.footer-social a:hover {
  color: var(--text);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .merch-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .show-columns {
    grid-template-columns: 1fr;
  }

  .show-poster {
    padding: 45px 30px;
  }

  .show-badge {
    width: 105px;
    height: 105px;
    top: 25px;
    right: 25px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .capability {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .capability-points {
    grid-template-columns: 1fr;
  }

  .deliverables-grid {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr 1fr;
  }

  .contact {
    padding: 40px 24px;
  }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 24px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }

  .menu-toggle {
    display: block;
  }

  .nav-cta {
    display: none;
  }

  .show-badge {
    display: none;
  }

  section {
    padding: 64px 0;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .merch-grid {
    grid-template-columns: 1fr 1fr;
  }

  .shop-tab {
    font-size: 13px;
    padding: 14px 8px;
  }
}
