:root {
  --cream: #f6f1e8;
  --paper: #fffcf7;
  --sky: #d8edf6;
  --mist: #eef5f7;
  --ink: #1b2428;
  --muted: #5a656c;
  --line: #d9cfc0;
  --deep: #0b3a45;
  --teal: #147a86;
  --teal-dark: #0e5c67;
  --gold: #d39a3a;
  --gold-soft: #e8c36a;
  --sand: #e8d9c3;
  --shadow: 0 18px 40px rgba(11, 58, 69, 0.12);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  --max: 72rem;
  --wide: 90rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); text-underline-offset: 0.18em; }
a:hover { color: var(--deep); }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--deep);
  margin: 0 0 0.6em;
}
p { margin: 0 0 1em; }
.wrap { width: min(calc(100% - 2.5rem), var(--max)); margin-inline: auto; }
.wrap-wide { width: min(calc(100% - 2.5rem), var(--wide)); margin-inline: auto; }

.preview-banner {
  background: var(--deep);
  color: var(--cream);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 0.45rem 1rem;
}
.preview-banner strong { font-weight: 600; color: var(--gold-soft); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 241, 232, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(calc(100% - 2rem), var(--wide));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}
.logo {
  text-decoration: none;
  color: var(--deep);
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo .mark {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
}
.logo .sub {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.15rem;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.05rem;
  align-items: center;
}
.nav a {
  text-decoration: none;
  color: var(--deep);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] {
  border-bottom-color: var(--gold);
  color: var(--deep);
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--deep);
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: min(88vh, 52rem);
  display: grid;
  align-items: end;
  color: white;
  overflow: hidden;
  background: #12343c;
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 58, 69, 0.15) 20%, rgba(11, 58, 69, 0.72) 100%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2.5rem), var(--max));
  margin: 0 auto 4.5rem;
}
.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 0.8rem;
}
.hero h1 {
  color: white;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  font-weight: 520;
  max-width: 16ch;
  text-shadow: 0 2px 24px rgba(0,0,0,0.25);
  margin-bottom: 0.45em;
}
.hero .lede {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  max-width: 38rem;
  color: rgba(255,255,255,0.92);
  margin: 0;
}

.section { padding: 5rem 0; }
.section.alt { background: var(--paper); }
.section.sky { background: var(--sky); }
.section.deep {
  background: var(--deep);
  color: var(--cream);
}
.section.deep h2, .section.deep h3 { color: var(--cream); }
.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.7rem;
}
.section h2 { font-size: clamp(2rem, 4vw, 3.15rem); }
.lede-text { font-size: 1.25rem; max-width: 44rem; color: var(--muted); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2.4rem;
}
.card {
  background: var(--paper);
  border-radius: 1.1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}
.card:hover { transform: translateY(-4px); color: inherit; }
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card-body { padding: 1.25rem 1.3rem 1.5rem; }
.card h3 { font-size: 1.45rem; margin-bottom: 0.35em; }
.card p { color: var(--muted); margin: 0; font-size: 1.02rem; }

.figure {
  margin: 0;
}
.figure img {
  width: 100%;
  border-radius: 0.9rem;
  box-shadow: var(--shadow);
  background: #ddd;
}
.figure.full img, .bleed img {
  border-radius: 0;
  box-shadow: none;
}
.caption, figcaption {
  font-size: 0.92rem;
  color: var(--muted);
  margin-top: 0.7rem;
  max-width: 50rem;
}
.section.deep .caption, .section.deep figcaption { color: #c9d5d8; }

.bleed { margin: 0; }
.bleed img {
  width: 100%;
  max-height: 36rem;
  object-fit: cover;
  object-position: center 40%;
}
.panorama img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  background: #10181a;
}

.timeline { position: relative; margin-top: 3rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 5.6rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--sand);
}
.era {
  display: grid;
  grid-template-columns: 5.6rem 1fr;
  gap: 2rem;
  padding: 0 0 4.5rem;
  position: relative;
}
.era:last-child { padding-bottom: 0; }
.year {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1.2;
  padding-top: 0.2rem;
}
.year::after {
  content: "";
  position: absolute;
  left: 5.15rem;
  top: 0.55rem;
  width: 0.9rem;
  height: 0.9rem;
  background: var(--gold);
  border-radius: 50%;
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 2px var(--gold-soft);
}
.section.alt .year::after { border-color: var(--paper); }
.era-body h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
  margin-top: 1.2rem;
}
.split.reverse { grid-template-columns: 0.95fr 1.05fr; }
.split.reverse .copy { order: 2; }
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.2rem;
}
.gallery-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem 1.25rem;
  margin-top: 1.5rem;
}
.gallery-2 figure { margin: 0; }
.gallery-2 img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 0.55rem;
  box-shadow: var(--shadow);
}
.gallery-2 figcaption {
  font-size: 0.88rem;
  margin-top: 0.45rem;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.2rem;
}
.video {
  position: relative;
  aspect-ratio: 16/9;
  background: #111;
  border-radius: 0.8rem;
  overflow: hidden;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.matter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}
