:root {
  --black: #000000;
  --white: #ffffff;
  --panel: rgba(255, 255, 255, 0.1);
  --navy: #0b1f3f;
  --yellow-green: #c6d94d;
  --orange: #ff6a3d;
  --mint: #7fd9a6;
  --yellow: #ffd23f;
  --pad: 40px;
}

@media (max-width: 640px) {
  :root { --pad: 20px; }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--black);
  color: var(--white);
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.splash-active {
  overflow: hidden;
  height: 100vh;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

.h1 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 5.5vw, 64px);
  line-height: 1;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  text-align: center;
  margin: 0;
}

.h2 {
  font-family: "Inter", sans-serif;
  font-weight: 200;
  font-size: clamp(18px, 2.6vw, 32px);
  line-height: 1;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  text-align: center;
  margin: 0;
}

.h3 {
  font-family: "Inter", sans-serif;
  font-weight: 200;
  font-size: clamp(15px, 1.8vw, 24px);
  line-height: 1.12;
  letter-spacing: 0;
  text-transform: uppercase;
  text-align: center;
  margin: 0;
}

/* ============ SPLASH ============ */
#splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--navy);
  color: var(--yellow-green);
  cursor: pointer;
  animation: palette-cycle 16s ease-in-out infinite;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

#splash.splash--leaving {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.splash__wordmark {
  width: clamp(220px, 34vw, 480px);
  height: auto;
  overflow: visible;
}

.splash__hint {
  position: absolute;
  bottom: 48px;
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  animation: hint-fade 1s ease forwards;
  animation-delay: 3s;
}

@keyframes hint-fade {
  to { opacity: 0.6; }
}

@keyframes palette-cycle {
  0%   { background-color: var(--navy);   color: var(--yellow-green); }
  10%  { background-color: var(--navy);   color: var(--yellow-green); }
  25%  { background-color: var(--orange); color: var(--navy); }
  35%  { background-color: var(--orange); color: var(--navy); }
  50%  { background-color: var(--mint);   color: var(--orange); }
  60%  { background-color: var(--mint);   color: var(--orange); }
  75%  { background-color: var(--yellow); color: var(--navy); }
  85%  { background-color: var(--yellow); color: var(--navy); }
  100% { background-color: var(--navy);   color: var(--yellow-green); }
}

@media (prefers-reduced-motion: reduce) {
  #splash { animation: none; }
}

/* ============ PAGE ============ */
#page { background: var(--black); }

/* Header */
.header { padding: 40px var(--pad) 24px; }

.header__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.header__left { display: flex; justify-content: flex-start; }
.header__middle { display: flex; justify-content: center; }
.header__right { display: flex; justify-content: flex-end; }

.wordmark--header { width: 100px; height: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 48px;
  padding: 12px 14px;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 17px;
  letter-spacing: -0.085px;
  color: var(--white);
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary { border: 1px solid var(--white); }
.btn--ghost { border: none; }

/* Nav overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav-overlay__close {
  position: absolute;
  top: 40px;
  right: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-overlay__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.nav-overlay__list a {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 6vw, 48px);
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

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

/* Sections shared */
.hero,
.panel,
.partners {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
  min-height: 640px;
  padding: 64px var(--pad);
}

.panel { background: var(--panel); }

.panel--say-hi { padding-bottom: 100px; }

.contact-details { margin-top: 24px; }
.contact-details p { margin: 0; line-height: 1.12; }

/* Partners / marquee */
.partners { gap: 80px; }

.marquee {
  width: 100%;
  max-width: 1360px;
  overflow: hidden;
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 100px;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.marquee__img {
  height: 40px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

@keyframes marquee {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .header__grid { grid-template-columns: auto 1fr auto; }
  .btn--ghost span:last-child { display: none; }
  .hero, .panel, .partners { min-height: 420px; padding: 48px var(--pad); gap: 20px; }
  .wordmark--header { width: 80px; }
}

@media (max-width: 560px) {
  .btn { padding: 10px 12px; height: 44px; font-size: 15px; }
  .hero, .panel, .partners { min-height: 360px; }
  .marquee__track { gap: 56px; }
}
