/* ===== Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #111;
}
img,
video {
  max-width: 100%;
  display: block;
}

/* ===== Theme / layout vars ===== */
:root {
  --accent: #18b8ff;

  /* grows with screen */
  --max: min(2200px, 98vw); /* let the page wrapper grow more */
  --content: min(1900px, 92vw); /* let your media grow more */
  --pad: clamp(10px, 1.6vw, 28px);

  --header-h: 64px;

  --dark: #0f1114;
  --dark2: #14171c;

  --line: rgba(0, 0, 0, 0.35);

  /* optional hero nudge */
  --hero-x: 80px;
  --hero-y: 0px;
  --photo-scale: 1;
}

@media (max-width: 1024px) {
  :root {
    --hero-x: 30px;
  }
}

.content {
  width: min(var(--content), 100%);
  margin: 0 auto;
}

/* ===== Shared wrapper ===== */
.wrap {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* anchor offset so fixed header doesn't cover titles */
section {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* ===== Header / Nav ===== */

.nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(14px, 1.2vw, 28px);
  font-size: clamp(13px, 0.9vw, 18px);
  letter-spacing: 0.2px;
}

.nav a {
  color: rgba(0, 0, 0, 0.75);
  text-decoration: none;
}
.nav a:hover {
  text-decoration: underline;
}
.nav a.active {
  font-weight: 900;
}

/* nav becomes dark when body.nav-dark is set */
body.nav-dark header {
  background: rgba(15, 17, 20, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
body.nav-dark .nav a {
  color: rgba(255, 255, 255, 0.85);
}

/* ===== Main spacing (because header is fixed) ===== */
main {
  padding-top: var(--header-h);
}

/* =========================
   INDEX PAGE STYLES
   ========================= */

/* ===== HERO ===== */
.hero {
  background: #fff;
  padding: 0; /* ✅ remove padding */
  margin: 0; /* smaller vertical whitespace */
}

/* fixed-height frame that the image fills */
.hero-frame {
  width: min(var(--content), 100%);
  height: clamp(260px, 40vh, 460px);
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

/* fill frame, crop extra whitespace from the PNG */
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: calc(50% + var(--hero-x)) calc(50% + var(--hero-y));
  display: block;
}

@media (max-width: 720px) {
  .hero-frame {
    height: auto;
    aspect-ratio: 2400 / 900;
  }

  .hero-image {
    object-fit: contain;
    object-position: calc(50% + var(--hero-x)) calc(50% + var(--hero-y));
  }

  :root {
    --hero-x: 25px;
    --hero-y: 0px;
  }
}

@media (max-width: 480px) {
  .hero-frame {
    height: auto;
    aspect-ratio: 2400 / 900;
  }

  .hero-image {
    object-fit: contain;
    object-position: calc(50% + var(--hero-x)) calc(50% + var(--hero-y));
  }

  :root {
    --hero-x: 15px;
    --hero-y: 0px;
  }
}
/* ===== Group photo ===== */
.photo {
  padding: 0;
}

.photo-frame {
  width: min(var(--content), 100%);
  margin: 0 auto;
}

.photo-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

/* ===== Dark section ===== */
.dark-section {
  background: linear-gradient(90deg, var(--dark), var(--dark2));
  padding: 80px 0;
  color: #fff;
}

.dark-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.dark-title {
  font-size: clamp(42px, 4vw, 64px);
  line-height: 1.02;
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.dark-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  line-height: 1.55;
  white-space: pre-line;
}

.dark-media {
  display: flex;
  justify-content: center;
}

/* Make the video behave like the image mock */
.dark-video {
  width: min(520px, 100%);
  aspect-ratio: 1 / 1; /* keeps it “square-ish” like the screenshot */
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  background: #000;
}

/* =========================
   EVENT LINEUP PAGE STYLES
   ========================= */

.rowspan-middle {
  vertical-align: middle;
}

.session-sub {
  padding-left: 22px;
  font-weight: 500;
}

/* ===== Video banner ===== */
.banner {
  width: 100%;
  height: 220px;
  position: relative;
  overflow: hidden;
  background: #000;
}

.banner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.banner-day {
  position: absolute;
  left: 12%;
  top: 22px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: #21c0ff;
}

.banner-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 18px;
}

.banner-center img {
  height: 100px;
  width: auto;
}

.banner-slash {
  height: 96px;
  width: auto;
}

@media (max-width: 720px) {
  .banner-center {
    gap: 8px;
    transform: translate(-50%, -50%) scale(0.9);
    transform-origin: center;
  }

  .banner-center img {
    height: 76px;
  }
  .banner-slash {
    height: 72px;
  }
}

@media (max-width: 420px) {
  .banner-center {
    gap: 6px;
    transform: translate(-50%, -50%) scale(0.8);
  }

  .banner-center img {
    height: 64px;
  }
  .banner-slash {
    height: 60px;
  }
}

/* ===== Schedule table ===== */
.section {
  padding: 22px 0 40px;
}

.schedule {
  width: min(760px, 100%);
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 13.5px;
  line-height: 1.45;
}

.schedule thead th {
  text-align: left;
  padding: 16px 12px;
  border-bottom: 2px solid var(--line);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.schedule td {
  padding: 16px 12px;
  border-bottom: 2px solid var(--line);
  vertical-align: top;
  font-weight: 500;
}

.col-time {
  width: 220px;
  color: rgba(0, 0, 0, 0.85);
  white-space: nowrap;
  font-weight: 600;
}
.col-title {
  color: rgba(0, 0, 0, 0.9);
  font-weight: 500;
}

.session-list {
  margin: 0;
  padding-left: 16px;
}
.session-list li {
  margin: 0;
  padding: 0;
}

/* =========================
   THANK YOU PAGE STYLES
   ========================= */
.thanks {
  padding: 80px 0;
}
.thanks h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: -0.02em;
}
.thanks p {
  margin: 0;
  color: rgba(0, 0, 0, 0.7);
  max-width: 70ch;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .dark-grid {
    grid-template-columns: 1fr;
  }
  .dark-media {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .banner {
    height: 180px;
  }
  .banner-center img {
    height: 80px;
  }
  .banner-day {
    left: 18px;
  }
  .wrap {
    padding: 0 18px;
  }
  .col-time {
    width: 140px;
  }
}

@media (max-width: 560px) {
  :root {
    --header-h: 56px;
  }
  .nav {
    gap: 14px;
  }
}

/* ===== Header / Nav ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.wrap {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.nav {
  display: flex;
  justify-content: flex-end;
  gap: 22px;
  font-size: 13px;
  letter-spacing: 0.2px;
}

.nav a {
  color: rgba(0, 0, 0, 0.75);
  text-decoration: none;
}
.nav a:hover {
  text-decoration: underline;
}
.nav a.active {
  font-weight: 700;
}

main {
  padding-top: 64px;
}

/* ===== Thank you page (video background + overlays) ===== */
.video-page {
  height: calc(100vh - 64px);
  position: relative;
  overflow: hidden;
  background: #000;
}

.video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none; /* prevents taps showing video UI */
}

.overlay {
  position: absolute;
  inset: 0;
}

/* Center Thank You image */
.thankyou-center {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  width: min(520px, 70vw);
}

/* Top-right upload callout */
.upload {
  position: absolute;
  top: 18px;
  right: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
}

.upload-text {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  line-height: 1.05;
  text-align: right;
  white-space: nowrap;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

.upload-text a {
  color: #fff;
  text-decoration: underline;
  font-weight: 700;
}

/* Arrow SVG */
.arrow {
  width: 70px;
  height: 30px;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.55));
}

/* QR image */
.qr {
  width: 86px;
  height: 86px;
  object-fit: cover;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  padding: 4px;
}

/* Responsive */
@media (max-width: 820px) {
  .upload {
    top: 12px;
    right: 12px;
    gap: 10px;
  }
  .upload-text {
    font-size: 14px;
    white-space: normal;
    max-width: 220px;
  }
  .arrow {
    width: 52px;
    height: 22px;
  }
  .qr {
    width: 70px;
    height: 70px;
  }
  .thankyou-center {
    width: min(420px, 80vw);
  }
}

@media (max-width: 560px) {
  header {
    height: 56px;
  }
  main {
    padding-top: 56px;
  }
  .video-page {
    height: calc(100vh - 56px);
  }
}

@media (min-width: 1200px) {
  :root {
    --header-h: 72px;
  }
}
