:root {
  --ink: #15202a;
  --muted: #5d6b73;
  --paper: #fbfaf5;
  --white: #ffffff;
  --green: #3f7f5a;
  --mint: #dff0df;
  --blue: #2f6f9f;
  --sky: #e4f3f7;
  --coral: #f06f4f;
  --gold: #f5c85d;
  --line: rgba(21, 32, 42, 0.14);
  --shadow: 0 24px 70px rgba(25, 51, 64, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 22px clamp(20px, 5vw, 64px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 800;
  gap: 10px;
  letter-spacing: 0;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 50%;
  color: var(--white);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.menu-toggle {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 12px 35px rgba(20, 31, 41, 0.08);
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  height: 46px;
  justify-content: center;
  padding: 0;
  position: relative;
  width: 58px;
  z-index: 30;
}

.menu-toggle span {
  background: var(--ink);
  border-radius: 99px;
  display: block;
  height: 2px;
  transition: transform 0.2s ease, width 0.2s ease;
  width: 22px;
}

.menu-open .menu-toggle span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-open .menu-toggle span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.menu-panel {
  background: rgba(251, 250, 245, 0.96);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  min-height: 100vh;
  padding: 110px 42px 42px;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(104%);
  transition: transform 0.24s ease;
  width: min(390px, 100vw);
  z-index: 25;
}

.menu-open .menu-panel {
  transform: translateX(0);
}

.menu-panel a {
  border-bottom: 1px solid var(--line);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.65rem;
  font-weight: 700;
  padding-bottom: 16px;
}

.menu-panel .menu-cta {
  background: var(--coral);
  border: 0;
  border-radius: 999px;
  color: var(--white);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1rem;
  margin-top: 10px;
  padding: 16px 20px;
  text-align: center;
}

.section {
  padding: 64px clamp(20px, 6vw, 84px);
}

.hero {
  align-items: center;
  background: #d8c4a4;
  display: grid;
  gap: clamp(34px, 6vw, 80px);
  grid-template-columns: minmax(0, 0.62fr) minmax(260px, 0.38fr);
  min-height: 100vh;
  padding-top: 140px;
  overflow: hidden;
  position: relative;
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(251, 250, 245, 0.96) 0%, rgba(251, 250, 245, 0.82) 37%, rgba(92, 67, 42, 0.14) 72%),
    url("assets/wright-first-flight.jpg?v=historic-photo-2");
  background-position: center;
  background-size: cover;
  bottom: 0;
  content: "";
  filter: sepia(0.62) grayscale(0.28) contrast(1.04);
  left: 0;
  opacity: 0.94;
  position: absolute;
  right: 0;
  top: 0;
  transform: scale(1.02);
  z-index: 0;
}

.hero::after {
  background:
    radial-gradient(circle at 75% 28%, rgba(255, 248, 225, 0.2), rgba(255, 248, 225, 0) 28%),
    linear-gradient(180deg, rgba(251, 250, 245, 0) 0%, var(--paper) 100%);
  bottom: 0;
  content: "";
  height: 130px;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  z-index: 1;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.photo-credit {
  color: rgba(21, 32, 42, 0.56);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-top: 42px;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.98;
}

h1 {
  font-size: clamp(4rem, 8vw, 7.5rem);
  margin-bottom: 28px;
  max-width: 620px;
}

h2 {
  font-size: clamp(2.45rem, 5vw, 5.2rem);
  margin-bottom: 20px;
}

h3 {
  font-size: 1.08rem;
  margin-bottom: 10px;
}

p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.hero-text {
  font-size: clamp(1.22rem, 1.9vw, 1.55rem);
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.button.primary {
  background: var(--coral);
  box-shadow: 0 16px 34px rgba(240, 111, 79, 0.25);
  color: var(--white);
}

.button.ghost {
  background: var(--white);
  border: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 32px;
  max-width: 900px;
}

.section-heading.narrow {
  max-width: 850px;
}

.steps {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, 1fr);
}

.steps article,
.student-steps article,
.module-grid article,
.hub-list article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.steps span {
  color: var(--coral);
  display: block;
  font-weight: 800;
  margin-bottom: 34px;
}

.student-path {
  background: var(--paper);
}

.student-steps {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, 1fr);
}

.student-steps article {
  padding: 20px;
}

.student-steps span {
  color: var(--coral);
  display: block;
  font-weight: 800;
  margin-bottom: 24px;
}

.student-action {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.quiet-note,
.bridge {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 22px;
}

.modules {
  background: #eef6f2;
}

.module-showcase {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(320px, 0.8fr) minmax(540px, 1.2fr);
  margin-top: 34px;
  max-width: 1180px;
}

.video-frame {
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
}

.video-frame iframe {
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

.module-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.module-grid article {
  min-height: 0;
  padding: 10px;
}

.module-grid h3 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.92rem;
  line-height: 1.05;
  margin-bottom: 4px;
}

.module-grid p:not(.place) {
  font-size: 0.72rem;
  line-height: 1.28;
  margin-bottom: 0;
}

.place {
  color: var(--blue);
  font-size: 0.62rem;
  font-weight: 800;
  margin-bottom: 7px;
}

.module-action {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.hub-layout {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(360px, 1.15fr) minmax(320px, 0.85fr);
}

.hub-map {
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hub-map img {
  display: block;
  width: 100%;
}

.hub-list {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}

.hub-list article {
  align-items: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hub-list span {
  color: var(--muted);
}

.partners {
  background: var(--ink);
  color: var(--white);
}

.partners p,
.partners .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.partner-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.partner-strip span {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  padding: 12px 16px;
}

.prize {
  align-items: end;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
}

.prize-card {
  background: var(--gold);
  border-radius: 8px;
  color: var(--ink);
  padding: 30px;
}

.prize-card strong {
  display: block;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.95;
}

.prize-card span {
  display: block;
  font-weight: 800;
  margin-top: 16px;
}

.final-cta {
  background: var(--sky);
  padding: 66px 20px;
  text-align: center;
}

.final-cta h2,
.final-cta p {
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
}

.final-cta .button {
  margin-top: 20px;
}

.build-page {
  background: #f8fafc;
}

.build-shell {
  display: grid;
  grid-template-columns: 410px minmax(0, 1fr);
  min-height: 100vh;
}

.build-sidebar {
  background: var(--white);
  border-right: 1px solid #e4e9f1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 24px 24px 28px;
}

.build-nav p,
.community-section > p,
.build-partners p {
  color: #7d8aa0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.build-nav {
  display: grid;
  gap: 10px;
}

.build-nav button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 14px;
  color: #102f6b;
  cursor: pointer;
  display: flex;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
  gap: 12px;
  min-height: 46px;
  overflow: hidden;
  padding: 0 14px;
  text-align: left;
  white-space: nowrap;
}

.build-nav button.active {
  background: #0d2a63;
  box-shadow: 0 14px 26px rgba(13, 42, 99, 0.16);
  color: var(--white);
}

.build-nav span {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-width: 22px;
}

.community-section {
  border-top: 1px solid #e4e9f1;
  margin-top: 42px;
  padding: 30px 6px 0;
}

.community-section ol {
  display: grid;
  gap: 9px;
  list-style-position: inside;
  margin: 0 0 14px;
  padding: 0;
}

.community-section li {
  color: #102f6b;
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
}

.community-section a {
  align-items: center;
  background: var(--coral);
  border-radius: 12px;
  color: var(--white);
  display: flex;
  font-size: 0.88rem;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  width: 100%;
}

.build-content {
  align-items: center;
  display: flex;
  flex-direction: column;
  padding: 34px clamp(24px, 6vw, 96px);
}

.build-content h1 {
  color: #0d2a63;
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin: 10px 0 66px;
  max-width: 980px;
  text-align: center;
}

.build-video {
  aspect-ratio: 16 / 9;
  background: var(--white);
  border: 1px solid #d9e0ec;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(13, 42, 99, 0.06);
  max-width: 760px;
  overflow: hidden;
  width: min(100%, 760px);
}

.build-video iframe {
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

.build-partners {
  margin-top: 40px;
  text-align: center;
}

.build-partners > div {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  justify-content: center;
}

.build-partners img {
  display: block;
  max-height: 58px;
  max-width: 190px;
  object-fit: contain;
}

@media (max-width: 940px) {
  .hero,
  .module-showcase,
  .hub-layout,
  .prize {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .steps,
  .student-steps,
  .hub-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .build-shell {
    grid-template-columns: 1fr;
  }

  .build-sidebar {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 48px 20px;
  }

  .site-header {
    padding: 16px 18px;
  }

  .brand span:last-child {
    display: none;
  }

  .brand-mark {
    height: 38px;
    width: 38px;
  }

  .menu-toggle {
    height: 42px;
    width: 52px;
  }

  .menu-panel {
    gap: 14px;
    padding: 92px 24px 28px;
    width: 100vw;
  }

  .menu-panel a {
    font-size: 1.38rem;
    padding-bottom: 13px;
  }

  .hero {
    gap: 28px;
    min-height: 720px;
    padding-top: 108px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(251, 250, 245, 0.99) 0%, rgba(251, 250, 245, 0.94) 38%, rgba(251, 250, 245, 0.38) 70%, rgba(251, 250, 245, 0.08) 100%),
      url("assets/wright-first-flight-mobile.jpg?v=mobile-hero-3");
    background-position: 50% bottom;
    background-size: 124% auto;
    filter: sepia(0.65) grayscale(0.3) contrast(1.03);
    opacity: 1;
    transform: none;
  }

  .hero::after {
    height: 170px;
  }

  h1 {
    font-size: clamp(3.4rem, 16vw, 4.7rem);
    margin-bottom: 20px;
    max-width: 8ch;
  }

  h2 {
    font-size: clamp(2.3rem, 12vw, 3.35rem);
  }

  p {
    font-size: 0.98rem;
    line-height: 1.62;
  }

  .hero-text {
    font-size: 1.16rem;
  }

  .hero-actions {
    margin-top: 26px;
  }

  .hero-actions,
  .steps,
  .student-steps,
  .hub-list,
  .module-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .build-sidebar {
    padding: 18px 16px 22px;
  }

  .build-content {
    padding: 34px 16px 54px;
  }

  .build-content h1 {
    margin-bottom: 28px;
  }

  .build-partners > div {
    gap: 18px;
  }

  .build-nav button {
    font-size: 0.82rem;
  }

  .build-partners img {
    max-height: 42px;
    max-width: 140px;
  }

  .steps article,
  .student-steps article,
  .module-grid article,
  .hub-list article {
    padding: 20px;
  }

  .steps span,
  .student-steps span {
    margin-bottom: 20px;
  }

  .module-showcase {
    gap: 22px;
    margin-top: 26px;
  }

  .module-grid article {
    min-height: 0;
  }

  .place {
    margin-bottom: 18px;
  }

  .partner-strip {
    gap: 9px;
  }

  .partner-strip span {
    font-size: 0.9rem;
    padding: 10px 12px;
  }

  .prize-card {
    padding: 24px;
  }

  .final-cta {
    padding: 52px 20px;
  }
}

@media (max-width: 420px) {
  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    min-height: 680px;
    padding-top: 100px;
  }

  .hero::before {
    background-position: 52% bottom;
    background-size: 138% auto;
  }
}
