/* ===================================================================
   AI Risk Content Hackathon — styles (single-page)
   Theme: "Clear Sky" — Bebas Neue + Inter · light-blue/white gradient
   · medium-blue accents
   =================================================================== */

:root {
  --navy:     #0f2747;   /* primary text / headings */
  --blue-900: #12315f;
  --blue-700: #1d4ed8;
  --accent:   #2d7fc7;   /* medium-blue highlight */
  --accent-2: #5aa3db;   /* lighter tint for subtle gradients */
  --blue-300: #93c5fd;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;
  --ink:      #1c2e47;
  --muted:    #5b7088;
  --line:     rgba(37, 99, 235, 0.12);
  --white:    #ffffff;
  --shadow:   0 12px 30px rgba(37, 99, 235, 0.12);
  --shadow-lg:0 26px 60px rgba(20, 60, 140, 0.20);
  --radius:   18px;
  --maxw:     1180px;
  --nav-h:    66px;
  --display:  "Bebas Neue", "Oswald", Impact, sans-serif;
  --sans:     "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.6;
  background:
    radial-gradient(1100px 560px at 50% -220px, rgba(147, 197, 253, 0.45), transparent 62%),
    linear-gradient(180deg, #dbeafe 0%, #f3f8ff 36%, #ffffff 68%, #eaf3ff 100%);
  background-repeat: no-repeat;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* shared display-heading treatment (Bebas Neue is condensed all-caps) */
h1, h2, h3, .brand {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 0.98;
  color: var(--navy);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px) saturate(1.1);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 16px; }
.nav .brand { font-size: 1.5rem; color: var(--navy); letter-spacing: 1px; white-space: nowrap; }
.nav .brand:hover { text-decoration: none; color: var(--accent); }
.nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--muted); font-weight: 600; font-size: .92rem; letter-spacing: .2px; position: relative; }
.nav a:hover { color: var(--accent); text-decoration: none; }
@media (max-width: 640px) {
  .nav .wrap {
    height: auto; flex-direction: column; align-items: center; gap: 8px;
    padding-top: 10px; padding-bottom: 10px;
  }
  .nav .brand { font-size: 1.15rem; letter-spacing: .5px; text-align: center; }
  .nav ul { width: 100%; max-width: 100%; justify-content: center; flex-wrap: wrap; gap: 8px 14px; }
  .nav a { font-size: .75rem; letter-spacing: .2px; }
}

section[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

/* ---------- Hero (banner with flanking photos) ---------- */
.hero { text-align: center; padding: 24px 0 36px; }
.hero-band {
  position: relative; max-width: 1500px; margin: 0 auto;
  background: #a9cce8;                    /* light-blue banner field */
  min-height: clamp(330px, 42vw, 580px);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-photo { position: absolute; z-index: 1; box-shadow: 0 16px 42px rgba(10, 40, 90, 0.28); }
.hero-left  { left: clamp(-30px, 3vw, 64px); top: 50%; transform: translateY(-50%); width: clamp(300px, 39%, 560px); }
.hero-right { right: clamp(-20px, 4vw, 96px); bottom: -8%; width: clamp(160px, 22%, 330px); }
.hero .hero-title {
  position: relative; z-index: 2; margin: 0;
  font-family: "Anton", Impact, "Arial Narrow", sans-serif; font-weight: 400;
  color: #2d7fc7; text-transform: uppercase;
  font-size: clamp(3rem, 11.5vw, 8.2rem); line-height: 0.82; letter-spacing: 1px;
  transform: skewX(-9deg);
  text-shadow: 0 2px 0 rgba(255,255,255,0.12);
}
.hero-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
}
.sponsor-line {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 16px 0 0; font-family: var(--sans); font-size: .82rem; font-weight: 600;
  color: #111; letter-spacing: .2px;
}
.sponsor-logo { height: 19px; width: auto; display: inline-block; }
.hero .meta-line {
  font-family: var(--display); font-size: 1.5rem; letter-spacing: 2px;
  color: var(--accent); display: inline-block; margin: 12px 0 0;
}
@media (max-width: 680px) {
  .hero-band { min-height: 280px; }
  .hero-left  { width: 48%; }
  .hero-right { width: 32%; }
  .hero .hero-title { font-size: clamp(2.1rem, 13vw, 3.6rem); }
  .hero .meta-line { display: block; font-size: 1.05rem; letter-spacing: 1px; line-height: 1.5; }
}

/* ---------- Sections ---------- */
.section { padding: 46px 0; }
.section-head { text-align: center; margin-bottom: 34px; }
.section-head h2 {
  font-size: clamp(2.2rem, 5.5vw, 3.2rem); margin: 0; letter-spacing: 1px; color: var(--navy);
}
.section-head h2::after {
  content: ""; display: block; width: 54px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  margin: 14px auto 0;
}

/* ---------- Overall winner (compact, centered card) ---------- */
.winner-wrap { display: flex; justify-content: center; }
.winner-card {
  width: 100%; max-width: 420px;
  border: 2px solid var(--accent);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.22);
}
.winner-card .win-label {
  font-family: var(--sans); font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1px; color: var(--accent); margin-bottom: 6px;
}
.winner-card .blurb-text { color: var(--ink); margin: 8px 0 0; font-family: var(--sans); font-size: .95rem; }

