/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  background: #0b0b0b;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeUp 1s ease-out;
}
.preloader-logo {
  width: 220px;
  height: auto;
  margin-bottom: 24px;
}
.preloader-text {
  color: #f0f0f0;
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: 1px;
  margin: 0;
}

/* Hide preloader immediately if body has 'site-loaded' class (internal navigation) */
body.site-loaded #preloader {
  display: none !important;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Streamwork Produktion – Luxuriös-modern, minimalistisch, ruhig */

:root {
  /* Dark Background + Light Cards + Navy Accent */
  --paper: #0b0b0b;         /* Seitenhintergrund (dunkel) */
  --ink: #f0f0f0;           /* Grundtext auf dunkel */
  --muted: #a2a2a2;         /* Sekundärtext auf dunkel */
  --line: #151515;          /* Linien auf dunkel */

  --card: #f7f7f7;          /* Kartenhintergrund (hell) */
  --card-text: #0a0a0a;     /* Text auf Karten */
  --card-muted: #5f5f5f;    /* Sekundärtext auf Karten */
  --line-card: #e7e7e7;     /* Linien auf Karten */

  --accent: #0b2a5a;        /* Navy-Akzent */

  /* Tiefe & Radius */
  --radius: 12px;
  --shadow-surface: 0 0.5px 0 rgba(0,0,0,0.35), 0 12px 24px rgba(0,0,0,0.28);
  --shadow-hover: 0 2px 0 rgba(0,0,0,0.35), 0 20px 36px rgba(0,0,0,0.38);

  --maxw: 1200px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
  --footer-h: 56px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 0;
  /* Make footer stick to bottom when page content is short */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--space-3);
}
.narrow { max-width: 760px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-weight: 300;
  letter-spacing: 0.4px;
  font-size: 18px;
}
.brand, .brand span { color: var(--ink); }
.brand span { opacity: 0.7; }
.site-nav { display: flex; gap: var(--space-3); align-items: center; }
.site-nav a { position: relative; padding: 6px 0; opacity: 0.92; color: var(--ink); }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms ease;
}
.site-nav a:hover::after, .site-nav a.is-active::after { transform: scaleX(1); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 1px; background: var(--ink); margin: 6px 0; }