.matter article {
  background: rgba(255,252,247,0.06);
  border: 1px solid rgba(246,241,232,0.16);
  border-radius: 1rem;
  padding: 1.6rem 1.5rem 1.4rem;
}
.matter h3 { color: var(--gold-soft); font-size: 1.55rem; }
.matter p:last-child { margin-bottom: 0; }

.schools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.6rem;
}
.school {
  background: var(--paper);
  border-radius: 1rem;
  padding: 1.3rem 1.35rem 1.2rem;
  box-shadow: var(--shadow);
}
.school h3 { font-size: 1.3rem; margin-bottom: 0.2em; }
.school p { margin: 0 0 0.7em; color: var(--muted); font-size: 1rem; }
.school a { font-weight: 650; }

.photo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 2rem;
  align-items: stretch;
}
.photo-row > * { min-width: 0; }
.photo-row img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 0.8rem;
}
.note {
  font-size: 0.95rem;
  color: var(--muted);
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
  margin: 1.4rem 0 0;
}
.btn {
  display: inline-block;
  background: var(--teal);
  color: white;
  text-decoration: none;
  font-weight: 650;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  margin-top: 0.4rem;
  border: 1.5px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover, .btn:focus-visible { background: var(--teal-dark); color: white; }
.btn:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }
.btn.ghost {
  background: transparent;
  color: var(--deep);
  border: 1.5px solid var(--deep);
}
.btn.ghost:hover, .btn.ghost:focus-visible { background: var(--deep); color: white; }
.btn.light {
  background: var(--gold-soft);
  color: var(--deep);
  border-color: var(--gold-soft);
}
.btn.light:hover, .btn.light:focus-visible {
  background: var(--gold);
  color: var(--deep);
  border-color: var(--gold);
}

.coming {
  padding: 7rem 0 8rem;
  text-align: left;
}
.coming h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.site-footer {
  background: #08262d;
  color: #c9d5d8;
  padding: 3rem 0 2.2rem;
  font-size: 0.95rem;
}
.site-footer h2 { color: var(--cream); font-size: 1.2rem; }
.site-footer a { color: var(--gold-soft); }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 0.55rem 1.65rem;
  margin: 0 0 1.7rem;
}
.footer-nav a {
  color: var(--gold-soft);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.01em;
}
.footer-nav a:hover { color: #fff; }
.footer-nav a:first-child {
  margin-right: 0.15rem;
}

@media (max-width: 640px) {
  .footer-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem 1.25rem;
    margin-bottom: 1.5rem;
  }
}
.credits { margin-top: 1.5rem; font-size: 0.85rem; color: #9aadb2; }
.credits p { margin-bottom: 0.4em; }
.legal { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,0.1); }

@media (max-width: 980px) {
  .cards, .split, .split.reverse, .matter, .schools, .video-grid, .pair { grid-template-columns: 1fr; }
  .split.reverse .copy { order: 0; }
  .timeline::before { left: 0.35rem; }
  .era { grid-template-columns: 1fr; padding-left: 1.6rem; }
  .year { margin-bottom: -1rem; }
  .year::after { left: 0; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 0.8rem 1.2rem 1.1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
  }
  .nav.open { display: flex; }
}
@media (max-width: 640px) {
  body { font-size: 1.05rem; }
  .section { padding: 3.2rem 0; }
  .gallery-2 { grid-template-columns: 1fr; }
  .photo-row { grid-template-columns: 1fr; }
  .hero { min-height: 70vh; }
  .hero-copy { margin-bottom: 2.4rem; }
}

.section.deep a { color: var(--gold-soft); }
.section.deep a:hover { color: #fff; }
.section.deep a.btn.light,
.section.deep a.btn.light:hover,
.section.deep a.btn.light:focus-visible {
  background: var(--gold-soft);
  color: var(--deep);
  border-color: var(--gold-soft);
}
.section.deep a.btn.light:hover,
.section.deep a.btn.light:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--deep);
}
.section.deep a.btn.ghost,
.section.deep a.btn.ghost:hover,
.section.deep a.btn.ghost:focus-visible {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}
.section.deep a.btn.ghost:hover,
.section.deep a.btn.ghost:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: var(--cream);
  border-color: var(--cream);
}
.section.deep a.btn:not(.light):not(.ghost),
.section.deep a.btn:not(.light):not(.ghost):hover,
.section.deep a.btn:not(.light):not(.ghost):focus-visible {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}
.section.deep a.btn:not(.light):not(.ghost):hover,
.section.deep a.btn:not(.light):not(.ghost):focus-visible {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: white;
}

/* Featured electric-aircraft story (Ampaire) */
.featured-story h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.35rem);
  max-width: 22ch;
}
.featured-photo { margin: 1.5rem 0 0; }
.featured-photo img {
  width: 100%;
  aspect-ratio: 16/8;
  object-fit: cover;
  object-position: center 55%;
  border-radius: 1.1rem;
  box-shadow: var(--shadow);
}
.featured-body { margin-top: 1.7rem; }

