/* Hype Tour — static rebuild of hypetour.com (was Duda), v2 craft pass.
   Fonts, colors, and sizes lifted from the live site's markup;
   v2 layers on the fixes from the 2026-07-17 design review. */

/* ---------- Fonts (rescued from the original site, converted to woff2) ---------- */
@font-face {
  font-family: "Ringside-Bold";
  src: url("/assets/fonts/Ringside-Bold.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Ringside-Book";
  src: url("/assets/fonts/Ringside-Book.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Ringside-Light";
  src: url("/assets/fonts/Ringside-Light.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DharmaGothicE-Bold";
  src: url("/assets/fonts/DharmaGothicE-Bold.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

/* ---------- Palette ---------- */
:root {
  --cyan: #0dffed;         /* countdown, HYPE glow, copyright */
  --cyan-ig: #17e1ff;      /* FOLLOW US ON INSTAGRAM (on dark) */
  --cyan-speaker: #2acbe4; /* speaker slot 1 */
  --red: #ed221f;          /* speaker slot 2 */
  --red-glow: #c51f1c;
  --green: #16c012;        /* speaker slot 3, phone number */
  --magenta: #ea07ff;      /* keystonechurch.com/STUDENTS (on dark) */
  --ink: #212226;          /* stay-band text */

  /* On-white versions of the neon set: same hue family, darkened for
     legibility — the pure neons drop to 1.6–2.4:1 contrast on white. */
  --cyan-onwhite: #0782a8;
  --green-onwhite: #0e8a0c;
  --magenta-onwhite: #b800c9;

  /* One neon glow recipe everywhere: tight core + mid halo + wide falloff. */
  --neon: 0 0 2px currentColor, 0 0 14px currentColor, 0 0 42px currentColor;

  --bold: "Ringside-Bold", Helvetica, Arial, sans-serif;
  --book: "Ringside-Book", Helvetica, Arial, sans-serif;
  --light: "Ringside-Light", Helvetica, Arial, sans-serif;
  --display: "DharmaGothicE-Bold", "Ringside-Bold", Helvetica, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Keep the hidden attribute winning over any display rule below
   (the countdown swap relies on it). */
[hidden] { display: none !important; }

html { background: #000; }
body {
  background: #000;
  color: #fff;
  font-family: var(--book);
  -webkit-font-smoothing: antialiased;
  text-align: center;
}

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

a { transition: color .18s ease-out, opacity .18s ease-out, text-shadow .18s ease-out; }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; border-radius: 2px; }

/* ---------- Hero ---------- */
/* visually hidden but available to screen readers + search engines */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  position: relative;
  background: #2b2b2b url("/assets/img/hero-collage.webp") center / cover no-repeat;
  padding: 220px 40px 128px;
  display: flex;
  justify-content: center;
}
.site-brand {
  position: absolute;
  top: 30px;
  left: 34px;
  z-index: 3;
  display: block;
  line-height: 0;
}
.site-brand img {
  width: 138px;
  height: auto;
  display: block;
  opacity: .9;
  transition: opacity .2s ease;
}
.site-brand:hover img,
.site-brand:focus-visible img { opacity: 1; }
.hero-logo {
  width: min(560px, 82%);
  height: auto;
  animation: hero-fade 1.2s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes hero-fade {
  from { opacity: 0; transform: scale(1.03); }
  to   { opacity: 1; transform: scale(1); }
}

/* ---------- Countdown ---------- */
.countdown-section {
  background: #000;
  padding: 48px 20px 40px;
}
.countdown { display: inline-block; }
.countdown-label {
  font-family: var(--bold);
  font-size: 16px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
  text-align: center;
  margin-bottom: 16px;
}
.countdown-row {
  display: flex;
  justify-content: center;
  align-items: baseline;
}
.countdown .num {
  font-family: var(--display);
  color: var(--cyan);
  font-size: 110px;
  line-height: 1;
  width: 128px;
  text-align: center;
  text-shadow: 0 0 28px rgba(13, 255, 237, .55);
}
.countdown .colon {
  font-family: var(--display);
  color: var(--cyan);
  font-size: 54px;
  width: 34px;
  text-align: center;
  text-shadow: 0 0 28px rgba(13, 255, 237, .55);
}
.countdown .labels { margin-top: 10px; }
.countdown .label {
  font-family: var(--book);
  color: #b9b9b9;
  font-size: 17px;
  width: 128px;
  text-align: center;
}
.countdown .colon-spacer { width: 34px; }
/* Shown by main.js once the target date has passed — the clock never sits at zero. */
.countdown-over {
  font-family: var(--display);
  color: var(--cyan);
  font-size: 72px;
  line-height: 1.05;
  letter-spacing: .02em;
  text-wrap: balance;
  text-shadow: var(--neon);
}

/* ---------- Video ---------- */
.video-section {
  background: #000;
  padding: 30px 40px 40px;
  display: flex;
  justify-content: center;
}
.video-section video {
  width: min(1160px, 100%);
  aspect-ratio: 16 / 9;
  background: #000;
}

/* ---------- Intro ---------- */
.intro {
  background: #000;
  max-width: 870px;
  margin: 0 auto;
  padding: 40px 40px 60px;
}
.intro-heading {
  font-family: var(--bold);
  font-weight: 400;
  font-size: 60px;
  line-height: .9;
  margin-bottom: 34px;
}
.hype-glow {
  color: var(--cyan);
  text-shadow: var(--neon);
}
.intro-copy {
  font-family: var(--light);
  font-size: 22px;
  line-height: 1.4;
  margin-bottom: 26px;
}
.intro-copy:last-child { margin-bottom: 0; }
.intro-copy strong, .intro-copy.strong {
  font-family: var(--bold);
  font-weight: 400;
}

/* ---------- Speakers ---------- */
.speakers {
  background: #000;
  padding: 60px 40px 40px;
}
.speakers-heading {
  font-family: var(--bold);
  font-weight: 400;
  font-size: 96px;
  line-height: 1;
  margin-bottom: 48px;
}
/* Speaker cards: stage photos that link to each speaker's Instagram, name + date beneath */
.speaker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  max-width: 1140px;
  margin: 0 auto 48px;
}
.speaker-card {
  display: block;
  text-decoration: none;
  transition: transform .18s ease-out;
}
.speaker-card:hover,
.speaker-card:focus-visible { transform: translateY(-4px); }
.speaker-photo {
  position: relative;
  display: block;
}
.speaker-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}
.ig-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  opacity: .9;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .85));
  transition: opacity .18s ease-out;
}
.speaker-card:hover .ig-badge,
.speaker-card:focus-visible .ig-badge { opacity: 1; }
.speaker-caption {
  display: block;
  text-align: center;
  margin-top: 16px;
}
/* s1/s2/s3 are night slots, not people — names change every tour */
.speaker-name {
  display: block;
  font-family: var(--bold);
  font-size: 24px;
  line-height: 1.1;
  text-shadow: var(--neon);
}
.speaker-card:hover .speaker-name,
.speaker-card:focus-visible .speaker-name {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}
.speaker-name.s1 { color: var(--cyan-speaker); }
.speaker-name.s2 { color: var(--red); }
.speaker-name.s3 { color: var(--green); }
.speaker-date {
  display: block;
  font-family: var(--bold);
  font-size: 15px;
  letter-spacing: .04em;
  color: #fff;
  margin-top: 6px;
}

/* ---------- Event details strip ---------- */
.details {
  background: #000;
  padding: 4px 40px 56px;
}
.details-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 0 10px;
}
.detail + .detail { border-left: 1px solid rgba(255, 255, 255, .12); }
.detail-icon {
  width: 40px;
  height: 40px;
  color: var(--cyan);
  filter: drop-shadow(0 0 5px currentColor);
}
/* spread the lineup palette across the four facts */
.detail:nth-child(2) .detail-icon { color: var(--magenta); }
.detail:nth-child(3) .detail-icon { color: var(--green); }
.detail:nth-child(4) .detail-icon { color: var(--red); }
.detail-label {
  font-family: var(--bold);
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}
.detail-value {
  font-family: var(--bold);
  font-size: 20px;
  line-height: 1.22;
  color: #fff;
}

