/* ==========================================================================
   The Elevation Station — elevationstation.tv
   Brand: Clother (Typekit) · #F15A29 orange · #00AEEF blue · cream · warm near-black
   Motifs: rounded corners, soft fades, soft & subtle glows/shadows
   ========================================================================== */

:root {
  --orange: #f15a29;
  --orange-deep: #d6491d;
  --blue: #00aeef;
  --blue-soft: #cdeefb;      /* the 17%-opacity circle blue on white */
  --cream: #faf3e8;
  --cream-dim: #f1e6d4;
  --ink: #231f20;
  --night: #171210;          /* warm near-black */
  --night-soft: #241c17;
  --white: #fffdf9;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --topbar-h: 72px;
  --fade: 520ms;
  --ease-soft: cubic-bezier(.33, .01, .18, 1);

  --font: "clother", "acumin-pro", system-ui, -apple-system, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

html { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background: var(--night);
  color: var(--cream);
  transition: background-color var(--fade) var(--ease-soft), color var(--fade) var(--ease-soft);
}

body[data-theme="light"] {
  background: var(--cream);
  color: var(--ink);
}

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

/* ==========================================================================
   Backdrop — hero photo / optional ambient background video
   ========================================================================== */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity calc(var(--fade) * 1.6) var(--ease-soft);
  pointer-events: none;
  overflow: hidden;
}

body.backdrop-on .backdrop { opacity: 1; }

.backdrop-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.backdrop-photo {
  animation: slow-drift 60s ease-in-out infinite alternate;
}

@keyframes slow-drift {
  from { transform: scale(1.0); }
  to   { transform: scale(1.08) translateY(-1.5%); }
}

.backdrop-video { display: none; }
.backdrop.has-video .backdrop-video { display: block; }
.backdrop.has-video .backdrop-photo { display: none; }

.backdrop-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 10%, rgba(23, 18, 16, 0.20) 0%, rgba(23, 18, 16, 0.66) 62%, rgba(23, 18, 16, 0.92) 100%),
    linear-gradient(to top, rgba(23, 18, 16, 0.85), rgba(23, 18, 16, 0.25) 45%);
}

/* ==========================================================================
   Top bar
   ========================================================================== */

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 clamp(16px, 4vw, 40px);
  padding-top: env(safe-area-inset-top, 0);
  background: linear-gradient(to bottom, rgba(23, 18, 16, 0.72), rgba(23, 18, 16, 0));
  transition: background var(--fade) var(--ease-soft);
}

body[data-theme="light"] .topbar {
  background: linear-gradient(to bottom, rgba(250, 243, 232, 0.9), rgba(250, 243, 232, 0));
}

.brand {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  line-height: 0;
}

.brand-logo { height: 34px; width: auto; }

.brand-logo-color { display: none; }
body[data-theme="light"] .brand-logo-white { display: none; }
body[data-theme="light"] .brand-logo-color { display: block; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1vw, 12px);
}

.nav-link {
  appearance: none;
  border: 0;
  background: none;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: inherit;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  opacity: 0.82;
  transition: opacity 200ms ease, background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}

.nav-link:hover { opacity: 1; }

.nav-link.is-current {
  opacity: 1;
  background: rgba(0, 174, 239, 0.16);
  color: var(--blue);
}

body[data-theme="light"] .nav-link.is-current {
  background: rgba(0, 174, 239, 0.14);
  color: #0077a8;
}

.nav-link-cta {
  opacity: 1;
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 22px rgba(241, 90, 41, 0.35);
}

.nav-link-cta:hover, .nav-link-cta.is-current {
  background: var(--orange-deep);
  color: var(--white);
}

/* mobile nav */
.nav-toggle {
  display: none;
  appearance: none;
  border: 0;
  background: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 250ms var(--ease-soft), opacity 250ms ease;
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    top: 0; right: 0; left: 0;
    z-index: -1;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: calc(var(--topbar-h) + 12px) 20px 28px;
    background: rgba(23, 18, 16, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 300ms var(--ease-soft), transform 300ms var(--ease-soft);
  }

  body[data-theme="light"] .nav {
    background: rgba(250, 243, 232, 0.96);
  }

  body.nav-open .nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-link { padding: 14px; text-align: center; font-size: 15px; }

  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ==========================================================================
   Panels & soft-fade transitions
   ========================================================================== */

main { position: relative; z-index: 1; }

.panel {
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--topbar-h) + clamp(20px, 5vh, 56px)) 0 64px;
  opacity: 0;
  transition: opacity var(--fade) var(--ease-soft);
}