/* Hero */
.hero { position: relative; min-height: calc(100vh - 64px); display: grid; grid-template-rows: auto auto 1fr; align-content: start; justify-items: center; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.24) 45%, rgba(0,0,0,0.02) 82%); pointer-events: none; z-index: 1; }
.hero-media { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-slideshow { position: absolute; inset: 0; display: none; }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1600ms ease, transform 12000ms ease-in-out; will-change: opacity, transform; }
.hero-slide.is-active { opacity: 1; }
.hero-slide.anim-pan { transform: scale(1.04) translateY(-10px); }
.hero-content { position: relative; padding-top: clamp(24px, 26vh, 260px); padding-bottom: var(--space-6); z-index: 2; align-self: start; }
.hero-bottom { position: relative; grid-row: 2; align-self: start; z-index: 2; margin-top: clamp(8px, 2.8vh, 28px); }
.hero h1 { font-weight: 300; font-size: clamp(36px, 7vw, 56px); line-height: 1.1; letter-spacing: 0.2px; }
.lede { color: #cfcfcf; margin-top: 6px; font-size: 18px; }

.hero-glass { max-width: 900px; background: rgba(0,0,0,0.42); border: 1px solid rgba(255,255,255,0.08); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: clamp(16px, 3vw, 28px); border-radius: var(--radius); box-shadow: 0 20px 40px rgba(0,0,0,0.35); text-align: center; margin: 0 auto; }
.hero-glass h1 { margin: 0 0 6px 0; }
.hero-glass .lede { color: #e4e4e4; }

/* Hero Title + Tagline */
.hero-title { font-weight: 700; font-size: clamp(44px, 9vw, 96px); line-height: 1.02; letter-spacing: 0.6px; margin: 0 0 10px 0; color: #ffffff; }
.hero-tagline { font-weight: 300; font-size: clamp(24px, 5.8vw, 44px); line-height: 1.14; margin: 0 0 10px 0; color: #f0f0f0; }

/* Dark translucent section card */
.panel {
  background: rgba(0,0,0,0.56);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  padding: clamp(18px, 3vw, 32px);
}
.panel h2, .panel h3, .panel p, .panel .subtle { color: var(--ink); }
.panel .subtle { color: #d0d0d0; }
/* Center variant */
.panel.panel--center { text-align: center; }

/* Page heads */
.page-head .panel { text-align: center; }

@keyframes kenburns {
  0% { transform: scale(1.02) translate3d(0, 0, 0); }
  100% { transform: scale(1.08) translate3d(0, -10px, 0); }
}

/* Sections */
.section { padding: var(--space-6) 0; }
.section--spacious { padding: var(--space-6) 0; }
.section-head { margin-bottom: var(--space-4); }
.section-head .subtle { color: var(--muted); }

/* Projects grid */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
.project-card { border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line-card); color: var(--card-text); box-shadow: var(--shadow-surface); transition: transform 420ms cubic-bezier(.2,.6,.2,1), box-shadow 420ms ease; }
.project-meta { padding: var(--space-3); display: flex; justify-content: space-between; align-items: baseline; }
.project-meta h3 { font-weight: 400; margin: 0; color: var(--card-text); }
.project-meta p { color: var(--card-muted); margin: 0; }
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

/* Teasers */
.teaser-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
.teaser { display: grid; grid-template-columns: 1fr; border: 1px solid var(--line-card); border-radius: var(--radius); overflow: hidden; background: var(--card); transition: transform 420ms cubic-bezier(.2,.6,.2,1), box-shadow 420ms ease; color: var(--card-text); box-shadow: var(--shadow-surface); }
.teaser:hover { transform: translateY(-2px); }
.teaser:hover { box-shadow: var(--shadow-hover); }
.teaser-body { padding: var(--space-3); display: grid; gap: 6px; }
.link-arrow { color: var(--accent); opacity: 1; text-decoration: underline; text-underline-offset: 2px; }
/* Home teaser 'Mehr' links: make them white instead of navy accent */
.section--teasers .link-arrow { color: #ffffff; }

/* Split blocks (Formate) */
.split { display: grid; grid-template-columns: 1fr; gap: var(--space-4); align-items: center; }
.split > img { width: 100%; height: auto; display: block; }
.split .copy { max-width: 65ch; }
.format-block { padding: var(--space-6) 0; }
.format-block .copy h2 { font-weight: 400; margin-top: 0; }
.copy p { color: var(--ink); }

/* List blocks (Events/Podcasts) */
.list-block { padding: var(--space-6) 0; }
.list-item { display: grid; grid-template-columns: 1fr; gap: var(--space-3); padding: var(--space-3); border: 1px solid var(--line-card); border-radius: var(--radius); background: var(--card); color: var(--card-text); box-shadow: var(--shadow-surface); transition: transform 420ms cubic-bezier(.2,.6,.2,1), box-shadow 420ms ease; }
.list-item .copy h2 { margin: 0; font-weight: 400; color: var(--card-text); }
.list-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

/* Events carousel */
/* Pull the carousel higher by reducing top margin */
.events-carousel { margin-top: var(--space-3); }
.events-carousel { display: grid; }
.events-carousel .container { max-width: 100%; display: grid; justify-items: center; }
/* Center the carousel card and allow a larger max width */
.events-carousel .carousel.panel { width: min(96vw, 1600px); margin: 0 auto; }
/* Use grid so navs align to the image row (not caption) */
.events-carousel .carousel { position: relative; overflow: visible; display: grid; grid-template-rows: auto auto; }
.carousel-viewport { grid-row: 1; grid-column: 1; }
.carousel-caption { grid-row: 2; grid-column: 1; }
.carousel-viewport { overflow: hidden; }
.carousel-track { display: flex; gap: 0; transition: transform 700ms cubic-bezier(.2,.6,.2,1); will-change: transform; }
.carousel-group { flex: 0 0 100%; display: grid; grid-template-columns: 1fr; gap: var(--space-3); align-items: stretch; }
.carousel-group img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; border: 1px solid var(--line-card); }
.carousel-caption { text-align: center; margin-top: var(--space-3); color: var(--ink); }
.carousel-title { font-weight: 600; font-size: clamp(22px, 2.8vw, 32px); line-height: 1.2; }
.carousel-desc { margin-top: 6px; color: #dedede; font-size: 16px; line-height: 1.5; max-width: 90ch; margin-left: auto; margin-right: auto; }
.carousel-nav { grid-row: 1; grid-column: 1; align-self: center; z-index: 2; background: rgba(0,0,0,0.68); color: #fff; border: 1px solid rgba(255,255,255,0.5); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px rgba(0,0,0,0.4); backdrop-filter: blur(4px); }
.carousel-nav:hover { background: rgba(0,0,0,0.78); }
/* Float navs just outside the viewport on desktop */
.carousel-nav.prev { justify-self: start; margin-left: -36px; }
.carousel-nav.next { justify-self: end; margin-right: -36px; }

@media (max-width: 739px) {
  /* Keep buttons inside on small screens for touch ergonomics */
  .events-carousel .carousel { overflow: hidden; }
  .carousel-nav { width: 44px; height: 44px; }
  .carousel-nav.prev { margin-left: 6px; }
  .carousel-nav.next { margin-right: 6px; }
}

@media (min-width: 740px) {
  /* Remove forced viewport-height centering which pushed it too low */
  .events-carousel { min-height: auto; align-items: start; }
  .carousel-group { grid-template-columns: repeat(3, 1fr); }
}

/* Team / Profile */
.team-list { display: grid; gap: var(--space-4); padding: var(--space-6) var(--space-3); }
.profile { display: grid; grid-template-columns: 110px 1fr; gap: var(--space-3); align-items: center; border: 1px solid var(--line-card); padding: var(--space-3); border-radius: var(--radius); background: var(--card); color: var(--card-text); box-shadow: var(--shadow-surface); transition: transform 420ms cubic-bezier(.2,.6,.2,1), box-shadow 420ms ease; }
.profile img { width: 110px; height: 110px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line-card); }
.profile .role { color: var(--card-muted); margin-top: 6px; margin-bottom: 10px; }
.profile:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

/* Contact */
.section--contact { padding-bottom: var(--space-6); }
.contact-box { margin-top: var(--space-3); border: 1px solid var(--line-card); padding: var(--space-3); border-radius: var(--radius); background: var(--card); color: var(--card-text); box-shadow: var(--shadow-surface); transition: box-shadow 420ms ease; }
label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 12px; }
input, textarea { width: 100%; padding: 12px 14px; margin-top: 6px; border: 1px solid var(--line-card); border-radius: 8px; background: white; font: inherit; color: #111; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
.btn { appearance: none; background: var(--accent); color: #fff; border: 0; padding: 12px 18px; border-radius: 999px; font-weight: 500; letter-spacing: 0.2px; box-shadow: 0 10px 24px rgba(11,42,90,0.25); transition: transform 240ms ease, box-shadow 240ms ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(11,42,90,0.32); }
.btn:active { transform: translateY(0); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #0b0b0b; margin-top: auto; position: static; height: auto; z-index: 30; }
.footer-inner { display: flex; gap: var(--space-3); align-items: center; justify-content: space-between; padding: 18px 0; }
.foot-links { display: flex; gap: var(--space-3); }
.foot-links a { color: var(--muted); }

/* Scroll cue (down arrow) */
.scroll-cue { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); color: #fff; opacity: 0.8; z-index: 3; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.3); backdrop-filter: blur(4px); background: rgba(0,0,0,0.25); animation: cue-bounce 1.8s infinite; }
.scroll-cue:hover { opacity: 1; }
.scroll-cue svg { display: block; }

@keyframes cue-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* Ensure page heads can host absolute arrows */
.page-head { position: relative; }

/* Legal */
.legal p { color: #dcdcdc; }
.cookie-form { display: grid; gap: 12px; }
.cookie-item { display: flex; gap: 10px; align-items: center; }
.cookie-actions { margin-top: 6px; }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(24px); filter: blur(8px); transition: opacity 900ms cubic-bezier(.2,.6,.2,1), transform 900ms cubic-bezier(.2,.6,.2,1), filter 900ms ease; will-change: transform, opacity, filter; }
.reveal.in-view { opacity: 1; transform: translateY(0); filter: blur(0); }

/* Formate page: clean media and directional reveals */
.format-block .copy.panel { border: 0; box-shadow: 0 20px 50px rgba(0,0,0,0.35); }
.format-block .media img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: 0; border-radius: 8px; display: block; }
/* Tiny right shift for specific format image */
.media--nudge-right { margin-left: 10px; }
@media (min-width: 740px) {
  .media--nudge-right { margin-left: 14px; }
}
/* Focus cropping toward right side for specific image */
.img-focus-right { object-position: 85% center; }
/* Vertical shift to reveal more top area for Wüste image */
.img-shift-down { object-position: center top; }
/* Duo media layout for smaller paired images in a single frame */
.media--duo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.media--duo img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; }
@media (max-width: 739px) { .media--duo { grid-template-columns: 1fr; } }

@media (min-width: 740px) {
  /* Alternate slide-in: odd from left, even from right */
  .format-block.reveal { transform: translateX(-18px); opacity: 0; filter: blur(4px); }
  .format-block.reveal:nth-of-type(even) { transform: translateX(18px); }
  .format-block.reveal.in-view { transform: translateX(0); opacity: 1; filter: blur(0); }
  /* Slow down the directional reveal to feel calmer */
  .format-block.reveal { transition: opacity 1200ms cubic-bezier(.2,.6,.2,1), transform 1200ms cubic-bezier(.2,.6,.2,1), filter 1200ms ease; }
  /* Podcast layout on desktop */
  .podcast-layout { grid-template-columns: 0.9fr 1.1fr; }
  .podcast-layout .podcast-stats { margin-top: 0; }
  .stats-grid { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
}

/* Scroll progress bar */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, #0b2a5a, #143a7a); z-index: 50; }

/* Site-wide background slideshow */
.site-bg-slideshow { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.site-bg-slideshow::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.25); pointer-events: none; }
.site-bg-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1600ms ease, transform 12000ms ease-in-out; will-change: opacity, transform; }
.site-bg-slide.is-active { opacity: 1; }
.site-bg-slide.anim-pan { transform: scale(1.06) translateY(-12px); }

/* Disable site-wide moving background on podcast page */
body.no-bg-slideshow .site-bg-slideshow { display: none !important; }

/* Events page: make the moving background really dark */
body.events-bg-dark .site-bg-slideshow::after { background: rgba(0,0,0,0.64); }
body.events-bg-dark .site-bg-slide { filter: brightness(0.55) contrast(1.05) saturate(0.9); }

/* Podcast page: add a slightly transparent black layer above slideshow */
body.podcast-bg-dark .site-bg-slideshow::after { background: rgba(0,0,0,0.56); }
body.podcast-bg-dark .site-bg-slide { filter: brightness(0.62) contrast(1.02) saturate(0.9); }

/* Stacked teaser panels spacing on home */
.section--teasers .panel + .panel { margin-top: var(--space-4); }

/* Podcasts – single feature layout */
.podcast-section { padding: var(--space-6) 0; }
.podcast-title-panel { margin-bottom: var(--space-4); text-align: center; }
.podcast-title-panel .podcast-title { margin: 0; font-weight: 400; font-size: clamp(28px, 6vw, 48px); letter-spacing: 0.4px; color: #fff; }
.podcast-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-4); align-items: start; margin-bottom: var(--space-5); }
.podcast-cover { display: grid; justify-items: center; }
.podcast-cover img { width: 100%; max-width: 512px; height: auto; aspect-ratio: 1/1; object-fit: cover; border-radius: 12px; border: 1px solid var(--line-card); box-shadow: var(--shadow-surface); }
.podcast-meta { display: grid; gap: 10px; }
.podcast-title { margin: 0; font-weight: 400; font-size: clamp(28px, 6vw, 48px); letter-spacing: 0.4px; }
.partner-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; font-size: 14px; color: #fff; background: linear-gradient(90deg, #0b2a5a, #1c4a9a); border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 10px 24px rgba(11,42,90,0.35); }

.podcast-stats { margin-top: var(--space-4); }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(140px, 1fr)); gap: var(--space-4); }
.stat-card { border-radius: var(--radius); overflow: hidden; background: var(--card); color: var(--card-text); border: 1px solid var(--line-card); box-shadow: var(--shadow-surface); display: grid; grid-template-rows: auto 1fr; /* remove forced square to shrink vertical */ }
/* Reduced internal padding and gaps; align content to top for less white space */
.stat-body { padding: var(--space-2); display: grid; gap: 6px; }
.podcast-about { text-align: center; }
.stat-head { padding: 10px 14px; font-weight: 600; color: #fff; letter-spacing: 0.3px; }
.stat--spotify .stat-head { background: linear-gradient(90deg, #1DB954, #1aa34a); }
.stat--apple .stat-head { background: linear-gradient(90deg, #9b4dff, #7c31ea); }
.stat-body { padding: var(--space-2); display: grid; gap: 6px; }
.stat-rank { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.rank-number { font-size: clamp(26px, 4.6vw, 40px); font-weight: 700; color: var(--card-text); }
.rank-context { color: var(--card-muted); }
.stat-rating { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.rating { position: relative; display: inline-block; font-size: 22px; line-height: 1; letter-spacing: 2px; }
.rating-base { color: #cfcfcf; }
.rating-fill { position: absolute; inset: 0 auto 0 0; width: var(--percent); overflow: hidden; color: #FFD166; }
.stat--apple .rating-fill { color: #FFB5F5; }
.rating-text { color: var(--card-text); font-weight: 600; }
.stat-reviews { color: var(--card-muted); font-size: 15px; }
.stats-stand { margin-top: 8px; color: var(--muted); font-size: 13px; text-align: right; }

/* Events – single event gallery */
.event-section { padding: var(--space-4) 0 var(--space-6); }
.event-section .podcast-title-panel .podcast-title { font-size: clamp(20px, 3.5vw, 30px); }
.event-section .container { max-width: min(96vw, 1600px); }
.event-gallery { position: relative; display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
.event-gallery figure { margin: 0; }
.event-gallery img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; border: 1px solid var(--line-card); box-shadow: var(--shadow-surface); }

/* Overlay title centered over gallery */
.event-title-overlay { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; pointer-events: none; padding: var(--space-3); }
.event-title-overlay .podcast-title { text-align: center; font-size: clamp(20px, 3.5vw, 30px); color: #fff; line-height: 1.2; }
.event-title-overlay .podcast-title { text-shadow: 0 2px 12px rgba(0,0,0,0.6); }

/* Event intro emphasis */
.event-intro { text-align: center; }
.event-intro p { margin: 0; font-weight: 700; font-size: clamp(20px, 3vw, 28px); }
.event-intro p + p { margin-top: 8px; }
.event-intro { margin-bottom: var(--space-4); }

@media (min-width: 740px) {
  .event-intro { margin-bottom: var(--space-5); }
}
@media (min-width: 740px) {
  .event-gallery { grid-template-columns: repeat(3, 1fr); }
}

/* Media queries */
@media (min-width: 740px) {
  .projects-grid { grid-template-columns: 1fr 1fr 1fr; }
  .teaser-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1.1fr 0.9fr; }
  /* keep images consistent height next to text */
  .split > img { height: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; border: 1px solid var(--line-card); }
  /* Allow selective top-focused crop for specific management images */
  .split > img.profile-top { object-position: top center; }
  /* Allow full image in frame without cropping */
  .split > img.profile-contain { object-fit: contain; object-position: center; background: transparent; height: auto; aspect-ratio: auto; }
  /* narrow text column to encourage an extra wrap */
  .split > .copy { max-width: 48ch; }
  .list-item { grid-template-columns: 1.4fr 1fr; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  /* place image right, text left for reversed splits */
  .split.split--reverse > img { grid-column: 2; }
  .split.split--reverse > .copy { grid-column: 1; }
  /* swap column proportions so text column stays narrower */
  .split.split--reverse { grid-template-columns: 0.9fr 1.1fr; }
  /* ensure vertical centering parity */
  .split > .copy { align-self: center; }
  /* keep reversed items on the same row: prevent auto-placement from pushing copy below */
  .split.split--reverse > img { grid-row: 1; }
  .split.split--reverse > .copy { grid-row: 1; }
}

@media (max-width: 740px) {
  .hero { min-height: 90vh; }
  .hero-glass { background: rgba(0,0,0,0.48); }
  .hero-content { padding-top: clamp(16px, 16vh, 140px); }
  .hero-bottom { margin-top: clamp(8px, 2vh, 22px); }
  
  /* Podcast mobile tweaks */
  .podcast-cover img { max-width: 280px; }
  .stats-grid { gap: var(--space-2); }
  .stat-body { padding: 12px; }
  .rank-number { font-size: 24px; }
  .rating { font-size: 18px; }
  .stat-reviews { font-size: 13px; }

  /* Center podcast teaser image on mobile */
  .split > img.podcasts-original {
    margin: 0 auto;
  }
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-block; }
  .site-nav { position: absolute; top: 64px; right: 0; left: 0; background: rgba(0, 0, 0, 0.9); backdrop-filter: blur(6px); padding: 14px var(--space-3); border-bottom: 1px solid var(--line); display: none; }
  .site-nav.is-open { display: grid; gap: 10px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; filter: none; }
  .hero-media img { animation: none; }
}

/* Management page: darker moving background */
body.management-bg-dark .site-bg-slideshow::after { background: rgba(0,0,0,0.66); }
body.management-bg-dark .site-bg-slide { filter: brightness(0.58) contrast(1.04) saturate(0.92); }
/* Formate page: slightly darkened moving background */
body.formate-bg-dark .site-bg-slideshow::after { background: rgba(0,0,0,0.62); }
body.formate-bg-dark .site-bg-slide { filter: brightness(0.58) contrast(1.05) saturate(0.9); }
/* White background for all non-index/non-formate pages */
body.white-bg {
  --paper: #ffffff;
  --ink: #0a0a0a;
  --muted: #5f5f5f;
  background: #ffffff !important;
  color: var(--ink);
}

/* Management: spacing between featured profiles */
.format-block .container > article + article { margin-top: var(--space-6); }
/* Management: spacing before team list */
.format-block + .team-list { margin-top: var(--space-6); }

/* Home Podcasts teaser: display original image size (no forced aspect crop) */
.split > img.podcasts-original {
  height: auto;
  width: auto;
  max-width: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
}
