:root {
  --bg: #ffffff;
  --surface: rgba(255, 255, 255, 0.94);
  --text: #000000;
  --muted: #1a1a1a;
  --line: rgba(113, 90, 39, 0.12);
  --accent: #f59e0b;
  --accent-2: #ffd66b;
  --maxw: 1280px;
  --radius: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background: #ffffff;
  min-height: 100vh;
  line-height: 1.55;
}

.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.glow {
  position: absolute;
  filter: blur(70px);
  opacity: 0.03;
}

.glow-a {
  width: 460px;
  height: 460px;
  background: #fbfbf8;
  top: -170px;
  right: -120px;
}

.glow-b {
  width: 400px;
  height: 400px;
  background: #f6f6f2;
  bottom: -140px;
  left: -120px;
}

.grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 85%);
  opacity: 0.2;
}

.site-header,
main,
.site-footer {
  width: min(var(--maxw), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 0 1.1rem;
}

.logo {
  color: #000000;
  text-decoration: none;
  font-family: "Nunito Sans", "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

.logo-sticker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: transparent;
}

.logo-sticker::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 50%;
  width: 20px;
  height: 16px;
  transform: translateY(-50%);
  background-image: linear-gradient(#8f90a6, #8f90a6), linear-gradient(#8f90a6, #8f90a6),
    linear-gradient(#8f90a6, #8f90a6);
  background-size: 8px 2px, 12px 2px, 6px 2px;
  background-position: 0 2px, 4px 8px, 2px 14px;
  background-repeat: no-repeat;
  opacity: 0;
  animation: none;
}

.logo-image {
  width: 88px;
  height: auto;
  object-fit: contain;
  background: #ffffff;
  transform-origin: 50% 75%;
  animation: none;
}

.logo-text {
  position: relative;
  font-family: "Nunito Sans", "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 800;
  color: #000000 !important;
  opacity: 1;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  text-decoration: none;
  color: #000000;
  font-size: 1.22rem;
  font-weight: 500;
}

.nav-cta {
  background: #f3f4ff;
  color: #141623 !important;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid rgba(20, 22, 35, 0.12);
}

.nav a:hover {
  color: var(--text);
}

main {
  padding: 1.8rem 0 4rem;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

h1 {
  font-size: clamp(2.2rem, 5.8vw, 4.6rem);
  max-width: 15ch;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0.16em;
  max-width: none;
}

.title-main,
.title-sub {
  font-family: "Nunito Sans", "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.title-main {
  font-size: 48px;
  color: #000000;
  font-weight: 800;
}

.title-sub {
  font-size: clamp(1.1rem, 2.2vw, 2.1rem);
  color: #b7bad1;
  letter-spacing: -0.01em;
  opacity: 1;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  margin-bottom: 0.8rem;
}

p {
  margin: 0;
}

.hero {
  padding: 2.8rem 0 1.5rem;
  display: grid !important;
  grid-template-columns: minmax(0, 55%) minmax(0, 45%) !important;
  column-gap: 2rem;
  row-gap: 0;
  align-items: start;
  min-height: auto;
}

.hero-copy {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  max-width: none;
  width: 100%;
  padding-bottom: 0;
  padding-top: 10em;
}

.lead {
  font-family: "Plus Jakarta Sans", "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 400;
  margin-top: 1.5rem;
  max-width: 56ch;
  color: #000000;
  font-size: clamp(0.48rem, 0.68vw, 0.6rem);
  line-height: 1.35;
}

.sponsors {
  margin-top: 1.45rem;
  padding-top: 0.7rem;
  max-width: 56ch;
}

.sponsors-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin-bottom: 0.7rem;
}

.sponsors-label {
  display: block;
  width: 100%;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #000000;
  font-weight: 300;
  opacity: 1;
}

.sponsor-logos {
  margin-top: 1.9rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: nowrap;
}

.sponsor-logo {
  display: block;
  width: auto;
  height: auto;
  max-height: 20px;
  object-fit: contain;
  background: transparent;
  border: 0;
  padding: 0;
}

.sponsor-500 {
  max-width: 100px;
}

.sponsor-e14 {
  max-width: 80px;
}

.hero-media {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  min-width: 0;
  padding-top: 0;
  width: 100%;
  margin-left: 0;
  border-radius: 34px;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  aspect-ratio: 1280 / 1050;
  object-fit: contain;
  border-radius: inherit;
  background: #000;
  border: 1px solid rgba(108, 110, 130, 0.2);
  box-shadow: 0 18px 40px rgba(36, 40, 58, 0.18), 0 2px 8px rgba(36, 40, 58, 0.08);
  pointer-events: none;
}

.contact-panel {
  margin-top: 3rem;
  padding: 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(17, 18, 24, 0.72);
  max-width: 920px;
}

.contact-subtext {
  margin-top: 0.35rem;
  color: #a3a7bc;
}

.contact-email-grid {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1rem;
  color: #d2d6ea;
}

.contact-email-grid p {
  margin: 0;
}

.contact-form {
  margin-top: 1rem;
  display: grid;
  gap: 0.45rem;
}

.contact-form label {
  font-size: 0.9rem;
  color: #cfd3e6;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: rgba(9, 10, 14, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #eef1ff;
  border-radius: 10px;
  padding: 0.62rem 0.72rem;
  font: inherit;
}

.contact-submit {
  margin-top: 0.3rem;
  width: fit-content;
  background: #f3f4ff;
  color: #151727;
  border: 0;
  border-radius: 999px;
  padding: 0.58rem 1rem;
  font-weight: 700;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  padding: 0.72rem 1rem;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #3d2b0a;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.23);
}

.btn-ghost {
  color: #5a4a2f;
  border: 1px solid rgba(113, 90, 39, 0.28);
}

.panel {
  margin: 2.2rem 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.1rem;
  backdrop-filter: blur(8px);
}

#focus {
  margin-top: 2.5rem;
}

.cards {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}

.card {
  background: rgba(255, 250, 232, 0.85);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 1rem;
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.card p,
.panel p,
.approach-list {
  color: var(--muted);
}

.approach-list {
  margin: 0.2rem 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.6rem;
}

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

.cta {
  margin-top: 2.7rem;
  border-top: 1px solid var(--line);
  padding-top: 1.7rem;
}

.cta p {
  color: var(--muted);
  margin: 0.3rem 0 1.1rem;
}

.site-footer {
  padding: 0.5rem 0 2rem;
  color: #6a624f;
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.logo,
.logo-text,
.nav a,
.title-main,
.lead,
.sponsors-label {
  color: #000000 !important;
  opacity: 1 !important;
}

/* =========================================================
   Mobile compatibility (desktop unchanged)
   - Keeps fonts + video aspect ratio exactly the same
   - Only adjusts layout/spacing/sizing under 640px
========================================================= */
@media (max-width: 640px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Keep container consistent on mobile (prevents edge clipping) */
  .site-header,
  main,
  .site-footer {
    width: min(var(--maxw), calc(100% - 2rem));
    margin-inline: auto;
  }

  .site-header {
    padding: 1.1rem 0 0.9rem;
  }

  .nav {
    gap: 0.85rem;
  }

  .nav a {
    font-size: 0.92rem;
  }

  .nav-cta {
    padding: 10px 14px;
  }

  /* Stack hero instead of 2-column grid */
  .hero {
    display: block !important;
    padding: 1.9rem 0 1.2rem;
  }

  .hero-copy {
    padding-top: 2.2rem; /* mobile-friendly; desktop remains 10em */
  }

  /* Keep SAME font families; only scale sizes on mobile */
  .title-main {
    font-size: 46px; /* desktop stays 48px */
    line-height: 1.02;
  }

  .title-sub {
    font-size: 1.9rem;
    line-height: 1.12;
  }

  .lead {
    font-size: 16.5px;
    line-height: 1.45;
    max-width: 62ch;
  }

  /* Sponsors row: allow wrapping */
  .sponsor-logos {
    flex-wrap: wrap;
    gap: 10px;
  }

  /* Video: keep aspect ratio; just reduce radius a bit */
  .hero-media {
    margin-top: 18px;
    border-radius: 24px;
  }

  .hero-video {
    width: 100%;
    height: auto;
    aspect-ratio: 1280 / 1050; /* unchanged */
    object-fit: contain;       /* unchanged */
    border-radius: inherit;
  }

  .contact-email-grid {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .title-main { font-size: 40px; }
  .title-sub  { font-size: 1.7rem; }
}
