:root {
  --bg: #000000;
  --panel: #090909;
  --panel-soft: #111111;
  --text: #e8edff;
  --muted: #9ca6c3;
  --accent: #ff7a2f;
  --line: #25304f;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background: #000;
  overflow-x: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 78% 14%, rgba(255, 122, 47, 0.2), rgba(255, 122, 47, 0) 42%),
    radial-gradient(circle at 15% 85%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 48%),
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  background-size: cover, cover, 48px 48px, 48px 48px;
}

.site-shell {
  width: 100%;
  margin: 0;
  display: grid;
  gap: 0;
  position: relative;
}

.card {
  background: linear-gradient(160deg, rgba(18, 18, 18, 0.95), rgba(7, 7, 7, 0.95));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 12px 36px rgba(1, 4, 12, 0.45);
}

.hero {
  width: 100vw;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  padding: clamp(1.2rem, 3vw, 2.8rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-media {
  position: absolute;
  top: 0;
  right: 0;
  width: 52%;
  height: 100%;
  opacity: 0.27;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 20%, rgba(255, 122, 47, 0.24), transparent 45%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.45) 58%, rgba(0, 0, 0, 0.8) 100%);
  pointer-events: none;
}

.hero-topbar {
  position: absolute;
  top: clamp(1rem, 2.5vw, 2rem);
  left: clamp(1.2rem, 3vw, 2.8rem);
  right: clamp(1.2rem, 3vw, 2.8rem);
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.mini-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none;
}

.mini-logo {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.mini-brand-text {
  font-family: "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
}

.hero-nav {
  display: inline-flex;
  gap: clamp(1rem, 2vw, 2.9rem);
}

.hero-nav a {
  color: #fff;
  text-decoration: none;
  font-size: clamp(0.95rem, 1.15vw, 1.45rem);
  letter-spacing: 0.01em;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(830px, 92%);
  margin: 0 auto;
  text-align: center;
}

.hero-wordmark {
  margin: 0;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.01em;
  font-weight: 700;
  font-size: clamp(3rem, 8.8vw, 7.75rem);
}

.hero-wordmark span {
  display: block;
}

.wordmark-top {
  font-family: "DM Mono", monospace;
  white-space: nowrap;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: bold;
  line-height: 1;
}

.wordmark-bottom {
  font-family: "DM Sans", sans-serif;
  font-weight: lighter;
  font-size: clamp(2.1rem, 5vw, 4rem);
}

.subtle {
  margin: 0 0 0.7rem;
  color: #9da9d1;
  font-family: "DM Mono", monospace;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.hero-content h1 {
  margin: 1.2rem 0 0;
  font-size: clamp(1.05rem, 2vw, 1.85rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.01em;
  font-weight: 500px;
}

.about {
  width: min(1320px, 96vw);
  margin: 0 auto 0;
  padding: clamp(1.2rem, 3vw, 2.4rem) clamp(1rem, 3vw, 2rem) 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 560px);
  gap: clamp(1.5rem, 4vw, 5rem);
  align-items: end;
  min-height: 100vh;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.about-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.58) 45%, rgba(0, 0, 0, 0.72) 100%),
    url("images/hero-background.jpg");
  background-position: center right;
  background-size: cover;
  opacity: 0.24;
  pointer-events: none;
  z-index: -1;
}

.about-heading {
  margin: 0;
  line-height: 0.96;
  letter-spacing: -0.02em;
  font-size: clamp(2.3rem, 6.5vw, 5.25rem);
  grid-column: 1;
  grid-row: 1;
}

.about-line {
  display: block;
}

.about-line-muted {
  color: #6f778f;
  font-weight: 500;
}

.about-line-strong {
  color: #dadce3;
  font-weight: 700;
}

.about-intro {
  margin: 0;
  max-width: 52ch;
  color: #c7cce0;
  font-size: 1.1rem;
  line-height: 1.6;
  grid-column: 2;
  grid-row: 1;
  align-self: end;
}

.about-copy {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  gap: 1rem;
  align-self: start;
  width: 100%;
}

.about-copy p {
  margin: 0;
  max-width: none;
  color: #c7cce0;
  font-size: 1.1rem;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .about {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .about-heading,
  .about-intro,
  .about-copy {
    grid-column: auto;
    grid-row: auto;
  }

  .about-copy {
    margin-top: 1rem;
    color: #ffffff;
  }

  .contest-pathway {
    grid-template-columns: 1fr;
  }
}

.contest-pathway {
  grid-column: 1 / -1;
  grid-row: 3;
  align-self: start;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 560px);
  gap: clamp(1rem, 3vw, 3rem);
  align-items: start;
}

.contest-pathway h3 {
  color: #ffffff;
  font-size: 2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: "DM Mono", monospace;
  margin: 0;
}

.pathway-list {
  display: grid;
  gap: 2rem;
}

