:root {
  --paper: #f3eee1;
  --ink: #182025;
  --muted: #687174;
  --panel: #fffdf6;
  --line: #c8bda7;
  --navy: #102f3b;
  --teal: #147a73;
  --red: #b24131;
  --gold: #c89436;
  --violet: #5b556e;
  --runway: #27333a;
  --shadow: 0 28px 80px rgba(24, 32, 37, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(118deg, transparent 0 47%, rgba(20, 122, 115, 0.08) 47% 47.35%, transparent 47.35% 100%) 0 0 / 160px 160px,
    linear-gradient(90deg, rgba(24, 32, 37, 0.055) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(rgba(24, 32, 37, 0.038) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--paper);
  color: var(--ink);
  font-family: Avenir, "Avenir Next", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 12px clamp(16px, 3.4vw, 42px);
  border-bottom: 3px solid var(--runway);
  background:
    linear-gradient(90deg, rgba(200, 148, 54, 0.24), transparent 32%),
    rgba(255, 253, 246, 0.93);
  backdrop-filter: blur(18px);
}

.site-header::before {
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 42px, transparent 42px 72px);
  content: "";
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  text-decoration: none;
}

.brand-emblem {
  position: relative;
  display: inline-block;
  width: 64px;
  height: 34px;
  flex: 0 0 auto;
}

.brand-emblem::before {
  position: absolute;
  inset: 12px 0 auto 0;
  height: 6px;
  border-radius: 999px;
  background: var(--runway);
  content: "";
}

.emblem-wing {
  position: absolute;
  top: 2px;
  left: 8px;
  width: 44px;
  height: 18px;
  clip-path: polygon(0 50%, 100% 0, 82% 50%, 100% 100%);
  background: var(--red);
  box-shadow: 0 10px 0 var(--gold);
}

.emblem-tail {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 18px;
  height: 18px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  background: var(--teal);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  line-height: 1;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(24, 32, 37, 0.18);
  background: #fffdf6;
}

.site-nav a {
  min-height: 38px;
  padding: 9px 14px;
  border-right: 1px solid rgba(24, 32, 37, 0.18);
  color: var(--navy);
  font-family: "Courier New", monospace;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a[aria-current="page"] {
  background: var(--gold);
  color: var(--ink);
}

.site-nav .nav-contact {
  border-right: 0;
  background: var(--runway);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(23, 33, 38, 0.22);
  border-radius: 4px;
  background: #fff;
}

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

.program-hero,
.manifest,
.paths,
.logbook,
.course-detail {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 76px);
  overflow: hidden;
  background: var(--runway);
  color: #fffdf6;
}

.hero-copy,
.program-copy {
  min-width: 0;
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  width: min(650px, calc(100% - 32px));
  margin-left: clamp(16px, 5vw, 72px);
  padding: clamp(24px, 5vw, 58px);
  background:
    linear-gradient(90deg, rgba(200, 148, 54, 0.18), transparent 34%),
    rgba(16, 47, 59, 0.9);
  clip-path: polygon(0 0, calc(100% - 48px) 0, 100% 48px, 100% 100%, 0 100%);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.3);
}

.hero-copy::before {
  display: block;
  width: 100%;
  height: 18px;
  margin-bottom: 22px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 44px, transparent 44px 76px);
  content: "";
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
}

h1 {
  max-width: 10.6ch;
  font-size: clamp(3.3rem, 8vw, 7.6rem);
  letter-spacing: 0;
}

h2 {
  max-width: 13ch;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
}

h3 {
  font-size: 1.12rem;
}

