:root {
  --text: #f4f7f8;
  --text-soft: #bfd1d7;
  --panel: rgba(10, 30, 36, 0.56);
  --panel-strong: rgba(9, 27, 33, 0.72);
  --panel-border: rgba(170, 206, 214, 0.26);
  --panel-highlight: rgba(255, 255, 255, 0.19);
  --shadow: 0 18px 36px rgba(2, 7, 10, 0.4);
  --warm: rgba(255, 146, 88, 0.34);
  --warm-strong: rgba(255, 154, 83, 0.52);
  --home-button-gap: 0.48rem;
  --home-btn-height-desktop: 68px;
  --home-btn-height-mobile: 62px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 10% 8%, #4bb8cf 0%, transparent 31%),
    radial-gradient(circle at 92% 82%, #4ea88f 0%, transparent 33%),
    radial-gradient(circle at 84% 18%, rgba(255, 152, 92, 0.14) 0%, transparent 22%),
    linear-gradient(110deg, #081117 0%, #08212a 44%, #132a52 100%);
  overflow: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.04) 0 1px,
      transparent 1px 34px
    ),
    repeating-linear-gradient(
      30deg,
      rgba(255, 255, 255, 0.025) 0 1px,
      transparent 1px 44px
    );
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: -12%;
  pointer-events: none;
  background: radial-gradient(circle at 76% 22%, rgba(255, 153, 91, 0.14), transparent 30%);
  z-index: 0;
}

.bg-orb {
  position: fixed;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(58px);
  opacity: 0.3;
  z-index: 0;
}

.orb-a {
  width: 28vmax;
  height: 28vmax;
  left: -12vmax;
  top: -10vmax;
  background: radial-gradient(circle, #70e3ff 0%, rgba(112, 227, 255, 0) 68%);
}

.orb-b {
  width: 30vmax;
  height: 30vmax;
  right: -14vmax;
  bottom: -13vmax;
  background: radial-gradient(circle, #6dffd7 0%, rgba(109, 255, 215, 0) 68%);
}

.shell {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 0.9rem));
  height: 100dvh;
  margin: 0 auto;
  padding: clamp(0.36rem, 1vh, 0.85rem) 0;
  display: grid;
  gap: clamp(0.34rem, 0.95vh, 0.78rem);
}

.shell-home {
  grid-template-rows: auto auto auto minmax(0, 1fr) auto minmax(0, 1fr);
  justify-items: center;
  align-content: start;
  row-gap: 0;
  padding-bottom: 0;
}

.shell-music {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.top-logo {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(-2.7rem, -5.5vh, -1.4rem);
  z-index: 3;
}

.top-logo img {
  width: min(31vw, 430px);
  max-height: clamp(58px, 13vh, 168px);
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.36));
}

.top-logo.compact img {
  width: min(24vw, 300px);
}

.hero-card {
  min-height: 0;
  background: linear-gradient(
      170deg,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.02) 30%,
      rgba(255, 255, 255, 0.01)
    ),
    var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px) saturate(110%);
  -webkit-backdrop-filter: blur(14px) saturate(110%);
}

.hero-home {
  display: block;
  width: min(100%, 850px);
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--panel-strong);
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.hero-home img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-content {
  max-height: none;
  transition:
    opacity 460ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 520ms cubic-bezier(0.22, 0.61, 0.36, 1),
    max-height 520ms cubic-bezier(0.22, 0.61, 0.36, 1),
    margin 420ms ease,
    padding 420ms ease,
    border-color 420ms ease,
    box-shadow 420ms ease;
  will-change: opacity, transform, max-height;
}

.hero-home.home-content {
  transform-origin: top center;
  clip-path: inset(0 0 0 0 round 18px);
  transition:
    clip-path 560ms cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 460ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 560ms cubic-bezier(0.22, 0.61, 0.36, 1),
    max-height 560ms cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 420ms ease;
  will-change: clip-path, opacity, transform;
}

.calendar-inline {
  width: min(100%, 850px);
  height: 100%;
  display: block;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.985);
  pointer-events: none;
  padding: 0;
  overflow: hidden;
  transition: opacity 320ms ease, transform 320ms ease, max-height 380ms ease, padding 320ms ease;
}