/* Community / visit program cards and mosaic gallery */
.program-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
  margin-top: 1.8rem;
}
.program {
  background: var(--paper);
  border-radius: 1rem;
  padding: 1.45rem 1.4rem 1.3rem;
  box-shadow: var(--shadow);
}
.program h3 { font-size: 1.45rem; margin-bottom: 0.4rem; }
.program p:last-child { margin-bottom: 0; }
.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.7rem;
  margin-top: 1.6rem;
}
.gallery-mosaic figure { margin: 0; grid-column: span 4; }
.gallery-mosaic img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 0.7rem;
  box-shadow: var(--shadow);
}
.gallery-mosaic figcaption {
  font-size: 0.8rem;
  margin-top: 0.4rem;
}
.gallery-mosaic .span-8 { grid-column: span 8; }
.gallery-mosaic .span-8 img { aspect-ratio: 16/9; }
.gallery-mosaic .span-6 { grid-column: span 6; }
.album-list {
  columns: 2;
  column-gap: 2rem;
  margin: 1.1rem 0 0;
  padding-left: 1.15rem;
}
.album-list li { break-inside: avoid; margin: 0 0 0.55rem; }
.camo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.2rem;
}
.address-note {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 1rem;
}

@media (max-width: 980px) {
  .program-grid, .camo-pair { grid-template-columns: 1fr; }
  .gallery-mosaic .span-8,
  .gallery-mosaic .span-6,
  .gallery-mosaic figure { grid-column: span 6; }
  .album-list { columns: 1; }
}
@media (max-width: 640px) {
  .gallery-mosaic figure,
  .gallery-mosaic .span-8,
  .gallery-mosaic .span-6 { grid-column: span 12; }
  .featured-photo img { aspect-ratio: 16/10; }
}

.feature-portrait { margin: 1.6rem 0 0; }
.feature-portrait img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.9rem;
  box-shadow: var(--shadow);
  background: #ddd;
}
.related-links {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
}
/* picture is the layout box so <source> cannot occupy grid/flex cells. */
picture.with-webp {
  display: block;
  width: 100%;
  min-width: 0;
}
.hero picture.with-webp {
  position: absolute;
  inset: 0;
  height: 100%;
}
.photo-row picture.with-webp { height: 100%; }


/* Footer newsletter signup */
.footer-signup {
  margin: 0 0 2.2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  max-width: 46rem;
}
.footer-signup .eyebrow {
  color: var(--gold-soft);
  margin-bottom: 0.45rem;
}
.site-footer .footer-signup h2 {
  color: var(--cream);
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  margin-bottom: 0.45em;
}
.footer-signup-lead {
  margin: 0 0 1.15rem;
  max-width: 40rem;
  color: #c9d5d8;
}
.nl-form .nl-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  margin: 0 0 0.75rem;
}
.nl-field {
  margin: 0 0 0.75rem;
}
.nl-field label,
.nl-roles legend {
  display: block;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--cream);
  margin: 0 0 0.35rem;
}
.nl-form input[type="text"],
.nl-form input[type="email"] {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.08);
  color: var(--cream);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.55rem;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 1rem;
}
.nl-form input[type="text"]:focus,
.nl-form input[type="email"]:focus {
  outline: 2px solid var(--gold-soft);
  outline-offset: 2px;
  border-color: var(--gold-soft);
}
.nl-roles {
  margin: 0 0 0.9rem;
  border: 0;
  padding: 0;
}
.nl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.nl-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--cream);
  font-weight: 650;
  font-size: 0.95rem;
  cursor: pointer;
  user-select: none;
}
.nl-chip input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  accent-color: var(--gold);
  flex: none;
}
.nl-chip:has(input:focus-visible) {
  outline: 2px solid var(--gold-soft);
  outline-offset: 2px;
}
.nl-chip:has(input:checked) {
  background: rgba(242, 193, 78, 0.22);
  border-color: #F2C14E;
}
.nl-turnstile {
  margin: 0.2rem 0 0.95rem;
  min-height: 65px;
}
.nl-actions { margin: 0; }
.nl-error {
  color: #ffd6d0;
  font-weight: 650;
  margin: 0.8rem 0 0;
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.nl-success.form-success {
  background: #F2C14E;
  color: #1c1814;
  border-radius: 1rem;
  padding: 1.6rem 1.5rem 1.5rem;
  margin: 0;
}
.nl-success.form-success h2 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.45rem;
  color: #1c1814;
}
.nl-success.form-success p {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  color: #1c1814;
}
.form-success-icon {
  width: 2.6rem;
  height: 2.6rem;
  display: block;
  margin-bottom: 0.7rem;
  color: #1c1814;
}

@media (max-width: 640px) {
  .footer-signup { margin-bottom: 1.6rem; padding-bottom: 1.5rem; }
  .nl-form .nl-row { grid-template-columns: 1fr; gap: 0.65rem; }
  .nl-field, .nl-form .nl-row { margin-bottom: 0.65rem; }
  .nl-chip { min-height: 2.7rem; }
  .nl-success.form-success { padding: 1.3rem 1.1rem 1.2rem; }
  .nl-success.form-success h2 { font-size: clamp(1.85rem, 8vw, 2.4rem); }
  .nl-success.form-success p { font-size: 1.1rem; }
}