.lede {
  max-width: 58ch;
  margin: 24px 0 0;
  color: #3f4b52;
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

.hero .lede {
  color: rgba(255, 253, 246, 0.82);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 4px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.button-primary {
  background: var(--gold);
  color: var(--ink);
}

.button-secondary {
  border: 1px solid rgba(255, 253, 246, 0.34);
  background: rgba(255, 253, 246, 0.08);
  color: #fffdf6;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(24, 32, 37, 0.78) 0%, rgba(24, 32, 37, 0.24) 48%, rgba(24, 32, 37, 0.04) 100%),
    repeating-linear-gradient(0deg, rgba(255, 253, 246, 0.08) 0 2px, transparent 2px 42px);
  content: "";
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.clearance-strip {
  position: absolute;
  right: clamp(16px, 4vw, 48px);
  bottom: clamp(16px, 4vw, 48px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(260px, calc(100% - 32px));
}

.clearance-strip span {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  border-left: 5px solid var(--gold);
  background: rgba(255, 253, 246, 0.88);
  color: var(--ink);
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  font-weight: 900;
}

.clearance-strip b {
  color: var(--red);
}

.manifest,
.paths,
.logbook,
.course-detail {
  padding: clamp(52px, 8vw, 104px) 0;
  border-top: 2px solid rgba(24, 32, 37, 0.18);
}

.manifest {
  display: grid;
  grid-template-columns: minmax(240px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(24px, 5vw, 64px);
}

.manifest-grid,
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid rgba(24, 32, 37, 0.18);
  background: var(--panel);
}

.manifest article,
.detail-grid article {
  position: relative;
  min-width: 0;
  padding: 28px 24px 24px;
  border-right: 1px solid rgba(24, 32, 37, 0.18);
  background:
    linear-gradient(180deg, rgba(200, 148, 54, 0.18), transparent 62px),
    var(--panel);
}

.manifest article:last-child,
.detail-grid article:last-child {
  border-right: 0;
}

.manifest article::before,
.detail-grid article::before {
  position: absolute;
  top: 13px;
  right: 16px;
  left: 70px;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(24, 32, 37, 0.32) 0 7px, transparent 7px 13px);
  content: "";
}

.manifest p,
.detail-grid p,
.logbook p,
.site-footer p {
  margin: 12px 0 0;
  color: var(--muted);
}

.tag {
  display: inline-grid;
  width: 44px;
  height: 30px;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 0;
  background: var(--runway);
  color: #fff;
  font-family: "Courier New", monospace;
  font-weight: 900;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.path-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.1fr 0.95fr;
  gap: clamp(10px, 2vw, 18px);
  align-items: stretch;
}

.path-card {
  position: relative;
  display: flex;
  min-height: 340px;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  overflow: hidden;
  padding: 26px;
  border-radius: 0;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(23, 33, 38, 0.14);
}

.path-card::before {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  content: "";
}

.path-card::after {
  position: absolute;
  right: -36px;
  bottom: 24px;
  width: 170px;
  height: 48px;
  clip-path: polygon(0 40%, 74% 40%, 74% 0, 100% 50%, 74% 100%, 74% 60%, 0 60%);
  background: rgba(255, 255, 255, 0.12);
  content: "";
}

.path-card span {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  padding: 8px 11px;
  border-left: 5px solid var(--gold);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  font-weight: 900;
}

.path-card strong {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 12ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.5vw, 3.1rem);
  line-height: 1;
}

.path-card small {
  position: relative;
  z-index: 1;
  max-width: 26ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.private {
  background: linear-gradient(145deg, #0d3142, #0d7a79);
}

.instrument {
  background: linear-gradient(145deg, #172126, #66507d);
}

.commercial {
  background: linear-gradient(145deg, #6d281b, #d8a540);
}

.logbook {
  display: grid;
  grid-template-columns: minmax(230px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(24px, 5vw, 64px);
}

.logbook-panel {
  align-self: start;
  padding: 30px;
  border-top: 8px solid var(--gold);
  background: var(--runway);
  color: #fffdf6;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
  box-shadow: 0 12px 30px rgba(23, 33, 38, 0.09);
}

.logbook-panel p {
  color: rgba(255, 253, 246, 0.7);
}

.timeline {
  display: grid;
  gap: 8px;
}

.timeline article {
  display: grid;
  grid-template-columns: 80px minmax(0, 160px) minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  padding: 16px 18px;
  border-left: 7px solid var(--teal);
  background: rgba(255, 253, 246, 0.82);
  box-shadow: inset 0 -1px 0 rgba(24, 32, 37, 0.12);
}

.timeline time {
  color: var(--red);
  font-family: "Courier New", monospace;
  font-weight: 900;
}

.program-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1.14fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: center;
  min-height: calc(88vh - 76px);
  padding: clamp(34px, 5vw, 70px) 0;
}

.program-hero::before {
  position: absolute;
  inset: clamp(20px, 5vw, 62px) auto auto -28px;
  width: min(360px, 62vw);
  height: 82px;
  z-index: -1;
  background: repeating-linear-gradient(90deg, var(--gold) 0 46px, transparent 46px 76px);
  content: "";
}

.program-copy {
  padding: clamp(22px, 4vw, 42px);
  border-left: 9px solid var(--red);
  background: rgba(255, 253, 246, 0.88);
  box-shadow: 0 18px 45px rgba(24, 32, 37, 0.1);
}

.program-hero img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border: 12px solid #fffdf6;
  border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 46px), calc(100% - 46px) 100%, 0 100%);
  box-shadow: var(--shadow);
}

.program-hero h1 {
  max-width: 15ch;
  font-size: clamp(2.85rem, 5.2vw, 5.6rem);
}

.commercial-page h1 {
  max-width: 18ch;
  font-size: clamp(2.75rem, 4.45vw, 4.85rem);
}

.program-copy .button {
  margin-top: 30px;
}

.course-detail h2 {
  max-width: 15ch;
}

.course-detail .detail-grid article {
  min-height: 210px;
}

.course-detail .detail-grid h3 {
  font-family: "Courier New", monospace;
  text-transform: uppercase;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px clamp(18px, 4vw, 56px);
  border-top: 1px solid rgba(23, 33, 38, 0.14);
  background:
    repeating-linear-gradient(90deg, rgba(200, 148, 54, 0.22) 0 42px, transparent 42px 72px),
    var(--ink);
  color: #fff;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.68);
}

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

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

  .site-nav {
    position: absolute;
    top: 76px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid rgba(23, 33, 38, 0.14);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(23, 33, 38, 0.16);
  }

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

  .site-nav a {
    border-radius: 6px;
  }

  .hero,
  .program-hero,
  .manifest,
  .logbook {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: calc(100vh - 76px);
    padding: 36px 0;
  }

  .hero-copy {
    width: min(620px, calc(100% - 28px));
    margin: 0 auto;
  }

  .hero-media::before {
    background:
      linear-gradient(180deg, rgba(24, 32, 37, 0.72) 0%, rgba(24, 32, 37, 0.58) 58%, rgba(24, 32, 37, 0.22) 100%),
      repeating-linear-gradient(0deg, rgba(255, 253, 246, 0.07) 0 2px, transparent 2px 42px);
  }

  .path-grid,
  .manifest-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .path-card {
    min-height: 230px;
  }

  .manifest article,
  .detail-grid article {
    border-right: 0;
    border-bottom: 1px solid rgba(24, 32, 37, 0.18);
  }

  .manifest article:last-child,
  .detail-grid article:last-child {
    border-bottom: 0;
  }

  .section-heading {
    display: block;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 66px;
  }

  .brand small {
    display: none;
  }

  .site-nav {
    top: 66px;
  }

  .hero,
  .program-hero,
  .manifest,
  .paths,
  .logbook,
  .course-detail {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    width: 100%;
  }

  .hero-copy {
    clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
  }

  .clearance-strip {
    position: relative;
    right: auto;
    bottom: auto;
    z-index: 2;
    width: min(100% - 28px, 360px);
    margin: 16px auto 0;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.55rem, 11vw, 3.85rem);
  }

  .program-hero h1 {
    max-width: 100%;
    font-size: clamp(2.35rem, 10vw, 3.35rem);
  }

  .commercial-page h1 {
    font-size: clamp(2.25rem, 9vw, 3.1rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .timeline article {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .site-footer {
    display: block;
  }

  .site-footer a {
    display: inline-block;
    margin-top: 18px;
  }
}