.calendar-inline[aria-hidden="true"] {
  display: none;
  background: none;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.calendar-inline-title {
  margin: 0 0 0.65rem;
  text-align: center;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
}

.calendar-inline-events {
  width: 100%;
  max-height: 100%;
  overflow: auto;
  text-align: center;
  scrollbar-width: thin;
}

.calendar-inline-events::-webkit-scrollbar {
  width: 8px;
}

.calendar-inline-events::-webkit-scrollbar-thumb {
  background: rgba(16, 28, 31, 0.8);
}

.page-home.calendar-open .home-content {
  opacity: 0;
  transform: translateY(-12px);
  max-height: 0 !important;
  height: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  border-width: 0 !important;
  box-shadow: none !important;
  overflow: hidden;
  pointer-events: none;
}

.page-home.calendar-open .hero-home.home-content {
  clip-path: inset(0 0 100% 0 round 18px);
  transform: translateY(-10px) scale(0.985);
}

.page-home.calendar-open .shell-home {
  grid-template-rows: auto minmax(0, 1fr);
  align-content: start;
  row-gap: 0.55rem;
}

.page-home.calendar-open .calendar-inline {
  display: block;
  grid-row: 2;
  align-self: start;
  opacity: 1;
  visibility: visible;
  transform: none;
  max-height: calc(100dvh - 8.75rem);
  pointer-events: auto;
  padding: 0.9rem;
}

.hero-music {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.hero-music img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.music-heading {
  padding: 0.55rem 0.85rem 0.35rem;
  text-align: center;
}

.music-heading h1 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.06em;
  font-size: clamp(1.45rem, 3.8vw, 2.5rem);
  line-height: 1;
}

.music-heading p {
  margin: 0.2rem 0 0;
  color: var(--text-soft);
  font-size: clamp(0.65rem, 1.2vw, 0.92rem);
}

.action-grid {
  display: grid;
  gap: var(--home-button-gap);
}

.action-grid-home {
  width: min(100%, 850px);
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 0;
  padding-top: var(--home-button-gap);
  position: relative;
  z-index: 2;
}

.action-grid-music {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.56rem;
  min-height: clamp(40px, 6.2vh, 64px);
  border-radius: 13px;
  border: 1px solid var(--panel-border);
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(9, 25, 31, 0.54);
  color: var(--text);
  text-decoration: none;
  padding: 0 0.6rem;
  font-size: clamp(0.62rem, 1.08vw, 0.86rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 var(--panel-highlight),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03),
    0 7px 16px rgba(1, 7, 10, 0.34);
  backdrop-filter: blur(10px) saturate(116%);
  -webkit-backdrop-filter: blur(10px) saturate(116%);
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease, box-shadow 170ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .action-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 171, 114, 0.62);
    background:
      linear-gradient(to bottom, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03)),
      rgba(9, 29, 36, 0.68);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.24),
      0 11px 18px rgba(1, 7, 10, 0.36),
      0 0 0 1px rgba(255, 161, 98, 0.2);
    color: var(--text);
  }
}

.action-btn img {
  width: clamp(20px, 2vw, 30px);
  height: clamp(20px, 2vw, 30px);
}

.page-home .action-grid-home .action-btn {
  height: var(--home-btn-height-desktop);
  min-height: var(--home-btn-height-desktop);
  max-height: var(--home-btn-height-desktop);
}

.page-home .action-grid-home .action-btn .btn-text {
  display: none;
}

.page-home .action-grid-home .action-btn.btn-epk .btn-text {
  display: inline;
}

.page-home .action-grid-home .action-btn.btn-epk img {
  display: none;
}

.podcast-link {
  width: min(100%, 850px);
  grid-row: 5;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1.35rem;
  align-self: start;
}

.podcast-link img {
  width: min(43vw, 420px);
  max-height: clamp(28px, 7vh, 80px);
  object-fit: contain;
  margin-top: 1.1rem;
  filter: drop-shadow(0 4px 16px rgba(255, 145, 86, 0.18));
}

.reveal {
  opacity: 0;
  transform: translateY(8px);
  animation: rise 420ms ease forwards;
}

.reveal:nth-child(2) {
  animation-delay: 40ms;
}

.reveal:nth-child(3) {
  animation-delay: 80ms;
}