/* ---------- Add to calendar ---------- */
.addcal {
  background: #000;
  padding: 0 40px 60px;
  text-align: center;
}
.addcal-heading {
  font-family: var(--bold);
  font-size: 15px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 18px;
}
.addcal-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}
.cal-btn {
  --c: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--bold);
  font-size: 18px;
  color: var(--c);
  text-decoration: none;
  border: 1.5px solid var(--c);
  border-radius: 999px;
  padding: 12px 24px;
  transition: background .18s ease-out, color .18s ease-out, transform .18s ease-out;
}
/* each night's button in its speaker's colour (matches the lineup) */
.cal-btn.n1 { --c: var(--cyan-speaker); }
.cal-btn.n2 { --c: var(--red); }
.cal-btn.n3 { --c: var(--green); }
.cal-btn-icon { width: 22px; height: 22px; }
.cal-btn:hover,
.cal-btn:focus-visible {
  background: var(--c);
  color: #000;
  transform: translateY(-2px);
}

/* ---------- Theme nights ---------- */
.themes {
  background: #000;
  padding: 60px 40px 48px;
}
.themes-heading {
  font-family: var(--bold);
  font-weight: 400;
  font-size: 96px;
  line-height: 1;
  margin-bottom: 56px;
}
/* Card grid and text grid share the same width and gap, so the three
   columns align exactly. Art shows at its full 4:5 ratio — no cropping. */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  max-width: 1140px;
  margin: 0 auto 56px;
}
.theme-grid img {
  width: 100%;
  height: auto;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}