.panel.is-visible { opacity: 1; }

.panel[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  :root { --fade: 1ms; }
  .backdrop-photo { animation: none; }
}

.wrap {
  width: min(1120px, calc(100% - clamp(32px, 8vw, 80px)));
  margin-inline: auto;
}

/* ==========================================================================
   Type
   ========================================================================== */

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 14px;
}

.section-head { max-width: 720px; margin-bottom: clamp(28px, 5vh, 48px); }

.section-head h2 {
  font-size: clamp(34px, 5.5vw, 56px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}

.lede {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.65;
  opacity: 0.88;
  margin: 0;
}

/* ==========================================================================
   Buttons — rounded, soft glow (brand)
   ========================================================================== */

.btn {
  appearance: none;
  display: inline-block;
  border: 0;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  padding: 16px 30px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 220ms var(--ease-soft), box-shadow 220ms ease, background-color 220ms ease, color 220ms ease;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 6px 30px rgba(241, 90, 41, 0.4), 0 2px 8px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
  background: var(--orange-deep);
  box-shadow: 0 8px 40px rgba(241, 90, 41, 0.55), 0 2px 8px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 253, 249, 0.1);
  color: var(--cream);
  box-shadow: inset 0 0 0 1.5px rgba(250, 243, 232, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: rgba(255, 253, 249, 0.18);
  box-shadow: inset 0 0 0 1.5px rgba(250, 243, 232, 0.6), 0 4px 24px rgba(0, 174, 239, 0.18);
}

/* ==========================================================================
   Hero & contact (full-viewport centered panels over the photo backdrop)
   ========================================================================== */

.panel-hero, .panel-contact {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-inner {
  width: min(860px, calc(100% - 48px));
  margin-inline: auto;
  text-align: center;
  position: relative;
}

.hero-circles {
  position: absolute;
  top: -70px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  pointer-events: none;
}

.hero-circles i {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.10;
  margin-left: -60px;
  animation: breathe 7s ease-in-out infinite;
}

.hero-circles i:first-child { margin-left: 0; }
.hero-circles i:nth-child(2) { animation-delay: 1.2s; }
.hero-circles i:nth-child(3) { animation-delay: 2.4s; }

@keyframes breathe {
  0%, 100% { opacity: 0.07; transform: scale(1); }
  50%      { opacity: 0.16; transform: scale(1.07); }
}

.hero-logo {
  width: min(480px, 76vw);
  margin: 0 auto 34px;
  filter: drop-shadow(0 6px 30px rgba(0, 0, 0, 0.45));
}

.hero-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blue-soft);
  opacity: 0.9;
  margin: 0 0 22px;
}

.hero-title {
  font-size: clamp(38px, 6.4vw, 68px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}

.hero-title em {
  font-style: italic;
  color: var(--orange);
}

.hero-sub {
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.65;
  max-width: 640px;
  margin: 0 auto 36px;
  opacity: 0.92;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

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

.hero-live-hint {
  margin-top: 26px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ==========================================================================
   Watch — the channel & player shells
   ========================================================================== */

.wrap-watch { width: min(1240px, calc(100% - clamp(24px, 6vw, 80px))); }

.wrap-watch .section-head { text-align: center; margin-inline: auto; }

.channel-stage { margin-bottom: clamp(40px, 7vh, 72px); }

/* Player shell: fluid 16:9, capped so it never overflows the viewport height,
   centered — maximizes real estate on every device. */
.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--night-soft);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(250, 243, 232, 0.07), 0 0 90px rgba(0, 174, 239, 0.07);
}

.player-shell-main {
  width: min(100%, calc((100dvh - var(--topbar-h) - 220px) * 16 / 9));
  min-width: min(100%, 640px);
  margin-inline: auto;
}

.player-shell iframe,
.player-shell video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Mobile: bleed the main player to the screen edges for maximum real estate */
@media (max-width: 700px) {
  .player-shell-main {
    width: 100vw;
    min-width: 0;
    margin-left: calc(50% - 50vw);
    border-radius: 0;
  }
}

/* Live badge */
.live-badge {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(23, 18, 16, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 7px 14px;
  border-radius: 999px;
}

.live-dot {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 12px rgba(241, 90, 41, 0.9);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

/* Off-air placeholder */
.player-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 24px;
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(0, 174, 239, 0.10) 0%, rgba(0, 174, 239, 0) 55%),
    var(--night-soft);
}

.player-placeholder .ph-circles {
  display: flex;
  margin-bottom: 8px;
}

.player-placeholder .ph-circles i {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.16;
  margin-left: -27px;
  animation: breathe 5s ease-in-out infinite;
}

.player-placeholder .ph-circles i:first-child { margin-left: 0; }
.player-placeholder .ph-circles i:nth-child(2) { animation-delay: 0.8s; }
.player-placeholder .ph-circles i:nth-child(3) { animation-delay: 1.6s; }

.player-placeholder .ph-status {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-soft);
  opacity: 0.75;
  margin: 0;
}