.reveal:nth-child(4) {
  animation-delay: 120ms;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 600px) {
  :root {
    --home-button-gap: 0.3rem;
  }

  body.page-home {
    overflow: hidden;
    overflow-x: hidden;
    overscroll-behavior: none;
    background-attachment: fixed;
    background-size: 122vw 122vh;
    background-position: center center;
  }

  .page-home .bg-orb {
    display: none;
  }

  .shell-home {
    height: auto;
    min-height: 100dvh;
    grid-template-rows: auto auto auto minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .top-logo img {
    width: min(74vw, 440px);
  }

  .top-logo.compact img {
    width: min(52vw, 300px);
  }

  .top-logo {
    margin-bottom: clamp(-2.6rem, -7.2vh, -1.5rem);
  }

  .action-grid-home,
  .action-grid-music {
    grid-template-columns: 1fr;
  }

  .action-grid-home {
    margin-top: 0;
    width: 850px;
    max-width: 85%;
    gap: 0.25rem;
    padding-top: 0.25rem;
    margin-left: auto;
    margin-right: auto;
  }

  .page-home .action-grid-home .action-btn {
    border-radius: 7px;
    margin: 0;
    background: #57575730;
    border: none;
    color: #ffffff;
    justify-content: center;
    text-decoration: none;
    display: flex;
    font-size: 20pt;
    font-weight: bold;
    letter-spacing: 0;
    min-height: 0;
    height: auto;
    max-height: none;
    padding: 0.12rem 0.5rem;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    gap: 0;
  }

  @media (hover: hover) and (pointer: fine) {
    .page-home .action-grid-home .action-btn:hover {
      background: #101c1f;
      color: #ffffff;
    }
  }

  .page-home .action-grid-home .action-btn .btn-text {
    display: inline;
  }

  .page-home .action-grid-home .action-btn img {
    width: auto;
    height: 1.03em;
    margin-left: 0.25em;
  }

  .page-home .action-grid-home .action-btn.btn-epk img {
    display: inline;
  }

  .page-music .action-grid-music .action-btn {
    min-height: clamp(38px, 6vh, 56px);
    font-size: clamp(0.74rem, 2.8vw, 1rem);
  }

  .podcast-link img {
    width: min(62vw, 290px);
  }

  .podcast-link {
    grid-row: 5;
    align-self: center;
    margin-top: 20px;
  }

  .page-home.calendar-open .calendar-inline {
    max-height: calc(100dvh - 8.1rem);
    padding: 0.7rem;
  }

  /* Home mobile: mirror contact page layout metrics exactly */
  body.page-home {
    overflow: scroll;
    overflow-x: hidden;
  }

  .page-home .shell-home {
    display: block;
    height: auto;
    min-height: auto;
    padding: 0 0 0.75rem;
  }

  .page-home .top-logo {
    margin: 0;
  }

  .page-home .top-logo img {
    width: 450px;
    max-width: 50%;
    height: auto;
    display: block;
    padding-top: 10px;
    margin-left: auto;
    margin-right: auto;
  }

  .page-home .hero-home {
    width: 850px;
    max-width: 85%;
    border-radius: 7px;
    margin: 0.25rem auto 0;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
    overflow: hidden;
  }

  .page-home .hero-home img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
  }

  .page-home .action-grid-home {
    width: 850px;
    max-width: 85%;
    margin: 0.25rem auto 0;
    padding-top: 0;
    gap: 0.25rem;
    grid-template-columns: 1fr;
  }

  .page-home .action-grid-home .action-btn {
    width: 100%;
    border-radius: 7px;
    margin: 0;
    background: #57575730;
    border: none;
    color: #fff;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    display: flex;
    font-size: 20pt;
    font-weight: bold;
    line-height: 1.15;
    letter-spacing: 0;
    min-height: 0;
    height: auto;
    max-height: none;
    padding: 0.12rem 0.5rem;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    gap: 0;
  }

  .page-home .action-grid-home .action-btn .btn-text {
    display: inline;
  }

  .page-home .action-grid-home .action-btn img {
    width: auto;
    height: 1.03em;
    margin-left: 0.25em;
  }

  .page-home .podcast-link {
    width: 460px;
    max-width: 40%;
    margin: 0.6em auto 0;
    display: block;
    text-align: center;
    align-self: auto;
    grid-row: auto;
  }

  .page-home .podcast-link img {
    width: 100%;
    max-width: 100%;
    max-height: none;
    margin-top: 0;
    filter: none;
  }
}

@media (max-height: 720px) and (min-width: 601px) {
  .shell {
    padding: 0.24rem 0;
    gap: 0.28rem;
  }

  .top-logo img {
    max-height: clamp(50px, 11vh, 118px);
  }

  .action-btn {
    min-height: clamp(34px, 5.2vh, 48px);
  }

  .page-home .action-grid-home .action-btn {
    height: var(--home-btn-height-desktop);
    min-height: var(--home-btn-height-desktop);
    max-height: var(--home-btn-height-desktop);
  }

  .podcast-link img {
    max-height: 46px;
  }
}

@media (max-height: 560px) {
  .podcast-link {
    display: none;
  }
}

/* Home button entrance: desktop left->right, mobile top->bottom */
.page-home.home-buttons-animate .action-grid-home .action-btn {
  opacity: 0;
  animation: homeButtonsFromLeft 520ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.page-home.home-buttons-animate .action-grid-home .action-btn:nth-child(1) { animation-delay: 70ms; }
.page-home.home-buttons-animate .action-grid-home .action-btn:nth-child(2) { animation-delay: 120ms; }
.page-home.home-buttons-animate .action-grid-home .action-btn:nth-child(3) { animation-delay: 170ms; }
.page-home.home-buttons-animate .action-grid-home .action-btn:nth-child(4) { animation-delay: 220ms; }
.page-home.home-buttons-animate .action-grid-home .action-btn:nth-child(5) { animation-delay: 270ms; }
.page-home.home-buttons-animate .action-grid-home .action-btn:nth-child(6) { animation-delay: 320ms; }

@keyframes homeButtonsFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-28px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 600px) {
  .page-home.home-buttons-animate .action-grid-home .action-btn {
    animation-name: homeButtonsFromTop;
  }

  @keyframes homeButtonsFromTop {
    0% {
      opacity: 0;
      transform: translateY(-20px);
    }
    100% {
      opacity: 1;
      transform: none;
    }
  }
}