.theme-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  max-width: 1140px;
  margin: 0 auto;
}
.theme-col h3 {
  font-family: var(--bold);
  font-weight: 400;
  font-size: 24px;
  margin-bottom: 24px;
}
.theme-col p {
  font-family: var(--book);
  font-size: 18px;
  line-height: 1.45;
}

/* ---------- Stay up to date (white band) ---------- */
.stay-band {
  background: #fff;
  color: var(--ink);
  padding: 56px 24px 64px;
}
.stay-heading {
  font-family: var(--bold);
  font-weight: 400;
  font-size: 60px;
  line-height: 1.1;
  text-wrap: balance;
  margin-bottom: 10px;
}
.ig-line a {
  font-family: var(--bold);
  font-size: 36px;
  color: var(--cyan-onwhite);
  text-decoration: none;
}
.ig-line a:hover {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}
.ig-icon {
  display: inline-block;
  color: #000;
  margin: 18px 0 22px;
}
.ig-icon:hover { opacity: .6; }
.contact-line {
  font-family: var(--book);
  font-size: 24px;
  line-height: 1.6;
}
.contact-line strong { font-family: var(--bold); font-weight: 400; }
.contact-line .ci {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: -2px;
  margin-right: 6px;
}
a.phone {
  font-family: var(--bold);
  color: var(--green-onwhite);
  text-decoration: none;
}
.students-link {
  font-family: var(--bold);
  color: var(--magenta-onwhite);
  text-decoration: none;
}
a.phone:hover, .students-link:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* ---------- Footer band + copyright ---------- */
.footer-band {
  display: block;
  width: 100%;
  height: auto;
}
.site-footer { background: #000; }
.copyright {
  font-family: var(--book);
  font-size: 12px;
  color: var(--cyan);
  padding: 22px 40px 28px;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-logo { animation: none; }
  a { transition: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  .hero { padding: 84px 12px 96px; }
  .hero-logo { width: min(460px, 93%); }
  .site-brand { top: 18px; left: 18px; }
  .site-brand img { width: 108px; }

  .countdown-label { font-size: 13px; margin-bottom: 12px; }
  .countdown .num { font-size: 52px; width: 64px; text-shadow: 0 0 16px rgba(13, 255, 237, .55); }
  .countdown .colon { font-size: 26px; width: 16px; text-shadow: 0 0 16px rgba(13, 255, 237, .55); }
  .countdown .label { font-size: 10px; width: 64px; }
  .countdown .colon-spacer { width: 16px; }
  .countdown-over { font-size: 44px; }

  .video-section { padding: 16px 0 28px; }
  .video-section video {
    width: 100%; /* keep the promo in its natural 16:9 landscape on mobile (full-bleed) */
  }

  .details { padding: 4px 16px 40px; }
  .details-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 12px; max-width: 360px; }
  .detail { padding: 0 4px; }
  .detail + .detail { border-left: none; }
  .detail-icon { width: 32px; height: 32px; }
  .detail-label { font-size: 12px; }
  .detail-value { font-size: 16px; }

  .addcal { padding: 0 16px 44px; }
  .addcal-heading { font-size: 13px; margin-bottom: 14px; }
  .addcal-row { gap: 10px; }
  .cal-btn { font-size: 16px; padding: 11px 18px; gap: 8px; }
  .cal-btn-icon { width: 20px; height: 20px; }

  .intro { padding: 30px 32px 40px; }
  .intro-heading { font-size: 48px; }
  .intro-copy { font-size: 18px; }

  .speakers { padding: 34px 12px 30px; }
  .speakers-heading { font-size: 36px; margin-bottom: 24px; }
  .speaker-grid { gap: 10px; margin-bottom: 28px; }
  .ig-badge { width: 18px; height: 18px; top: 6px; right: 6px; }
  .speaker-caption { margin-top: 8px; }
  .speaker-name { font-size: 12px; }
  .speaker-date { font-size: 10px; margin-top: 3px; }

  .themes { padding: 40px 12px 50px; }
  .themes-heading { font-size: 36px; margin-bottom: 32px; }
  .theme-grid { gap: 10px; margin-bottom: 40px; }
  .theme-details { grid-template-columns: 1fr; gap: 32px; }
  .theme-col h3 { font-size: 19px; margin-bottom: 12px; }
  .theme-col p { font-size: 14px; }

  .stay-band { padding: 40px 20px 48px; }
  .stay-heading { font-size: 30px; }
  .ig-line a { font-size: 24px; }
  .contact-line { font-size: 14px; }
  .contact-line .ci { width: 15px; height: 15px; vertical-align: -2px; }

  .copyright { padding: 16px 20px 22px; }
}

/* ===== MOBILE POLISH PREVIEW (overrides the block above) ===== */
@media (max-width: 767px) {
  /* 1 — tighter vertical rhythm between sections */
  .countdown-section { padding: 22px 20px 20px; }
  .details { padding: 0 16px 22px; }
  .details-grid { gap: 16px 12px; }
  .addcal { padding: 0 16px 24px; }
  .video-section { padding: 8px 0 18px; }
  .intro { padding: 20px 28px 24px; }
  .speakers { padding: 24px 12px 24px; }

  /* 2 — bigger stacked speaker cards (artist-lineup feel) */
  .speaker-grid { grid-template-columns: 1fr; gap: 22px; max-width: 300px; margin: 0 auto 22px; }
  .speaker-name { font-size: 22px; }
  .speaker-date { font-size: 13px; margin-top: 4px; }
  .ig-badge { width: 26px; height: 26px; top: 10px; right: 10px; }

  /* 3 — denser details values */
  .detail-value { font-size: 16px; line-height: 1.15; }
}

/* ===== MOBILE POLISH v2 — details one-row + video inset ===== */
@media (max-width: 767px) {
  /* details strip: single row of 4 */
  .details { padding: 0 12px 22px; }
  .details-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: none; align-items: start; }
  .detail { padding: 0 2px; gap: 8px; }
  .detail-icon { width: 26px; height: 26px; }
  .detail-label { font-size: 9px; letter-spacing: .05em; }
  .detail-value { font-size: 11px; line-height: 1.18; }

  /* video: inset from the edges (not full-bleed) */
  .video-section { padding: 8px 16px 18px; }
}

/* ===== scroll reveal (all viewports) ===== */
.reveal-on main > section:not(.hero) {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease-out, transform .8s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform;
}
.reveal-on main > section.reveal-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal-on main > section:not(.hero) { opacity: 1; transform: none; transition: none; }
}

/* ===== unified info block (details + calendar in one card) ===== */
.info-block {
  max-width: 1180px;
  margin: 0 auto;
  padding: 4px 40px 44px;
  text-align: center;
}
.info-divider {
  height: 1px;
  background: rgba(255, 255, 255, .12);
  margin: 28px auto 22px;
  max-width: 640px;
}
@media (max-width: 767px) {
  .info-block { margin: 0 auto; padding: 2px 12px 24px; }
  .info-divider { margin: 18px auto 15px; }
}
