/* School of Human Flight: one stylesheet, no build step.
   Orange is reserved for actions and key figures. Change colours and fonts here only. */

:root {
  /* Colours (navy and orange are taken from the facility rendering's logo) */
  --navy: #0f2340;
  --navy-2: #1a3256;
  --orange: #e8651a;
  --orange-hover: #f27b35;
  --text: #2a384e;
  --muted: #506078;
  --line: #d6deea;
  --band: #f2f5f9;
  --white: #ffffff;
  --on-navy: #e6ecf5;
  --on-navy-muted: #b9c6da;

  /* Fonts */
  --font-head: "Barlow Condensed", "Barlow Condensed Fallback", "Arial Narrow", Arial, sans-serif;
  --font-body: "Barlow", "Barlow Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 6px;
  --nav-break: 1040px;
}

/* Fonts: Barlow and Barlow Condensed from Google Fonts, latin subset only.
   The rules below are copied from the Google Fonts CSS2 API response so that no extra
   stylesheet request blocks rendering; the font files still load from fonts.gstatic.com.
   To change fonts, regenerate this block and the fallback faces, and update the preloads in each page. */
@font-face {
  font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(https://fonts.gstatic.com/s/barlow/v13/7cHpv4kjgoGqM7E_DMs5.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(https://fonts.gstatic.com/s/barlow/v13/7cHqv4kjgoGqM7E3_-gs51os.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(https://fonts.gstatic.com/s/barlow/v13/7cHqv4kjgoGqM7E30-8s51os.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(https://fonts.gstatic.com/s/barlowcondensed/v13/HTxwL3I-JCGChYJ8VI-L6OO_au7B4873z3bWuQ.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(https://fonts.gstatic.com/s/barlowcondensed/v13/HTxwL3I-JCGChYJ8VI-L6OO_au7B46r2z3bWuQ.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Metric-matched fallbacks (size-adjust and overrides computed from the font files), so the text
   does not move when the web fonts arrive. */
@font-face { font-family: "Barlow Fallback"; font-weight: 400 500; src: local("Arial"), local("Helvetica"), local("Liberation Sans"), local("Arimo"); size-adjust: 97.5%; ascent-override: 102.56%; descent-override: 20.51%; line-gap-override: 0%; }
@font-face { font-family: "Barlow Fallback"; font-weight: 600; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Liberation Sans Bold"), local("Arimo Bold"); size-adjust: 91.85%; ascent-override: 108.87%; descent-override: 21.77%; line-gap-override: 0%; }
@font-face { font-family: "Barlow Condensed Fallback"; font-weight: 600; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Liberation Sans Bold"), local("Arimo Bold"); size-adjust: 74.66%; ascent-override: 133.95%; descent-override: 26.79%; line-gap-override: 0%; }
@font-face { font-family: "Barlow Condensed Fallback"; font-weight: 700; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Liberation Sans Bold"), local("Arimo Bold"); size-adjust: 76.43%; ascent-override: 130.84%; descent-override: 26.17%; line-gap-override: 0%; }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); font-weight: 700; line-height: 1.05; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); letter-spacing: .005em; }
h2 { font-size: clamp(2rem, 4.6vw, 2.9rem); }
h3 { font-size: 1.5rem; font-weight: 600; line-height: 1.15; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li + li { margin-top: .35em; }
strong { color: var(--navy); font-weight: 600; }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 2px; }
.band--navy :focus-visible, .site-footer :focus-visible { outline-color: var(--white); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--navy); color: var(--white);
  padding: .75rem 1.1rem; border-radius: var(--radius); font-weight: 600;
}
.skip:focus { top: 12px; }

/* Layout */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.band { padding-block: clamp(48px, 7vw, 88px); }
.band--alt { background: var(--band); }
.band--navy { background: var(--navy); color: var(--on-navy); }
.band--navy h1, .band--navy h2, .band--navy h3, .band--navy strong { color: var(--white); }
.band--navy a { color: var(--white); }
.eyebrow {
  font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 .75rem;
}
.band--navy .eyebrow { color: var(--on-navy-muted); }
.lead { font-size: clamp(1.125rem, 2vw, 1.3rem); line-height: 1.55; max-width: 46rem; }
.prose { max-width: 46rem; }
.section-intro { max-width: 46rem; margin-bottom: 2rem; }
.split { display: grid; gap: clamp(28px, 5vw, 56px); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } .split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.note { font-size: .9375rem; color: var(--muted); }
.band--navy .note { color: var(--on-navy-muted); }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.2rem, 5vw, 1.4rem); line-height: 1; white-space: nowrap; min-width: 0; }
.brand svg { width: 38px; height: 38px; flex: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.site-nav li + li { margin-top: 0; }
.site-nav a { display: block; padding: .6rem .8rem; text-decoration: none; font-weight: 500; border-radius: var(--radius); color: var(--navy); }
.site-nav a:hover { background: var(--band); }
.site-nav a[aria-current="page"] { font-weight: 600; box-shadow: inset 0 -3px 0 var(--navy); border-radius: 0; }
.site-nav .btn { padding: .6rem 1.1rem; min-height: 0; margin-left: 6px; }
.nav-toggle { display: none; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; }
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
@media (max-width: 1040px) {
  .brand { flex: 1 1 0; white-space: normal; }
  .brand span { line-height: 1.05; }
  .js .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; background: var(--white);
    color: var(--navy); border: 2px solid var(--navy); border-radius: var(--radius); font: 600 1rem var(--font-body); cursor: pointer;
  }
  .js .site-nav { display: none; flex-basis: 100%; }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; padding: 8px 0 12px; }
  .js .site-nav a { padding: .8rem .5rem; }
  .js .site-nav .btn { margin: 8px 0 0; text-align: center; }
  .site-nav a[aria-current="page"] { box-shadow: none; background: var(--band); }
}

/* Buttons */
.btn {
  display: inline-block; min-height: 44px; padding: .75rem 1.4rem; background: var(--orange); color: var(--navy) !important;
  border: 2px solid var(--orange); border-radius: var(--radius); font-weight: 600; text-decoration: none; text-align: center; line-height: 1.3;
}
.btn:hover { background: var(--orange-hover); border-color: var(--orange-hover); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--white) !important; border-color: var(--white); }
.btn--ghost:hover { background: rgba(255, 255, 255, .14); border-color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.75rem 0 0; }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-top: clamp(32px, 6vw, 80px); padding-bottom: 0; }
.hero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(15, 35, 64, .94) 0%, rgba(15, 35, 64, .8) 55%, rgba(15, 35, 64, .5) 100%);
}
.hero .lead { color: var(--white); }
.figures {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; margin: clamp(36px, 6vw, 64px) 0 0;
  padding: 24px 0 28px; border-top: 1px solid rgba(255, 255, 255, .3);
}
.figures div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.figures dt { font-size: .875rem; color: var(--on-navy); line-height: 1.35; }
.figures dd { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(2.4rem, 6vw, 3.4rem); line-height: 1; color: var(--orange); }
.figures div:last-child { grid-column: 1 / -1; }
@media (min-width: 640px) { .figures { grid-template-columns: repeat(3, minmax(0, 1fr)); } .figures div:last-child { grid-column: auto; } }
@media (min-width: 960px) { .figures { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* Inner page header */
.page-head { padding-block: clamp(40px, 6vw, 72px); }
.page-head .lead { margin-bottom: 0; }

/* Cards */
.cards { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--navy);
  border-radius: var(--radius); padding: 26px 24px 24px; box-shadow: 0 1px 2px rgba(15, 35, 64, .06);
}
.card h3 { font-size: 1.75rem; }
.card__aud { font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }
.card__ask { margin-top: auto; padding-top: .5rem; }
.card__link { font-weight: 600; }

/* Tables */
.table-wrap { width: 100%; }
table { width: 100%; border-collapse: collapse; background: var(--white); }
caption { text-align: left; }
th, td { text-align: left; vertical-align: top; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
thead th { background: var(--navy); color: var(--white); font-weight: 600; font-size: .9375rem; }
tbody th { width: 36%; color: var(--navy); font-weight: 600; }
.table-box { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table-box tr:last-child > * { border-bottom: 0; }
tfoot th, tfoot td { background: var(--band); font-weight: 600; color: var(--navy); }
@media (max-width: 720px) {
  .table-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-stack tr, .table-stack td, .table-stack th { display: block; width: 100%; }
  .table-stack tr { border-bottom: 1px solid var(--line); padding: .6rem 0; }
  .table-stack td, .table-stack th { border: 0; padding: .2rem 1rem; }
  .table-stack td::before { content: attr(data-label) ": "; font-weight: 600; color: var(--navy); }
  .table-stack tbody th { width: 100%; font-size: 1.05rem; }
  .table-stack tfoot td:empty { display: none; }
}

/* Figures and images */
figure { margin: 0; }
figcaption { margin-top: .6rem; font-size: .875rem; color: var(--muted); }
.photo { border-radius: var(--radius); width: 100%; background: var(--band); }
.photo--narrow { max-width: 420px; }

/* Stat blocks (market figures) */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 1.5rem 0 .75rem; padding: 0; list-style: none; }
.stats li { margin: 0; padding: 16px 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.stats b { display: block; font-family: var(--font-head); font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1; color: var(--navy); }
.stats span { display: block; font-size: .875rem; line-height: 1.35; margin-top: .4rem; }
@media (max-width: 420px) { .stats { grid-template-columns: minmax(0, 1fr); } }

/* Lists */
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 1.5rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: .6rem; height: .6rem; background: var(--navy); border-radius: 1px; }
.two-col { columns: 1; column-gap: 40px; }
@media (min-width: 760px) { .two-col { columns: 2; } .two-col li { break-inside: avoid; } }

/* Timeline of milestones (vertical) */
.milestones { list-style: none; padding: 0 0 0 22px; margin: 1rem 0; border-left: 3px solid var(--navy); }
.milestones li { position: relative; margin: 0 0 1.25rem; padding-left: 18px; }
.milestones li::before { content: ""; position: absolute; left: -33px; top: .45em; width: 15px; height: 15px; border-radius: 50%; background: var(--white); border: 3px solid var(--navy); }
.milestones time { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--navy); line-height: 1.1; }

/* Development steps and programme pathway */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.steps li { margin: 0; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: var(--radius); padding: 18px 18px 14px; }
.steps h3 { font-size: 1.35rem; margin-bottom: .3em; }
.steps .tag { display: block; font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.steps .dur { font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: var(--navy); line-height: 1.1; margin: 0 0 .4rem; }
.steps p:last-child { margin-bottom: 0; font-size: .9375rem; }
@media (min-width: 1000px) { .steps--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 700px) { .steps--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps--path { counter-reset: path; }
.steps--path li { counter-increment: path; }
.steps--path li::before { content: counter(path); display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 10px; border-radius: 50%; background: var(--navy); color: var(--white); font-weight: 600; }
.steps--path h3 { margin-bottom: 0; }

/* FAQ */
.faq { max-width: 52rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 18px 44px 18px 0; font-family: var(--font-head); font-weight: 600; font-size: 1.4rem; line-height: 1.2; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-52%); font-size: 1.8rem; font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 0 6px; max-width: 46rem; }

/* Leadership */
.person h3 { font-size: 2rem; margin-bottom: .1em; }
.person .role { font-weight: 600; color: var(--muted); margin-bottom: 1rem; }

/* Contact */
.contact-card { max-width: 46rem; }
.contact-card .mail { font-weight: 600; word-break: break-word; }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-navy); padding-block: 48px 36px; font-size: .9375rem; }
.site-footer a { color: var(--white); }
.site-footer .grid { display: grid; gap: 28px 48px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 800px) { .site-footer .grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.site-footer h2 { font-size: 1.5rem; color: var(--white); margin-bottom: .4em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: .3em; }
.legal { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .25); color: var(--on-navy-muted); }
.legal p { margin-bottom: .5em; max-width: 60rem; }

/* Reduced motion: no animation anywhere, only instant state changes */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Key figures on light bands (investment page) */
.keyfigs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 2rem 0 0; padding: 0; }
.keyfigs div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 18px 16px; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: var(--radius); }
.keyfigs dt { font-size: .9375rem; line-height: 1.35; }
.keyfigs dd { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(2.4rem, 6vw, 3.4rem); line-height: 1; color: var(--orange); }
@media (max-width: 560px) { .keyfigs { grid-template-columns: minmax(0, 1fr); } }

/* Spacing helpers */
.after-steps { margin-top: 2rem; }
.table-box + .note, .table-box + p { margin-top: 1rem; }
.table-stack tbody th { width: 24%; }
.table-stack tfoot th { width: auto; }
@media (max-width: 720px) { .table-stack tbody th, .table-stack tfoot th { width: 100%; } }