/* honorable mention — same compact card, slightly wider for its blurb + link */
.honorable-card {
  width: 100%; max-width: 460px;
  border: 2px solid var(--accent);
  box-shadow: 0 16px 40px rgba(45, 127, 199, 0.22);
}
.honorable-card .win-label {
  font-family: var(--sans); font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1px; color: var(--accent); margin-bottom: 6px;
}
.honorable-card .blurb-text { color: var(--ink); margin: 8px 0 0; font-family: var(--sans); font-size: .95rem; }
.honorable-card .hm-note { color: var(--muted); margin: 3px 0 0; font-family: var(--sans); font-size: .85rem; }
.card-link {
  display: inline-block; align-self: flex-start; margin-top: 14px;
  background: var(--accent); color: #fff; font-family: var(--sans); font-weight: 800;
  font-size: .84rem; padding: 9px 18px; border-radius: 999px; letter-spacing: .2px;
  transition: transform .15s ease, filter .15s ease;
}
.card-link:hover { text-decoration: none; transform: translateY(-2px); filter: brightness(1.06); }

/* ---------- Card grids ---------- */
.grid { display: grid; gap: 26px; }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .grid.cols-4, .grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid.cols-4, .grid.cols-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .vid-wrap { background: #000; position: relative; }
.card .body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.card .track-name { font-family: var(--sans); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); margin-bottom: 6px; }
.card h3 { font-size: 1.35rem; margin: 0 0 4px; color: var(--navy); letter-spacing: .4px; }
.card .creator { color: var(--blue-700); font-weight: 600; font-size: .9rem; margin: 0; font-family: var(--sans); }
.card .track-tag {
  margin-top: 12px; align-self: flex-start; font-family: var(--sans);
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px;
  color: var(--accent); background: var(--blue-50); padding: 5px 11px; border-radius: 999px;
}
.track-winner-badge {
  position: absolute; top: 10px; left: 10px; z-index: 3; font-family: var(--sans);
  background: var(--accent); color: #fff; font-weight: 800; font-size: .66rem;
  padding: 5px 11px; border-radius: 999px; text-transform: uppercase; letter-spacing: .8px;
  box-shadow: var(--shadow);
}