.contest-pathway h4 {
  font-size: 1.25rem;
  font-weight: 550;
  letter-spacing: 0.03em;
  color: #ffffff;
  font-family: "DM Sans", sans-serif;
  line-height: 1.2;
}

.pathway-item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.9rem;
}

.pathway-item img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.pathway-item > div {
  min-width: 0;
}

.pathway-item h4,
.pathway-item p {
  margin: 0;
}

.curriculum {
  width: 100vw;
  min-height: 100vh;
  margin: 0;
  padding: clamp(1.6rem, 3vh, 2.6rem) clamp(3rem, 6vw, 5.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(0.8rem, 1.6vw, 1.3rem);
}

.curriculum-heading {
  margin: 0;
}

.curriculum-heading .curriculum-kicker {
  margin: 0;
  color: #f7f8ff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: "DM Mono", monospace;
  font-size: clamp(1rem, 3vw, 2rem);
}

.curriculum-heading h2 {
  margin: clamp(0.65rem, 1.6vw, 1rem) 0 0;
  color: #f2f4fc;
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.curriculum-heading span {
  color: #f3a27f;
  font-weight: 700;
}

.instructor-heading h3 {
  margin: 0;
  color: #f2f4fc;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  font-size: 1.8rem;
  font-family: "DM Sans", sans-serif;
  padding-top: 1rem;
}

.curriculum-card {
  border: 1px solid rgba(204, 214, 255, 0.65);
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.5);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.curriculum-track {
  padding: clamp(1.2rem, 2.8vw, 2rem);
}

.curriculum-track + .curriculum-track {
  border-left: 1px solid rgba(204, 214, 255, 0.45);
}

.curriculum-track header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.curriculum-track h3 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  font-size: clamp(1.3rem, 2vw, 2rem);
}

.grade-pill {
  border: 1px solid rgba(204, 214, 255, 0.65);
  border-radius: 8px;
  color: var(--accent);
  text-transform: uppercase;
  font-family: "DM Mono", monospace;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  padding: 0.38rem 0.7rem;
  white-space: nowrap;
}

.curriculum-track ul {
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.curriculum-track li {
  position: relative;
  padding-left: 1.9rem;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.35;
  color: #d4d9ec;
}

.curriculum-track li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 0.8rem;
  height: 0.8rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px rgba(255, 122, 47, 0.1);
}

.core-pillars-text {
  margin-top: clamp(1rem, 2.2vw, 1.8rem);
  max-width: none;
  counter-reset: pillar-count;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}

.core-pillars-text h3 {
  margin: 0 0 1rem;
  grid-column: 1 / -1;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  font-size: 1.8rem;
  color: #f1f4ff;
}

.pillar-line {
  position: relative;
  padding-left: 2.8rem;
}

.pillar-line::before {
  counter-increment: pillar-count;
  content: "0" counter(pillar-count);
  position: absolute;
  left: 0;
  top: 0.15rem;
  font-family: "DM Mono", monospace;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.pillar-line h4 {
  margin: 0;
  font-family: "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(1rem, 1.8vw, 1.5rem);
  font-weight: 400;
  color: #f4f7ff;
}

.pillar-line p {
  margin: 0.3rem 0 0;
  font-size: clamp(0.95rem, 1.5vw, 1.25rem);
  color: #c7cedf;
  line-height: 1.35;
}

.contact-heading {
  margin: 0;
  line-height: 0.96;
  letter-spacing: -0.02em;
  font-size: clamp(2.3rem, 6.5vw, 5.25rem);
  grid-column: 1 / -1;
  grid-row: 1;
}

.contact-heading span {
  color: #dadce3;
  font-weight: 700;
}

.contact-details h3 {
  margin: 0;
  color: #FF5600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  font-size: 1.8rem;
  font-family: "DM Mono", monospace;
  font-weight: lighter;
}

.contact-details p {
  margin: 0.55rem 0 0;
  color: #c9d0e5;
  font-size: 1rem;
}

.contact-form {
  display: grid;
  gap: 0.65rem;
  max-width: 680px;
}

.contact-form label {
  color: #f0f3ff;
  font-family: "DM Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.35rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(208, 218, 255, 0.4);
  background: rgba(6, 9, 18, 0.7);
  color: #f4f7ff;
  border-radius: 10px;
  padding: 0.72rem 0.78rem;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  margin-top: 0.8rem;
  width: fit-content;
  border: 1px solid rgba(255, 122, 47, 0.75);
  background: rgba(255, 122, 47, 0.16);
  color: #ffd6c0;
  padding: 0.62rem 1rem;
  border-radius: 10px;
  font-family: "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.contact-form button:hover {
  background: rgba(255, 122, 47, 0.28);
}

@media (max-width: 1100px) {
  .core-pillars-text {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .core-pillars-text {
    grid-template-columns: 1fr;
  }
}

.highlight {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: "DM Mono", monospace;
  font-size: 0.9rem;
}

.scroll-hint {
  margin-top: 2.2rem;
  color: #a0accf;
  font-size: 0.77rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: "DM Mono", monospace;
}

.hero-reference {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  opacity: 1;
  mix-blend-mode: screen;
}

.upper {
  text-transform: uppercase;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 700;
  color: #adb6d0;
  margin: 0 0 0.4rem;
  font-family: "DM Mono", monospace;
}

.mission p {
  margin: 0;
  color: #ccd3ea;
}

.mission span {
  color: var(--accent);
  font-weight: 600;
}

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

.pathway header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

h2,
h3 {
  margin: 0;
}

.tag {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
  border: 1px solid rgba(255, 122, 47, 0.6);
  border-radius: 999px;
  padding: 0.22rem 0.62rem;
  font-family: "DM Mono", monospace;
}

ul,
ol {
  margin: 0.9rem 0 0;
  padding-left: 1.1rem;
}

li {
  color: #d4dbef;
  margin: 0.45rem 0;
}

.note {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-style: italic;
}

.pillars {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.pillars li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.pillars span {
  color: var(--accent);
  font-weight: 800;
  font-size: 0.9rem;
  font-family: "DM Mono", monospace;
}

.awards {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.awards li {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-bottom: 1px solid rgba(156, 166, 195, 0.2);
  padding: 0.5rem 0;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta h2 {
  margin-top: 0.25rem;
  font-size: 2rem;
}

.contact {
  width: 100vw;
  min-height: 100vh;
  margin: 0;
  padding: clamp(2.2rem, 5vh, 4rem) clamp(2.5rem, 6vw, 5.5rem) clamp(2.4rem, 5vh, 4.2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
  gap: clamp(1.4rem, 3vw, 3.2rem);
  align-items: start;
}

.contact-left {
  display: grid;
  gap: 1rem;
}

.contact-right {
  display: grid;
  gap: 0.9rem;
}

.instructor-copy {
  max-width: 70ch;
  display: grid;
  gap: 1rem;
}

.instructor-copy p {
  margin: 0;
  color: #d0d6ea;
  font-size: clamp(1rem, 1.4vw, 1.28rem);
  line-height: 1.6;
}

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

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

@media (max-width: 900px) {
  .hero {
    min-height: 100vh;
    padding: 1rem;
    justify-content: center;
  }

  .hero-media {
    width: 100%;
    opacity: 0.18;
  }

  .hero-topbar {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    align-items: center;
    flex-direction: row;
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    z-index: 4;
  }

  .hero-nav {
    position: absolute;
    top: calc(100% + 0.65rem);
    right: 0;
    display: grid;
    gap: 0.35rem;
    min-width: 180px;
    padding: 0.55rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(0, 0, 0, 0.86);
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
    z-index: 3;
  }

  .hero-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .hero-nav a {
    font-size: 1rem;
    padding: 0.45rem 0.5rem;
    border-radius: 8px;
  }

  .hero-nav a:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .hero-content {
    width: 100%;
    margin: 0 auto;
    padding-inline: 0.35rem;
  }

  .hero-content h1 {
    font-size: clamp(1.1rem, 5vw, 1.45rem);
  }

  .scroll-hint {
    margin-top: 1.4rem;
  }

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

  .about {
    grid-template-columns: 1fr;
    gap: 1rem;
    min-height: auto;
    padding: 1.2rem 1rem 2rem;
  }

  .about-heading,
  .about-intro,
  .about-copy,
  .contest-pathway {
    grid-column: auto;
    grid-row: auto;
  }

  .contest-pathway {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    margin-top: 0.6rem;
  }

  .contest-pathway h3 {
    font-size: 1.6rem;
    max-width: none;
    letter-spacing: 0.07em;
  }

  .pathway-list {
    gap: 1rem;
  }

  .pathway-item {
    grid-template-columns: 44px 1fr;
    gap: 0.65rem;
    align-items: center;
  }

  .pathway-item img {
    width: 44px;
    height: 44px;
  }

  .contest-pathway h4 {
    font-size: 1rem;
    line-height: 1.25;
    font-weight: 500;
  }

  .pathway-item > div {
    align-self: center;
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .curriculum-card {
    grid-template-columns: 1fr;
  }

  .curriculum-track + .curriculum-track {
    border-left: 0;
    border-top: 1px solid rgba(204, 214, 255, 0.45);
  }

  .curriculum {
    min-height: auto;
    padding: 1.25rem 1rem 2rem;
    justify-content: flex-start;
    gap: 1rem;
  }

  .curriculum-track header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
  }

  .curriculum-track h3 {
    font-size: 1.45rem;
  }

  .grade-pill {
    font-size: 0.82rem;
  }

  .core-pillars-text {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .core-pillars-text h3 {
    margin-bottom: 0.6rem;
    font-size: 1.35rem;
    letter-spacing: 0.07em;
  }

  .pillar-line {
    padding-left: 2.2rem;
  }

  .pillar-line::before {
    font-size: 0.82rem;
    top: 0.12rem;
  }

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