:root {
  --ink: #17201c;
  --muted: #5f675f;
  --paper: #fffdf7;
  --panel: #ffffff;
  --green: #173f33;
  --teal: #0e9a9a;
  --rose: #df3e6f;
  --gold: #c6923a;
  --blue: #205bc3;
  --line: rgba(23, 32, 28, 0.13);
  --shadow: 0 22px 70px rgba(23, 32, 28, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 8%, rgba(14, 154, 154, 0.12), transparent 24rem),
    radial-gradient(circle at 92% 22%, rgba(223, 62, 111, 0.11), transparent 22rem),
    linear-gradient(180deg, #fffaf0 0%, #f6fbff 45%, #fffdf7 100%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 3.5rem);
  background: rgba(255, 253, 247, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 0.75rem;
  text-decoration: none;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.brand strong {
  display: block;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.brand small {
  display: block;
  max-width: 38ch;
  color: var(--muted);
  font-size: 0.8rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.main-nav a {
  min-height: 42px;
  padding: 0.72rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.main-nav a:hover {
  color: var(--ink);
  background: rgba(14, 154, 154, 0.1);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  min-height: calc(100svh - 78px);
  padding: clamp(2rem, 5vw, 5rem) clamp(1rem, 5vw, 5rem) 2rem;
}

.hero-copy {
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(3.25rem, 9vw, 7.5rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 4.4rem);
}

h3 {
  font-size: 1.05rem;
}

.hero p:not(.eyebrow),
.section-heading p,
.decision-panel p,
.info-band p {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.65;
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.8rem 1.1rem;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--teal));
  box-shadow: 0 14px 30px rgba(14, 154, 154, 0.22);
}

.button.secondary {
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.hero-media {
  position: relative;
  min-height: 540px;
}

.hero-media img {
  position: absolute;
  width: min(46%, 300px);
  aspect-ratio: 0.71;
  object-fit: cover;
  border: 10px solid #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  animation: floatCard 7s ease-in-out infinite;
}

.hero-media img:nth-child(1) {
  right: 8%;
  top: 0;
  transform: rotate(4deg);
}

.hero-media img:nth-child(2) {
  left: 4%;
  top: 19%;
  animation-delay: -2s;
  transform: rotate(-6deg);
}

.hero-media img:nth-child(3) {
  right: 23%;
  bottom: 0;
  animation-delay: -4s;
  transform: rotate(2deg);
}

@keyframes floatCard {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -16px;
  }
}

.section {
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 5vw, 5rem);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 2rem;
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
}

.poster-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(23, 32, 28, 0.1);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.poster-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.poster-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.poster-open img {
  width: 100%;
  aspect-ratio: 0.73;
  object-fit: cover;
}

.poster-content {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
}

.poster-meta {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.signup-link {
  justify-self: start;
  color: var(--teal);
  font-weight: 900;
  text-decoration: none;
}

.decision-section {
  background: #173f33;
  color: #fff;
}

.decision-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 1fr);
  gap: 2rem;
  align-items: start;
}

.decision-panel p,
.decision-panel .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.decision-form,
.signup-form {
  display: grid;
  gap: 1rem;
}

.decision-form {
  padding: clamp(1rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.decision-form fieldset {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

legend {
  padding: 0 0.35rem;
  font-weight: 900;
}

label {
  display: grid;
  gap: 0.45rem;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.decision-form label,
.decision-form legend {
  color: #fff;
}

input,
select {
  width: 100%;
  min-height: 46px;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(23, 32, 28, 0.18);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 600;
}

input:focus,
select:focus {
  outline: 3px solid rgba(14, 154, 154, 0.22);
  border-color: var(--teal);
}

.interest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.65rem;
}

.interest-grid label,
.consent {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-transform: none;
}

.interest-grid input,
.consent input {
  width: 18px;
  min-height: 18px;
}

.recommendations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

.recommendation-card {
  padding: 1rem;
  color: var(--ink);
  background: #fff;
  border-radius: 8px;
}

.recommendation-card p {
  color: var(--muted);
  line-height: 1.5;
}

.form-section {
  background: rgba(255, 255, 255, 0.62);
}

.signup-form {
  max-width: 1080px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.notice {
  margin: 0 0 1rem;
  padding: 1rem;
  color: var(--ink);
  background: #fff7df;
  border: 1px solid rgba(198, 146, 58, 0.32);
  border-radius: 8px;
  line-height: 1.55;
}

.field-hint {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  text-transform: none;
}

.form-status {
  display: none;
  width: 100%;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.45;
  text-transform: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.success {
  color: #123328;
  background: #dff7e9;
  border: 2px solid #3fb276;
  box-shadow: 0 14px 36px rgba(63, 178, 118, 0.18);
}

.form-status.error {
  color: #7a1c14;
  background: #fff0ed;
  border: 2px solid #e26b5b;
}

.form-status.info {
  color: #15365f;
  background: #eaf3ff;
  border: 2px solid #7eb3ef;
}

.field-hint.invalid {
  color: #b42318;
}

.other-school,
.club-proof,
.is-hidden {
  display: none;
}

.other-school.is-visible,
.club-proof.is-visible {
  display: grid;
}

.consent {
  align-items: flex-start;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.info-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.6fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--blue));
}

.info-band p,
.info-band .eyebrow {
  color: rgba(255, 255, 255, 0.86);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 4rem 1rem 2rem;
  background: rgba(10, 14, 12, 0.82);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

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

.lightbox img {
  max-height: 82svh;
  width: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.lightbox p {
  margin: 0.8rem 0 0;
  color: #fff;
  font-weight: 900;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.site-footer {
  padding: 1.4rem clamp(1rem, 5vw, 5rem);
  background: #101512;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.site-footer a {
  color: #fff;
  font-weight: 900;
}

[data-animate] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.7rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    border-radius: 8px;
  }

  .hero,
  .decision-panel,
  .info-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    min-height: 360px;
  }

  .hero-media img {
    width: min(45%, 210px);
    border-width: 7px;
  }

  .brand small {
    max-width: 24ch;
  }
}

@media (max-width: 640px) {
  .brand small {
    display: none;
  }

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

  .poster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
  }

  .poster-content {
    padding: 0.8rem;
  }

  .poster-meta {
    display: none;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