/* placeholder track-winner slot */
.placeholder-box {
  aspect-ratio: 16 / 10; display: grid; place-items: center;
  background: repeating-linear-gradient(45deg, #eef4ff, #eef4ff 12px, #e3edff 12px, #e3edff 24px);
}
.placeholder-msg { color: var(--muted); font-weight: 700; font-size: .9rem; font-family: var(--sans); }

/* ---------- Click-to-play facade (thumbnail) ---------- */
.thumb {
  position: relative; aspect-ratio: 16 / 10; background: #000;
  cursor: pointer; overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.thumb:hover img { transform: scale(1.05); }
.play-btn {
  position: absolute; inset: 0; margin: auto; width: 62px; height: 62px;
  border: none; border-radius: 999px; cursor: pointer;
  background: rgba(37, 99, 235, 0.92); color: #fff;
  display: grid; place-items: center; padding-left: 3px;
  box-shadow: 0 6px 22px rgba(0,0,0,0.4); transition: transform .15s ease, background .15s ease;
}
.thumb:hover .play-btn { transform: scale(1.1); background: var(--accent-2); }

/* ---------- Video detail modal ---------- */
.vmodal {
  position: fixed; inset: 0; z-index: 220; display: none;
  background: rgba(8, 22, 46, 0.92); padding: 28px;
  align-items: center; justify-content: center; gap: 8px;
}
.vmodal.open { display: flex; }
.vm-card {
  display: flex; background: #fff; border-radius: 18px; overflow: hidden;
  max-width: 1080px; width: 100%; max-height: 86vh; box-shadow: var(--shadow-lg);
}
.vm-stage { background: #000; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: center; }
.vm-stage video { max-width: 100%; max-height: 86vh; width: auto; height: auto; display: block; }
.vm-info { flex: 0 0 320px; padding: 32px 28px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.vm-badge {
  align-self: flex-start; font-family: var(--sans); background: var(--blue-50); color: var(--accent);
  font-weight: 800; font-size: .7rem; text-transform: uppercase; letter-spacing: 1px;
  padding: 6px 13px; border-radius: 999px; margin-bottom: 8px;
}
.vm-badge.win { background: var(--accent); color: #fff; }
.vm-info h2 { color: var(--navy); font-size: 2rem; margin: 0 0 4px; letter-spacing: .5px; }
.vm-creator { font-weight: 700; color: var(--blue-700); margin: 0; font-family: var(--sans); }
.vm-handle { color: var(--accent); font-weight: 600; font-size: .92rem; font-family: var(--sans); }
a.vm-handle:hover { text-decoration: underline; }
.vm-desc { color: var(--ink); margin: 12px 0 0; line-height: 1.6; font-family: var(--sans); }
.vm-link {
  display: inline-block; align-self: flex-start; margin-top: 16px;
  background: var(--accent); color: #fff; font-family: var(--sans); font-weight: 800;
  font-size: .84rem; padding: 9px 18px; border-radius: 999px;
}
a.vm-link:hover { text-decoration: none; filter: brightness(1.06); }
.vm-close {
  position: absolute; top: 18px; right: 22px; width: 46px; height: 46px;
  border: none; cursor: pointer; border-radius: 999px; color: #fff; font-size: 1.6rem;
  background: rgba(255,255,255,0.16); display: grid; place-items: center; z-index: 2;
}
.vm-nav {
  flex: 0 0 auto; width: 50px; height: 50px; border: none; cursor: pointer;
  border-radius: 999px; color: #fff; font-size: 2rem; background: rgba(255,255,255,0.16);
  display: grid; place-items: center;
}
.vm-close:hover, .vm-nav:hover { background: rgba(255,255,255,0.3); }
@media (max-width: 760px) {
  .vmodal { padding: 12px; }
  .vm-card { flex-direction: column; max-height: 92vh; }
  .vm-stage video { max-height: 58vh; }
  .vm-info { flex: 1 1 auto; padding: 20px; }
  .vm-nav { position: absolute; bottom: 16px; }
  .vm-prev { left: 18px; } .vm-next { right: 18px; }
}

.more-soon {
  text-align: center; margin: 40px 0 4px; font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: 1.5px; color: var(--accent);
}

/* ---------- Photo gallery ---------- */
.masonry { columns: 4 240px; column-gap: 16px; }
.masonry .ph {
  break-inside: avoid; margin-bottom: 16px; border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow); cursor: zoom-in; background: var(--blue-50);
  transition: transform .15s ease;
}
.masonry .ph:hover { transform: scale(1.015); }
.masonry .ph img { width: 100%; }
.photo-credits { text-align: center; margin: 28px 0 0; color: var(--muted); font-size: .92rem; }
.photo-credits a { color: var(--accent); font-weight: 700; }

/* ---------- Photo lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(8, 22, 46, 0.94); align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 90vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox .lb-close, .lightbox .lb-nav {
  position: absolute; color: #fff; background: rgba(255,255,255,0.14);
  border: none; cursor: pointer; border-radius: 999px; display: grid; place-items: center;
}
.lightbox .lb-close { top: 20px; right: 24px; width: 46px; height: 46px; font-size: 1.6rem; }
.lightbox .lb-nav { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 2rem; }
.lightbox .lb-prev { left: 18px; }
.lightbox .lb-next { right: 18px; }
.lightbox .lb-nav:hover, .lightbox .lb-close:hover { background: rgba(255,255,255,0.28); }

/* ---------- Sponsors banner ---------- */
.sponsor-banner {
  background: #a9cce8;                 /* exact hero banner color */
  border-radius: 20px;
  padding: 40px 36px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 28px 56px;
}
.sb-group { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.sb-label {
  font-family: var(--sans); font-size: .76rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.6px; color: var(--navy);
}
.sb-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 44px; }
.sb-link { display: inline-flex; align-items: center; transition: opacity .15s ease, transform .15s ease; }
.sb-link:hover { opacity: 0.78; transform: translateY(-2px); text-decoration: none; }
.sb-logo { height: 52px; width: auto; display: block; }
.sb-bluedot { height: 32px; }
.sb-lisa { height: 60px; border-radius: 8px; }
.sb-divider { width: 1px; align-self: stretch; background: rgba(15, 39, 71, 0.18); margin: 6px 0; }
@media (max-width: 760px) {
  .sb-divider { display: none; }
  .sb-logo { height: 44px; }
  .sb-lisa { height: 52px; }
}

/* ---------- About (two-column, blue band) ---------- */
.about-section { background: #a9cce8; padding: 64px 0; }
.about-card {
  display: grid; grid-template-columns: 42% 1fr;
  background: var(--white); border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-photo { margin: 0; position: relative; min-height: 380px; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.about-text { padding: 48px 50px; display: flex; flex-direction: column; justify-content: center; }
.about-text h2 {
  font-family: var(--display); color: var(--navy);
  font-size: clamp(2.2rem, 5vw, 3rem); letter-spacing: 1px; margin: 0;
}
.about-text h2::after {
  content: ""; display: block; width: 54px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); margin: 14px 0 20px;
}
.about-text p { color: var(--ink); font-size: 1.02rem; line-height: 1.72; margin: 0 0 16px; }
.about-text p.about-hook {
  color: var(--navy); font-family: var(--sans); font-weight: 800;
  font-size: 1.32rem; line-height: 1.3; margin: 0 0 20px;
}
.about-cta { margin-top: 26px; }
.about-text p.about-cta-line { color: var(--navy); font-weight: 800; font-size: 1.05rem; margin: 0 0 14px; }
@media (max-width: 760px) {
  .about-card { grid-template-columns: 1fr; }
  .about-photo { min-height: 0; }
  .about-photo img { height: 250px; }
  .about-text { padding: 30px 26px; }
}

/* ---------- About (legacy helpers, retained) ---------- */
.card-soft {
  background: var(--white); border-radius: var(--radius); padding: 32px 36px;
  box-shadow: var(--shadow); border: 1px solid var(--line); margin: 0 auto; max-width: 760px;
}
.prose { font-size: 1.05rem; }
.prose p { margin: 0 0 16px; }
.prose ul { margin: 0 0 16px; padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.sponsors { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 24px; }
.sponsor-chip {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 24px; box-shadow: var(--shadow); text-align: center; min-width: 210px;
}
.sponsor-chip .role { font-family: var(--sans); font-size: .68rem; text-transform: uppercase; letter-spacing: 1.2px; color: var(--accent); font-weight: 800; }
.sponsor-chip .name { font-weight: 700; color: var(--navy); font-size: 1.05rem; margin-top: 5px; font-family: var(--sans); }

.cta {
  text-align: center; margin: 34px auto 0; max-width: 760px;
  background: #2d7fc7;
  border-radius: 24px; padding: 46px 30px; color: #fff; box-shadow: var(--shadow-lg);
}
.cta h2 { font-size: 2.6rem; margin: 0 0 12px; color: #fff; letter-spacing: 1px; }
.cta h2::after { display: none; }
.cta p { margin: 0 auto 24px; max-width: 540px; opacity: .96; font-family: var(--sans); }
.btn {
  display: inline-block; background: #fff; color: var(--accent); font-weight: 800; font-family: var(--sans);
  padding: 14px 32px; border-radius: 999px; box-shadow: var(--shadow); letter-spacing: .3px;
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }

/* ---------- Footer ---------- */
.footer { text-align: center; padding: 46px 0 58px; color: var(--muted); font-size: .9rem; }
.footer .brand { color: var(--navy); font-size: 1.4rem; letter-spacing: 1px; }

/* ---------- utility ---------- */
.center { text-align: center; }
.hidden { display: none !important; }