.player-placeholder .ph-title {
  font-size: clamp(17px, 2.4vw, 22px);
  font-weight: 700;
  color: var(--cream);
  margin: 0;
}

.player-placeholder .ph-note {
  font-size: 14px;
  opacity: 0.6;
  margin: 0;
  max-width: 380px;
}

/* Featured sessions grid */
.featured-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-soft);
  opacity: 0.8;
  text-align: center;
  margin: 0 0 22px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(16px, 2.5vw, 28px);
  max-width: 980px;
  margin-inline: auto;
}

.featured-item .player-shell { border-radius: var(--radius-md); }

.featured-item figcaption {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: 12px;
  text-align: center;
  opacity: 0.8;
}

/* ==========================================================================
   Content cards, stats, photo, budget
   ========================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(16px, 2.5vw, 26px);
  margin-bottom: clamp(36px, 6vh, 56px);
}

.card {
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 32px);
  background: var(--white);
  box-shadow: 0 10px 40px rgba(35, 31, 32, 0.08), 0 2px 8px rgba(35, 31, 32, 0.04);
}

.panel-dark .card {
  background: rgba(255, 253, 249, 0.055);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(250, 243, 232, 0.08);
}

.card h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--orange);
}

.card p { margin: 0; font-size: 15.5px; opacity: 0.9; }

.photo-card {
  margin: 0 0 clamp(36px, 6vh, 56px);
}

.photo-card img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 70px rgba(35, 31, 32, 0.28);
}

.photo-card figcaption {
  font-size: 14px;
  font-style: italic;
  opacity: 0.65;
  margin-top: 14px;
  text-align: center;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: clamp(14px, 2vw, 22px);
  margin-bottom: clamp(36px, 6vh, 56px);
}

.stat {
  border-radius: var(--radius-md);
  padding: 24px 22px;
  background: rgba(0, 174, 239, 0.08);
  box-shadow: inset 0 0 0 1px rgba(0, 174, 239, 0.16);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-num {
  font-size: clamp(34px, 4.4vw, 46px);
  font-weight: 700;
  line-height: 1;
  color: var(--blue);
}

.stat-label { font-size: 14px; opacity: 0.85; }

.budget {
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 10px 40px rgba(35, 31, 32, 0.08);
  padding: clamp(24px, 4vw, 40px);
  margin-bottom: clamp(36px, 6vh, 56px);
}

.budget h3 {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 700;
}

.budget-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
}

.budget-table td {
  padding: 13px 8px;
  border-top: 1px solid rgba(35, 31, 32, 0.09);
  vertical-align: top;
}

.budget-table td:last-child {
  text-align: right;
  white-space: nowrap;
  font-weight: 700;
}

.budget-total td {
  border-top: 2px solid var(--ink);
  font-weight: 700;
  font-size: 17px;
}

.budget-total td:last-child { color: var(--orange); }

.budget-note {
  font-size: 14.5px;
  opacity: 0.75;
  margin: 18px 0 0;
}

.panel-next { text-align: center; padding-bottom: 12px; }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-symbol {
  width: 150px;
  margin: 0 auto 10px;
  opacity: 0.9;
}

.contact-title {
  font-size: clamp(34px, 5.5vw, 58px);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 18px;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}

.btn-email {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: clamp(15px, 2.6vw, 19px);
}

.contact-fineprint {
  margin-top: 30px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.55;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.sitefoot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: center;
  padding: 22px 20px calc(26px + env(safe-area-inset-bottom, 0));
  font-size: 13px;
  letter-spacing: 0.06em;
  opacity: 0.65;
}

.sitefoot a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }
