:root {
  --bg: #07080b;
  --panel: rgba(18, 21, 31, 0.86);
  --panel-soft: rgba(255, 255, 255, 0.06);
  --text: #f3efe6;
  --muted: #b9b5aa;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #ff6f3c;
  --accent-2: #ffd166;
  --accent-3: #00d5b5;
  --danger: #ff3b6b;
  --radius: 20px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --hero-progress: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% -10%, rgba(255, 111, 60, 0.18), transparent 38%),
    radial-gradient(circle at 90% 5%, rgba(0, 213, 181, 0.2), transparent 42%),
    radial-gradient(circle at 50% 120%, rgba(255, 59, 107, 0.18), transparent 45%),
    var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.4;
}

img,
video {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.06;
  z-index: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.7) 0.4px, transparent 0.5px),
    radial-gradient(rgba(255, 255, 255, 0.45) 0.4px, transparent 0.5px);
  background-size: 6px 6px, 9px 9px;
  background-position: 0 0, 3px 2px;
}

.hero,
main,
.footer,
.dock {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: 165svh;
  position: relative;
}

.hero__stage {
  min-height: 100svh;
  position: sticky;
  top: 0;
  padding: 1rem 1rem 1.5rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: calc(0.58 - (var(--hero-progress) * 0.28));
  transform: scale(calc(1.08 - (var(--hero-progress) * 0.03)));
  filter: saturate(calc(1.15 + (var(--hero-progress) * 0.05))) contrast(1.05);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(7, 8, 11, calc(0.34 + (var(--hero-progress) * 0.28))) 0%,
      rgba(7, 8, 11, calc(0.78 + (var(--hero-progress) * 0.17))) 82%
    ),
    linear-gradient(
      100deg,
      rgba(7, 8, 11, calc(0.38 + (var(--hero-progress) * 0.34))) 0%,
      rgba(7, 8, 11, calc(0.08 + (var(--hero-progress) * 0.16))) 52%,
      rgba(7, 8, 11, calc(0.28 + (var(--hero-progress) * 0.34))) 100%
    ),
    linear-gradient(
      120deg,
      rgba(255, 111, 60, calc(0.14 + (var(--hero-progress) * 0.12))),
      transparent 45%,
      rgba(0, 213, 181, calc(0.12 + (var(--hero-progress) * 0.1)))
    );
}

.top-nav {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: center;
  align-self: start;
}

.top-nav a {
  font-size: 0.82rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(8, 10, 14, 0.5);
  backdrop-filter: blur(10px);
}

.hero__content {
  align-self: end;
  max-width: 44rem;
  transform: translateY(calc(var(--hero-progress) * -8px));
}

.eyebrow {
  margin: 0;
  color: rgba(255, 209, 102, calc(0.45 + (var(--hero-progress) * 0.55)));
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, calc(0.15 + (var(--hero-progress) * 0.35)));
}

.hero .eyebrow {
  color: rgba(232, 236, 241, calc(0.22 + (var(--hero-progress) * 0.48)));
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(0, 0, 0, calc(0.06 + (var(--hero-progress) * 0.16)));
}

.hero h1 {
  margin: 0.35rem 0 0;
  line-height: 0.9;
  display: grid;
  gap: 0.15rem;
}

.hero h1 span {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(3.2rem, 15vw, 7rem);
  letter-spacing: 0.02em;
  color: rgba(255, 246, 223, calc(0.18 + (var(--hero-progress) * 0.82)));
  text-shadow:
    0 1px 0 rgba(0, 0, 0, calc(0.12 + (var(--hero-progress) * 0.38))),
    0 8px 24px rgba(0, 0, 0, calc(0.2 + (var(--hero-progress) * 0.64)));
}

.hero h1 span:last-child {
  color: rgba(255, 111, 60, calc(0.18 + (var(--hero-progress) * 0.82)));
  -webkit-text-stroke: calc(0.1px + (var(--hero-progress) * 0.5px)) rgba(0, 0, 0, 0.5);
}

.hero__lede {
  margin: 0.75rem 0 0;
  max-width: 28rem;
  color: rgba(243, 238, 226, calc(0.35 + (var(--hero-progress) * 0.63)));
  font-size: 0.98rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, calc(0.08 + (var(--hero-progress) * 0.34)));
}

.hero__chips {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero__chips span {
  font-size: 0.82rem;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  color: rgba(241, 235, 221, calc(0.28 + (var(--hero-progress) * 0.72)));
  background: linear-gradient(
    180deg,
    rgba(10,12,16, calc(0.28 + (var(--hero-progress) * 0.58))),
    rgba(10,12,16, calc(0.12 + (var(--hero-progress) * 0.48)))
  );
  border: 1px solid rgba(255, 255, 255, calc(0.06 + (var(--hero-progress) * 0.2)));
}

.hero__cta {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #ff8f42 60%, #ffd166);
  color: rgba(25, 20, 13, calc(0.7 + (var(--hero-progress) * 0.3)));
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(255, 111, 60, calc(0.12 + (var(--hero-progress) * 0.2)));
  opacity: calc(0.6 + (var(--hero-progress) * 0.4));
}

.top-nav a {
  color: rgba(243, 238, 226, calc(0.42 + (var(--hero-progress) * 0.55)));
  background: rgba(8, 10, 14, calc(0.2 + (var(--hero-progress) * 0.45)));
  border-color: rgba(255, 255, 255, calc(0.08 + (var(--hero-progress) * 0.12)));
}

.hero__scroll-hint {
  margin: 0;
  justify-self: center;
  align-self: end;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(243, 239, 230, calc(0.75 - (var(--hero-progress) * 0.7)));
  opacity: calc(1 - (var(--hero-progress) * 1.4));
  transform: translateY(calc(var(--hero-progress) * 8px));
  transition: opacity 150ms linear;
  pointer-events: none;
}

main {
  padding: 0 1rem 6rem;
  max-width: 75rem;
  margin: 0 auto;
}

.section-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  box-shadow: var(--shadow);
  padding: 1rem;
  margin-top: 0.9rem;
}

.section-heading h2,
.countdown h2 {
  margin: 0.3rem 0 0;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(2rem, 7vw, 3.1rem);
  letter-spacing: 0.02em;
  line-height: 0.95;
}

.section-copy {
  margin: 0.55rem 0 0;
  color: var(--muted);
  max-width: 40rem;
}

.countdown {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.countdown__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.countdown__grid > div {
  border-radius: 16px;
  padding: 0.8rem;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  gap: 0.2rem;
}

.countdown__value {
  font-size: 1.5rem;
  font-weight: 700;
}

.countdown__label {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pulse__grid {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.8rem;
}

.pulse__grid article {
  border-radius: 16px;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pulse__grid h3 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--accent-3);
}

.pulse__grid p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.agenda {
  margin-top: 1.4rem;
}

.agenda__list {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.9rem;
}

.agenda-item {
  --badge-accent: var(--accent-3);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: clip;
  background: rgba(11, 13, 18, 0.86);
  box-shadow: var(--shadow);
}

.agenda-item__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #0f1219;
}

.agenda-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agenda-item__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 25%, rgba(0,0,0,0.5));
}

.agenda-item__badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 1;
  border-radius: 999px;
  padding: 0.3rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fffaf0;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(7, 8, 11, 0.55);
  border: 1px solid color-mix(in srgb, var(--badge-accent) 50%, white 10%);
  background: color-mix(in srgb, var(--badge-accent) 18%, rgba(7, 8, 11, 0.55));
  backdrop-filter: blur(10px);
}

.agenda-item__body {
  padding: 0.9rem;
}

.agenda-item__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--muted);
}

.agenda-item__day {
  color: var(--accent-2);
  font-weight: 700;
}

.agenda-item__time {
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

.agenda-item__title {
  margin: 0.45rem 0 0;
  font-size: 1.15rem;
}

.agenda-item__desc,
.agenda-item__note {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.agenda-item__note {
  color: #ded8c9;
  font-size: 0.9rem;
  border-left: 2px solid rgba(255, 111, 60, 0.6);
  padding-left: 0.6rem;
}

.agenda-item__extra {
  margin: 0.75rem 0 0;
  padding: 0.55rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.agenda-item__extra img {
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.agenda-item__extra figcaption {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.agenda-item__link {
  margin-top: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #101319;
  background: linear-gradient(135deg, var(--accent-2), #ffe08a);
}

.agenda-item__link img {
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 auto;
  opacity: 0.9;
}

.highlights {
  margin-top: 1.5rem;
}

.showcase {
  margin-top: 0.9rem;
  display: grid;
  gap: 1rem;
}

.showcase__panel {
  display: grid;
  gap: 0;
  border-radius: 22px;
  overflow: clip;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  box-shadow: var(--shadow);
}

.showcase__panel img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  background: #0d1016;
}

.showcase__content {
  padding: 1rem;
}

.showcase__tag {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-3);
  font-weight: 700;
}

.showcase__content h3 {
  margin: 0.4rem 0 0;
  font-size: 1.2rem;
}

.showcase__content p:last-child {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.survival__grid {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.75rem;
}

.survival__grid article {
  padding: 0.9rem;
  border-radius: 15px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    rgba(9, 11, 15, 0.55);
  border: 1px solid rgba(255,255,255,0.08);
}

.survival__grid h3 {
  margin: 0;
  font-size: 1rem;
}

.survival__grid p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.house__layout {
  display: grid;
  gap: 1rem;
}

.house__media img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
}

.house__media {
  position: relative;
}

.house__content h2 {
  margin: 0.3rem 0 0;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(1.9rem, 7vw, 3rem);
  line-height: 0.95;
}

.house__content p {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.house__content strong {
  color: var(--text);
}

.house__info-grid {
  margin-top: 0.95rem;
  display: grid;
  gap: 0.75rem;
}

.house__info-card {
  padding: 0.85rem;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    rgba(10, 12, 16, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.house__info-card h3 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--accent-2);
}

.house__info-card p {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.house__actions {
  margin-top: 0.9rem;
}

.house__review {
  margin: 1rem 0 0;
  padding: 0.75rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
}

.house__review img {
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
}

.house__review figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.85rem;
}


.footer {
  padding: 1rem 1rem calc(6rem + env(safe-area-inset-bottom, 0px));
  text-align: center;
  color: var(--muted);
}

.footer__back {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: var(--text);
  font-weight: 600;
}

.dock {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  padding: 0.45rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(8, 9, 12, 0.7);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  opacity: 0;
  transform: translateY(calc(100% + 1rem));
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

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

.dock a {
  text-align: center;
  padding: 0.6rem 0.3rem;
  border-radius: 10px;
  font-size: 0.82rem;
  background: rgba(255,255,255,0.03);
}

.dock a:hover,
.dock a:focus-visible {
  background: rgba(255, 111, 60, 0.16);
  outline: none;
}

code {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.08rem 0.35rem;
  border-radius: 6px;
  font-size: 0.9em;
}

@media (min-width: 640px) {
  .hero__stage {
    padding: 1rem 1.25rem 1.6rem;
  }

  .countdown {
    grid-template-columns: 1.2fr 1fr;
  }

  .pulse__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .showcase__panel {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: stretch;
  }

  .showcase__panel img {
    aspect-ratio: auto;
    height: 100%;
  }

  .survival__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .house__layout {
    grid-template-columns: 1fr 1.15fr;
    align-items: start;
  }

  .house__info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (min-width: 900px) {
  .hero {
    min-height: 175svh;
  }

  .hero__stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    align-items: end;
    row-gap: 0.6rem;
    padding: 1.25rem 1.5rem 2rem;
  }

  .top-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .hero__content {
    align-self: end;
    max-width: 38rem;
  }
  main {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .agenda__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showcase {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .showcase__panel--offset {
    margin-top: 3rem;
  }
}

@media (min-width: 1180px) {
  .agenda__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation: none !important;
    transition: none !important;
  }

  .hero__video {
    transform: none;
  }

  .hero__content {
    transform: none;
  }

  .hero__scroll-hint {
    opacity: 0;
  }

  .dock {
    transition: none;
  }
}
